Class NodeContext

  • Direct Known Subclasses:
    NodeRendererCustomizerContext

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public abstract class NodeContext
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      NodeContext()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract java.lang.String getAttributeNamespace​(java.lang.String attrQName)
      Get namespace URI for a given attribute qualified name.
      abstract java.lang.String getAttributeQName​(int index)
      Get the qualified attribute name at index.
      abstract int getAttributesCount()
      Returns the number of the element attributes.
      abstract java.lang.String getAttributeValue​(java.lang.String attrQName)
      Get attribute value for given attribute qualified name.
      abstract java.lang.String getNodeName()
      Get the node name.
      abstract java.lang.String getNodeNamespace()
      Get the node namespace.
      abstract java.lang.String getParentNodeName()
      Get the parent node name.
      abstract java.lang.String getParentNodeNamespace()
      Get the parent node namespace.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeContext

        public NodeContext()
    • Method Detail

      • getNodeName

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

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

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

        public abstract java.lang.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 java.lang.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 java.lang.String getAttributeValue​(java.lang.String attrQName)
        Get attribute value for given attribute qualified name.
        Parameters:
        attrQName - The qualified attribute name.
        Returns:
        The attribute value.
      • getAttributeNamespace

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