Class AttributeReferenceValueDetector

java.lang.Object
ro.sync.ecss.extensions.dita.id.AttributeReferenceValueDetector

@API(type=INTERNAL, src=PUBLIC) public class AttributeReferenceValueDetector extends Object
Detects the AttrValue of a node and the name of the attribute.
  • Constructor Details

    • AttributeReferenceValueDetector

      public AttributeReferenceValueDetector(AuthorElement element)
      Creates the detector.
      Parameters:
      element - The element to check for reference attributes.
  • Method Details

    • detectRefAttrValue

      public AttrValue detectRefAttrValue()
      Detects the reference attribute value of local elements.
      Returns:
      The AttrValue provided by the href, conref or others reference attributes. null if nothing is detected or element has a non-local scope.
    • getDetectedRefAttrName

      public String getDetectedRefAttrName()
      Returns:
      The name of the attribute that contains the reference. Can be href, conref and others. null if the element does not have a reference.