org.cip4.jdflib.resource.devicecapability
Class JDFDevCap

java.lang.Object
  extended by org.apache.xerces.dom.NodeImpl
      extended by org.apache.xerces.dom.ChildNode
          extended by org.apache.xerces.dom.ParentNode
              extended by org.apache.xerces.dom.ElementImpl
                  extended by org.apache.xerces.dom.ElementNSImpl
                      extended by org.cip4.jdflib.core.KElement
                          extended by org.cip4.jdflib.core.JDFElement
                              extended by org.cip4.jdflib.auto.JDFAutoDevCap
                                  extended by org.cip4.jdflib.resource.devicecapability.JDFDevCap
All Implemented Interfaces:
Serializable, Cloneable, ICapabilityElement, Element, EventTarget, Node, NodeList, 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
 
Nested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator
 
Field Summary
 
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURI
 
Fields inherited from class org.apache.xerces.dom.ElementImpl
attributes, name
 
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSibling
 
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
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName)
          Constructor for JDFDevCap
JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName)
          Constructor for JDFDevCap
JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
          Constructor for JDFDevCap
 
Method Summary
 JDFBooleanState appendBooleanState()
          Deprecated. use method with parameter (string) instead
 JDFBooleanState appendBooleanState(String nam)
          appends a BooleanState with @Name="name"
 JDFDateTimeState appendDateTimeState()
          Deprecated. use method with parameter (string) instead
 JDFDateTimeState appendDateTimeState(String nam)
          appends a DateTimeState with @Name="name"
 JDFDevCap appendDevCap()
          append element DevCap
 void appendDevCapRefs(JDFDevCap dc)
          append dc/@ID to the value of devCap/@ID
 void appendDevCapRefs(String dcID)
          append dc/@ID to the value of devCap/@ID
 JDFDurationState appendDurationState()
          Deprecated. use method with parameter (string) instead
 JDFDurationState appendDurationState(String nam)
          appends a DurationState with @Name="name"
 JDFEnumerationState appendEnumerationState()
          Deprecated. use method with parameter (string) instead
 JDFEnumerationState appendEnumerationState(String nam)
          appends a NumberState with @Name="name"
 JDFIntegerState appendIntegerState()
          append an IntegerState with no name set
 JDFIntegerState appendIntegerState(String nam)
          appends an IntegerState with @Name="name"
 JDFMatrixState appendMatrixState()
          Deprecated. use method with parameter (string) instead
 JDFMatrixState appendMatrixState(String nam)
          appends a MatrixState with @Name="name"
 JDFModuleCap appendModuleRef(String id)
          append moduleRef to moduleRefs, if it does not exist, set the availability to module and ensure that the appropriate modulecap exists
 JDFNameState appendNameState()
          Deprecated. use method with parameter (string) instead
 JDFNameState appendNameState(String nam)
          appends a NameState with @Name="name"
 JDFNumberState appendNumberState()
          Deprecated. use method with parameter (string) instead
 JDFNumberState appendNumberState(String nam)
          appends a NumberState with @Name="name"
 JDFPDFPathState appendPDFPathState()
          Deprecated. use method with parameter (string) instead
 JDFPDFPathState appendPDFPathState(String nam)
          appends a PDFPathState with @Name="name"
 JDFRectangleState appendRectangleState()
          Deprecated. use method with parameter (string) instead
 JDFRectangleState appendRectangleState(String nam)
          appends a RectangleState with @Name="name"
 JDFShapeState appendShapeState()
          Deprecated. use method with parameter (string) instead
 JDFShapeState appendShapeState(String nam)
          appends a ShapeState with @Name="name"
 JDFStringState appendStringState()
          Deprecated. use method with parameter (string) instead
 JDFStringState appendStringState(String nam)
          appends a StringState with @Name="name"
 JDFXYPairState appendXYPairState()
          Deprecated. use method with parameter (string) instead
 JDFXYPairState appendXYPairState(String nam)
          appends a XYPairState with @Name="name"
 VElement getAllMatchingElementsFromParent(KElement parent)
          gets the matching elements in the node that match the nodename of this
 JDFDeviceCap.EnumAvailability getAvailability()
          getAvailability - gets typesafe enumerated attribute Availability
 JDFBooleanState getBooleanState(int iSkip)
          gets the iSkip'th existing BooleanState
 JDFBooleanState getBooleanState(String nam)
          gets an existing BooleanState with @Name="name"
 JDFBooleanState getCreateBooleanState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFBooleanState getCreateBooleanState(String nam)
          gets a NumberState with @Name="name", appends it if it does not exist
 JDFDateTimeState getCreateDateTimeState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFDateTimeState getCreateDateTimeState(String nam)
          gets a DateTimeState with @Name="name", appends it if it does not yet exist
 JDFDevCap getCreateDevCap(int iSkip)
          get iSkip'th element DevCap, create if it doesn't exist
 JDFDurationState getCreateDurationState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFDurationState getCreateDurationState(String nam)
          gets a DurationState with @Name="name", appends it if it does not yet exist
 JDFEnumerationState getCreateEnumerationState(int iSkip)
          Deprecated.  
 JDFEnumerationState getCreateEnumerationState(String nam)
          gets a EnumerationState with @Name="name", appends it if it does not exist
 JDFIntegerState getCreateIntegerState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFIntegerState getCreateIntegerState(String nam)
          gets an IntegerState with @Name="name", appends it if it does not yet exist
 JDFMatrixState getCreateMatrixState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFMatrixState getCreateMatrixState(String nam)
          gets a MatrixState with @Name="name", appends it if it does not yet exist
 JDFModulePool getCreateModulePool()
          get the ModulePool that contains ModuleCap elements referenced by this create one, if it does not exist
 JDFNameState getCreateNameState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFNameState getCreateNameState(String nam)
          gets a NameState with @Name="name", appends it if it does not exist
 JDFNumberState getCreateNumberState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFNumberState getCreateNumberState(String nam)
          gets a NumberState with @Name="name", appends it if it does not yet exist
 JDFPDFPathState getCreatePDFPathState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFPDFPathState getCreatePDFPathState(String nam)
          gets a PDFPathState with @Name="name", appends it if it does not yet exist
 JDFRectangleState getCreateRectangleState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFRectangleState getCreateRectangleState(String nam)
          gets a RectangleState with @Name="name", appends it if it does not yet exist
 JDFShapeState getCreateShapeState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFShapeState getCreateShapeState(String nam)
          gets a ShapeState with @Name="name", appends it if it does not yet exist
 JDFStringState getCreateStringState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFStringState getCreateStringState(String nam)
          gets a StringState with @Name="name", appends it if it does not yet exist
 JDFXYPairState getCreateXYPairState(int iSkip)
          Deprecated. use method with parameter (string) instead
 JDFXYPairState getCreateXYPairState(String nam)
          gets a XYPairState with @Name="name", appends it if it does not yet exist
 JDFDateTimeState getDateTimeState(int iSkip)
          gets the iSkip'th existing DateTimeState
 JDFDateTimeState getDateTimeState(String nam)
          gets an existing DateTimeState with @Name="name"
 JDFDevCap getDevCap(int iSkip)
          get iSkip'th element DevCap
 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
 JDFDurationState getDurationState(int iSkip)
          gets the iSkip'th existing DurationState
 JDFDurationState getDurationState(String nam)
          gets an existing DurationState with @Name="name"
 JDFEnumerationState getEnumerationState(int iSkip)
          gets the iSkip'th existing EnumerationState
 JDFEnumerationState getEnumerationState(String nam)
          gets an existing EnumerationState with @Name="name"
 JDFTerm.EnumTerm getEvaluationType()
          get the type of evaluation that is appropriate for this ICapabilityElement
 String getID()
          get String attribute ID
