|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
public class JDFDeviceCap
| Nested Class Summary | |
|---|---|
static class |
JDFDeviceCap.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 |
| Nested classes/interfaces inherited from class org.cip4.jdflib.core.KElement |
|---|
KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator |
| Field Summary | |
|---|---|
static String |
FITS_TYPE
|
| 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.TypeInfo |
|---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
| Constructor Summary | |
|---|---|
JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
Constructor for JDFDeviceCap |
|
JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
Constructor for JDFDeviceCap |
|
JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
String myLocalName)
Constructor for JDFDeviceCap |
|
| Method Summary | |
|---|---|
static KElement |
actionPoolReport(IDeviceCapable devCapable,
JDFElement jdfRootorMess,
KElement parentReport)
actionPoolReport - tests if the JDFNode fits Actions from ActionPool of this DeviceCap. |
JDFBooleanState |
appendBooleanState(String nam)
appends a BooleanState with @Name="name" |
JDFEnumerationState |
appendEnumerationState(String nam)
appends a NumberState with @Name="name" |
JDFIntegerState |
appendIntegerState(String nam)
appends an IntegerState with @Name="name" |
JDFNameState |
appendNameState(String nam)
appends a NameState with @Name="name" |
JDFStringState |
appendStringState(String nam)
appends a StringState with @Name="name" |
void |
createModuleCaps(String includeNameExpression)
creates and links devcaps to modules |
XMLDoc |
getBadJDFInfo(JDFNode jdfRoot,
JDFBaseDataTypes.EnumFitsValue testlists,
JDFElement.EnumValidationLevel level)
Composes a BugReport in XML form for the given JDFNode 'jdfRoot'. |
JDFBooleanState |
getBooleanState(String nam)
gets an existing BooleanState with @Name="name" |
Vector |
getCombinedMethod()
(9.2) get CombinedMethod attribute CombinedMethod |
JDFBooleanState |
getCreateBooleanState(String nam)
gets a NumberState with @Name="name", appends it if it does not exist |
JDFEnumerationState |
getCreateEnumerationState(String nam)
gets a EnumerationState with @Name="name", appends it if it does not exist |
JDFIntegerState |
getCreateIntegerState(String nam)
gets an IntegerState with @Name="name", appends it if it does not yet exist |
JDFNameState |
getCreateNameState(String nam)
gets a NameState with @Name="name", appends it if it does not exist |
JDFStringState |
getCreateStringState(String nam)
gets a StringState with @Name="name", appends it if it does not yet exist |
JDFDevCaps |
getDevCapsByName(String devCapsName,
JDFAutoDevCaps.EnumContext context,
JDFResourceLink.EnumUsage linkUsage,
JDFNode.EnumProcessUsage processUsage,
int iSkip)
get a DevCaps element by name and further restrictions. |
JDFEnumerationState |
getEnumerationState(String nam)
gets an existing EnumerationState with @Name="name" |
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) |
JDFIntegerState |
getIntegerState(String nam)
gets an existing IntegerState with @Name="name" |
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'. |
VElement |
getMatchingTypeNodeVector(JDFNode testRoot)
test whether a given node has the corect Types and Type Attribute |
static JDFMessageService |
getMessageServiceForJMFType(JDFMessage m,
JDFResponse knownMessagesResp)
|
VString |
getNamePathVector()
|
JDFNameState |
getNameState(String nam)
gets an existing NameState with @Name="name" |
JDFNumberState |
getNumberState(String nam)
gets an existing NumberState with @Name="name" |
JDFAbstractState |
getState(String nam)
gets an existing State with @Name="name" |
VElement |
getStates()
get all direct state elements of |
JDFStringState |
getStringState(String nam)
gets an existing StringState with @Name="name" |
ICapabilityElement |
getTargetCap(String id)
get the target JDFTerm referenced by id |
protected ElementInfo |
getTheElementInfo()
|
String |
getTypeExpression()
Gets of this string attribute TypeExpression if it exists, otherwise returns the literal string defined in Types |
boolean |
isIgnoreDefaults()
|
boolean |
isIgnoreExtensions()
|
boolean |
matchesType(JDFNode testRoot,
boolean bLocal)
test whether a given node has the corect Types and Type Attribute |
void |
setCombinedMethod(JDFAutoDeviceCap.EnumCombinedMethod method)
set attribute CombinedMethod to an individual method |
void |
setCombinedMethod(Vector vMethod)
set attribute CombinedMethod to an individual method |
boolean |
setDefaultsFromCaps(JDFNode node,
boolean bLocal,
boolean bAll)
set the defaults of node to the values defined in the child DevCap and State elements |
void |
setIgnoreDefaults(boolean _ignoreDefaults)
|
void |
setIgnoreExtensions(boolean _ignoreExtensions)
|
String |
toString()
toString - StringRepresentation of JDFNode |
| 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.IDeviceCapable |
|---|
getActionPool, getTestPool |
| 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 |
| Field Detail |
|---|
public static final String FITS_TYPE
| Constructor Detail |
|---|
public JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
myOwnerDocument - qualifiedName -
public JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
myOwnerDocument - myNamespaceURI - qualifiedName -
public JDFDeviceCap(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
String myLocalName)
myOwnerDocument - myNamespaceURI - qualifiedName - myLocalName - | Method Detail |
|---|
protected ElementInfo getTheElementInfo()
getTheElementInfo in class JDFAutoDeviceCappublic String toString()
toString in class JDFAutoDeviceCapObject.toString()public String getTypeExpression()
TypeExpression if it exists, otherwise returns the literal string defined in Types
getTypeExpression in class JDFAutoDeviceCappublic Vector getCombinedMethod()
CombinedMethod
getCombinedMethod in class JDFAutoDeviceCappublic final VString getNamePathVector()
getNamePathVector in interface IDeviceCapable
public final VElement getExecutableJDF(JDFNode jdfRoot,
JDFBaseDataTypes.EnumFitsValue testlists,
JDFElement.EnumValidationLevel level)
jdfRoot - the node we testtestlists - testlists that are specified for the State elements (FitsValue_Allowed or FitsValue_Present)level - validation level
public final XMLDoc getBadJDFInfo(JDFNode jdfRoot,
JDFBaseDataTypes.EnumFitsValue testlists,
JDFElement.EnumValidationLevel level)
null if there are no errors.
jdfRoot - the node to testtestlists - testlists that are specified for the State elements (FitsValue_Allowed or FitsValue_Present)level - validation level
public static XMLDoc getJMFInfo(JDFJMF jmfRoot,
JDFResponse knownMessagesResp,
JDFBaseDataTypes.EnumFitsValue testlists,
JDFElement.EnumValidationLevel level,
boolean ignoreExtensions)
null if there are no errors.
jmfRoot - the node to testknownMessagesResp - testlists - testlists that are specified for the State elements (FitsValue_Allowed or FitsValue_Present)level - validation levelignoreExtensions -
public static JDFMessageService getMessageServiceForJMFType(JDFMessage m,
JDFResponse knownMessagesResp)
m - the message to testknownMessagesResp - the Response that contains the relevant devcap fo the jmf
public boolean matchesType(JDFNode testRoot,
boolean bLocal)
testRoot - the JDF or JMF to testbLocal - if true, only check the root of this, else check children as well
public VElement getMatchingTypeNodeVector(JDFNode testRoot)
testRoot - the JDF or JMF to test
public static KElement actionPoolReport(IDeviceCapable devCapable,
JDFElement jdfRootorMess,
KElement parentReport)
null - there are no errors
jdfRoot - node to test
null there are no errors, JDFNode fits the ActionPool of this
DeviceCap and will be accepted by the device.
JDFException - if DeviceCap is invalid: ActionPool refers to the non-existent TestPool
JDFException - if DeviceCap is invalid: Action refers to the non-existent Testpublic void createModuleCaps(String includeNameExpression)
includeNameExpression - regexp of names to include
public boolean setDefaultsFromCaps(JDFNode node,
boolean bLocal,
boolean bAll)
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 existspublic VElement getStates()
public JDFDevCaps getDevCapsByName(String devCapsName,
JDFAutoDevCaps.EnumContext context,
JDFResourceLink.EnumUsage linkUsage,
JDFNode.EnumProcessUsage processUsage,
int iSkip)
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
public void setCombinedMethod(JDFAutoDeviceCap.EnumCombinedMethod method)
CombinedMethod to an individual method
method - the individual combined method to setpublic void setCombinedMethod(Vector vMethod)
CombinedMethod to an individual method
setCombinedMethod in class JDFAutoDeviceCapmethod - the individual combined method to setpublic boolean isIgnoreExtensions()
public void setIgnoreExtensions(boolean _ignoreExtensions)
_ignoreExtensions - the ignoreExtensions to setpublic boolean isIgnoreDefaults()
public void setIgnoreDefaults(boolean _ignoreDefaults)
_ignoreDefaults - the ignoreDefaults to setpublic ICapabilityElement getTargetCap(String id)
IDeviceCapable
getTargetCap in interface IDeviceCapableid - the @ID of the term
IDeviceCapable.getTargetCap(java.lang.String)public JDFBooleanState appendBooleanState(String nam)
nam - the name attribute of the newly appended BooleanState
public JDFEnumerationState appendEnumerationState(String nam)
nam - the name attribute of the newly appended NumberState
public JDFIntegerState appendIntegerState(String nam)
nam - the Name attribute of the newly appended IntegerState
public JDFNameState appendNameState(String nam)
nam - the name attribute of the newly appended NameState
public JDFStringState appendStringState(String nam)
nam - the Name attribute of the newly appended StringState
public JDFBooleanState getBooleanState(String nam)
nam - the Name attribute of the newly appended BooleanState
public JDFBooleanState getCreateBooleanState(String nam)
nam - the name attribute of the newly appended NumberState
public JDFEnumerationState getCreateEnumerationState(String nam)
nam - the name attribute of the newly appended EnumerationState
public JDFIntegerState getCreateIntegerState(String nam)
nam - the name attribute of the newly appended IntegerState
public JDFNameState getCreateNameState(String nam)
nam - the name attribute of the newly appended NameState
public JDFStringState getCreateStringState(String nam)
nam - the Name attribute of the newly appended StringState
public JDFEnumerationState getEnumerationState(String nam)
nam - the Name attribute of the newly appended EnumerationState
public JDFIntegerState getIntegerState(String nam)
nam - the name attribute of the newly appended IntegerState
public JDFNameState getNameState(String nam)
nam - the Name attribute of the newly appended NameState
public JDFNumberState getNumberState(String nam)
nam - the Name attribute of the newly appended NumberState
public JDFAbstractState getState(String nam)
nam - the Name attribute of the newly appended StringState
public JDFStringState getStringState(String nam)
nam - the Name attribute of the newly appended StringState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||