Interface XMQEntityDecl
- All Superinterfaces:
XMQNode
An entity declaration inside a dtd, eg <!ENTITY year "2026">. An
entity is never expanded implicitly: in a parsed document the reference
appears as a XMQNode of type ENTITY_REF with the entity name, and this
declaration holds the replacement text (content(), expanded at parse time
within the libxml2 limits) and the value as written (orig()).
-
Method Summary
Modifier and TypeMethodDescriptionintetype()Returns the entity type, a libxml2 entity type number: 1 internal general, 2 external general parsed, 3 external general unparsed, 4 internal parameter, 5 external parameter and 6 internal predefined.Returns the public id of the entity.orig()Returns the value as written in the source, or null if the entity was predefined and not written.systemId()Returns the system id of the entity.Methods inherited from interface XMQNode
addChild, addNextSibling, addPrevSibling, appendRaw, children, content, doc, firstChild, fullName, lastChild, line, name, next, numChildren, parent, prev, replaceWith, setContent, setLine, setName, textContent, type, unlinkModifier and TypeMethodDescriptionAdd a child like xmqAddChild.Insert a sibling after this node, like xmqAddNextSibling (but without text merging).Insert a sibling before this node, like xmqAddPrevSibling (but without text merging).Append a child without merging adjacent text nodes.children()Returns a new list with the children of this node.content()Returns the text content of text like nodes (text, cdata, comment, pi).doc()Returns the document owning this node.Returns the first child.fullName()Returns the full name, ie prefix:name if the node has a namespace with a prefix.Returns the last child.intline()Returns the source line of the node, like xmqGetLineNumber: elements get the line where their start tag ends, text the line where its first chunk was read, comments, processing instructions and cdata sections the line where they end.name()Returns the name of the node.next()Returns the next sibling.intReturns the number of children.parent()Returns the parent node.prev()Returns the previous sibling.voidReplace this node with another node, like xmqReplaceNode.voidsetContent(String content) Set the content of a text like node.voidsetLine(int line) Set the source line of the node.voidSet the name of the node.Returns the string value of the node, like xmqGetString.type()Returns the type of this node.voidunlink()Remove this node from its parent and siblings, like xmqUnlinkNode.
-
Method Details
-
etype
int etype()Returns the entity type, a libxml2 entity type number: 1 internal general, 2 external general parsed, 3 external general unparsed, 4 internal parameter, 5 external parameter and 6 internal predefined.- Returns:
- The entity type number.
-
orig
String orig()Returns the value as written in the source, or null if the entity was predefined and not written.- Returns:
- The original literal or null.
-
externalId
-
systemId
-