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:
java.io.Serializable,java.lang.Cloneable,JDFBaseDataTypes,ICapabilityElement,IStreamWriter,org.w3c.dom.Element,org.w3c.dom.ElementTraversal,org.w3c.dom.events.EventTarget,org.w3c.dom.Node,org.w3c.dom.NodeList,org.w3c.dom.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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJDFAbstractState.EnumUserDisplay-
Nested classes/interfaces inherited from class org.cip4.jdflib.core.JDFElement
JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumOrientation, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation, JDFElement.eUnit
-
Nested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator
-
Nested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes
JDFBaseDataTypes.EnumFitsValue
-
-
Field Summary
-
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
-
Fields 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_NODE
-
Fields 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_DIMENSION
-
Fields 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_NODE
-
-
Constructor Summary
Constructors Constructor Description JDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)constructor for JDFAbstractStateJDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)constructor for JDFAbstractStateJDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)constructor for JDFAbstractState
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddValue(java.lang.String value, JDFBaseDataTypes.EnumFitsValue testlists)add a value to the list of values defined by testlistsJDFLocappendLoc()Appends element Loc to the end ofthisJDFModuleCapappendModuleRef(java.lang.String id)append moduleRef to moduleRefs, if it does not exist, set the availability to module and ensure that the appropriate modulecap existsJDFValueLocappendValueLoc()Appends element ValueLocJDFLocappendValueLocLoc(int iSkip)appends element Loc to the end of the i-th subelement Valueprotected booleanfitsLength(java.lang.String str, JDFBaseDataTypes.EnumFitsValue length)fitsLength - tests, if the defined Stringstrmatches AllowedLength or the PresentLength, specified for this Stateprotected booleanfitsListType(java.lang.String value)fitsListType - tests, if the definedvaluematches value of ListType attribute, specified for this Stateprotected booleanfitsRegExp(java.lang.String str, JDFBaseDataTypes.EnumFitsValue regexp)fitsRegExp - checks whetherstrmatches the AllowedRegExp/PresentRegExp specified for this Stateabstract booleanfitsValue(java.lang.String value, JDFBaseDataTypes.EnumFitsValue testlists)Tests whether the defined value matches the Allowed test lists or the Present test lists specified for this stateVStringgetActionRefs()Gets NMTOKENS attribute ActionRefsprotected JDFIntegerRangegetAllowedLength()get attribute AllowedLengthprotected java.lang.StringgetAllowedRegExp()JDFDeviceCap.EnumAvailabilitygetAvailability()Gets typesafe enumerated attribute AvailabilityJDFLocgetCreateLoc(int iSkip)Gets the iSkip-th element Loc.JDFModulePoolgetCreateModulePool()get the ModulePool that contains ModuleCap elements referenced by this create one, if it does not existjava.lang.StringgetDependentMacroRef()Get string attribute DependentMacroRefjava.lang.StringgetDevNS()Gets URI attribute DevNSbooleangetEditable()Gets boolean attribute Editableabstract JDFTerm.EnumTermgetEvaluationType()get the type of evaluation that is appropriate for this ICapabilityElementbooleangetHasDefault()Gets boolean attribute HasDefaultprotected java.lang.StringgetIDPrefix()getIDPrefixprotected VStringgetInvalidAttributesImpl(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax)JDFAutoBasicPreflightTest.EnumListTypegetListType()Gets typesafe enumerated attribute ListTypeJDFLocgetLoc(int iSkip)Gets the iSkip-th element LocVStringgetMacroRefs()Get NMTOKENS attribute MacroRefsjava.lang.ObjectgetMatchingObjectInNode(KElement element)gets the matching Attribute value String or AbstractSpan object from the parent, depending on the type of the stateintgetMaxOccurs()Gets integer attribute MaxOccursintgetMinOccurs()Get integer attribute MinOccursJDFDeviceCap.EnumAvailabilitygetModuleAvailability()get the availability of this devcaps based on the list of installed modules in ModuleRefs and ModulePoolJDFModulePoolgetModulePool()get the ModulePool that contains ModuleCap elements referenced by thisVStringgetModuleRefs()(21) get VString attribute ModuleRefsjava.lang.StringgetName()Gets String attribute Name
Since name is independent of the data type of the State element,the getter is defined herejava.lang.StringgetNamePath()Gets the NamePath of this State in form "DevCapsName[Context=aaa, LinkUsage=ccc]/DevCapName1/DevCapName2../@StateName"VStringgetNamePathVector()VStringgetNamePathVector(boolean bRecurse)Gets the NamePath of this State in form "DevCapsName[Context=aaa, LinkUsage=ccc]/DevCapName1/DevCapName2../@StateName"JDFDevCapgetParentDevCap()get the parent devCap of thisJDFDevCapsgetParentDevCaps()get the ancestor devCaps, null if this resides in a DevCapPoolprotected JDFIntegerRangegetPresentLength()protected java.lang.StringgetPresentRegExp()booleangetRequired()Gets boolean attribute Requiredprotected AttributeInfogetTheAttributeInfo()protected ElementInfogetTheElementInfo()JDFAbstractState.EnumUserDisplaygetUserDisplay()Gets typesafe enumerated attribute UserDisplayJDFValueLocgetValueLoc(int iSkip)get iSkip'th element LocJDFLocgetValueLocLoc(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 AllowedLengthvoidsetAvailability(JDFDeviceCap.EnumAvailability value)Sets attribute AvailabilitybooleansetDefaultsFromCaps(KElement element, boolean bAll)set the default values specified in this in elementvoidsetDependentMacroRef(java.lang.String value)Sets attribute DependentMacroRefvoidsetDevNS(java.lang.String value)Sets attribute DevNSvoidsetEditable(boolean value)Sets attribute EditablevoidsetHasDefault(boolean value)Sets attribute HasDefault, default=truevoidsetListType(JDFAutoBasicPreflightTest.EnumListType value)Sets attribute ListType, default=SingleValuevoidsetMacroRefs(VString value)Sets attribute MacroRefsvoidsetMaxOccurs(int value)Sets attribute MaxOccurs,voidsetMinOccurs(int value)Sets attribute MinOccurs, default=1voidsetName(java.lang.String value)Sets 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 RequiredvoidsetUserDisplay(JDFAbstractState.EnumUserDisplay value)Sets attribute UserDisplay, default=Display-
Methods 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, 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, setGeneralID, setLongID, setMustHonorExceptions, setOperatorInterventionExceptions, setPartMap, setPartMapVector, setSettingsPolicy, setStatus, setVersion, setvStringAttribute, stringToVersion, uniqueElements, upDaterRefs, validAttribute, validAttribute, validEnumAttribute, validEnumerationsAttribute, validResourcePosition, version, write2Dir
-
Methods 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, xmlnsPrefix
-
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setType
-
Methods 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, synchronizeData
-
Methods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
-
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
-
Methods 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, setUserData
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
-
Methods 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 Detail
-
JDFAbstractState
public JDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)constructor for JDFAbstractState- Parameters:
myOwnerDocument-qualifiedName-
-
JDFAbstractState
public JDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)constructor for JDFAbstractState- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFAbstractState
public JDFAbstractState(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)constructor for JDFAbstractState- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Detail
-
getTheAttributeInfo
protected AttributeInfo getTheAttributeInfo()
- Overrides:
getTheAttributeInfoin classJDFElement- Returns:
-
getTheElementInfo
protected ElementInfo getTheElementInfo()
- Overrides:
getTheElementInfoin classJDFElement- Returns:
- the elementinfo
-
addValue
public abstract void addValue(java.lang.String value, JDFBaseDataTypes.EnumFitsValue testlists)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
public abstract boolean fitsValue(java.lang.String value, JDFBaseDataTypes.EnumFitsValue testlists)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
public final java.lang.String 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
public final VString getNamePathVector()
- Specified by:
getNamePathVectorin interfaceICapabilityElement- Returns:
- See Also:
ICapabilityElement.getNamePathVector()
-
getNamePathVector
public final VString getNamePathVector(boolean bRecurse)
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
public JDFDevCaps getParentDevCaps()
get the ancestor devCaps, null if this resides in a DevCapPool- Returns:
- JDFDevCaps
-
setAvailability
public void setAvailability(JDFDeviceCap.EnumAvailability value)
Sets attribute Availability- Specified by:
setAvailabilityin interfaceICapabilityElement- Parameters:
value- the value to set the attribute to
-
getAvailability
public JDFDeviceCap.EnumAvailability getAvailability()
Gets typesafe enumerated attribute Availability- Specified by:
getAvailabilityin interfaceICapabilityElement- Returns:
- EnumAvailability: the enumeration value of the attribute
-
getParentDevCap
public JDFDevCap getParentDevCap()
get the parent devCap of this- Returns:
-
setDevNS
public void setDevNS(java.lang.String value)
Sets attribute DevNS- Parameters:
value- the value to set the attribute to
-
getDevNS
public java.lang.String 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
public void setName(java.lang.String value)
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
public java.lang.String 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
public void setListType(JDFAutoBasicPreflightTest.EnumListType value)
Sets attribute ListType, default=SingleValue- Parameters:
value- the value to set the attribute to
-
getListType
public JDFAutoBasicPreflightTest.EnumListType getListType()
Gets typesafe enumerated attribute ListType- Returns:
- EnumListType: the enumeration value of the attribute
-
setActionRefs
public void setActionRefs(VString value)
Sets attribute ActionRefs- Parameters:
value- vector of ActionRefs
-
getActionRefs
public VString 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
public void setMacroRefs(VString value)
Sets attribute MacroRefs- Parameters:
value- vector of MacroRefs
-
getMacroRefs
public VString getMacroRefs()
Get NMTOKENS attribute MacroRefs- Returns:
- VString: the attribute value
-
setDependentMacroRef
public void setDependentMacroRef(java.lang.String value)
Sets attribute DependentMacroRef- Parameters:
value- vector of DependentMacroRef
-
getDependentMacroRef
public java.lang.String getDependentMacroRef()
Get string attribute DependentMacroRef- Returns:
- String: the attribute value
-
setUserDisplay
public void setUserDisplay(JDFAbstractState.EnumUserDisplay value)
Sets attribute UserDisplay, default=Display- Parameters:
value- the value to set the attribute to
-
getUserDisplay
public JDFAbstractState.EnumUserDisplay getUserDisplay()
Gets typesafe enumerated attribute UserDisplay- Returns:
- EnumUserDisplay: the enumeration value of the attribute
-
getCreateLoc
public JDFLoc getCreateLoc(int iSkip)
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
public JDFLoc getLoc(int iSkip)
Gets the iSkip-th element Locdefault: getCreateLoc(0)
- Parameters:
iSkip- number of elements to skip- Returns:
- JDFLoc: the matching element
-
appendLoc
public JDFLoc appendLoc()
Appends element Loc to the end ofthis- Returns:
- JDFLoc: newly created Loc element
-
setAllowedLength
protected void setAllowedLength(JDFIntegerRange value)
set attribute AllowedLength- Parameters:
value- the value to set the attribute to
-
getAllowedLength
protected JDFIntegerRange getAllowedLength()
get attribute AllowedLength- Returns:
- JDFIntegerRange: the attribute value
-
setPresentLength
protected void setPresentLength(JDFIntegerRange value)
-
getPresentLength
protected JDFIntegerRange getPresentLength()
-
fitsLength
protected final boolean fitsLength(java.lang.String str, JDFBaseDataTypes.EnumFitsValue length)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
public java.lang.Object getMatchingObjectInNode(KElement element)
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
public boolean setDefaultsFromCaps(KElement element, boolean bAll)
set the default values specified in this in element- Parameters:
element- the element to set the defaults onbAll-- Returns:
- true if successful
-
fitsListType
protected final boolean fitsListType(java.lang.String value)
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
public JDFLoc getValueLocLoc(int iSkip, int jSkip)
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
public final JDFValueLoc getValueLoc(int iSkip)
get iSkip'th element Loc- Parameters:
iSkip- number of Value elements to skip (iSkip=0 - get first element)- Returns:
- JDFValueLoc: the element
-
appendValueLocLoc
public JDFLoc appendValueLocLoc(int iSkip)
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
public final JDFValueLoc appendValueLoc()
Appends element ValueLoc- Returns:
- JDFLoc: newly created ValueLoc element
-
fitsRegExp
protected final boolean fitsRegExp(java.lang.String str, JDFBaseDataTypes.EnumFitsValue regexp)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
protected java.lang.String getPresentRegExp()
- Returns:
-
getAllowedRegExp
protected java.lang.String getAllowedRegExp()
- Returns:
-
getModuleAvailability
public JDFDeviceCap.EnumAvailability getModuleAvailability()
get the availability of this devcaps based on the list of installed modules in ModuleRefs and ModulePool- Returns:
-
getModulePool
public JDFModulePool getModulePool()
Description copied from interface:ICapabilityElementget the ModulePool that contains ModuleCap elements referenced by this- Specified by:
getModulePoolin interfaceICapabilityElement- Returns:
- See Also:
ICapabilityElement.getModulePool()
-
getCreateModulePool
public JDFModulePool 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:
ICapabilityElement.getCreateModulePool()
-
getModuleRefs
public VString getModuleRefs()
(21) get VString attribute ModuleRefs- Specified by:
getModuleRefsin interfaceICapabilityElement- Returns:
- VString the value of the attribute
-
appendModuleRef
public JDFModuleCap appendModuleRef(java.lang.String id)
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:
ICapabilityElement.appendModuleRef(java.lang.String)
-
init
public boolean init()
Description copied from class:KElementMethod init. Superclass of all inits- Overrides:
initin classJDFElement- Returns:
- See Also:
KElement.init()
-
getIDPrefix
protected java.lang.String getIDPrefix()
Description copied from class:KElementgetIDPrefix- Overrides:
getIDPrefixin classKElement- Returns:
- the default ID prefix of non-overwritten JDF elements
-
getEvaluationType
public abstract JDFTerm.EnumTerm getEvaluationType()
Description copied from interface:ICapabilityElementget the type of evaluation that is appropriate for this ICapabilityElement- Specified by:
getEvaluationTypein interfaceICapabilityElement- Returns:
- See Also:
ICapabilityElement.getEvaluationType()
-
-