Ejemplo n.º 1
0
  /**
   * Returns a list of the entities declared in the DOCTYPE declaration.
   *
   * @return entities
   */
  @JsxGetter
  public Object getEntities() {
    final DomDocumentType domDocumentType = getDomNodeOrDie();
    final NamedNodeMap entities = domDocumentType.getEntities();
    if (null != entities) {
      return entities;
    }

    return "";
  }
Ejemplo n.º 2
0
  /**
   * Returns a list of the XMLDOMNotation objects present in the document type declaration.
   *
   * @return notations
   */
  @JsxGetter
  public Object getNotations() {
    final DomDocumentType domDocumentType = getDomNodeOrDie();
    final NamedNodeMap notations = domDocumentType.getNotations();
    if (null != notations) {
      return notations;
    }

    return "";
  }
Ejemplo n.º 3
0
 /**
  * Returns the name of the document type.
  *
  * @return the name
  */
 @JsxGetter
 public String getName() {
   final DomDocumentType domDocumentType = getDomNodeOrDie();
   return domDocumentType.getName();
 }
Ejemplo n.º 4
0
 /** {@inheritDoc} */
 @Override
 public Object getParentNode() {
   final DomDocumentType domDocumentType = getDomNodeOrDie();
   return domDocumentType.getPage().getScriptObject();
 }