Class TopicRefInfo


  • @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class TopicRefInfo
    extends java.lang.Object
    A map holding information about the topic reference in the DITA Map. This is filled on the Oxygen side.
    Since:
    12.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ABSOLUTE_BASE_URL
      The absolute URL of the map in which the topicref is located.
      static java.lang.String ABSOLUTE_URL
      The absolute URL of the topic reference computed by Oxygen from the "href" value.
      static java.lang.String HREF_VALUE
      The value of the "href" attribute of the <topicref> element.
      static java.lang.String ID_PATH
      The ID location (if any) inside the targeted URL.
      static java.lang.String KEY_SCOPES
      The key scopes context in which the topicref is placed.
    • Constructor Summary

      Constructors 
      Constructor Description
      TopicRefInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getProperty​(java.lang.String propertyName)
      Get the value of a recognized property.
      void setProperty​(java.lang.String propertyName, java.lang.Object propertyValue)
      Get the value of a recognized property.
      • Methods inherited from class java.lang.Object

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

      • ABSOLUTE_URL

        public static final java.lang.String ABSOLUTE_URL
        The absolute URL of the topic reference computed by Oxygen from the "href" value. It does not include the id location.
        See Also:
        Constant Field Values
      • ID_PATH

        public static final java.lang.String ID_PATH
        The ID location (if any) inside the targeted URL.
        See Also:
        Constant Field Values
      • HREF_VALUE

        public static final java.lang.String HREF_VALUE
        The value of the "href" attribute of the <topicref> element.
        See Also:
        Constant Field Values
      • KEY_SCOPES

        public static final java.lang.String KEY_SCOPES
        The key scopes context in which the topicref is placed. Either empty string or something like "ks1.ks2".
        See Also:
        Constant Field Values
      • ABSOLUTE_BASE_URL

        public static final java.lang.String ABSOLUTE_BASE_URL
        The absolute URL of the map in which the topicref is located.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TopicRefInfo

        public TopicRefInfo()
    • Method Detail

      • getProperty

        public java.lang.Object getProperty​(java.lang.String propertyName)
        Get the value of a recognized property.
        Parameters:
        propertyName - The property name. One of the following constants: For example if a DITA Map with the URL "cms://test/file.ditamap" references a topic using the HREF_VALUE task.dita#task then the ABSOLUTE_URL of the topic reference will be cms://test/task.dita and the ID_PATH will be task
        Returns:
        The property value or null if not available.
      • setProperty

        public void setProperty​(java.lang.String propertyName,
                                java.lang.Object propertyValue)
        Get the value of a recognized property.
        Parameters:
        propertyName - The property name. One of the following constants:
        propertyValue - The value of the property.
        Throws:
        java.lang.IllegalArgumentException - If the property name is not one of the constants in this class.