/** * 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 ""; }
/** * 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 ""; }
/** * Returns the name of the document type. * * @return the name */ @JsxGetter public String getName() { final DomDocumentType domDocumentType = getDomNodeOrDie(); return domDocumentType.getName(); }
/** {@inheritDoc} */ @Override public Object getParentNode() { final DomDocumentType domDocumentType = getDomNodeOrDie(); return domDocumentType.getPage().getScriptObject(); }