protected  String getIDPrefix()
          getIDPrefix
 JDFIntegerState getIntegerState(int iSkip)
          gets the iSkip'th existing IntegerState
 JDFIntegerState getIntegerState(String nam)
          gets an existing IntegerState with @Name="name"
 VString getInvalidAttributes(JDFElement.EnumValidationLevel level, boolean bIgnorePrivate, int nMax)
          get invalid attributes
 VElement getMatchingElementsFromParent(KElement parent, VElement vDevCap)
          gets the matching elements in the node that match this
 JDFMatrixState getMatrixState(int iSkip)
          gets the iSkip'th existing MatrixState
 JDFMatrixState getMatrixState(String nam)
          gets an existing MatrixState with @Name="name"
 int getMaxOccurs()
          Gets integer attribute MaxOccurs, also handles unbounded
 JDFDeviceCap.EnumAvailability getModuleAvailability()
          get the availability of this devcaps based on the list of installed modules in ModuleRefs and ModulePool
 JDFModulePool getModulePool()
          get the ModulePool that contains ModuleCap elements referenced by this
 String getName()
          gets String attribute Name, inherits from devcap or devcaps if necessary
 String getNamePath(boolean bRecurse)
          Gets the NamePath of this DevCap in form "DevCapsName/SubelemName1/SubelemName2/..."
 VString getNamePathVector()
           
 VString getNamePathVector(boolean bRecurse)
          Gets the NamePath of this DevCap in form "DevCapsName/SubelemName1/SubelemName2/..."
 JDFNameState getNameState(int iSkip)
          gets the iSkip'th existing NameState
 JDFNameState getNameState(String nam)
          gets an existing NameState with @Name="name"
 JDFNumberState getNumberState(int iSkip)
          gets the iSkip'th existing NumberState
 JDFNumberState getNumberState(String nam)
          gets an existing NumberState with @Name="name"
 JDFPDFPathState getPDFPathState(int iSkip)
          gets the iSkip'th existing PDFPathState
 JDFPDFPathState getPDFPathState(String nam)
          gets an existing PDFPathState with @Name="name"
 JDFRectangleState getRectangleState(int iSkip)
          gets the iSkip'th existing RectangleState
 JDFRectangleState getRectangleState(String nam)
          gets an existing RectangleState with @Name="name"
 JDFShapeState getShapeState(int iSkip)
          gets the iSkip'th existing ShapeState
 JDFShapeState getShapeState(String nam)
          gets an existing ShapeState with @Name="name"
 VElement getStates(boolean bDirect, String id)
          return the vector of all states
 JDFStringState getStringState(int iSkip)
          gets the iSkip'th existing StringState
 JDFStringState getStringState(String nam)
          gets an existing StringState with @Name="name"
