Package org.eclipse.lemminx.dom
Class DTDDeclNode
java.lang.Object
org.eclipse.lemminx.dom.DOMNode
org.eclipse.lemminx.dom.DTDDeclNode
- Direct Known Subclasses:
DOMDocumentType,DTDAttlistDecl,DTDElementDecl,DTDEntityDecl,DTDNotationDecl
DTDNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionThis class is the base for all declaration nodes for DTD's.Fields inherited from class org.eclipse.lemminx.dom.DOMNode
DTD_ATT_LIST_NODE, DTD_DECL_NODE, DTD_ELEMENT_DECL_NODE, DTD_ENTITY_DECL_NODE, DTD_NOTATION_DECL, NULL_VALUEFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNewParameter(int start, int end) getName()shortprotected DTDDeclParametergetParameterAtIndex(int index) getReferencedElementNameAt(int offset) Returns the parameter name which references a DTD element declaration (<!ELEMENT) at the given offset and null otherwise.booleanisInNameParameter(int offset) voidsetDeclType(int start, int end) voidsetName(int start, int end) voidsetUnrecognized(int start, int end) voidupdateLastParameterEnd(int end) Methods inherited from class org.eclipse.lemminx.dom.DOMNode
addChild, appendChild, cloneNode, compareDocumentPosition, findAttrAt, findAttrAt, findNodeAt, findNodeBefore, findNodeOrAttrAt, findTextAt, getAttribute, getAttributeAtIndex, getAttributeNode, getAttributeNode, getAttributeNodes, getAttributes, getBaseURI, getChild, getChildNodes, getChildren, getChildrenWithAttributeValue, getEnd, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOrphanEndElement, getOrphanEndElement, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousNonTextSibling, getPreviousSibling, getStart, getTextContent, getUserData, hasAttribute, hasAttributes, hasChildNodes, insertBefore, isAttribute, isCDATA, isCharacterData, isChildOfOwnerDocument, isClosed, isComment, isDefaultNamespace, isDoctype, isDTDAttListDecl, isDTDElementDecl, isDTDEntityDecl, isDTDNotationDecl, isElement, isEqualNode, isGenericDTDDecl, isIncluded, isIncluded, isOwnerDocument, isProcessingInstruction, isProlog, isSameNode, isSupported, isText, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setAttributeNode, setNodeValue, setPrefix, setTextContent, setUserData, toString
-
Field Details
-
unrecognized
This class is the base for all declaration nodes for DTD's. It can also be used to represent an undefined tag, meaning it is not any of: ELEMENT, ATTLIST, ENTITY, or NOTATION -
declType
-
-
Constructor Details
-
DTDDeclNode
public DTDDeclNode(int start, int end)
-
-
Method Details
-
getName
-
getNameParameter
-
getParameterAtIndex
-
setName
public void setName(int start, int end) -
isInNameParameter
public boolean isInNameParameter(int offset) -
getOwnerDocType
-
getNodeName
-
getNodeType
public short getNodeType() -
getUnrecognized
-
setUnrecognized
public void setUnrecognized(int start, int end) -
addNewParameter
-
updateLastParameterEnd
public void updateLastParameterEnd(int end) -
getParameters
-
setDeclType
public void setDeclType(int start, int end) -
getDeclType
-
getReferencedElementNameAt
Returns the parameter name which references a DTD element declaration (<!ELEMENT) at the given offset and null otherwise.<!ATTLIST element-name ... will return position of 'element-name' which references the <!ELEMENT element-name
- Parameters:
offset- the offset- Returns:
- the parameter name which references a DTD element declaration (<!ELEMENT) at the given offset and null otherwise.
-