public class DTDElementDecl extends DTDDeclNode
https://www.w3.org/TR/REC-xml/#dt-eldecl
Modifier and Type | Field and Description |
---|---|
DTDDeclParameter |
category
Formats:
or
|
DTDDeclParameter |
content |
declType, unrecognized
DTD_ATT_LIST_NODE, DTD_DECL_NODE, DTD_ELEMENT_DECL_NODE, DTD_ENTITY_DECL_NODE, DTD_NOTATION_DECL, NULL_VALUE
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 and Description |
---|
DTDElementDecl(int start,
int end) |
Modifier and Type | Method and Description |
---|---|
void |
collectParameters(DTDDeclParameter target,
BiConsumer<DTDDeclParameter,DTDDeclParameter> collector)
Collect parameters which matches the given target.
|
String |
getCategory() |
String |
getContent() |
int |
getEndElementTag()
Returns the offset of the end of tag
|
String |
getNodeName() |
short |
getNodeType() |
DTDDeclParameter |
getParameterAt(int offset)
Returns the parameter (start/end offset) at the given offset and null
otherwise.
|
DTDDeclParameter |
getReferencedElementNameAt(int offset)
Returns the parameter name which references a DTD element declaration
(
|
void |
setCategory(int start,
int end) |
void |
setContent(int start,
int end) |
addNewParameter, getDeclType, getName, getNameParameter, getOwnerDocType, getParameterAtIndex, getParameters, getUnrecognized, isInNameParameter, setDeclType, setName, setUnrecognized, updateLastParameterEnd
addChild, appendChild, cloneNode, compareDocumentPosition, findAttrAt, findAttrAt, findNodeAt, findNodeBefore, findNodeOrAttrAt, 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
public DTDDeclParameter category
public DTDDeclParameter content
public String getNodeName()
getNodeName
in interface Node
getNodeName
in class DTDDeclNode
public String getCategory()
public void setCategory(int start, int end)
public String getContent()
public void setContent(int start, int end)
public short getNodeType()
getNodeType
in interface Node
getNodeType
in class DTDDeclNode
public int getEndElementTag()
public DTDDeclParameter getParameterAt(int offset)
will return (start/end offset) of heading.
will return null.
offset
- the offsetpublic DTDDeclParameter getReferencedElementNameAt(int offset)
DTDDeclNode
getReferencedElementNameAt
in class DTDDeclNode
offset
- the offsetpublic void collectParameters(DTDDeclParameter target, BiConsumer<DTDDeclParameter,DTDDeclParameter> collector)
target
- the targetcollector
- the collector to collect parameters.Copyright © 2022. All rights reserved.