Package ro.sync.ecss.extensions.dita.id
Class AttributeReferenceValueDetector
- java.lang.Object
-
- ro.sync.ecss.extensions.dita.id.AttributeReferenceValueDetector
-
@API(type=INTERNAL, src=PUBLIC) public class AttributeReferenceValueDetector extends java.lang.Object
Detects theAttrValue
of a node and the name of the attribute.
-
-
Constructor Summary
Constructors Constructor Description AttributeReferenceValueDetector(AuthorElement element)
Creates the detector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttrValue
detectRefAttrValue()
Detects the reference attribute value of local elements.java.lang.String
getDetectedRefAttrName()
-
-
-
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.
-
-