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:
java.io.Serializable,java.lang.Cloneable,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
public class JDFDevCap extends JDFAutoDevCap implements ICapabilityElement
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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.MultiAttributeComparator, KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator
-
-
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.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 JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)Constructor for JDFDevCapJDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)Constructor for JDFDevCapJDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)Constructor for JDFDevCap
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JDFBooleanStateappendBooleanState()Deprecated.use method with parameter (string) insteadJDFBooleanStateappendBooleanState(java.lang.String nam)appends a BooleanState with @Name="name"JDFDateTimeStateappendDateTimeState()Deprecated.use method with parameter (string) insteadJDFDateTimeStateappendDateTimeState(java.lang.String nam)appends a DateTimeState with @Name="name"JDFDevCapappendDevCap()append elementDevCapvoidappendDevCapRefs(java.lang.String dcID)append dc/@ID to the value of devCap/@IDvoidappendDevCapRefs(JDFDevCap dc)append dc/@ID to the value of devCap/@IDJDFDurationStateappendDurationState()Deprecated.use method with parameter (string) insteadJDFDurationStateappendDurationState(java.lang.String nam)appends a DurationState with @Name="name"JDFEnumerationStateappendEnumerationState()Deprecated.use method with parameter (string) insteadJDFEnumerationStateappendEnumerationState(java.lang.String nam)appends a NumberState with @Name="name"JDFIntegerStateappendIntegerState()append an IntegerState with no name setJDFIntegerStateappendIntegerState(java.lang.String nam)appends an IntegerState with @Name="name"JDFMatrixStateappendMatrixState()Deprecated.use method with parameter (string) insteadJDFMatrixStateappendMatrixState(java.lang.String nam)appends a MatrixState with @Name="name"JDFModuleCapappendModuleRef(java.lang.String id)append moduleRef to moduleRefs, if it does not exist, set the availability to module and ensure that the appropriate modulecap existsJDFNameStateappendNameState()Deprecated.use method with parameter (string) insteadJDFNameStateappendNameState(java.lang.String nam)appends a NameState with @Name="name"JDFNumberStateappendNumberState()Deprecated.use method with parameter (string) insteadJDFNumberStateappendNumberState(java.lang.String nam)appends a NumberState with @Name="name"JDFPDFPathStateappendPDFPathState()Deprecated.use method with parameter (string) insteadJDFPDFPathStateappendPDFPathState(java.lang.String nam)appends a PDFPathState with @Name="name"JDFRectangleStateappendRectangleState()Deprecated.use method with parameter (string) insteadJDFRectangleStateappendRectangleState(java.lang.String nam)appends a RectangleState with @Name="name"JDFShapeStateappendShapeState()Deprecated.use method with parameter (string) insteadJDFShapeStateappendShapeState(java.lang.String nam)appends a ShapeState with @Name="name"JDFStringStateappendStringState()Deprecated.use method with parameter (string) insteadJDFStringStateappendStringState(java.lang.String nam)appends a StringState with @Name="name"JDFXYPairStateappendXYPairState()Deprecated.use method with parameter (string) insteadJDFXYPairStateappendXYPairState(java.lang.String nam)appends a XYPairState with @Name="name"VElementgetAllMatchingElementsFromParent(KElement parent)gets the matching elements in the node that match the nodename of thisJDFDeviceCap.EnumAvailabilitygetAvailability()getAvailability - gets typesafe enumerated attributeAvailabilityJDFBooleanStategetBooleanState(int iSkip)gets the iSkip'th existing BooleanStateJDFBooleanStategetBooleanState(java.lang.String nam)gets an existing BooleanState with @Name="name"JDFBooleanStategetCreateBooleanState(int iSkip)Deprecated.use method with parameter (string) insteadJDFBooleanStategetCreateBooleanState(java.lang.String nam)gets a NumberState with @Name="name", appends it if it does not existJDFDateTimeStategetCreateDateTimeState(int iSkip)Deprecated.use method with parameter (string) insteadJDFDateTimeStategetCreateDateTimeState(java.lang.String nam)gets a DateTimeState with @Name="name", appends it if it does not yet existJDFDevCapgetCreateDevCap(int iSkip)get iSkip'th elementDevCap, create if it doesn't existJDFDurationStategetCreateDurationState(int iSkip)Deprecated.use method with parameter (string) insteadJDFDurationStategetCreateDurationState(java.lang.String nam)gets a DurationState with @Name="name", appends it if it does not yet existJDFEnumerationStategetCreateEnumerationState(int iSkip)Deprecated.JDFEnumerationStategetCreateEnumerationState(java.lang.String nam)gets a EnumerationState with @Name="name", appends it if it does not existJDFIntegerStategetCreateIntegerState(int iSkip)Deprecated.use method with parameter (string) insteadJDFIntegerStategetCreateIntegerState(java.lang.String nam)gets an IntegerState with @Name="name", appends it if it does not yet existJDFMatrixStategetCreateMatrixState(int iSkip)Deprecated.use method with parameter (string) insteadJDFMatrixStategetCreateMatrixState(java.lang.String nam)gets a MatrixState with @Name="name", appends it if it does not yet existJDFModulePoolgetCreateModulePool()get the ModulePool that contains ModuleCap elements referenced by this create one, if it does not existJDFNameStategetCreateNameState(int iSkip)Deprecated.use method with parameter (string) insteadJDFNameStategetCreateNameState(java.lang.String nam)gets a NameState with @Name="name", appends it if it does not existJDFNumberStategetCreateNumberState(int iSkip)Deprecated.use method with parameter (string) insteadJDFNumberStategetCreateNumberState(java.lang.String nam)gets a NumberState with @Name="name", appends it if it does not yet existJDFPDFPathStategetCreatePDFPathState(int iSkip)Deprecated.use method with parameter (string) insteadJDFPDFPathStategetCreatePDFPathState(java.lang.String nam)gets a PDFPathState with @Name="name", appends it if it does not yet existJDFRectangleStategetCreateRectangleState(int iSkip)Deprecated.use method with parameter (string) insteadJDFRectangleStategetCreateRectangleState(java.lang.String nam)gets a RectangleState with @Name="name", appends it if it does not yet existJDFShapeStategetCreateShapeState(int iSkip)Deprecated.use method with parameter (string) insteadJDFShapeStategetCreateShapeState(java.lang.String nam)gets a ShapeState with @Name="name", appends it if it does not yet existJDFStringStategetCreateStringState(int iSkip)Deprecated.use method with parameter (string) insteadJDFStringStategetCreateStringState(java.lang.String nam)gets a StringState with @Name="name", appends it if it does not yet existJDFXYPairStategetCreateXYPairState(int iSkip)Deprecated.use method with parameter (string) insteadJDFXYPairStategetCreateXYPairState(java.lang.String nam)gets a XYPairState with @Name="name", appends it if it does not yet existJDFDateTimeStategetDateTimeState(int iSkip)gets the iSkip'th existing DateTimeStateJDFDateTimeStategetDateTimeState(java.lang.String nam)gets an existing DateTimeState with @Name="name"JDFDevCapgetDevCap(int iSkip)get iSkip'th elementDevCapVElementgetDevCapVector(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 DevCapPoolJDFDurationStategetDurationState(int iSkip)gets the iSkip'th existing DurationStateJDFDurationStategetDurationState(java.lang.String nam)gets an existing DurationState with @Name="name"JDFEnumerationStategetEnumerationState(int iSkip)gets the iSkip'th existing EnumerationStateJDFEnumerationStategetEnumerationState(java.lang.String nam)gets an existing EnumerationState with @Name="name"JDFTerm.EnumTermgetEvaluationType()get the type of evaluation that is appropriate for this ICapabilityElementjava.lang.StringgetID()get String attributeIDprotected java.lang.StringgetIDPrefix()getIDPrefixJDFIntegerStategetIntegerState(int iSkip)gets the iSkip'th existing IntegerStateJDFIntegerStategetIntegerState(java.lang.String nam)gets an existing IntegerState with @Name="name"VStringgetInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax)get invalid attributesVElementgetMatchingElementsFromParent(KElement parent, VElement vDevCap)gets the matching elements in the node that matchthisJDFMatrixStategetMatrixState(int iSkip)gets the iSkip'th existing MatrixStateJDFMatrixStategetMatrixState(java.lang.String nam)gets an existing MatrixState with @Name="name"intgetMaxOccurs()Gets integer attributeMaxOccurs, also handles unboundedJDFDeviceCap.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 thisjava.lang.StringgetName()gets String attribute Name, inherits from devcap or devcaps if necessaryjava.lang.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/@LinkUsageVStringgetNamePathVector()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/@LinkUsageJDFNameStategetNameState(int iSkip)gets the iSkip'th existing NameStateJDFNameStategetNameState(java.lang.String nam)gets an existing NameState with @Name="name"JDFNumberStategetNumberState(int iSkip)gets the iSkip'th existing NumberStateJDFNumberStategetNumberState(java.lang.String nam)gets an existing NumberState with @Name="name"JDFPDFPathStategetPDFPathState(int iSkip)gets the iSkip'th existing PDFPathStateJDFPDFPathStategetPDFPathState(java.lang.String nam)gets an existing PDFPathState with @Name="name"JDFRectangleStategetRectangleState(int iSkip)gets the iSkip'th existing RectangleStateJDFRectangleStategetRectangleState(java.lang.String nam)gets an existing RectangleState with @Name="name"JDFShapeStategetShapeState(int iSkip)gets the iSkip'th existing ShapeStateJDFShapeStategetShapeState(java.lang.String nam)gets an existing ShapeState with @Name="name"VElementgetStates(boolean bDirect, java.lang.String id)return the vector of all statesJDFStringStategetStringState(int iSkip)gets the iSkip'th existing StringStateJDFStringStategetStringState(java.lang.String nam)gets an existing StringState with @Name="name"protected AttributeInfogetTheAttributeInfo()protected ElementInfogetTheElementInfo()JDFXYPairStategetXYPairState(int iSkip)gets the iSkip'th existing XYPairStateJDFXYPairStategetXYPairState(java.lang.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 attributeDevCapRefsvoidsetID(java.lang.String value)set attributeIDvoidsetMaxOccurs(int value)Sets attributeMaxOccurs, also handles unboundedKElementstateReport(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.java.lang.StringtoString()toString()-
Methods inherited from class org.cip4.jdflib.auto.JDFAutoDevCap
appendLoc, getAllLoc, getCreateLoc, getCreateLoc, getDevCapRefs, getDevNS, getLoc, getLoc, getMinOccurs, getModuleRefs, getResourceUsage, setAvailability, setDevNS, setMinOccurs, setModuleRefs, setName, setResourceUsage
-
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, 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, 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, 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.cip4.jdflib.ifaces.ICapabilityElement
getModuleRefs, setAvailability
-
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
-
JDFDevCap
public JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)Constructor for JDFDevCap- Parameters:
myOwnerDocument-qualifiedName-
-
JDFDevCap
public JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)Constructor for JDFDevCap- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFDevCap
public JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)Constructor for JDFDevCap- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Detail
-
getTheElementInfo
protected ElementInfo getTheElementInfo()
- Overrides:
getTheElementInfoin classJDFAutoDevCap- Returns:
- the elementinfo
-
getTheAttributeInfo
protected AttributeInfo getTheAttributeInfo()
- Overrides:
getTheAttributeInfoin classJDFAutoDevCap- Returns:
-
toString
public java.lang.String toString()
toString()
-
init
public boolean init()
all devcap elements should have an id- Overrides:
initin classJDFElement- Returns:
- boolean true always
- See Also:
KElement.init()
-
setDevCapRefs
public void setDevCapRefs(VString value)
set attributeDevCapRefs- Overrides:
setDevCapRefsin classJDFAutoDevCap- Parameters:
value- the value to set the attribute to
-
setID
public void setID(java.lang.String value)
set attributeID- Overrides:
setIDin classJDFAutoDevCap- Parameters:
value- the value to set the attribute to
-
getID
public java.lang.String getID()
get String attributeID- Overrides:
getIDin classJDFAutoDevCap- Returns:
- String: the value of the attribute
-
getIDPrefix
protected java.lang.String getIDPrefix()
Description copied from class:KElementgetIDPrefix- Overrides:
getIDPrefixin classKElement- Returns:
- the default ID prefix of non-overwritten JDF elements
-
getAvailability
public JDFDeviceCap.EnumAvailability getAvailability()
getAvailability - gets typesafe enumerated attributeAvailability- Specified by:
getAvailabilityin interfaceICapabilityElement- Overrides:
getAvailabilityin classJDFAutoDevCap- Returns:
- EnumAvailability: the enumeration value of the attribute
-
getDevCap
public JDFDevCap getDevCap(int iSkip)
get iSkip'th elementDevCap- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- the value of the attribute
-
getCreateDevCap
public JDFDevCap getCreateDevCap(int iSkip)
get iSkip'th elementDevCap, create if it doesn't exist- Parameters:
iSkip- number of elements to skip- Returns:
- the value of the attribute
-
appendDevCap
public JDFDevCap appendDevCap()
append elementDevCap- Returns:
- the appended element
-
appendDevCapRefs
public void appendDevCapRefs(JDFDevCap dc)
append dc/@ID to the value of devCap/@ID- Parameters:
dc- the devCap to append
-
appendDevCapRefs
public void appendDevCapRefs(java.lang.String dcID)
append dc/@ID to the value of devCap/@ID- Parameters:
dcID-
-
getBooleanState
public JDFBooleanState getBooleanState(int iSkip)
gets the iSkip'th existing BooleanState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFBooleanState: the existing BooleanState
-
getBooleanState
public JDFBooleanState getBooleanState(java.lang.String nam)
gets an existing BooleanState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended BooleanState- Returns:
- JDFBooleanState: the existing BooleanState
-
getCreateBooleanState
@Deprecated public JDFBooleanState getCreateBooleanState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateBooleanState
public JDFBooleanState getCreateBooleanState(java.lang.String nam)
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 public JDFBooleanState appendBooleanState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendBooleanState
public JDFBooleanState appendBooleanState(java.lang.String nam)
appends a BooleanState with @Name="name"- Parameters:
nam- the name attribute of the newly appended BooleanState- Returns:
- JDFBooleanState: the newly appended BooleanState
-
getIntegerState
public JDFIntegerState getIntegerState(int iSkip)
gets the iSkip'th existing IntegerState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFIntegerState: the existing IntegerState
-
getIntegerState
public JDFIntegerState getIntegerState(java.lang.String nam)
gets an existing IntegerState with @Name="name"- Parameters:
nam- the name attribute of the newly appended IntegerState- Returns:
- JDFIntegerState: the existing IntegerState
-
getCreateIntegerState
@Deprecated public JDFIntegerState getCreateIntegerState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateIntegerState
public JDFIntegerState getCreateIntegerState(java.lang.String nam)
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
public JDFIntegerState appendIntegerState()
append an IntegerState with no name set- Returns:
- JDFIntegerState: the newly appended IntegerState
-
appendIntegerState
public JDFIntegerState appendIntegerState(java.lang.String nam)
appends an IntegerState with @Name="name"- Parameters:
name- the Name attribute of the newly appended IntegerState- Returns:
- JDFIntegerState: the newly appended IntegerState
-
getNumberState
public JDFNumberState getNumberState(int iSkip)
gets the iSkip'th existing NumberState- Parameters:
iSkip- number of elements to skip- Returns:
- JDFNumberState: the existing NumberState
-
getNumberState
public JDFNumberState getNumberState(java.lang.String nam)
gets an existing NumberState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the existing NumberState
-
getCreateNumberState
@Deprecated public JDFNumberState getCreateNumberState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateNumberState
public JDFNumberState getCreateNumberState(java.lang.String nam)
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
public JDFNumberState appendNumberState(java.lang.String nam)
appends a NumberState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the newly appended NumberState
-
appendNumberState
@Deprecated public JDFNumberState appendNumberState()
Deprecated.use method with parameter (string) instead- Returns:
-
getEnumerationState
public JDFEnumerationState getEnumerationState(int iSkip)
gets the iSkip'th existing EnumerationState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFEnumerationState: the existing EnumerationState
-
getEnumerationState
public JDFEnumerationState getEnumerationState(java.lang.String nam)
gets an existing EnumerationState with @Name="name"- Parameters:
name- the Name attribute of the newly appended EnumerationState- Returns:
- JDFEnumerationState: the existing EnumerationState
-
getCreateEnumerationState
@Deprecated public JDFEnumerationState getCreateEnumerationState(int iSkip)
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
public JDFEnumerationState getCreateEnumerationState(java.lang.String nam)
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 public JDFEnumerationState appendEnumerationState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendEnumerationState
public JDFEnumerationState appendEnumerationState(java.lang.String nam)
appends a NumberState with @Name="name"- Parameters:
nam- the name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the newly appended NumberState
-
getNameState
public JDFNameState getNameState(int iSkip)
gets the iSkip'th existing NameState- Parameters:
iSkip- number of elements to skip- Returns:
- JDFNameState: the existing NameState
-
getNameState
public JDFNameState getNameState(java.lang.String nam)
gets an existing NameState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended NameState- Returns:
- JDFNameState: the existing NameState
-
getCreateNameState
@Deprecated public JDFNameState getCreateNameState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateNameState
public JDFNameState getCreateNameState(java.lang.String nam)
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 public JDFNameState appendNameState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendNameState
public JDFNameState appendNameState(java.lang.String nam)
appends a NameState with @Name="name"- Parameters:
nam- the name attribute of the newly appended NameState- Returns:
- JDFNameState: the newly appended NameState
-
getStringState
public JDFStringState getStringState(int iSkip)
gets the iSkip'th existing StringState- Parameters:
iSkip- number of elements to skip- Returns:
- JDFStringState: the existing StringState
-
getStringState
public JDFStringState getStringState(java.lang.String nam)
gets an existing StringState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended StringState- Returns:
- JDFStringState: the existing StringState
-
getCreateStringState
@Deprecated public JDFStringState getCreateStringState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateStringState
public JDFStringState getCreateStringState(java.lang.String nam)
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 public JDFStringState appendStringState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendStringState
public JDFStringState appendStringState(java.lang.String nam)
appends a StringState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended StringState- Returns:
- JDFStringState: the newly appended StringState
-
getXYPairState
public JDFXYPairState getXYPairState(int iSkip)
gets the iSkip'th existing XYPairState- Parameters:
iSkip- number of elements to skip- Returns:
- JDFXYPairState: the existing XYPairState
-
getXYPairState
public JDFXYPairState getXYPairState(java.lang.String nam)
gets an existing XYPairState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended XYPairState- Returns:
- JDFXYPairState: the existing XYPairState
-
getCreateXYPairState
@Deprecated public JDFXYPairState getCreateXYPairState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateXYPairState
public JDFXYPairState getCreateXYPairState(java.lang.String nam)
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 public JDFXYPairState appendXYPairState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendXYPairState
public JDFXYPairState appendXYPairState(java.lang.String nam)
appends a XYPairState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended XYPairState- Returns:
- JDFXYPairState: the newly appended XYPairState
-
getShapeState
public JDFShapeState getShapeState(int iSkip)
gets the iSkip'th existing ShapeState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFShapeState the existing ShapeState
-
getShapeState
public JDFShapeState getShapeState(java.lang.String nam)
gets an existing ShapeState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended ShapeState- Returns:
- JDFShapeState: the existing ShapeState
-
getCreateShapeState
@Deprecated public JDFShapeState getCreateShapeState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateShapeState
public JDFShapeState getCreateShapeState(java.lang.String nam)
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 public JDFShapeState appendShapeState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendShapeState
public JDFShapeState appendShapeState(java.lang.String nam)
appends a ShapeState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended ShapeState- Returns:
- JDFShapeState: the newly appended ShapeState
-
getMatrixState
public JDFMatrixState getMatrixState(int iSkip)
gets the iSkip'th existing MatrixState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFMatrixState the existing MatrixState
-
getMatrixState
public JDFMatrixState getMatrixState(java.lang.String nam)
gets an existing MatrixState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended MatrixState- Returns:
- JDFMatrixState: the existing MatrixState
-
getCreateMatrixState
@Deprecated public JDFMatrixState getCreateMatrixState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateMatrixState
public JDFMatrixState getCreateMatrixState(java.lang.String nam)
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 public JDFMatrixState appendMatrixState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendMatrixState
public JDFMatrixState appendMatrixState(java.lang.String nam)
appends a MatrixState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended MatrixState- Returns:
- JDFMatrixState: the newly appended MatrixState
-
getDateTimeState
public JDFDateTimeState getDateTimeState(int iSkip)
gets the iSkip'th existing DateTimeState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFDateTimeState the existing DateTimeState
-
getDateTimeState
public JDFDateTimeState getDateTimeState(java.lang.String nam)
gets an existing DateTimeState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended DateTimeState- Returns:
- JDFDateTimeState: the existing DateTimeState
-
getCreateDateTimeState
@Deprecated public JDFDateTimeState getCreateDateTimeState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateDateTimeState
public JDFDateTimeState getCreateDateTimeState(java.lang.String nam)
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 public JDFDateTimeState appendDateTimeState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendDateTimeState
public JDFDateTimeState appendDateTimeState(java.lang.String nam)
appends a DateTimeState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended DateTimeState- Returns:
- JDFDateTimeState: the newly appended DateTimeState
-
getDurationState
public JDFDurationState getDurationState(int iSkip)
gets the iSkip'th existing DurationState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFDurationState the existing DurationState
-
getDurationState
public JDFDurationState getDurationState(java.lang.String nam)
gets an existing DurationState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended DurationState- Returns:
- JDFDurationState: the existing DurationState
-
getCreateDurationState
@Deprecated public JDFDurationState getCreateDurationState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateDurationState
public JDFDurationState getCreateDurationState(java.lang.String nam)
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 public JDFDurationState appendDurationState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendDurationState
public JDFDurationState appendDurationState(java.lang.String nam)
appends a DurationState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended DurationState- Returns:
- JDFDurationState: the newly appended DurationState
-
getPDFPathState
public JDFPDFPathState getPDFPathState(int iSkip)
gets the iSkip'th existing PDFPathState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFPDFPathState: the existing PDFPathState
-
getPDFPathState
public JDFPDFPathState getPDFPathState(java.lang.String nam)
gets an existing PDFPathState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended PDFPathState- Returns:
- JDFPDFPathState: the existing PDFPathState
-
getCreatePDFPathState
@Deprecated public JDFPDFPathState getCreatePDFPathState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreatePDFPathState
public JDFPDFPathState getCreatePDFPathState(java.lang.String nam)
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 public JDFPDFPathState appendPDFPathState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendPDFPathState
public JDFPDFPathState appendPDFPathState(java.lang.String nam)
appends a PDFPathState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended PDFPathState- Returns:
- JDFPDFPathState: the newly appended PDFPathState
-
getRectangleState
public JDFRectangleState getRectangleState(int iSkip)
gets the iSkip'th existing RectangleState- Parameters:
iSkip- number of elements to skip (0 -> get first element)- Returns:
- JDFRectangleState: the existing RectangleState
-
getRectangleState
public JDFRectangleState getRectangleState(java.lang.String nam)
gets an existing RectangleState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended RectangleState- Returns:
- JDFRectangleState: the existing RectangleState
-
getCreateRectangleState
@Deprecated public JDFRectangleState getCreateRectangleState(int iSkip)
Deprecated.use method with parameter (string) instead- Returns:
-
getCreateRectangleState
public JDFRectangleState getCreateRectangleState(java.lang.String nam)
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 public JDFRectangleState appendRectangleState()
Deprecated.use method with parameter (string) instead- Returns:
-
appendRectangleState
public JDFRectangleState appendRectangleState(java.lang.String nam)
appends a RectangleState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended RectangleState- Returns:
- JDFRectangleState: the newly appended RectangleState
-
getDevCapVector
public final VElement getDevCapVector(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 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
public final java.lang.String getNamePath(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/@LinkUsagedefault: getNamePath(false)
- Parameters:
bRecurse- if true, returns "DevCapsName/SubelemName1/SubelemName2/..."- Returns:
- String - NamePath of this DevCap
-
getNamePathVector
public VString getNamePathVector()
- Specified by:
getNamePathVectorin interfaceICapabilityElement- Returns:
-
getNamePathVector
public final VString getNamePathVector(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/@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
public java.lang.String getName()
gets String attribute Name, inherits from devcap or devcaps if necessary- Overrides:
getNamein classJDFAutoDevCap- Returns:
- String - the value of the attribute
-
getStates
public VElement getStates(boolean bDirect, java.lang.String id)
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
public VElement getMatchingElementsFromParent(KElement parent, VElement vDevCap)
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
public VElement getAllMatchingElementsFromParent(KElement parent)
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
public boolean setDefaultsFromCaps(KElement element, boolean bAll)
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
public JDFModulePool getModulePool()
Description copied from interface:ICapabilityElementget the ModulePool that contains ModuleCap elements referenced by this- Specified by:
getModulePoolin interfaceICapabilityElement- Returns:
- JDFModulePool the pool
-
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:
- JDFModulePool the pool
-
getModuleAvailability
public JDFDeviceCap.EnumAvailability getModuleAvailability()
get the availability of this devcaps based on the list of installed modules in ModuleRefs and ModulePool- Returns:
-
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- Returns:
JDFModuleCapthe Modulecap that id refers tp
-
getEvaluationType
public JDFTerm.EnumTerm 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
-
-