|
||||||||||
| 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.JDFResourcePool
public class JDFResourcePool
| 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 | |
|---|---|
JDFResourcePool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
Constructor for JDFResourcePool |
|
JDFResourcePool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
Constructor for JDFResourcePool |
|
JDFResourcePool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
String myLocalName)
Constructor for JDFResourcePool |
|
| Method Summary | |
|---|---|
JDFResource |
appendResource(JDFResource res)
append an existing resource by moving it here |
JDFResource |
appendResource(String strName,
JDFResource.EnumResourceClass resClass,
String nameSpaceURI)
append a resource default: AppendResource(name, resClass, null) |
VString |
copyResource(JDFResource r,
JDFResource.EnumSpawnStatus copyStatus,
VJDFAttributeMap vParts,
String spawnID)
Deprecated. use JDFNode.copySpawnedResources |
HashSet<JDFElement> |
getAllRefs(HashSet<JDFElement> vDoneRefs,
boolean bRecurse)
get refElements |
static ElemInfoTable[] |
getLinkInfoTable()
gets the elemeinfotable for the resourcelinkpool based on this pool Note that the cardinality is not updated and that the pool should be used for version checks only |
JDFResource |
getPoolChild(int i,
String strName,
JDFAttributeMap mAttrib,
String nameSpaceURI)
Method getPoolChild get a child resource from the pool matching the parameters default: GetPoolChild(i, null, null, null) |
VElement |
getPoolChildren(String strName,
JDFAttributeMap mAttrib,
String nameSpaceURI)
Method GetPoolChildren Gets all children with the attribute name,mAttrib, nameSpaceURI out of the pool |
VString |
getResIds()
GetResIds - returns a set of all IDs of the resources that are in this pool |
JDFResource |
getResource(String strName,
int i,
String nameSpaceURI)
Method GetResource. |
JDFResource |
getResourceByID(String id)
returns a the resource with ID= id, if it is in this pool |
protected ElementInfo |
getTheElementInfo()
|
VString |
getUnknownElements(boolean bIgnorePrivate,
int nMax)
return a vector of unknown element nodenames default: GetUnknownElements(true, 99999999) |
VElement |
getUnlinkedResources()
get all completely unlinked resources |
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 JDFResourcePool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String qualifiedName)
myOwnerDocument - qualifiedName -
public JDFResourcePool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName)
myOwnerDocument - myNamespaceURI - qualifiedName -
public JDFResourcePool(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
String myNamespaceURI,
String qualifiedName,
String myLocalName)
myOwnerDocument - myNamespaceURI - qualifiedName - myLocalName - | Method Detail |
|---|
protected ElementInfo getTheElementInfo()
getTheElementInfo in class JDFElementpublic static ElemInfoTable[] getLinkInfoTable()
public String toString()
toString in class JDFPoolObject.toString()public VString getResIds()
public JDFResource getResource(String strName,
int i,
String nameSpaceURI)
default: GetResource(name, 0, JDFConstants.EMPTYSTRING)
strName - name of the resource to look fori - the index of the child, or -1 to create a new onenameSpaceURI - the namespace to search in
null if not foundpublic JDFResource appendResource(JDFResource res)
res - name of the resource to append
public JDFResource appendResource(String strName,
JDFResource.EnumResourceClass resClass,
String nameSpaceURI)
default: AppendResource(name, resClass, null)
strName - name of the resource to appendresClass - class of the resource to appendnameSpaceURI - the namespace for the resource
@Deprecated
public VString copyResource(JDFResource r,
JDFResource.EnumSpawnStatus copyStatus,
VJDFAttributeMap vParts,
String spawnID)
default: copyResource(r, null, new VJDFAttributeMap(), null)
r - the resource to copy into thiscopyStatus - rw or rovParts - part map vector of the partitions to copyspawnID - the spawnID of the spawning that initiated the copy
public VElement getPoolChildren(String strName,
JDFAttributeMap mAttrib,
String nameSpaceURI)
strName - - name of the childmAttrib - - a attribute to search fornameSpaceURI -
public JDFResource getPoolChild(int i,
String strName,
JDFAttributeMap mAttrib,
String nameSpaceURI)
default: GetPoolChild(i, null, null, null)
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: GetUnknownElements(true, 99999999)
getUnknownElements in class JDFElementbIgnorePrivate - ignores private elements. !Must be here to provide correct validationnMax - - max entries in vector
public JDFResource getResourceByID(String id)
id, if it is in this pool
id - the ID of the requested resource
public HashSet<JDFElement> getAllRefs(HashSet<JDFElement> vDoneRefs,
boolean bRecurse)
getAllRefs in class JDFElementvDoneRefs - used internally for recursionbRecurse - if true, also return recursively linked IDs
public VElement getUnlinkedResources()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||