Package org.cip4.jdflib.extensions
Class IntentHelper
java.lang.Object
org.cip4.jdflib.extensions.BaseXJDFHelper
org.cip4.jdflib.extensions.IntentHelper
- Direct Known Subclasses:
ColorIntentHelper
-
Field Summary
FieldsFields inherited from class org.cip4.jdflib.extensions.BaseXJDFHelper
log, theElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()generic cleanup routinegetName()get the span attribute - initially try attribute, else Element/@ActualgetSpanList(String attName) static booleanisIntentResource(KElement toCheck) static booleanvoidvoidvoidset the span in a subelementstatic voidsetSpanAsAttribute(boolean bSpanAsAttribute) toString()Methods inherited from class org.cip4.jdflib.extensions.BaseXJDFHelper
appendElement, appendElement, copyHelper, deleteNode, ensureID, equals, getAttribute, getAttributeMap, getBaseHelper, getBaseHelper, getComment, getCreateElement, getDefaultVersion, getDescriptiveName, getExternalID, getGeneralID, getID, getLocalName, getRoot, getRootDoc, getVersion, getXJDFRoot, getXJMFRoot, getXPathElement, getXPathValue, getXRoot, hasAttribute, hashCode, isEqual, removeAttribute, setAttribute, setAttribute, setComment, setDefaultVersion, setID, setXPathValue
-
Field Details
-
INTENT
Deprecated.- See Also:
-
-
Constructor Details
-
IntentHelper
- Parameters:
intent-
-
-
Method Details
-
isIntentResource
- Parameters:
toCheck-
-
toString
- Overrides:
toStringin classBaseXJDFHelper- Returns:
- See Also:
-
getIntent
- Returns:
- the "Intent" element
-
getResource
- Returns:
- the detailed intent resource
-
getCreateResource
- Returns:
- the detailed intent resource
-
getName
- Returns:
-
setSpan
- Parameters:
att-val-dataType- - if null always set as simple attribute
-
setSpan
- Parameters:
att-val-
-
getSpan
get the span attribute - initially try attribute, else Element/@Actual- Parameters:
spanPath-- Returns:
-
getSpanList
- Parameters:
attName- the attribute- Returns:
- the attribute value as a list
-
setSpan
set the span in a subelement- Parameters:
resource-spanPath-val-dataType-
-
cleanUp
public void cleanUp()Description copied from class:BaseXJDFHelpergeneric cleanup routine- Overrides:
cleanUpin classBaseXJDFHelper- See Also:
-
isSpanAsAttribute
public static boolean isSpanAsAttribute()- Returns:
- the bSpanAsAttribute
-
setSpanAsAttribute
public static void setSpanAsAttribute(boolean bSpanAsAttribute) - Parameters:
bSpanAsAttribute- the bSpanAsAttribute to set
-