protected  AttributeInfo getTheAttributeInfo()
           
protected  ElementInfo getTheElementInfo()
           
 JDFXYPairState getXYPairState(int iSkip)
          gets the iSkip'th existing XYPairState
 JDFXYPairState getXYPairState(String nam)
          gets an existing XYPairState with @Name="name"
 boolean init()
          all devcap elements should have an id
 boolean setDefaultsFromCaps(KElement element, boolean bAll)
          sets the element and attribute defaults
 void setDevCapRefs(VString value)
          set attribute DevCapRefs
 void setID(String value)
          set attribute ID
 void setMaxOccurs(int value)
          Sets attribute MaxOccurs, also handles unbounded
 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.
 String toString()
          toString()
 
Methods inherited from class org.cip4.jdflib.auto.JDFAutoDevCap
appendLoc, getAllLoc, getCreateLoc, getDevCapRefs, getDevNS, 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, appendHRef, appendHRef, appendMustHonorExceptions, appendOperatorInterventionExceptions, appendPreview, appendrRefs, attributeType, clearTargets, cloneNewDoc, copyInto, deprecatedAttributes, eraseDefaultAttributes, exclusiveOneOfAttribute, exclusiveOneOfElement, fixVersion, getAllRefs, getAtrType, getAttributeInfo, getBestEffortExceptions, getChildElement, getChildElements, getChildElementVector_JDFElement, getChildElementVector, getChildIds, getChildrenByTagName, getChildrenByTagName, getChildWithAttribute, getChildWithMatchingAttribute, getComment, getComment, getCommentURL, getCreateComment, getCreatePreview, getCreateRefElement, getDeepElementByID, getDefaultAttributeMap, getDefaultJDFVersion, getDeprecatedAttributes, getDeprecatedElements, getDescriptiveName, getElement_JDFElement, getElement, getElementIDPrefix, getElementNameVector, getEnumAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumforAttribute, getEnumNodeName, getEnumString, getFirstVersion, getGeneralID, getGeneralID, getGeneralID, getGeneralIDMap, getGeneralIDVectorMap, getHRef, getHRefs, getHRefs, getInsertElements, getInsertElementVector, getInvalidElements_JDFElement, getInvalidElements, getJDFRoot, getJMFRoot, getLastVersion, getLinkRoot, getMaxVersion, getMissingAttributes, getMissingAttributeVector, getMissingElements, getMissingElementVector, getMustHonorExceptions, getNamesVector, getOperatorInterventionExceptions, getOwnerDocument_JDFElement, getParentJDF, getParentJDF, getPartMap, getPartMapVector, getPrereleaseAttributes, getPrereleaseElements, getPreview, getRefElement, getRefElements, getRefString, getrRefs, getSchemaURL, getSchemaURL, getSettingsPolicy, getStatus, getTarget_JDFElement, getTarget, getTarget, 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, isDirty, isInJDFNameSpace, isInJDFNameSpaceStatic, isInJDFNameSpaceStatic, isJDFNode, isRefElement, isRefElementStatic, isResource, isResourceLink, isResourceLinkStatic, isResourceStatic, isResourceUpdate, isValid_JDFElement, isValid, jdfVersion, knownAttributes, knownElements, matchesPath, newID, numChildElements_JDFElement, numChildElements, optionalAttributes, optionalElements, 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, setCommentURL, setDefaultJDFVersion, setDescriptiveName, setDirty, setEnumerationsAttribute, setGeneralID, setLongID, setMustHonorExceptions, setOperatorInterventionExceptions, setPartMap, setPartMapVector, setSettingsPolicy, setStatus, setVersion, setvStringAttribute, stringToVersion, uniqueElements, upDaterRefs, validAttribute, validAttribute, validEnumAttribute, validEnumerationsAttribute, validResourcePosition, version
 
