Class JDFAbstractState
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.cip4.jdflib.core.KElement
org.cip4.jdflib.core.JDFElement
org.cip4.jdflib.resource.devicecapability.JDFAbstractState
- All Implemented Interfaces:
Serializable,Cloneable,JDFBaseDataTypes,ICapabilityElement,IStreamWriter,Element,ElementTraversal,EventTarget,Node,NodeList,TypeInfo
- Direct Known Subclasses:
JDFBooleanState,JDFDateTimeState,JDFDurationState,JDFEnumerationState,JDFIntegerState,JDFMatrixState,JDFNameState,JDFNumberState,JDFPDFPathState,JDFRectangleState,JDFShapeState,JDFStringState,JDFXYPairState
public abstract class JDFAbstractState
extends JDFElement
implements JDFBaseDataTypes, ICapabilityElement
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.cip4.jdflib.core.JDFElement
JDFElement.ENodeStatus, JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumOrientation, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumSides, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation, JDFElement.EOrientation, JDFElement.ESides, JDFElement.eUnit, JDFElement.EVersionNested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.MultiAttributeComparator, KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparatorNested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes
JDFBaseDataTypes.EnumFitsValue -
Field Summary
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURIFields inherited from class org.apache.xerces.dom.ElementImpl
attributes, nameFields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocumentFields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSiblingFields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODEFields inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes
EPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSIONFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEFields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION -
Constructor Summary
ConstructorsConstructorDescriptionJDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName) constructor for JDFAbstractStateJDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) constructor for JDFAbstractStateJDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) constructor for JDFAbstractState -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddValue(String value, JDFBaseDataTypes.EnumFitsValue testlists) add a value to the list of values defined by testlistsAppends element Loc to the end ofthisappend moduleRef to moduleRefs, if it does not exist, set the availability to module and ensure that the appropriate modulecap existsfinal JDFValueLocAppends element ValueLocappendValueLocLoc(int iSkip) appends element Loc to the end of the i-th subelement Valueprotected final booleanfitsLength(String str, JDFBaseDataTypes.EnumFitsValue length) fitsLength - tests, if the defined Stringstrmatches AllowedLength or the PresentLength, specified for this Stateprotected final booleanfitsListType(String value) fitsListType - tests, if the definedvaluematches value of ListType attribute, specified for this Stateprotected final booleanfitsRegExp(String str, JDFBaseDataTypes.EnumFitsValue regexp) fitsRegExp - checks whetherstrmatches the AllowedRegExp/PresentRegExp specified for this Stateabstract booleanfitsValue(String value, JDFBaseDataTypes.EnumFitsValue testlists) Tests whether the defined value matches the Allowed test lists or the Present test lists specified for this stateGets NMTOKENS attribute ActionRefsprotected JDFIntegerRangeget attribute AllowedLengthprotected StringGets typesafe enumerated attribute AvailabilitygetCreateLoc(int iSkip) Gets the iSkip-th element Loc.get the ModulePool that contains ModuleCap elements referenced by this create one, if it does not existGet string attribute DependentMacroRefgetDevNS()Gets URI attribute DevNSbooleanGets boolean attribute Editableabstract JDFTerm.EnumTermget the type of evaluation that is appropriate for this ICapabilityElementbooleanGets boolean attribute HasDefaultprotected StringgetIDPrefixprotected VStringgetInvalidAttributesImpl(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax) Gets typesafe enumerated attribute ListTypegetLoc(int iSkip) Gets the iSkip-th element LocGet NMTOKENS attribute MacroRefsgetMatchingObjectInNode(KElement element) gets the matching Attribute value String or AbstractSpan object from the parent, depending on the type of the stateintGets integer attribute MaxOccursintGet integer attribute MinOccursget the availability of this devcaps based on the list of installed modules in ModuleRefs and ModulePoolget the ModulePool that contains ModuleCap elements referenced by this(21) get VString attribute ModuleRefsgetName()Gets String attribute Name
Since name is independent of the data type of the State element,the getter is defined herefinal StringGets the NamePath of this State in form "DevCapsName[Context=aaa, LinkUsage=ccc]/DevCapName1/DevCapName2../@StateName"final VStringfinal VStringgetNamePathVector(boolean bRecurse) Gets the NamePath of this State in form "DevCapsName[Context=aaa, LinkUsage=ccc]/DevCapName1/DevCapName2../@StateName"get the parent devCap of thisget the ancestor devCaps, null if this resides in a DevCapPoolprotected JDFIntegerRangeprotected StringbooleanGets boolean attribute Requiredprotected AttributeInfoprotected ElementInfoGets typesafe enumerated attribute UserDisplayfinal JDFValueLocgetValueLoc(int iSkip) get iSkip'th element LocgetValueLocLoc(int iSkip, int jSkip) Gets the j-th element Loc of the i-th element Valuebooleaninit()Method init.voidsetActionRefs(VString value) Sets attribute ActionRefsprotected voidsetAllowedLength(JDFIntegerRange value) set attribute AllowedLengthvoidSets attribute AvailabilitybooleansetDefaultsFromCaps(KElement element, boolean bAll) set the default values specified in this in elementvoidsetDependentMacroRef(String value) Sets attribute DependentMacroRefvoidSets attribute DevNSvoidsetEditable(boolean value) Sets attribute EditablevoidsetHasDefault(boolean value) Sets attribute HasDefault, default=truevoidSets attribute ListType, default=SingleValuevoidsetMacroRefs(VString value) Sets attribute MacroRefsvoidsetMaxOccurs(int value) Sets attribute MaxOccurs,voidsetMinOccurs(int value) Sets attribute MinOccurs, default=1voidSets String attribute Name
Since name is independent of the data type of the State element, the setter is defined hereprotected voidsetPresentLength(JDFIntegerRange value) voidsetRequired(boolean value) Sets attribute RequiredvoidSets attribute UserDisplay, default=DisplayMethods inherited from class org.cip4.jdflib.core.JDFElement
appendAnchor, appendBestEffortExceptions, appendComment, appendElement, appendGeneralID, appendGeneralID, appendGeneralID, appendHRef, appendHRef, appendMustHonorExceptions, appendOperatorInterventionExceptions, appendPreview, appendrRefs, attributeType, clearTargets, cloneNewDoc, copyChildren, copyInto, createRoot, createRoot, deprecatedAttributes, eraseDefaultAttributes, exclusiveOneOfAttribute, exclusiveOneOfElement, fixVersion, getAllRefs, getAtrType, getAttributeInfo, getBestEffortExceptions, getChildElement, getChildElements, getChildElementVector, getChildElementVector_JDFElement, getChildIds, getChildrenByTagName, getChildrenByTagName, getChildWithAttribute, getChildWithMatchingAttribute, getComment, getComment, getCommentText, getCommentURL, getCreateComment, getCreateComment, getCreateElement_JDFElement, getCreatePreview, getCreateRefElement, getDeepElementByID, getDefaultAttributeMap, getDefaultJDFVersion, getDeprecatedAttributes, getDeprecatedElements, getDescriptiveName, getElement, getElement_JDFElement, getElementIDPrefix, getElementInfo, getElementNameVector, getEnumAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumforAttribute, getEnumNodeName, getEnumString, getFirstVersion, getGeneralID, getGeneralID, getGeneralID, getGeneralIDListMap, getGeneralIDMap, getGeneralIDVectorMap, getHRef, getHRefs, getHRefs, getInsertElements, getInsertElementVector, getInvalidAttributes, getInvalidElements, getInvalidElements_JDFElement, getJDFRoot, getJMFRoot, getLastVersion, getLinkFromUserData, getLinkRoot, getMaxVersion, getMissingAttributes, getMissingAttributeVector, getMissingElements, getMissingElementVector, getMustHonorExceptions, getNamesVector, getOperatorInterventionExceptions, getOwnerDocument_JDFElement, getParentJDF, getParentJDF, getPartMap, getPartMapArray, getPartMapVector, getPrereleaseAttributes, getPrereleaseElements, getPreview, getRefElement, getRefElements, getRefString, getrRefs, getSchemaURL, getSchemaURL, getSchemaURL, getSettingsPolicy, getStatus, getTarget, getTarget, getTarget_JDFElement, getTheAttributeInfo_JDFElement, getTheElementInfo_JDFElement, getTypeForAttribute, getUnknownAttributes, getUnknownAttributeVector, getUnknownElements, getUnknownElementVector, getUnknownPoolElements, getURLDoc, getURLInputStream, getValueForNewAttribute, getVersion, getVersion, getvHRefRes, getvHRefRes, getXMLDocUserData, hasMissingAttributes, hasMissingElements, hasPartMap, hasSettingsPolicy, hasUnknownAttributes, hasUnknownElements, idString, includesMatchingAttribute, inlineRefElements, insertBefore, isComment, isCommentStatic, isDeprecated, isDirty, isInAnyCIP4NameSpaceStatic, isInAnyCIP4NameSpaceStatic, isInAnyJDFNameSpaceStatic, isInAnyJDFNameSpaceStatic, isInJDFNameSpace, isInJDFNameSpaceStatic, isInJDFNameSpaceStatic, isInXJDFNameSpaceStatic, isInXJDFNameSpaceStatic, isJDFNode, isRefElement, isRefElementStatic, isResource, isResourceLink, isResourceLinkStatic, isResourceStatic, isResourceUpdate, isValid, isValid_JDFElement, isXJDF, jdfVersion, knownAttributes, knownElements, matchesPath, newID, numChildElements, numChildElements_JDFElement, optionalAttributes, optionalElements, parseFile, parseFile, parseStream, parseString, prereleaseAttributes, prereleaseElements, refElement, removeBestEffortExceptions, removeChild, removeChild, removeChildren, removeExtensions, removeFromBestEffortExceptions, removeFromMustHonorExceptions, removeFromOperatorInterventionExceptions, removeFromrRefs, removeGeneralID, removePartMap, removeRefElement, removeSettingsPolicy, replaceChild, requiredAttributes, requiredElements, requiredLevel, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNameTimeStamp, setAttributes, setBestEffortExceptions, setCommentText, setCommentText, setCommentURL, setDefaultJDFVersion, setDescriptiveName, setDirty, setEnumerationsAttribute, setEnumsAttribute, setGeneralID, setLongID, setMustHonorExceptions, setOperatorInterventionExceptions, setPartMap, setPartMapVector, setSettingsPolicy, setStatus, setVersion, setvStringAttribute, stringToVersion, uniqueElements, upDaterRefs, validAttribute, validAttribute, validEnumAttribute, validEnumerationsAttribute, validResourcePosition, version, write2DirMethods inherited from class org.cip4.jdflib.core.KElement
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendAttribute, appendAttributes, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildRelativeXPath, buildXPath, buildXPath, buildXPath, cleanup, clearNSMap, clone, copyAttribute, copyAttribute, copyAttribute, copyAttribute, copyElement, copyElements, copyXPathValue, createRoot, deleteNode, ensureCase, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName, fitsName_KElement, flush, generateDotID, getAttribute, getAttribute, getAttribute, getAttribute_KElement, getAttribute_KElement, getAttributeArray_KElement, getAttributeIgnoreCase, getAttributeMap, getAttributeMap_KElement, getAttributeRaw, getAttributeVector, getAttributeVector_KElement, getBoolAttribute, getCData, getChildArray, getChildArray_KElement, getChildArrayByClass, getChildArrayByClass_KElement, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector, getChildElementVector, getChildElementVector_KElement, getChildFromList, getChildFromList, getChildList, getChildList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByClass, getChildrenByTagName, getChildrenByTagName_KElement, getChildrenFromList, getChildrenIgnoreList, getChildrenWithAttribute, getChildWithAttribute, getChildWithAttribute, getCreateChildWithAttribute, getCreateElement, getCreateElement, getCreateElement_KElement, getCreateXPathElement, getDeepElement, getDeepParent, getDeepParent, getDeepParentChild, getDeepParentNotName, getDocRoot, getDOMAttr, getElement, getElement_KElement, getElementByClass, getElementHashMap, getElementsByTagName_KElement, getFirstChildElement, getFirstChildElement, getFirstChildElement, getFirstElementNode, getID, getIgnoreCase, getIgnoreCase_KElement, getInheritedAttribute, getInheritedElement, getInheritedXPathAttribute, getIntAttribute, getLocalNameStatic, getLongAttribute, getMultipleIDs, getNamespaceURI, getNamespaceURIFromPrefix, getNextElementNode, getNextSiblingElement, getNextSiblingElement, getNextSiblingElement, getNonEmpty, getNonEmpty_KElement, getNumCDatas, getNumChildNodes, getNumChildText, getNumXMLComments, getOwnerDocument_KElement, getParentNode_KElement, getPreviousSiblingElement, getPreviousSiblingElement, getRealAttribute, getTarget_KElement, getText, getText, getTree, getTree, getTreeByClass, getTreeElement, getXMLComment, getXMLNSNameSpace, getXMLNSPrefix, getXPathAttribute, getXPathAttributeMap, getXPathElement, getXPathElementVector, getXPathValueMap, getXPathValueMap, getXSIType, hasAttribute, hasAttribute, hasAttribute_KElement, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasNonEmpty, hasNonEmpty_KElement, hasXPathNode, includesAttribute, includesAttributes, insertAt, insertBefore, isAncestor, isEqual, isEqual, isWildCard, matchesPath, matchesPathName, mergeElement, moveArray, moveAttribute, moveAttribute, moveElement, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numChildNodes, numChildrenByClass, numSiblingElements, pushUp, removeAllText, removeAttribute, removeAttribute, removeAttribute_KElement, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildrenByClass, removeChildText, removeExtensions, removeFromAttribute, removeIgnoreCase, removeIgnoreCase_KElement, removeXMLComment, removeXPathAttribute, removeXPathElement, renameAttribute, renameAttribute, renameElement, replaceElement, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNSRaw, setAttributeRaw, setAttributes, setAttributes, setAttributes, setAttributesRaw, setBoolAttribute, setDirty, setID, setIntAttribute, setNamespaceURI, setNodeValue, setNonEmpty, setPrefix, setRealAttribute, setText, setvStringAttribute, setXMLComment, setXMLComment, setXPathAttribute, setXPathValue, setXPathValues, setXSIType, sortChild, sortChild, sortChildren, sortChildren, sortChildren, sortChildren, toDisplayXML, toString, toValueString, toXML, toXML, uniqueID, uniqueID, write2File, write2File, write2Stream, writeStream, xmlNameSpace, xmlnsLocalName, xmlnsPrefixMethods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setTypeMethods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttributeNS, isEqualNode, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeDataMethods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildrenMethods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSiblingMethods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserDataMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface org.w3c.dom.Node
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
-
Constructor Details
-
JDFAbstractState
public JDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName) constructor for JDFAbstractState- Parameters:
myOwnerDocument-qualifiedName-
-
JDFAbstractState
public JDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) constructor for JDFAbstractState- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFAbstractState
public JDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) constructor for JDFAbstractState- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Details
-
getTheAttributeInfo
- Overrides:
getTheAttributeInfoin classJDFElement- Returns:
-
getTheElementInfo
- Overrides:
getTheElementInfoin classJDFElement- Returns:
- the elementinfo
-
addValue
add a value to the list of values defined by testlists- Parameters:
value- value to testtestlists- switches between Allowed test lists and Present test lists. Has two values: Allowed and Present.
-
fitsValue
Tests whether the defined value matches the Allowed test lists or the Present test lists specified for this state- Parameters:
value- value to testtestlists- switches between Allowed test lists and Present test lists. Has two values: Allowed and Present.- Returns:
- boolean - true, if the value matches the test lists or if Allowed testlists are not specified
-
getNamePath
Gets the NamePath of this State in form "DevCapsName[Context=aaa, LinkUsage=ccc]/DevCapName1/DevCapName2../@StateName"default getNamePath(false)
- Returns:
- String - NamePath of this State
-
getNamePathVector
- Specified by:
getNamePathVectorin interfaceICapabilityElement- Returns:
- See Also:
-
getNamePathVector
Gets the NamePath of this State in form "DevCapsName[Context=aaa, LinkUsage=ccc]/DevCapName1/DevCapName2../@StateName"default getNamePath(false)
- Parameters:
bRecurse- if true returns "DevCapsName/SubelemName1/SubelemName2/../@StateName"- Returns:
- String - NamePath of this State
-
getParentDevCaps
get the ancestor devCaps, null if this resides in a DevCapPool- Returns:
- JDFDevCaps
-
setAvailability
Sets attribute Availability- Specified by:
setAvailabilityin interfaceICapabilityElement- Parameters:
value- the value to set the attribute to
-
getAvailability
Gets typesafe enumerated attribute Availability- Specified by:
getAvailabilityin interfaceICapabilityElement- Returns:
- EnumAvailability: the enumeration value of the attribute
-
getParentDevCap
get the parent devCap of this- Returns:
-
setDevNS
Sets attribute DevNS- Parameters:
value- the value to set the attribute to
-
getDevNS
Gets URI attribute DevNS- Returns:
- String: the attribute value
-
setHasDefault
public void setHasDefault(boolean value) Sets attribute HasDefault, default=true- Parameters:
value- the value to set the attribute to
-
getHasDefault
public boolean getHasDefault()Gets boolean attribute HasDefault- Returns:
- boolean: the attribute value
-
setMaxOccurs
public void setMaxOccurs(int value) Sets attribute MaxOccurs,- Parameters:
value- the value to set the attribute to
-
getMaxOccurs
public int getMaxOccurs()Gets integer attribute MaxOccurs- Returns:
- int: the attribute value
-
setMinOccurs
public void setMinOccurs(int value) Sets attribute MinOccurs, default=1- Parameters:
value- the value to set the attribute to
-
getMinOccurs
public int getMinOccurs()Get integer attribute MinOccurs- Returns:
- int: the attribute value
-
setName
Sets String attribute Name
Since name is independent of the data type of the State element, the setter is defined here- Parameters:
value- the value to set the attribute to
-
getName
Gets String attribute Name
Since name is independent of the data type of the State element,the getter is defined here- Returns:
- String: the attribute value
-
setRequired
public void setRequired(boolean value) Sets attribute Required- Parameters:
value- the value to set the attribute to
-
getRequired
public boolean getRequired()Gets boolean attribute Required- Returns:
- boolean: the attribute value
-
setListType
Sets attribute ListType, default=SingleValue- Parameters:
value- the value to set the attribute to
-
getListType
Gets typesafe enumerated attribute ListType- Returns:
- EnumListType: the enumeration value of the attribute
-
setActionRefs
Sets attribute ActionRefs- Parameters:
value- vector of ActionRefs
-
getActionRefs
Gets NMTOKENS attribute ActionRefs- Returns:
- VString: the attribute value
-
setEditable
public void setEditable(boolean value) Sets attribute Editable- Parameters:
value- the value to set the attribute to
-
getEditable
public boolean getEditable()Gets boolean attribute Editable- Returns:
- boolean: the attribute value
-
setMacroRefs
Sets attribute MacroRefs- Parameters:
value- vector of MacroRefs
-
getMacroRefs
Get NMTOKENS attribute MacroRefs- Returns:
- VString: the attribute value
-
setDependentMacroRef
Sets attribute DependentMacroRef- Parameters:
value- vector of DependentMacroRef
-
getDependentMacroRef
Get string attribute DependentMacroRef- Returns:
- String: the attribute value
-
setUserDisplay
Sets attribute UserDisplay, default=Display- Parameters:
value- the value to set the attribute to
-
getUserDisplay
Gets typesafe enumerated attribute UserDisplay- Returns:
- EnumUserDisplay: the enumeration value of the attribute
-
getCreateLoc
Gets the iSkip-th element Loc. If doesn't exist, it is created.default: getCreateLoc(0)
- Parameters:
iSkip- number of elements to skip- Returns:
- JDFLoc: the matching element
-
getLoc
Gets the iSkip-th element Locdefault: getCreateLoc(0)
- Parameters:
iSkip- number of elements to skip- Returns:
- JDFLoc: the matching element
-
appendLoc
Appends element Loc to the end ofthis- Returns:
- JDFLoc: newly created Loc element
-
setAllowedLength
set attribute AllowedLength- Parameters:
value- the value to set the attribute to
-
getAllowedLength
get attribute AllowedLength- Returns:
- JDFIntegerRange: the attribute value
-
setPresentLength
-
getPresentLength
-
fitsLength
fitsLength - tests, if the defined Stringstrmatches AllowedLength or the PresentLength, specified for this State- Parameters:
str- string to testlength- switches between AllowedLength and PresentLength.- Returns:
- boolean - true, if 'str' matches Length or if AllowedLength is not specified
-
getMatchingObjectInNode
gets the matching Attribute value String or AbstractSpan object from the parent, depending on the type of the state- Parameters:
element- the parent in which to search- Returns:
- Object: either a String or AbstractSpan
-
setDefaultsFromCaps
set the default values specified in this in element- Parameters:
element- the element to set the defaults onbAll-- Returns:
- true if successful
-
fitsListType
fitsListType - tests, if the definedvaluematches value of ListType attribute, specified for this State- Parameters:
value- value to test- Returns:
- boolean - true, if 'value' matches specified ListType
-
getInvalidAttributesImpl
protected VString getInvalidAttributesImpl(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax) -
getValueLocLoc
Gets the j-th element Loc of the i-th element Value- Parameters:
iSkip- number of Value elements to skip (iSkip=0 - first Value element)jSkip- number of Loc subelements of i-th Value element to skip, (jSkip=0 - first Loc element)- Returns:
- JDFLoc: the matching Loc element
-
getValueLoc
get iSkip'th element Loc- Parameters:
iSkip- number of Value elements to skip (iSkip=0 - get first element)- Returns:
- JDFValueLoc: the element
-
appendValueLocLoc
appends element Loc to the end of the i-th subelement Value- Parameters:
iSkip- number of Value elements to skip (iSkip=0 - first Value element)- Returns:
- JDFLoc: newly created Loc element
-
appendValueLoc
Appends element ValueLoc- Returns:
- JDFLoc: newly created ValueLoc element
-
fitsRegExp
fitsRegExp - checks whetherstrmatches the AllowedRegExp/PresentRegExp specified for this State- Parameters:
str- string to testregexp- switches between AllowedRegExp and PresentRegExp.- Returns:
- boolean - true, if
strmatches the RegExp or if AllowedRegExp is not specified
-
getPresentRegExp
- Returns:
-
getAllowedRegExp
- Returns:
-
getModuleAvailability
get the availability of this devcaps based on the list of installed modules in ModuleRefs and ModulePool- Returns:
-
getModulePool
Description copied from interface:ICapabilityElementget the ModulePool that contains ModuleCap elements referenced by this- Specified by:
getModulePoolin interfaceICapabilityElement- Returns:
- See Also:
-
getCreateModulePool
Description copied from interface:ICapabilityElementget the ModulePool that contains ModuleCap elements referenced by this create one, if it does not exist- Specified by:
getCreateModulePoolin interfaceICapabilityElement- Returns:
- See Also:
-
getModuleRefs
(21) get VString attribute ModuleRefs- Specified by:
getModuleRefsin interfaceICapabilityElement- Returns:
- VString the value of the attribute
-
appendModuleRef
Description copied from interface:ICapabilityElementappend moduleRef to moduleRefs, if it does not exist, set the availability to module and ensure that the appropriate modulecap exists- Specified by:
appendModuleRefin interfaceICapabilityElement- Parameters:
id-- Returns:
- See Also:
-
init
public boolean init()Description copied from class:KElementMethod init. Superclass of all inits- Overrides:
initin classJDFElement- Returns:
- See Also:
-
getIDPrefix
Description copied from class:KElementgetIDPrefix- Overrides:
getIDPrefixin classKElement- Returns:
- the default ID prefix of non-overwritten JDF elements
-
getEvaluationType
Description copied from interface:ICapabilityElementget the type of evaluation that is appropriate for this ICapabilityElement- Specified by:
getEvaluationTypein interfaceICapabilityElement- Returns:
- See Also:
-