|
||||||||||
| 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.pool.JDFPool
org.cip4.jdflib.pool.JDFResourceLinkPool
public class JDFResourceLinkPool
| 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.TypeInfo |
|---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
| Constructor Summary | |
|---|---|
JDFResourceLinkPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
Constructor for JDFResourceLinkPool |
|
JDFResourceLinkPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
Constructor for JDFResourceLinkPool |
|
JDFResourceLinkPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
String myLocalName)
Constructor for JDFResourceLinkPool |
|
| Method Summary | |
|---|---|
JDFResourceLink |
appendResource(JDFResource r,
boolean input,
boolean bForce)
Deprecated. |
HashSet<JDFElement> |
getAllRefs(HashSet<JDFElement> vDoneRefs,
boolean bRecurse)
get inter-resource linked resource ids |
VElement |
getInOutLinks(boolean bInOut,
boolean bLink,
String resName,
String resProcUsage)
Deprecated. use getInOutLinks with EnumUsage signature |
VElement |
getInOutLinks(JDFResourceLink.EnumUsage usage,
boolean bLink,
String resName,
JDFNode.EnumProcessUsage procUsage)
GetInOutLinks - get the links from the pool (input or output) default: GetInOutLinks(null, true, null, null) |
VElement |
getInOutLinksExtended(JDFResourceLink.EnumUsage usage,
boolean bLink,
String resName,
String procUsage)
getInOutLinksExtended - get the links from the pool (input or output) default: GetInOutLinks(null, true, null, null) |
JDFResourceLink |
getLink(JDFResource r,
JDFResourceLink.EnumUsage usage,
JDFNode.EnumProcessUsage processUsage)
getLink - get the resourcelink that resides in the ResourceLinkPool of this node and references the resource r default: getLink(r, EnumUsage.Input, null) |
VElement |
getLinkedResources(String resName,
JDFAttributeMap mLinkAtt,
JDFAttributeMap mResAtt,
boolean bFollowRefs)
Deprecated. - use namespace enabled version getLinkedResources(resName, mLinkAtt, mResAtt, bFollowRefs, null); |
VElement |
getLinkedResources(String resName,
JDFAttributeMap mLinkAtt,
JDFAttributeMap mResAtt,
boolean bFollowRefs,
String nameSpaceURI)
Get the linked resources matching some conditions default: GetLinkedResources(null, null, null, false) |
VElement |
getLinks(JDFAttributeMap mLinkAtt)
Deprecated. use getPoolChildren() |
VElement |
getLinks(String elementName,
String nameSpaceURI)
Deprecated. use getPoolChildren() |
VString |
getPartIDKeys()
get a vector of all part id keys linked |
VJDFAttributeMap |
getPartMapVector(boolean bComplete)
getPartMapVector - get the part map vector from the actual element |
VString |
getPartValues(JDFResource.EnumPartIDKey partType)
GetPartValues - get a list of the values for attribute partType within the leaves of all linked resources |
JDFResourceLink |
getPoolChild(int i,
String strName,
JDFAttributeMap mAttrib,
String nameSpaceURI)
get a child resource from the pool matching the parameters |
VElement |
getPoolChildren(String strName,
JDFAttributeMap mAttrib,
String nameSpaceURI)
Gets all children with the attribute name, mAttrib, nameSpaceURI out of the pool |
protected AttributeInfo |
getTheAttributeInfo()
|
protected ElementInfo |
getTheElementInfo()
|
VString |
getUnknownElements(boolean bIgnorePrivate,
int nMax)
return a vector of unknown element nodenames default: GetInvalidElements(true, 999999) |
JDFResourceLink |
linkResource(JDFResource r,
JDFResourceLink.EnumUsage usage,
JDFNode.EnumProcessUsage processUsage)
linkResource - link resource r to this link pool default: linkResource(r, usage, null) |
static VElement |
resourceVector(VElement linkVector,
String resType)
ResourceVector - convert a link vector to a resource vector |
String |
toString()
toString |
| Methods inherited from class org.cip4.jdflib.pool.JDFPool |
|---|
appendUniqueGeneric, appendUniqueGeneric, getPoolChildGeneric, getPoolChildrenGeneric |
| 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.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 |
|---|
public JDFResourceLinkPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
myOwnerDocument - qualifiedName -
public JDFResourceLinkPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
myOwnerDocument - myNamespaceURI - qualifiedName -
public JDFResourceLinkPool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
String myLocalName)
myOwnerDocument - myNamespaceURI - qualifiedName - myLocalName - | Method Detail |
|---|
protected AttributeInfo getTheAttributeInfo()
getTheAttributeInfo in class JDFElementprotected ElementInfo getTheElementInfo()
getTheElementInfo in class JDFElementpublic String toString()
toString in class JDFPoolObject.toString()@Deprecated public VElement getLinks(JDFAttributeMap mLinkAtt)
default: GetLinks(null)
mLinkAtt - the attributes to search for
@Deprecated
public VElement getLinks(String elementName,
String nameSpaceURI)
default: GetLinks(null, null)
elementName - Name of the Linked resourcenameSpaceURI - the namespace to search in
@Deprecated
public VElement getLinkedResources(String resName,
JDFAttributeMap mLinkAtt,
JDFAttributeMap mResAtt,
boolean bFollowRefs)
default: GetLinkedResources(null, null, null, false)
resName - type(Name) of the resource to getmLinkAtt - the link attribute to search formResAtt - attribute to search forbFollowRefs - if true search all HRefs and add them to the list
public VElement getLinkedResources(String resName,
JDFAttributeMap mLinkAtt,
JDFAttributeMap mResAtt,
boolean bFollowRefs,
String nameSpaceURI)
default: GetLinkedResources(null, null, null, false)
resName - type(Name) of the resource to getmLinkAtt - the link attribute to search formResAtt - attribute to search forbFollowRefs - if true search all HRefs and add them to the listnameSpaceURI -
@Deprecated
public VElement getInOutLinks(boolean bInOut,
boolean bLink,
String resName,
String resProcUsage)
default: GetInOutLinks(bInOut, true, JDFConstants.WILDCARD, JDFConstants.WILDCARD)
bInOut - what kind of links you want to have (true for input)bLink - if true, return the resource links. if false return the resourcesresName - type of the resource to get ( * for all)resProcUsage - process usage of the resource to get (* for all)
public VElement getInOutLinks(JDFResourceLink.EnumUsage usage,
boolean bLink,
String resName,
JDFNode.EnumProcessUsage procUsage)
default: GetInOutLinks(null, true, null, null)
usage - what kind of links you want to have (input, output). If null all are selected.bLink - if true, return the resource links. if false return the resourcesresName - name of the resource to get ( * for all)procUsage - process usage of the resource to get
public VElement getInOutLinksExtended(JDFResourceLink.EnumUsage usage,
boolean bLink,
String resName,
String procUsage)
default: GetInOutLinks(null, true, null, null)
usage - what kind of links you want to have (input, output). If null all are selected.bLink - if true, return the resource links. if false return the resourcesresName - name of the resource to get ( * for all)procUsage - process usage of the resource to get
public static VElement resourceVector(VElement linkVector,
String resType)
linkVector - vector to convertresType - kind of resType to add ( * for all)
@Deprecated
public JDFResourceLink appendResource(JDFResource r,
boolean input,
boolean bForce)
default: AppendResource(r, input, false)
r - the resource to appendinput - usage of the link (true = inout, false = output)bForce - if true create the link, even though it already exists - now ignored since it is useless
JDFException - if r is not in the same document as this
public JDFResourceLink getLink(JDFResource r,
JDFResourceLink.EnumUsage usage,
JDFNode.EnumProcessUsage processUsage)
default: getLink(r, EnumUsage.Input, null)
r - the resource you are searching a link forusage - usage of the link (input/output)processUsage - ProcessUsage of the link
public JDFResourceLink linkResource(JDFResource r,
JDFResourceLink.EnumUsage usage,
JDFNode.EnumProcessUsage processUsage)
default: linkResource(r, usage, null)
r - the resource to linkusage - usage of the linkprocessUsage - processUsage of the link, null if none
public VJDFAttributeMap getPartMapVector(boolean bComplete)
bComplete - if true, expand all parts defined in PartIDKeys
public VString getPartIDKeys()
public VString getPartValues(JDFResource.EnumPartIDKey partType)
partType - the attribute name you which to get the values
public VElement getPoolChildren(String strName,
JDFAttributeMap mAttrib,
String nameSpaceURI)
name, mAttrib, nameSpaceURI out of the pool
strName - name of the ChildmAttrib - a attribute to search fornameSpaceURI - the namespace uri
public JDFResourceLink getPoolChild(int i,
String strName,
JDFAttributeMap mAttrib,
String nameSpaceURI)
i - the index of the child, or -1 to make a new one.strName - the name of the elementmAttrib - the attribute of the elementnameSpaceURI - the namespace to search in
public VString getUnknownElements(boolean bIgnorePrivate,
int nMax)
default: GetInvalidElements(true, 999999)
getUnknownElements in class JDFElementbIgnorePrivate - used by JDFElement during the validationnMax - maximum size of the returned vector
public HashSet<JDFElement> getAllRefs(HashSet<JDFElement> vDoneRefs,
boolean bRecurse)
getAllRefs in class JDFElementvDoneRefs - (null, used for recursion)bRecurse - if true, also return recursively linked IDS
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||