Methods inherited from class org.cip4.jdflib.core.KElement
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildXPath, buildXPath, buildXPath, clone, copyAttribute, copyAttribute, copyElement, copyElements, copyXPathValue, createRoot, deleteNode, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName_KElement, fitsName, flush, generateDotID, getAttribute_KElement, getAttribute_KElement, getAttribute, getAttribute, getAttributeMap, getAttributeVector_KElement, getAttributeVector, getBoolAttribute, getCData, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector_KElement, getChildElementVector, getChildElementVector, getChildFromList, getChildFromList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByClass, getChildrenByTagName_KElement, getChildrenFromList, getChildrenWithAttribute, getCreateElement_KElement, getCreateElement, getCreateElement, getCreateXPathElement, getDeepElement, getDeepParent, getDeepParent, getDeepParentChild, getDeepParentNotName, getDocRoot, getDOMAttr, getElement_KElement, getElement, getElementByClass, getElementHashMap, getElementsByTagName_KElement, getFirstChildElement, getFirstChildElement, getFirstChildElement, getFirstElementNode, getInheritedAttribute, getInheritedElement, getInheritedXPathAttribute, getIntAttribute, getLocalNameStatic, getLongAttribute, getMultipleIDs, getNamespaceURI, getNamespaceURIFromPrefix, getNextElementNode, getNextSiblingElement, getNextSiblingElement, getNextSiblingElement, getNumCDatas, getNumChildNodes, getNumChildText, getNumXMLComments, getOwnerDocument_KElement, getParentNode_KElement, getPreviousSiblingElement, getPreviousSiblingElement, getRealAttribute, getTarget_KElement, getText, getText, getTree, getTreeElement, getXMLComment, getXMLNSNameSpace, getXMLNSPrefix, getXPathAttribute, getXPathAttributeMap, getXPathElement, getXPathElementVector, getXSIType, hasAttribute_KElement, hasAttribute, hasAttribute, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasXPathNode, includesAttribute, includesAttributes, insertAt, insertBefore, isAncestor, isEqual, isWildCard, matchesPath, matchesPathName, mergeElement, moveAttribute, moveAttribute, moveElement, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numSiblingElements, pushUp, removeAllText, removeAttribute_KElement, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildText, removeExtensions, removeFromAttribute, removeXMLComment, removeXPathAttribute, removeXPathElement, renameAttribute, renameElement, replaceElement, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNSRaw, setAttributeRaw, setAttributes, setAttributes, setAttributes, setAttributesRaw, setBoolAttribute, setDirty, setIntAttribute, setNamespaceURI, setNodeValue, setPrefix, setRealAttribute, setText, setvStringAttribute, setXMLComment, setXPathAttribute, setXPathValue, setXPathValues, setXSIType, sortChild, sortChild, sortChildren, sortChildren, toDisplayXML, toXML, toXML, uniqueID, write2File, write2File, write2Stream, xmlNameSpace, xmlnsLocalName, xmlnsPrefix
 
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getBaseURI, getLocalName, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setType, setValues
 
Methods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, 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.cip4.jdflib.ifaces.ICapabilityElement
getModuleRefs, setAvailability
 
Methods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
 

Constructor Detail

JDFDevCap

public JDFDevCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                 String qualifiedName)
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 Detail

getTheElementInfo

protected ElementInfo getTheElementInfo()
Overrides:
getTheElementInfo in class JDFAutoDevCap
Returns:
the elementinfo

getTheAttributeInfo

protected AttributeInfo getTheAttributeInfo()
Overrides:
getTheAttributeInfo in class JDFAutoDevCap
Returns:

toString

public String toString()
toString()

Overrides:
toString in class JDFAutoDevCap
Returns:
String
See Also:
Object.toString()

init

public boolean init()
all devcap elements should have an id

Overrides:
init in class KElement
Returns:
boolean true always

setDevCapRefs

