Package ro.sync.exml.workspace.api.node
Class NodeContext
java.lang.Object
ro.sync.exml.workspace.api.node.NodeContext
- Direct Known Subclasses:
NodeRendererCustomizerContext
Provide information like node name, node namespace, attributes (if available), that will be used
for Author outline, Author bread crumb, Text page outline, content completion proposals window
or DITA Map view rendering customization.
- Since:
- 15.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
getAttributeNamespace
(String attrQName) Get namespace URI for a given attribute qualified name.abstract String
getAttributeQName
(int index) Get the qualified attribute name at index.abstract int
Returns the number of the element attributes.abstract String
getAttributeValue
(String attrQName) Get attribute value for given attribute qualified name.abstract String
Get the node name.abstract String
Get the node namespace.abstract String
Get the parent node name.abstract String
Get the parent node namespace.
-
Constructor Details
-
NodeContext
public NodeContext()
-
-
Method Details
-
getNodeName
Get the node name.- Returns:
- Returns the node name.
-
getNodeNamespace
Get the node namespace.- Returns:
- Returns the node namespace.
-
getParentNodeName
Get the parent node name.- Returns:
- Returns the parent node name.
-
getParentNodeNamespace
Get the parent node namespace.- Returns:
- Returns the parent node namespace.
-
getAttributesCount
public abstract int getAttributesCount()Returns the number of the element attributes.- Returns:
- The number of the element attributes.
-
getAttributeQName
Get the qualified attribute name at index.- Parameters:
index
- Index of the attribute.- Returns:
- The qualified attribute name at index.
-
getAttributeValue
Get attribute value for given attribute qualified name.- Parameters:
attrQName
- The qualified attribute name.- Returns:
- The attribute value.
-
getAttributeNamespace
Get namespace URI for a given attribute qualified name.- Parameters:
attrQName
- The attribute qualified name.- Returns:
- The attribute namespace URI.
-