Class JDFDevCap
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.auto.JDFAutoDevCap
org.cip4.jdflib.resource.devicecapability.JDFDevCap
- All Implemented Interfaces:
Serializable,Cloneable,ICapabilityElement,IStreamWriter,Element,ElementTraversal,EventTarget,Node,NodeList,TypeInfo
- See Also:
-
Nested Class Summary
Nested 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.SingleXPathComparator -
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.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
ConstructorsConstructorDescriptionConstructor for JDFDevCapJDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) Constructor for JDFDevCapJDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) Constructor for JDFDevCap -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.use method with parameter (string) insteadappendBooleanState(String nam) appends a BooleanState with @Name="name"Deprecated.use method with parameter (string) insteadappends a DateTimeState with @Name="name"append elementDevCapvoidappendDevCapRefs(String dcID) append dc/@ID to the value of devCap/@IDvoidappend dc/@ID to the value of devCap/@IDDeprecated.use method with parameter (string) insteadappends a DurationState with @Name="name"Deprecated.use method with parameter (string) insteadappends a NumberState with @Name="name"append an IntegerState with no name setappendIntegerState(String nam) appends an IntegerState with @Name="name"Deprecated.use method with parameter (string) insteadappendMatrixState(String nam) appends a MatrixState with @Name="name"append moduleRef to moduleRefs, if it does not exist, set the availability to module and ensure that the appropriate modulecap existsDeprecated.use method with parameter (string) insteadappendNameState(String nam) appends a NameState with @Name="name"Deprecated.use method with parameter (string) insteadappendNumberState(String nam) appends a NumberState with @Name="name"Deprecated.use method with parameter (string) insteadappendPDFPathState(String nam) appends a PDFPathState with @Name="name"Deprecated.use method with parameter (string) insteadappends a RectangleState with @Name="name"Deprecated.use method with parameter (string) insteadappendShapeState(String nam) appends a ShapeState with @Name="name"Deprecated.use method with parameter (string) insteadappendStringState(String nam) appends a StringState with @Name="name"Deprecated.use method with parameter (string) insteadappendXYPairState(String nam) appends a XYPairState with @Name="name"gets the matching elements in the node that match the nodename of thisgetAvailability - gets typesafe enumerated attributeAvailabilitygetBooleanState(int iSkip) gets the iSkip'th existing BooleanStategetBooleanState(String nam) gets an existing BooleanState with @Name="name"getCreateBooleanState(int iSkip) Deprecated.use method with parameter (string) insteadgets a NumberState with @Name="name", appends it if it does not existgetCreateDateTimeState(int iSkip) Deprecated.use method with parameter (string) insteadgets a DateTimeState with @Name="name", appends it if it does not yet existgetCreateDevCap(int iSkip) get iSkip'th elementDevCap, create if it doesn't existgetCreateDurationState(int iSkip) Deprecated.use method with parameter (string) insteadgets a DurationState with @Name="name", appends it if it does not yet existgetCreateEnumerationState(int iSkip) Deprecated.gets a EnumerationState with @Name="name", appends it if it does not existgetCreateIntegerState(int iSkip) Deprecated.use method with parameter (string) insteadgets an IntegerState with @Name="name", appends it if it does not yet existgetCreateMatrixState(int iSkip) Deprecated.use method with parameter (string) insteadgets a MatrixState with @Name="name", appends it if it does not yet existget the ModulePool that contains ModuleCap elements referenced by this create one, if it does not existgetCreateNameState(int iSkip) Deprecated.use method with parameter (string) insteadgetCreateNameState(String nam) gets a NameState with @Name="name", appends it if it does not existgetCreateNumberState(int iSkip) Deprecated.use method with parameter (string) insteadgets a NumberState with @Name="name", appends it if it does not yet existgetCreatePDFPathState(int iSkip) Deprecated.use method with parameter (string) insteadgets a PDFPathState with @Name="name", appends it if it does not yet existgetCreateRectangleState(int iSkip) Deprecated.use method with parameter (string) insteadgets a RectangleState with @Name="name", appends it if it does not yet existgetCreateShapeState(int iSkip) Deprecated.use method with parameter (string) insteadgets a ShapeState with @Name="name", appends it if it does not yet existgetCreateStringState(int iSkip) Deprecated.use method with parameter (string) insteadgets a StringState with @Name="name", appends it if it does not yet existgetCreateXYPairState(int iSkip) Deprecated.use method with parameter (string) insteadgets a XYPairState with @Name="name", appends it if it does not yet existgetDateTimeState(int iSkip) gets the iSkip'th existing DateTimeStategetDateTimeState(String nam) gets an existing DateTimeState with @Name="name"getDevCap(int iSkip) get iSkip'th elementDevCapfinal VElementgetDevCapVector(VElement devCaps, boolean bDirect) Gets of this the Vector of all direct child DevCap elements plus the referenced (by attribute DevCapRefs) reusable DevCap elements, that are located in DevCapPoolgetDurationState(int iSkip) gets the iSkip'th existing DurationStategetDurationState(String nam) gets an existing DurationState with @Name="name"getEnumerationState(int iSkip) gets the iSkip'th existing EnumerationStategets an existing EnumerationState with @Name="name"get the type of evaluation that is appropriate for this ICapabilityElementgetID()get String attributeIDprotected StringgetIDPrefixgetIntegerState(int iSkip) gets the iSkip'th existing IntegerStategetIntegerState(String nam) gets an existing IntegerState with @Name="name"getInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax) get invalid attributesgetMatchingElementsFromParent(KElement parent, VElement vDevCap) gets the matching elements in the node that matchthisgetMatrixState(int iSkip) gets the iSkip'th existing MatrixStategetMatrixState(String nam) gets an existing MatrixState with @Name="name"intGets integer attributeMaxOccurs, also handles unboundedget the availability of this devcaps based on the list of installed modules in ModuleRefs and ModulePoolget the ModulePool that contains ModuleCap elements referenced by thisgetName()gets String attribute Name, inherits from devcap or devcaps if necessaryfinal StringgetNamePath(boolean bRecurse) Gets the NamePath of this DevCap in form "DevCapsName/SubelemName1/SubelemName2/..."
If this DevCap is located in DevCapPool and not in a DevCaps - it describes the reusable resource and DevCap root will have the attribute "Name" = value of DevCaps/@Name, but will have no info about DevCaps/@Context or DevCaps/@LinkUsagefinal VStringgetNamePathVector(boolean bRecurse) Gets the NamePath of this DevCap in form "DevCapsName/SubelemName1/SubelemName2/..."
If this DevCap is located in DevCapPool and not in a DevCaps - it describes the reusable resource and DevCap root will have the attribute "Name" = value of DevCaps/@Name, but will have no info about DevCaps/@Context or DevCaps/@LinkUsagegetNameState(int iSkip) gets the iSkip'th existing NameStategetNameState(String nam) gets an existing NameState with @Name="name"getNumberState(int iSkip) gets the iSkip'th existing NumberStategetNumberState(String nam) gets an existing NumberState with @Name="name"getPDFPathState(int iSkip) gets the iSkip'th existing PDFPathStategetPDFPathState(String nam) gets an existing PDFPathState with @Name="name"getRectangleState(int iSkip) gets the iSkip'th existing RectangleStategetRectangleState(String nam) gets an existing RectangleState with @Name="name"getShapeState(int iSkip) gets the iSkip'th existing ShapeStategetShapeState(String nam) gets an existing ShapeState with @Name="name"return the vector of all statesgetStringState(int iSkip) gets the iSkip'th existing StringStategetStringState(String nam) gets an existing StringState with @Name="name"protected AttributeInfoprotected ElementInfogetXYPairState(int iSkip) gets the iSkip'th existing XYPairStategetXYPairState(String nam) gets an existing XYPairState with @Name="name"booleaninit()all devcap elements should have an idbooleansetDefaultsFromCaps(KElement element, boolean bAll) sets the element and attribute defaultsvoidsetDevCapRefs(VString value) set attributeDevCapRefsvoidset attributeIDvoidsetMaxOccurs(int value) Sets attributeMaxOccurs, also handles unboundedfinal KElementstateReport(KElement e, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level, boolean ignoreExtensions, boolean bRecurse, KElement parentReport) Tests if the attributes and subelements of the given element match the corresponding States and DevCap subelements of this DevCap.
Composes a detailed report of the found errors in XML form.toString()toString()Methods inherited from class org.cip4.jdflib.auto.JDFAutoDevCap
appendLoc, getAllLoc, getCreateLoc, getCreateLoc, getDevCapRefs, getDevNS, getEAvailability, getLoc, getLoc, getMinOccurs, getModuleRefs, getResourceUsage, setAvailability, setAvailability, setDevNS, setMinOccurs, setModuleRefs, setName, setResourceUsageMethods 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, 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, 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, setIntAttribute, setNamespaceURI, setNodeValue, setNonEmpty, setPrefix, setRealAttribute, setText, setvStringAttribute, setXMLComment, setXMLComment, setXPathAttribute, setXPathValue, setXPathValues, setXSIType, sortChild, sortChild, sortChildren, sortChildren, sortChildren, sortChildren, toDisplayXML, 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.cip4.jdflib.ifaces.ICapabilityElement
getModuleRefs, setAvailabilityMethods 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
-
JDFDevCap
Constructor for JDFDevCap- Parameters:
myOwnerDocument-qualifiedName-
-
JDFDevCap
public JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) Constructor for JDFDevCap- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFDevCap
public JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) Constructor for JDFDevCap- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Details
-
getTheElementInfo
- Overrides:
getTheElementInfoin classJDFAutoDevCap- Returns:
- the elementinfo
-
getTheAttributeInfo
- Overrides:
getTheAttributeInfoin classJDFAutoDevCap- Returns:
-
toString
toString() -
init
public boolean init()all devcap elements should have an id- Overrides:
initin classJDFElement- Returns:
- boolean true always
- See Also:
-
setDevCapRefs
set attributeDevCapRefs- Overrides:
setDevCapRefsin classJDFAutoDevCap- Parameters:
value- the value to set the attribute to
-
setID
set attributeID- Overrides:
setIDin classJDFAutoDevCap- Parameters:
value- the value to set the attribute to
-
getID
get String attributeID- Overrides:
getIDin classJDFAutoDevCap- Returns:
- String: the value of the attribute
-
getIDPrefix
Description copied from class:KElementgetIDPrefix- Overrides:
getIDPrefixin classKElement- Returns:
- the default ID prefix of non-overwritten JDF elements
-
getAvailability
getAvailability - gets typesafe enumerated attributeAvailability- Specified by:
getAvailabilityin interfaceICapabilityElement- Overrides:
getAvailabilityin classJDFAutoDevCap- Returns:
- EnumAvailability: the enumeration value of the attribute
-
getDevCap
get iSkip'th elementDevCap- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- the value of the attribute
-
getCreateDevCap
get iSkip'th elementDevCap, create if it doesn't exist- Parameters:
iSkip- number of elements to skip- Returns:
- the value of the attribute
-
appendDevCap
append elementDevCap- Returns:
- the appended element
-
appendDevCapRefs
append dc/@ID to the value of devCap/@ID- Parameters:
dc- the devCap to append
-
appendDevCapRefs
append dc/@ID to the value of devCap/@ID- Parameters:
dcID-
-
getBooleanState
gets the iSkip'th existing BooleanState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFBooleanState: the existing BooleanState
-
getBooleanState
gets an existing BooleanState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended BooleanState- Returns:
- JDFBooleanState: the existing BooleanState
-
getCreateBooleanState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateBooleanState
gets a NumberState with @Name="name", appends it if it does not exist- Parameters:
nam- the name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the existing or newly appended NumberState
-
appendBooleanState
Deprecated.use method with parameter (string) instead- Returns:
-
appendBooleanState
appends a BooleanState with @Name="name"- Parameters:
nam- the name attribute of the newly appended BooleanState- Returns:
- JDFBooleanState: the newly appended BooleanState
-
getIntegerState
gets the iSkip'th existing IntegerState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFIntegerState: the existing IntegerState
-
getIntegerState
gets an existing IntegerState with @Name="name"- Parameters:
nam- the name attribute of the newly appended IntegerState- Returns:
- JDFIntegerState: the existing IntegerState
-
getCreateIntegerState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateIntegerState
gets an IntegerState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the name attribute of the newly appended IntegerState- Returns:
- JDFIntegerState: the existing or newly appended IntegerState
-
appendIntegerState
append an IntegerState with no name set- Returns:
- JDFIntegerState: the newly appended IntegerState
-
appendIntegerState
appends an IntegerState with @Name="name"- Parameters:
name- the Name attribute of the newly appended IntegerState- Returns:
- JDFIntegerState: the newly appended IntegerState
-
getNumberState
gets the iSkip'th existing NumberState- Parameters:
iSkip- number of elements to skip- Returns:
- JDFNumberState: the existing NumberState
-
getNumberState
gets an existing NumberState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the existing NumberState
-
getCreateNumberState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateNumberState
gets a NumberState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the existing or newly appended NumberState
-
appendNumberState
appends a NumberState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the newly appended NumberState
-
appendNumberState
Deprecated.use method with parameter (string) instead- Returns:
-
getEnumerationState
gets the iSkip'th existing EnumerationState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFEnumerationState: the existing EnumerationState
-
getEnumerationState
gets an existing EnumerationState with @Name="name"- Parameters:
name- the Name attribute of the newly appended EnumerationState- Returns:
- JDFEnumerationState: the existing EnumerationState
-
getCreateEnumerationState
Deprecated.gets the iSkip'th existing EnumerationState, creates it if it doesn't exist- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFEnumerationState: the existing EnumerationState
-
getCreateEnumerationState
gets a EnumerationState with @Name="name", appends it if it does not exist- Parameters:
nam- the name attribute of the newly appended EnumerationState- Returns:
- JDFEnumerationState the existing or newly appended EnumerationState
-
appendEnumerationState
Deprecated.use method with parameter (string) instead- Returns:
-
appendEnumerationState
appends a NumberState with @Name="name"- Parameters:
nam- the name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the newly appended NumberState
-
getNameState
gets the iSkip'th existing NameState- Parameters:
iSkip- number of elements to skip- Returns:
- JDFNameState: the existing NameState
-
getNameState
gets an existing NameState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended NameState- Returns:
- JDFNameState: the existing NameState
-
getCreateNameState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateNameState
gets a NameState with @Name="name", appends it if it does not exist- Parameters:
nam- the name attribute of the newly appended NameState- Returns:
- JDFNameState: the existing or newly appended NameState
-
appendNameState
Deprecated.use method with parameter (string) instead- Returns:
-
appendNameState
appends a NameState with @Name="name"- Parameters:
nam- the name attribute of the newly appended NameState- Returns:
- JDFNameState: the newly appended NameState
-
getStringState
gets the iSkip'th existing StringState- Parameters:
iSkip- number of elements to skip- Returns:
- JDFStringState: the existing StringState
-
getStringState
gets an existing StringState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended StringState- Returns:
- JDFStringState: the existing StringState
-
getCreateStringState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateStringState
gets a StringState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended StringState- Returns:
- JDFStringState: the existing or newly appended StringState
-
appendStringState
Deprecated.use method with parameter (string) instead- Returns:
-
appendStringState
appends a StringState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended StringState- Returns:
- JDFStringState: the newly appended StringState
-
getXYPairState
gets the iSkip'th existing XYPairState- Parameters:
iSkip- number of elements to skip- Returns:
- JDFXYPairState: the existing XYPairState
-
getXYPairState
gets an existing XYPairState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended XYPairState- Returns:
- JDFXYPairState: the existing XYPairState
-
getCreateXYPairState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateXYPairState
gets a XYPairState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended XYPairState- Returns:
- JDFXYPairState: the existing or newly appended XYPairState
-
appendXYPairState
Deprecated.use method with parameter (string) instead- Returns:
-
appendXYPairState
appends a XYPairState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended XYPairState- Returns:
- JDFXYPairState: the newly appended XYPairState
-
getShapeState
gets the iSkip'th existing ShapeState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFShapeState the existing ShapeState
-
getShapeState
gets an existing ShapeState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended ShapeState- Returns:
- JDFShapeState: the existing ShapeState
-
getCreateShapeState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateShapeState
gets a ShapeState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended ShapeState- Returns:
- JDFShapeState: the existing or newly appended ShapeState
-
appendShapeState
Deprecated.use method with parameter (string) instead- Returns:
-
appendShapeState
appends a ShapeState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended ShapeState- Returns:
- JDFShapeState: the newly appended ShapeState
-
getMatrixState
gets the iSkip'th existing MatrixState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFMatrixState the existing MatrixState
-
getMatrixState
gets an existing MatrixState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended MatrixState- Returns:
- JDFMatrixState: the existing MatrixState
-
getCreateMatrixState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateMatrixState
gets a MatrixState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended MatrixState- Returns:
- JDFMatrixState: the existing or newly appended MatrixState
-
appendMatrixState
Deprecated.use method with parameter (string) instead- Returns:
-
appendMatrixState
appends a MatrixState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended MatrixState- Returns:
- JDFMatrixState: the newly appended MatrixState
-
getDateTimeState
gets the iSkip'th existing DateTimeState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFDateTimeState the existing DateTimeState
-
getDateTimeState
gets an existing DateTimeState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended DateTimeState- Returns:
- JDFDateTimeState: the existing DateTimeState
-
getCreateDateTimeState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateDateTimeState
gets a DateTimeState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended DateTimeState- Returns:
- JDFDateTimeState: the existing or newly appended DateTimeState
-
appendDateTimeState
Deprecated.use method with parameter (string) instead- Returns:
-
appendDateTimeState
appends a DateTimeState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended DateTimeState- Returns:
- JDFDateTimeState: the newly appended DateTimeState
-
getDurationState
gets the iSkip'th existing DurationState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFDurationState the existing DurationState
-
getDurationState
gets an existing DurationState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended DurationState- Returns:
- JDFDurationState: the existing DurationState
-
getCreateDurationState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateDurationState
gets a DurationState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended DurationState- Returns:
- JDFDurationState: the existing or newly appended DurationState
-
appendDurationState
Deprecated.use method with parameter (string) instead- Returns:
-
appendDurationState
appends a DurationState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended DurationState- Returns:
- JDFDurationState: the newly appended DurationState
-
getPDFPathState
gets the iSkip'th existing PDFPathState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFPDFPathState: the existing PDFPathState
-
getPDFPathState
gets an existing PDFPathState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended PDFPathState- Returns:
- JDFPDFPathState: the existing PDFPathState
-
getCreatePDFPathState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreatePDFPathState
gets a PDFPathState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended PDFPathState- Returns:
- JDFPDFPathState: the existing or newly appended PDFPathState
-
appendPDFPathState
Deprecated.use method with parameter (string) instead- Returns:
-
appendPDFPathState
appends a PDFPathState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended PDFPathState- Returns:
- JDFPDFPathState: the newly appended PDFPathState
-
getRectangleState
gets the iSkip'th existing RectangleState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFRectangleState: the existing RectangleState
-
getRectangleState
gets an existing RectangleState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended RectangleState- Returns:
- JDFRectangleState: the existing RectangleState
-
getCreateRectangleState
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateRectangleState
gets a RectangleState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended RectangleState- Returns:
- JDFRectangleState: the existing or newly appended RectangleState
-
appendRectangleState
Deprecated.use method with parameter (string) instead- Returns:
-
appendRectangleState
appends a RectangleState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended RectangleState- Returns:
- JDFRectangleState: the newly appended RectangleState
-
getDevCapVector
Gets of this the Vector of all direct child DevCap elements plus the referenced (by attribute DevCapRefs) reusable DevCap elements, that are located in DevCapPool- Parameters:
devCaps-bDirect-- Returns:
- VElement - vector of all direct child DevCap elements plus the referenced reusable DevCap elements, that are located in DevCapPool.
-
stateReport
public final KElement stateReport(KElement e, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level, boolean ignoreExtensions, boolean bRecurse, KElement parentReport) Tests if the attributes and subelements of the given element match the corresponding States and DevCap subelements of this DevCap.
Composes a detailed report of the found errors in XML form. If XMLDoc equals null - there are no errors- Parameters:
e- element to testtestlists- FitsValue_Allowed or FitsValue_Present testlists that are specified for the State elements. (Will be used in fitsValue method of the State element)level- validation level- Returns:
- XMLDoc - XMLDoc output of the error messages. If XMLDoc is
nullthere are no errors.
Elementefits the corresponding States and DevCap subelements of this DevCap.
-
getNamePath
Gets the NamePath of this DevCap in form "DevCapsName/SubelemName1/SubelemName2/..."
If this DevCap is located in DevCapPool and not in a DevCaps - it describes the reusable resource and DevCap root will have the attribute "Name" = value of DevCaps/@Name, but will have no info about DevCaps/@Context or DevCaps/@LinkUsagedefault: getNamePath(false)
- Parameters:
bRecurse- if true, returns "DevCapsName/SubelemName1/SubelemName2/..."- Returns:
- String - NamePath of this DevCap
-
getNamePathVector
- Specified by:
getNamePathVectorin interfaceICapabilityElement- Returns:
-
getNamePathVector
Gets the NamePath of this DevCap in form "DevCapsName/SubelemName1/SubelemName2/..."
If this DevCap is located in DevCapPool and not in a DevCaps - it describes the reusable resource and DevCap root will have the attribute "Name" = value of DevCaps/@Name, but will have no info about DevCaps/@Context or DevCaps/@LinkUsage- Parameters:
bRecurse- if true, returns "DevCapsName/SubelemName1/SubelemName2/..."- Returns:
- String - NamePath of this DevCap, null if no name is specified default: getNamePath(true)
-
getName
gets String attribute Name, inherits from devcap or devcaps if necessary- Overrides:
getNamein classJDFAutoDevCap- Returns:
- String - the value of the attribute
-
getStates
return the vector of all states- Parameters:
bDirect- if false, recurse into child elements, else return only direct child statesid- ID attribute of the requested string- Returns:
- VElement
-
setMaxOccurs
public void setMaxOccurs(int value) Sets attributeMaxOccurs, also handles unbounded- Overrides:
setMaxOccursin classJDFAutoDevCap- Parameters:
value- the value to set the attribute to
-
getMaxOccurs
public int getMaxOccurs()Gets integer attributeMaxOccurs, also handles unbounded- Overrides:
getMaxOccursin classJDFAutoDevCap- Returns:
- int: the attribute value
-
getMatchingElementsFromParent
gets the matching elements in the node that matchthis- Parameters:
node- the node to search intestValidity- if true, recusively check for validity of the elements, else only get children by name- Returns:
- VElement - the element vector of matching elements,
nullif none were found
-
getAllMatchingElementsFromParent
gets the matching elements in the node that match the nodename of this- Parameters:
node- the node to search in- Returns:
- VElement - the element vector of matching elements,
nullif none were found
-
setDefaultsFromCaps
sets the element and attribute defaults- Parameters:
element- the element that is defaultedbAll- if false, only add if minOccurs>=1 and required=true or a default exists- Returns:
- ignored
-
getInvalidAttributes
public VString getInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax) Description copied from class:JDFElementget invalid attributes- Overrides:
getInvalidAttributesin classJDFElement- Parameters:
level- validation levelbIgnorePrivate- if true, do not worry about attributes in other namespacesnMax- maximum size of the returned vector- Returns:
- VString - a vector of invalid attribute names
-
getModulePool
Description copied from interface:ICapabilityElementget the ModulePool that contains ModuleCap elements referenced by this- Specified by:
getModulePoolin interfaceICapabilityElement- Returns:
- JDFModulePool the pool
-
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:
- JDFModulePool the pool
-
getModuleAvailability
get the availability of this devcaps based on the list of installed modules in ModuleRefs and ModulePool- Returns:
-
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- Returns:
JDFModuleCapthe Modulecap that id refers tp
-
getEvaluationType
Description copied from interface:ICapabilityElementget the type of evaluation that is appropriate for this ICapabilityElement- Specified by:
getEvaluationTypein interfaceICapabilityElement- Returns:
- EnumTerm the type of evaluation
-