public void setDevCapRefs(VString value)
set attribute DevCapRefs

Overrides:
setDevCapRefs in class JDFAutoDevCap
Parameters:
value - the value to set the attribute to

setID

public void setID(String value)
set attribute ID

Overrides:
setID in class JDFAutoDevCap
Parameters:
value - the value to set the attribute to

getID

public String getID()
get String attribute ID

Overrides:
getID in class JDFAutoDevCap
Returns:
String: the value of the attribute

getIDPrefix

protected String getIDPrefix()
Description copied from class: KElement
getIDPrefix

Overrides:
getIDPrefix in class KElement
Returns:
the default ID prefix of non-overwritten JDF elements

getAvailability

public JDFDeviceCap.EnumAvailability getAvailability()
getAvailability - gets typesafe enumerated attribute Availability

Specified by:
getAvailability in interface ICapabilityElement
Overrides:
getAvailability in class JDFAutoDevCap
Returns:
EnumAvailability: the enumeration value of the attribute

getDevCap

public JDFDevCap getDevCap(int iSkip)
get iSkip'th element DevCap

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 element DevCap, create if it doesn't exist

Parameters:
iSkip - number of elements to skip
Returns:
the value of the attribute

appendDevCap

public JDFDevCap appendDevCap()
append element DevCap

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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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 test
testlists - 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 null there are no errors.
Element e fits the corresponding States and DevCap subelements of this DevCap.

getNamePath

public final 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/@LinkUsage

default: getNamePath(false)

Parameters:
bRecurse - if true, returns "DevCapsName/SubelemName1/SubelemName2/..."
Returns:
String - NamePath of this DevCap

getNamePathVector

public VString getNamePathVector()
Specified by:
getNamePathVector in interface ICapabilityElement
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 String getName()
gets String attribute Name, inherits from devcap or devcaps if necessary

Overrides:
getName in class JDFAutoDevCap
Returns:
String - the value of the attribute

getStates

public VElement getStates(boolean bDirect,
                          String id)
return the vector of all states

Parameters:
bDirect - if false, recurse into child elements, else return only direct child states
id - ID attribute of the requested string
Returns:
VElement

setMaxOccurs

public void setMaxOccurs(int value)
Sets attribute MaxOccurs, also handles unbounded

Overrides:
setMaxOccurs in class JDFAutoDevCap
Parameters:
value - the value to set the attribute to

getMaxOccurs

public int getMaxOccurs()
Gets integer attribute MaxOccurs, also handles unbounded

Overrides:
getMaxOccurs in class JDFAutoDevCap
Returns:
int: the attribute value

getMatchingElementsFromParent

public VElement getMatchingElementsFromParent(KElement parent,
                                              VElement vDevCap)
gets the matching elements in the node that match this

Parameters:
node - the node to search in
testValidity - if true, recusively check for validity of the elements, else only get children by name
Returns:
VElement - the element vector of matching elements, null if 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, null if none were found

setDefaultsFromCaps

public boolean setDefaultsFromCaps(KElement element,
                                   boolean bAll)
sets the element and attribute defaults

Parameters:
element - the element that is defaulted
bAll - 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: JDFElement
get invalid attributes

Overrides:
getInvalidAttributes in class JDFElement
Parameters:
level - validation level
bIgnorePrivate - if true, do not worry about attributes in other namespaces
nMax - maximum size of the returned vector
Returns:
VString - a vector of invalid attribute names

getModulePool

public JDFModulePool getModulePool()
Description copied from interface: ICapabilityElement
get the ModulePool that contains ModuleCap elements referenced by this

Specified by:
getModulePool in interface ICapabilityElement
Returns:
JDFModulePool the pool

getCreateModulePool

public JDFModulePool getCreateModulePool()
Description copied from interface: ICapabilityElement
get the ModulePool that contains ModuleCap elements referenced by this create one, if it does not exist

Specified by:
getCreateModulePool in interface ICapabilityElement
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(String id)
Description copied from interface: ICapabilityElement
append moduleRef to moduleRefs, if it does not exist, set the availability to module and ensure that the appropriate modulecap exists

Specified by:
appendModuleRef in interface ICapabilityElement
Returns:
JDFModuleCap the Modulecap that id refers tp

getEvaluationType

public JDFTerm.EnumTerm getEvaluationType()
Description copied from interface: ICapabilityElement
get the type of evaluation that is appropriate for this ICapabilityElement

Specified by:
getEvaluationType in interface ICapabilityElement
Returns:
EnumTerm the type of evaluation


Copyright © 2013. All Rights Reserved.