Class NodeContext

java.lang.Object
ro.sync.exml.workspace.api.node.NodeContext
Direct Known Subclasses:
NodeRendererCustomizerContext

@API(type=NOT_EXTENDABLE, src=PUBLIC) public abstract class NodeContext extends Object
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 Details

    • NodeContext

      public NodeContext()
  • Method Details

    • getNodeName

      public abstract String getNodeName()
      Get the node name.
      Returns:
      Returns the node name.
    • getNodeNamespace

      public abstract String getNodeNamespace()
      Get the node namespace.
      Returns:
      Returns the node namespace.
    • getParentNodeName

      public abstract String getParentNodeName()
      Get the parent node name.
      Returns:
      Returns the parent node name.
    • getParentNodeNamespace

      public abstract String 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

      public abstract String getAttributeQName(int index)
      Get the qualified attribute name at index.
      Parameters:
      index - Index of the attribute.
      Returns:
      The qualified attribute name at index.
    • getAttributeValue

      public abstract String getAttributeValue(String attrQName)
      Get attribute value for given attribute qualified name.
      Parameters:
      attrQName - The qualified attribute name.
      Returns:
      The attribute value.
    • getAttributeNamespace

      public abstract String getAttributeNamespace(String attrQName)
      Get namespace URI for a given attribute qualified name.
      Parameters:
      attrQName - The attribute qualified name.
      Returns:
      The attribute namespace URI.