Class AttributeReferenceValueDetector


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

      • AttributeReferenceValueDetector

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

      • 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 java.lang.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.