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:
Serializable,Cloneable,IDeviceCapable,IStreamWriter,Element,ElementTraversal,EventTarget,Node,NodeList,TypeInfo
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.cip4.jdflib.auto.JDFAutoDeviceCap
JDFAutoDeviceCap.EnumCombinedMethod, JDFAutoDeviceCap.EnumExecutionPolicy, JDFAutoDeviceCap.EnumTypeOrderNested 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.eUnitNested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.MultiAttributeComparator, KElement.SimpleElementNameComparator, KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator -
Field Summary
FieldsFields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURIFields inherited from class org.apache.xerces.dom.ElementImpl
attributes, nameFields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocumentFields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSiblingFields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODEFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEFields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION -
Constructor Summary
ConstructorsConstructorDescriptionJDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName) Constructor for JDFDeviceCapJDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) Constructor for JDFDeviceCapJDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) Constructor for JDFDeviceCap -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.appendBooleanState(String nam) appends a BooleanState with @Name="name"appends a NumberState with @Name="name"appendIntegerState(String nam) appends an IntegerState with @Name="name"appendNameState(String nam) appends a NameState with @Name="name"appendStringState(String nam) appends a StringState with @Name="name"voidcreateModuleCaps(String includeNameExpression) creates and links devcaps to modulesfinal XMLDocgetBadJDFInfo(JDFNode jdfRoot, JDFBaseDataTypes.EnumFitsValue testlists, JDFElement.EnumValidationLevel level) Composes a BugReport in XML form for the given JDFNode 'jdfRoot'.getBooleanState(String nam) gets an existing BooleanState with @Name="name"(9.2) get CombinedMethod attributeCombinedMethodgets a NumberState with @Name="name", appends it if it does not existgets a EnumerationState with @Name="name", appends it if it does not existgets an IntegerState with @Name="name", appends it if it does not yet existgetCreateNameState(String nam) gets a NameState with @Name="name", appends it if it does not existgets a StringState with @Name="name", appends it if it does not yet existgetDevCapsByName(String devCapsName, JDFAutoDevCaps.EnumContext context, JDFResourceLink.EnumUsage linkUsage, JDFNode.EnumProcessUsage processUsage, int iSkip) get a DevCaps element by name and further restrictions.gets an existing EnumerationState with @Name="name"final 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)getIntegerState(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'.getMatchingTypeNodeVector(JDFNode testRoot) test whether a given node has the corect Types and Type Attributestatic JDFMessageServicegetMessageServiceForJMFType(JDFMessage m, JDFResponse knownMessagesResp) final VStringgetNameState(String nam) gets an existing NameState with @Name="name"getNumberState(String nam) gets an existing NumberState with @Name="name"gets an existing State with @Name="name"get all direct state elements ofgetStringState(String nam) gets an existing StringState with @Name="name"getTargetCap(String id) get the target JDFTerm referenced by idprotected ElementInfoGets of this string attributeTypeExpressionif it exists, otherwise returns the literal string defined in TypesbooleanbooleanbooleanmatchesType(JDFNode testRoot, boolean bLocal) test whether a given node has the corect Types and Type AttributevoidsetCombinedMethod(Vector vMethod) set attributeCombinedMethodto an individual methodvoidset 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) toString()toString - StringRepresentation of JDFNodeMethods 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, setTypesMethods 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, write2DirMethods inherited from class org.cip4.jdflib.core.KElement
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendAttribute, appendAttributes, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildRelativeXPath, buildXPath, buildXPath, buildXPath, cleanup, clearNSMap, clone, copyAttribute, copyAttribute, copyAttribute, copyAttribute, copyElement, copyElements, copyXPathValue, createRoot, deleteNode, ensureCase, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName, fitsName_KElement, flush, generateDotID, getAttribute, getAttribute, getAttribute, getAttribute_KElement, getAttribute_KElement, getAttributeArray_KElement, getAttributeIgnoreCase, getAttributeMap, getAttributeMap_KElement, getAttributeRaw, getAttributeVector, getAttributeVector_KElement, getBoolAttribute, getCData, getChildArray, getChildArray_KElement, getChildArrayByClass, getChildArrayByClass_KElement, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector, getChildElementVector, getChildElementVector_KElement, getChildFromList, getChildFromList, getChildList, getChildList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByClass, getChildrenByTagName, getChildrenByTagName_KElement, getChildrenFromList, getChildrenIgnoreList, getChildrenWithAttribute, getChildWithAttribute, getChildWithAttribute, getCreateChildWithAttribute, getCreateElement, getCreateElement, getCreateElement_KElement, getCreateXPathElement, getDeepElement, getDeepParent, getDeepParent, getDeepParentChild, getDeepParentNotName, getDocRoot, getDOMAttr, getElement, getElement_KElement, getElementByClass, getElementHashMap, getElementsByTagName_KElement, getFirstChildElement, getFirstChildElement, getFirstChildElement, getFirstElementNode, 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, xmlnsPrefixMethods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setTypeMethods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttributeNS, isEqualNode, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeDataMethods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildrenMethods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSiblingMethods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserDataMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface org.cip4.jdflib.ifaces.IDeviceCapable
getActionPool, getTestPoolMethods 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 Details
-
FITS_TYPE
- See Also:
-
-
Constructor Details
-
JDFDeviceCap
Constructor for JDFDeviceCap- Parameters:
myOwnerDocument-qualifiedName-
-
JDFDeviceCap
public JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) Constructor for JDFDeviceCap- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-
-
JDFDeviceCap
public JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) Constructor for JDFDeviceCap- Parameters:
myOwnerDocument-myNamespaceURI-qualifiedName-myLocalName-
-
-
Method Details
-
getTheElementInfo
- Overrides:
getTheElementInfoin classJDFAutoDeviceCap- Returns:
- the elementinfo
-
toString
toString - StringRepresentation of JDFNode -
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
(9.2) get CombinedMethod attributeCombinedMethod- Overrides:
getCombinedMethodin classJDFAutoDeviceCap- Returns:
- Vector of the enumerations
-
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
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
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
creates and links devcaps to modules- Parameters:
includeNameExpression- regexp of names to include
-
setDefaultsFromCaps
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
get all direct state elements of- Returns:
- the vector of state elements
-
getDevCapsByName
public JDFDevCaps getDevCapsByName(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
set attributeCombinedMethodto an individual method- Parameters:
method- the individual combined method to set
-
setCombinedMethod
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
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:
-
appendBooleanState
appends a BooleanState with @Name="name"- Parameters:
nam- the name attribute of the newly appended BooleanState- Returns:
- JDFBooleanState: the newly appended BooleanState
-
appendEnumerationState
appends a NumberState with @Name="name"- Parameters:
nam- the name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the newly appended NumberState
-
appendIntegerState
appends an IntegerState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended IntegerState- Returns:
- JDFIntegerState: the newly appended IntegerState
-
appendNameState
appends a NameState with @Name="name"- Parameters:
nam- the name attribute of the newly appended NameState- Returns:
- JDFNameState: the newly appended NameState
-
appendStringState
appends a StringState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended StringState- Returns:
- JDFStringState: the newly appended StringState
-
getBooleanState
gets an existing BooleanState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended BooleanState- Returns:
- JDFBooleanState: the existing BooleanState
-
getCreateBooleanState
gets a NumberState with @Name="name", appends it if it does not exist- Parameters:
nam- the name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the existing or newly appended NumberState
-
getCreateEnumerationState
gets a EnumerationState with @Name="name", appends it if it does not exist- Parameters:
nam- the name attribute of the newly appended EnumerationState- Returns:
- JDFEnumerationState the existing or newly appended EnumerationState
-
getCreateIntegerState
gets an IntegerState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the name attribute of the newly appended IntegerState- Returns:
- JDFIntegerState: the existing or newly appended IntegerState
-
getCreateNameState
gets a NameState with @Name="name", appends it if it does not exist- Parameters:
nam- the name attribute of the newly appended NameState- Returns:
- JDFNameState: the existing or newly appended NameState
-
getCreateStringState
gets a StringState with @Name="name", appends it if it does not yet exist- Parameters:
nam- the Name attribute of the newly appended StringState- Returns:
- JDFStringState: the existing or newly appended StringState
-
getEnumerationState
gets an existing EnumerationState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended EnumerationState- Returns:
- JDFEnumerationState: the existing EnumerationState
-
getIntegerState
gets an existing IntegerState with @Name="name"- Parameters:
nam- the name attribute of the newly appended IntegerState- Returns:
- JDFIntegerState: the existing IntegerState
-
getNameState
gets an existing NameState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended NameState- Returns:
- JDFNameState: the existing NameState
-
getNumberState
gets an existing NumberState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended NumberState- Returns:
- JDFNumberState: the existing NumberState
-
getState
gets an existing State with @Name="name"- Parameters:
nam- the Name attribute of the newly appended StringState- Returns:
- JDFStringState: the existing StringState
-
getStringState
gets an existing StringState with @Name="name"- Parameters:
nam- the Name attribute of the newly appended StringState- Returns:
- JDFStringState: the existing StringState
-