Class JDFDeviceCap
- 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.JDFAutoDeviceCap
-
- org.cip4.jdflib.resource.devicecapability.JDFDeviceCap
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,IDeviceCapable,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 JDFDeviceCap extends JDFAutoDeviceCap implements IDeviceCapable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJDFDeviceCap.EnumAvailability-
Nested classes/interfaces inherited from class org.cip4.jdflib.auto.JDFAutoDeviceCap
JDFAutoDeviceCap.EnumCombinedMethod, JDFAutoDeviceCap.EnumExecutionPolicy, JDFAutoDeviceCap.EnumTypeOrder
-
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 Modifier and Type Field Description static java.lang.StringFITS_TYPE-
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 JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)Constructor for JDFDeviceCapJDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)Constructor for JDFDeviceCapJDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)Constructor for JDFDeviceCap
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KElementactionPoolReport(IDeviceCapable devCapable, JDFElement jdfRootorMess, KElement parentReport)actionPoolReport - tests if the JDFNode fits Actions from ActionPool of this DeviceCap.
Composes a detailed report of the found errors in XML form.JDFBooleanStateappendBooleanState(java.lang.String nam)appends a BooleanState with @Name="name"JDFEnumerationStateappendEnumerationState(java.lang.String nam)appends a NumberState with @Name="name"JDFIntegerStateappendIntegerState(java.lang.String nam)appends an IntegerState with @Name="name"JDFNameStateappendNameState(java.lang.String nam)appends a NameState with @Name="name"JDFStringStateappendStringState(java.lang.String nam)appends a StringState with @Name="name"voidcreateModuleCaps(java.lang.String includeNameExpression)creates and links devcaps to modulesXMLDocgetBadJDFInfo(JDFNode jdfRoot, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level)Composes a BugReport in XML form for the given JDFNode 'jdfRoot'.JDFBooleanStategetBooleanState(java.lang.String nam)gets an existing BooleanState with @Name="name"java.util.VectorgetCombinedMethod()(9.2) get CombinedMethod attributeCombinedMethodJDFBooleanStategetCreateBooleanState(java.lang.String nam)gets a NumberState with @Name="name", appends it if it does not existJDFEnumerationStategetCreateEnumerationState(java.lang.String nam)gets a EnumerationState with @Name="name", appends it if it does not existJDFIntegerStategetCreateIntegerState(java.lang.String nam)gets an IntegerState with @Name="name", appends it if it does not yet existJDFNameStategetCreateNameState(java.lang.String nam)gets a NameState with @Name="name", appends it if it does not existJDFStringStategetCreateStringState(java.lang.String nam)gets a StringState with @Name="name", appends it if it does not yet existJDFDevCapsgetDevCapsByName(java.lang.String devCapsName, JDFAutoDevCaps.EnumContext context, JDFResourceLink.EnumUsage linkUsage, JDFNode.EnumProcessUsage processUsage, int iSkip)get a DevCaps element by name and further restrictions.JDFEnumerationStategetEnumerationState(java.lang.String nam)gets an existing EnumerationState with @Name="name"VElementgetExecutableJDF(JDFNode jdfRoot, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level)Gets of jdfRoot a vector of all executable nodes (jdf root or children nodes that this Device may execute)JDFIntegerStategetIntegerState(java.lang.String nam)gets an existing IntegerState with @Name="name"static XMLDocgetJMFInfo(JDFJMF jmfRoot, JDFResponse knownMessagesResp, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level, boolean ignoreExtensions)Composes a BugReport in XML form for the given JMF message 'jmfRoot'.VElementgetMatchingTypeNodeVector(JDFNode testRoot)test whether a given node has the corect Types and Type Attributestatic JDFMessageServicegetMessageServiceForJMFType(JDFMessage m, JDFResponse knownMessagesResp)VStringgetNamePathVector()JDFNameStategetNameState(java.lang.String nam)gets an existing NameState with @Name="name"JDFNumberStategetNumberState(java.lang.String nam)gets an existing NumberState with @Name="name"JDFAbstractStategetState(java.lang.String nam)gets an existing State with @Name="name"VElementgetStates()get all direct state elements ofJDFStringStategetStringState(java.lang.String nam)gets an existing StringState with @Name="name"ICapabilityElementgetTargetCap(java.lang.String id)get the target JDFTerm referenced by idprotected ElementInfogetTheElementInfo()java.lang.StringgetTypeExpression()Gets of this string attributeTypeExpressionif it exists, otherwise returns the literal string defined in TypesbooleanisIgnoreDefaults()booleanisIgnoreExtensions()booleanmatchesType(JDFNode testRoot, boolean bLocal)test whether a given node has the corect Types and Type AttributevoidsetCombinedMethod(java.util.Vector vMethod)set attributeCombinedMethodto an individual methodvoidsetCombinedMethod(JDFAutoDeviceCap.EnumCombinedMethod method)set attributeCombinedMethodto an individual methodbooleansetDefaultsFromCaps(JDFNode node, boolean bLocal, boolean bAll)set the defaults of node to the values defined in the child DevCap and State elementsvoidsetIgnoreDefaults(boolean _ignoreDefaults)voidsetIgnoreExtensions(boolean _ignoreExtensions)java.lang.StringtoString()toString - StringRepresentation of JDFNode-
Methods inherited from class org.cip4.jdflib.auto.JDFAutoDeviceCap
appendActionPool, appendDevCapPool, appendDevCaps, appendDisplayGroupPool, appendFeaturePool, appendMacroPool, appendModulePool, appendPerformance, appendTestPool, getActionPool, getAllDevCaps, getAllPerformance, getCreateActionPool, getCreateDevCapPool, getCreateDevCaps, getCreateDevCaps, getCreateDisplayGroupPool, getCreateFeaturePool, getCreateMacroPool, getCreateModulePool, getCreatePerformance, getCreatePerformance, getCreateTestPool, getDevCapPool, getDevCaps, getDevCaps, getDisplayGroupPool, getExecutionPolicy, getFeaturePool, getGenericAttributes, getLang, getMacroPool, getModulePool, getOptionalCombinedTypes, getPerformance, getPerformance, getTestPool, getTheAttributeInfo, getType, getTypeOrder, getTypes, setExecutionPolicy, setGenericAttributes, setLang, setOptionalCombinedTypes, setType, setTypeExpression, setTypeOrder, setTypes
-
Methods inherited from class org.cip4.jdflib.core.JDFElement
appendAnchor, appendBestEffortExceptions, appendComment, appendElement, appendGeneralID, appendGeneralID, appendGeneralID, appendHRef, appendHRef, appendMustHonorExceptions, appendOperatorInterventionExceptions, appendPreview, appendrRefs, attributeType, clearTargets, cloneNewDoc, copyChildren, copyInto, createRoot, createRoot, deprecatedAttributes, eraseDefaultAttributes, exclusiveOneOfAttribute, exclusiveOneOfElement, fixVersion, getAllRefs, getAtrType, getAttributeInfo, getBestEffortExceptions, getChildElement, getChildElements, getChildElementVector, getChildElementVector_JDFElement, getChildIds, getChildrenByTagName, getChildrenByTagName, getChildWithAttribute, getChildWithMatchingAttribute, getComment, getComment, getCommentText, getCommentURL, getCreateComment, getCreateComment, getCreateElement_JDFElement, getCreatePreview, getCreateRefElement, getDeepElementByID, getDefaultAttributeMap, getDefaultJDFVersion, getDeprecatedAttributes, getDeprecatedElements, getDescriptiveName, getElement, getElement_JDFElement, getElementIDPrefix, getElementInfo, getElementNameVector, getEnumAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumforAttribute, getEnumNodeName, getEnumString, getFirstVersion, getGeneralID, getGeneralID, getGeneralID, getGeneralIDListMap, getGeneralIDMap, getGeneralIDVectorMap, getHRef, getHRefs, getHRefs, getInsertElements, getInsertElementVector, getInvalidAttributes, getInvalidElements, getInvalidElements_JDFElement, getJDFRoot, getJMFRoot, getLastVersion, getLinkFromUserData, getLinkRoot, getMaxVersion, getMissingAttributes, getMissingAttributeVector, getMissingElements, getMissingElementVector, getMustHonorExceptions, getNamesVector, getOperatorInterventionExceptions, getOwnerDocument_JDFElement, getParentJDF, getParentJDF, getPartMap, getPartMapArray, getPartMapVector, getPrereleaseAttributes, getPrereleaseElements, getPreview, getRefElement, getRefElements, getRefString, getrRefs, getSchemaURL, getSchemaURL, getSchemaURL, getSettingsPolicy, getStatus, getTarget, getTarget, getTarget_JDFElement, getTheAttributeInfo_JDFElement, getTheElementInfo_JDFElement, getTypeForAttribute, getUnknownAttributes, getUnknownAttributeVector, getUnknownElements, getUnknownElementVector, getUnknownPoolElements, getURLDoc, getURLInputStream, getValueForNewAttribute, getVersion, getVersion, getvHRefRes, getvHRefRes, getXMLDocUserData, hasMissingAttributes, hasMissingElements, hasPartMap, hasSettingsPolicy, hasUnknownAttributes, hasUnknownElements, idString, includesMatchingAttribute, init, inlineRefElements, insertBefore, isComment, isCommentStatic, isDeprecated, isDirty, isInAnyCIP4NameSpaceStatic, isInAnyCIP4NameSpaceStatic, isInAnyJDFNameSpaceStatic, isInAnyJDFNameSpaceStatic, isInJDFNameSpace, isInJDFNameSpaceStatic, isInJDFNameSpaceStatic, isInXJDFNameSpaceStatic, isInXJDFNameSpaceStatic, isJDFNode, isRefElement, isRefElementStatic, isResource, isResourceLink, isResourceLinkStatic, isResourceStatic, isResourceUpdate, isValid, isValid_JDFElement, isXJDF, jdfVersion, knownAttributes, knownElements, matchesPath, newID, numChildElements, numChildElements_JDFElement, optionalAttributes, optionalElements, parseFile, parseFile, parseStream, parseString, prereleaseAttributes, prereleaseElements, refElement, removeBestEffortExceptions, removeChild, removeChild, removeChildren, removeExtensions, removeFromBestEffortExceptions, removeFromMustHonorExceptions, removeFromOperatorInterventionExceptions, removeFromrRefs, removeGeneralID, removePartMap, removeRefElement, removeSettingsPolicy, replaceChild, requiredAttributes, requiredElements, requiredLevel, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNameTimeStamp, setAttributes, setBestEffortExceptions, setCommentText, setCommentText, setCommentURL, setDefaultJDFVersion, setDescriptiveName, setDirty, setEnumerationsAttribute, setGeneralID, setLongID, setMustHonorExceptions, setOperatorInterventionExceptions, setPartMap, setPartMapVector, setSettingsPolicy, setStatus, setVersion, setvStringAttribute, stringToVersion, uniqueElements, upDaterRefs, validAttribute, validAttribute, validEnumAttribute, validEnumerationsAttribute, validResourcePosition, version, write2Dir
-
Methods inherited from class org.cip4.jdflib.core.KElement
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendAttribute, appendAttributes, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildRelativeXPath, buildXPath, buildXPath, buildXPath, cleanup, clearNSMap, clone, copyAttribute, copyAttribute, copyAttribute, copyAttribute, copyElement, copyElements, copyXPathValue, createRoot, deleteNode, ensureCase, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName, fitsName_KElement, flush, generateDotID, getAttribute, getAttribute, getAttribute, getAttribute_KElement, getAttribute_KElement, getAttributeArray_KElement, getAttributeIgnoreCase, getAttributeMap, getAttributeMap_KElement, getAttributeRaw, getAttributeVector, getAttributeVector_KElement, getBoolAttribute, getCData, getChildArray, getChildArray_KElement, getChildArrayByClass, getChildArrayByClass_KElement, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector, getChildElementVector, getChildElementVector_KElement, getChildFromList, getChildFromList, getChildList, getChildList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByClass, getChildrenByTagName, getChildrenByTagName_KElement, getChildrenFromList, getChildrenIgnoreList, getChildrenWithAttribute, getChildWithAttribute, getChildWithAttribute, getCreateChildWithAttribute, getCreateElement, getCreateElement, getCreateElement_KElement, getCreateXPathElement, getDeepElement, getDeepParent, getDeepParent, getDeepParentChild, getDeepParentNotName, getDocRoot, getDOMAttr, getElement, getElement_KElement, getElementByClass, getElementHashMap, getElementsByTagName_KElement, getFirstChildElement, getFirstChildElement, getFirstChildElement, getFirstElementNode, getID, getIDPrefix, getIgnoreCase, getIgnoreCase_KElement, getInheritedAttribute, getInheritedElement, getInheritedXPathAttribute, getIntAttribute, getLocalNameStatic, getLongAttribute, getMultipleIDs, getNamespaceURI, getNamespaceURIFromPrefix, getNextElementNode, getNextSiblingElement, getNextSiblingElement, getNextSiblingElement, getNonEmpty, getNonEmpty_KElement, getNumCDatas, getNumChildNodes, getNumChildText, getNumXMLComments, getOwnerDocument_KElement, getParentNode_KElement, getPreviousSiblingElement, getPreviousSiblingElement, getRealAttribute, getTarget_KElement, getText, getText, getTree, getTree, getTreeByClass, getTreeElement, getXMLComment, getXMLNSNameSpace, getXMLNSPrefix, getXPathAttribute, getXPathAttributeMap, getXPathElement, getXPathElementVector, getXPathValueMap, getXPathValueMap, getXSIType, hasAttribute, hasAttribute, hasAttribute_KElement, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasNonEmpty, hasNonEmpty_KElement, hasXPathNode, includesAttribute, includesAttributes, insertAt, insertBefore, isAncestor, isEqual, isEqual, isWildCard, matchesPath, matchesPathName, mergeElement, moveArray, moveAttribute, moveAttribute, moveElement, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numChildNodes, numChildrenByClass, numSiblingElements, pushUp, removeAllText, removeAttribute, removeAttribute, removeAttribute_KElement, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildrenByClass, removeChildText, removeExtensions, removeFromAttribute, removeIgnoreCase, removeIgnoreCase_KElement, removeXMLComment, removeXPathAttribute, removeXPathElement, renameAttribute, renameAttribute, renameElement, replaceElement, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNSRaw, setAttributeRaw, setAttributes, setAttributes, setAttributes, setAttributesRaw, setBoolAttribute, setDirty, setID, setIntAttribute, setNamespaceURI, setNodeValue, setNonEmpty, setPrefix, setRealAttribute, setText, setvStringAttribute, setXMLComment, setXMLComment, setXPathAttribute, setXPathValue, setXPathValues, setXSIType, sortChild, sortChild, sortChildren, sortChildren, sortChildren, sortChildren, toDisplayXML, 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.IDeviceCapable
getActionPool, getTestPool
-
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
-
-
-
-
Field Detail
-
FITS_TYPE
public static final java.lang.String FITS_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JDFDeviceCap
public JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String qualifiedName)Constructor for JDFDeviceCap- Parameters:
myOwnerDocument-qualifiedName-
-
JDFDeviceCap
public JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName)Constructor for JDFDeviceCap- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFDeviceCap
public JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, java.lang.String myNamespaceURI, java.lang.String qualifiedName, java.lang.String myLocalName)Constructor for JDFDeviceCap- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Detail
-
getTheElementInfo
protected ElementInfo getTheElementInfo()
- Overrides:
getTheElementInfoin classJDFAutoDeviceCap- Returns:
- the elementinfo
-
toString
public java.lang.String toString()
toString - StringRepresentation of JDFNode
-
getTypeExpression
public java.lang.String getTypeExpression()
Gets of this string attributeTypeExpressionif it exists, otherwise returns the literal string defined in Types- Overrides:
getTypeExpressionin classJDFAutoDeviceCap- Returns:
- String - TypeExpression attribute value
-
getCombinedMethod
public java.util.Vector getCombinedMethod()
(9.2) get CombinedMethod attributeCombinedMethod- Overrides:
getCombinedMethodin classJDFAutoDeviceCap- Returns:
- Vector of the enumerations
-
getNamePathVector
public final VString getNamePathVector()
- Specified by:
getNamePathVectorin interfaceIDeviceCapable- Returns:
-
getExecutableJDF
public final VElement getExecutableJDF(JDFNode jdfRoot, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level)
Gets of jdfRoot a vector of all executable nodes (jdf root or children nodes that this Device may execute)- Parameters:
jdfRoot- the node we testtestlists- testlists that are specified for the State elements (FitsValue_Allowed or FitsValue_Present)
Will be used in fitsValue method of the State class.level- validation level- Returns:
- VElement - vector of executable JDFNodes, null if none found
-
getBadJDFInfo
public final XMLDoc getBadJDFInfo(JDFNode jdfRoot, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level)
Composes a BugReport in XML form for the given JDFNode 'jdfRoot'. Gives a list of error messages for 'jdfRoot' and every child rejected Node.
Returnsnullif there are no errors.- Parameters:
jdfRoot- the node to testtestlists- testlists that are specified for the State elements (FitsValue_Allowed or FitsValue_Present)
Will be used in fitsValue method of the State class.level- validation level- Returns:
- XMLDoc - XMLDoc output of the error messages. If XMLDoc is null there are no errors.
-
getJMFInfo
public static XMLDoc getJMFInfo(JDFJMF jmfRoot, JDFResponse knownMessagesResp, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level, boolean ignoreExtensions)
Composes a BugReport in XML form for the given JMF message 'jmfRoot'. Gives a list of error messages for 'jmfRoot' and every child rejected element.
Returnsnullif there are no errors.- Parameters:
jmfRoot- the node to testknownMessagesResp-testlists- testlists that are specified for the State elements (FitsValue_Allowed or FitsValue_Present)
Will be used in fitsValue method of the State class.level- validation levelignoreExtensions-- Returns:
- XMLDoc - XMLDoc output of the error messages. If XMLDoc is null there are no errors.
-
getMessageServiceForJMFType
public static JDFMessageService getMessageServiceForJMFType(JDFMessage m, JDFResponse knownMessagesResp)
- Parameters:
m- the message to testknownMessagesResp- the Response that contains the relevant devcap fo the jmf- Returns:
- the JMFMessageService element for this message based on family and type
-
matchesType
public boolean matchesType(JDFNode testRoot, boolean bLocal)
test whether a given node has the corect Types and Type Attribute- Parameters:
testRoot- the JDF or JMF to testbLocal- if true, only check the root of this, else check children as well- Returns:
- boolean - true if this DeviceCaps TypeExpression fits testRoot/@Type and testRoot/@Types
-
getMatchingTypeNodeVector
public VElement getMatchingTypeNodeVector(JDFNode testRoot)
test whether a given node has the corect Types and Type Attribute- Parameters:
testRoot- the JDF or JMF to test- Returns:
- VElement - the list of matching JDF nodes, null if none found
-
actionPoolReport
public static KElement actionPoolReport(IDeviceCapable devCapable, JDFElement jdfRootorMess, KElement parentReport)
actionPoolReport - tests if the JDFNode fits Actions from ActionPool of this DeviceCap.
Composes a detailed report of the found errors in XML form. If XMLDoc isnull- there are no errors- Parameters:
jdfRoot- node to test- Returns:
- KElement - KElement output of the error messages. If KElement is
nullthere are no errors, JDFNode fits the ActionPool of this DeviceCap and will be accepted by the device. - Throws:
JDFException- if DeviceCap is invalid: ActionPool refers to the non-existent TestPoolJDFException- if DeviceCap is invalid: Action refers to the non-existent Test
-
createModuleCaps
public void createModuleCaps(java.lang.String includeNameExpression)
creates and links devcaps to modules- Parameters:
includeNameExpression- regexp of names to include
-
setDefaultsFromCaps
public boolean setDefaultsFromCaps(JDFNode node, boolean bLocal, boolean bAll)
set the defaults of node to the values defined in the child DevCap and State elements- Parameters:
node- the JDFNode in which to set defaultsbLocal- if true, set only in the local node, else recurse childrenbAll- if false, only add if minOccurs>=1 and required=true or a default exists
-
getStates
public VElement getStates()
get all direct state elements of- Returns:
- the vector of state elements
-
getDevCapsByName
public JDFDevCaps getDevCapsByName(java.lang.String devCapsName, JDFAutoDevCaps.EnumContext context, JDFResourceLink.EnumUsage linkUsage, JDFNode.EnumProcessUsage processUsage, int iSkip)
get a DevCaps element by name and further restrictions. If an Enumerative restriction is null, the restriction is not checked.- Parameters:
devCapsName- the Name attribute of the DevCapscontext- the Context attribute of the DevCapslinkUsage- the LinkUsage attribute of the DevCapsprocessUsage- the ProcessUsage attribute of the DevCapsiSkip- the iSkip'th matching DevCaps- Returns:
- JDFDevCaps the matching DevCaps, null if not there
-
setCombinedMethod
public void setCombinedMethod(JDFAutoDeviceCap.EnumCombinedMethod method)
set attributeCombinedMethodto an individual method- Parameters:
method- the individual combined method to set
-
setCombinedMethod
public void setCombinedMethod(java.util.Vector vMethod)
set attributeCombinedMethodto an individual method- Overrides:
setCombinedMethodin classJDFAutoDeviceCap- Parameters:
method- the individual combined method to set
-
isIgnoreExtensions
public boolean isIgnoreExtensions()
- Returns:
- the ignoreExtensions
-
setIgnoreExtensions
public void setIgnoreExtensions(boolean _ignoreExtensions)
- Parameters:
_ignoreExtensions- the ignoreExtensions to set
-
isIgnoreDefaults
public boolean isIgnoreDefaults()
- Returns:
- the ignoreDefaults
-
setIgnoreDefaults
public void setIgnoreDefaults(boolean _ignoreDefaults)
- Parameters:
_ignoreDefaults- the ignoreDefaults to set
-
getTargetCap
public ICapabilityElement getTargetCap(java.lang.String id)
Description copied from interface:IDeviceCapableget the target JDFTerm referenced by id- Specified by:
getTargetCapin interfaceIDeviceCapable- Parameters:
id- the @ID of the term- Returns:
- ICapabilityElement the referenced term, null if it doesn't exist
- See Also:
IDeviceCapable.getTargetCap(java.lang.String)
-
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
-
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
-
appendIntegerState
public JDFIntegerState appendIntegerState(java.lang.String nam)
appends an IntegerState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended IntegerState- Returns:
- JDFIntegerState: the newly appended IntegerState
-
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
-
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
-
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
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
-
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
-
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
-
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
-
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
-
getEnumerationState
public JDFEnumerationState getEnumerationState(java.lang.String nam)
gets an existing EnumerationState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended EnumerationState- Returns:
- JDFEnumerationState: the existing EnumerationState
-
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
-
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
-
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
-
getState
public JDFAbstractState getState(java.lang.String nam)
gets an existing State with @Name="name"- Parameters:
nam- the Name attribute of the newly appended StringState- 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
-
-