Package anvil.doc

Examples of anvil.doc.Doc


  /// @param ident Identifier of document to search for
  public static final Object[] p_getText = { "*type", null, "*ident", null };
  public Any m_getText(String type, String ident)
  {
    if (type != null) {
      Doc doc = _doc.findFirst(type, ident);
      return (doc != null) ? Any.create(doc.getText()) : UNDEFINED;
    } else {
      return Any.create(_doc.getText());
    }
  }
View Full Code Here


  /// @param ident Identifier of document to search for
  public static final Object[] p_getHead = { "*type", null, "*ident", null };
  public Any m_getHead(String type, String ident)
  {
    if (type != null) {
      Doc doc = _doc.findFirst(type, ident);
      return (doc != null) ? Any.create(doc.getFirstSentence()) : UNDEFINED;
    } else {
      return Any.create(_doc.getFirstSentence());
    }
  }
View Full Code Here

  /// @param ident Identifier of document to search for
  /// @return Doc or undefined, if there were no matching documents.
  public static final Object[] p_getChild = { "*type", null, "*ident", null };
  public Any m_getChild(String type, String ident)
  {
    Doc doc;
    if (type != null) {
      doc = _doc.findFirst(type, ident);
    } else {
      doc = _doc.getFirstChild();
    }
View Full Code Here

  /// Returns next document (sibling).
  /// @synopsis Doc getNext()
  /// @return Doc or undefined, if there is no next sibling.
  public Any m_getNext()
  {
    Doc next = _doc.getNext();
    return (next != null) ? new AnyDoc(next) : UNDEFINED;
  }
View Full Code Here

TOP

Related Classes of anvil.doc.Doc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.