Package org.eclipse.lemminx.dom
Class DTDElementDecl
java.lang.Object
org.eclipse.lemminx.dom.DOMNode
org.eclipse.lemminx.dom.DOMTreeNode
org.eclipse.lemminx.dom.DOMContainerNode
org.eclipse.lemminx.dom.DTDDeclNode
org.eclipse.lemminx.dom.DTDElementDecl
DTD Element Declaration invalid input: '<!'ELEMENT
-
Field Summary
FieldsModifier and TypeFieldDescriptionFormats: invalid input: '<!'ELEMENT element-name category> or invalid input: '<!'ELEMENT element-name (element-content)>Fields inherited from class org.eclipse.lemminx.dom.DTDDeclNode
declType, unrecognizedFields 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 TypeMethodDescriptionvoidcollectParameters(DTDDeclParameter target, BiConsumer<DTDDeclParameter, DTDDeclParameter> collector) Collect parameters which matches the given target.intReturns the offset of the end of tag invalid input: '<!'ELEMENTshortgetParameterAt(int offset) Returns the parameter (start/end offset) at the given offset and null otherwise.getReferencedElementNameAt(int offset) Returns the parameter name which references a DTD element declaration (invalid input: '<!'ELEMENT) at the given offset and null otherwise.voidsetCategory(int start, int end) voidsetContent(int start, int end) Methods inherited from class org.eclipse.lemminx.dom.DTDDeclNode
addNewParameter, getDeclType, getName, getNameParameter, getOwnerDocType, getParameterAtIndex, getParameters, getUnrecognized, isInNameParameter, setDeclType, setName, setUnrecognized, updateLastParameterEndMethods inherited from class org.eclipse.lemminx.dom.DOMContainerNode
addChild, children, findChildWithAttributeValue, findNodeAt, findNodeBefore, getChild, getChildNodes, getChildren, getFirstChild, getLastChild, hasChildNodesMethods inherited from class org.eclipse.lemminx.dom.DOMTreeNode
getEnd, getStart, isClosedMethods inherited from class org.eclipse.lemminx.dom.DOMNode
appendChild, attributes, cloneNode, compareDocumentPosition, findAttrAt, findAttrAt, findDTDDeclParameterAt, findDTDDeclParameterAt, findNodeOrAttrAt, findTextAt, getAttribute, getAttributeAtIndex, getAttributeNode, getAttributeNode, getAttributeNodes, getAttributes, getBaseURI, getFeature, getLastAttr, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOrphanEndElement, getOrphanEndElement, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousNonTextSibling, getPreviousSibling, getTextContent, getUserData, hasAttribute, hasAttributes, hasSiblings, hasSingleAttribute, insertBefore, isAttribute, isCDATA, isCharacterData, isChildOfOwnerDocument, 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
-
category
Formats: invalid input: '<!'ELEMENT element-name category> or invalid input: '<!'ELEMENT element-name (element-content)> -
-
-
Constructor Details
-
DTDElementDecl
public DTDElementDecl(int start, int end)
-
-
Method Details
-
getNodeName
- Specified by:
getNodeNamein interfaceNode- Overrides:
getNodeNamein classDTDDeclNode
-
getCategory
-
setCategory
public void setCategory(int start, int end) -
getContent
-
setContent
public void setContent(int start, int end) -
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode- Overrides:
getNodeTypein classDTDDeclNode
-
getEndElementTag
public int getEndElementTag()Returns the offset of the end of tag invalid input: '<!'ELEMENT- Returns:
- the offset of the end of tag invalid input: '<!'ELEMENT
-
getParameterAt
Returns the parameter (start/end offset) at the given offset and null otherwise.invalid input: '<!'ELEMENT note (to,from,head|ing,body)> will return (start/end offset) of heading.
invalid input: '<!'ELEMENT n|ote (to,from,heading,body)> will return null.
- Parameters:
offset- the offset- Returns:
- the parameter (start/end offset) at the given offset and null otherwise.
-
getReferencedElementNameAt
Description copied from class:DTDDeclNodeReturns the parameter name which references a DTD element declaration (invalid input: '<!'ELEMENT) at the given offset and null otherwise.invalid input: '<!'ATTLIST element-name ... will return position of 'element-name' which references the invalid input: '<!'ELEMENT element-name
- Overrides:
getReferencedElementNameAtin classDTDDeclNode- Parameters:
offset- the offset- Returns:
- the parameter name which references a DTD element declaration (invalid input: '<!'ELEMENT) at the given offset and null otherwise.
-
collectParameters
public void collectParameters(DTDDeclParameter target, BiConsumer<DTDDeclParameter, DTDDeclParameter> collector) Collect parameters which matches the given target.- Parameters:
target- the targetcollector- the collector to collect parameters.
-