public class PartitionGetter
extends java.lang.Object
| Constructor and Description |
|---|
PartitionGetter(JDFResource jdfResource) |
| Modifier and Type | Method and Description |
|---|---|
VElement |
createPartitions(VJDFAttributeMap vPartMap,
VString vPartIDKeys)
Recursively adds the partition leaves defined in vPartMap
|
JDFResource |
getCreatePartition(JDFAttributeMap partMap,
VString vPartKeys)
Recursively adds the partition leaves defined in partMap
|
protected JDFResource |
getDeepPart(JDFAttributeMap m,
JDFResource.EnumPartUsage partUsage)
Gets a matching part from somewhere down there,
returns the closest ancestor of all matching elements within the target vector |
JDFResource |
getPartition(JDFAttributeMap m,
JDFResource.EnumPartUsage partUsage)
Gets the first part that matches mAttribute
|
VJDFAttributeMap |
getPartitionMaps(VJDFAttributeMap vm,
JDFResource.EnumPartUsage partUsage)
Gets the vector of parts (resource leaves or nodes) that match mAttribute
|
VElement |
getPartitionVector(JDFAttributeMap m,
JDFResource.EnumPartUsage partUsage)
Gets the vector of parts (resource leaves or nodes) that match mAttribute
|
VElement |
getPartitionVector(VJDFAttributeMap vm,
JDFResource.EnumPartUsage partUsage)
Gets the vector of parts (resource leaves or nodes) that match mAttribute
|
boolean |
isFollowIdentical()
Getter for followIdentical attribute.
|
boolean |
reorderPartitions(java.util.List<java.lang.String> newPartIDKeys)
refactor a resource to new partIDKeys
|
void |
setFollowIdentical(boolean followIdentical)
Setter for followIdentical attribute.
|
void |
setStrictPartVersion(boolean strictPartVersion)
if set to true, partversion will only match if the string matches exactly
if set to false (the default) partversions will match if tokens overlap |
java.lang.String |
toString() |
public PartitionGetter(JDFResource jdfResource)
jdfResource - TODOpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean isFollowIdentical()
public void setFollowIdentical(boolean followIdentical)
followIdentical - the followIdentical to setpublic VElement getPartitionVector(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage)
vm - the map of key-value partitions (where key - PartIDKey, value - its value)partUsage - also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specifiedpublic VJDFAttributeMap getPartitionMaps(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage)
vm - the map of key-value partitions (where key - PartIDKey, value - its value)partUsage - also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specifiedpublic VElement getPartitionVector(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
m - the map of key-value partitions (where key - PartIDKey, value - its value)partUsage - also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specifiedpublic JDFResource getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
m - the map of key-value partitions (where key - PartIDKey, value - its value)partUsage - also accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specifiedprotected JDFResource getDeepPart(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
m - map of attributes that should fitpartUsage - lso accept nodes that are are not completely specified in the partmap, e.g. if partitioned by run, RunPage and only Run is specifiedpublic JDFResource getCreatePartition(JDFAttributeMap partMap, VString vPartKeys)
partMap - the map of part keysvPartKeys - the vector of partIDKeys strings of the resource. If empty (the default), the Resource PartIDKeys attribute is usedJDFException - if there are in the partMap not matching partitionsJDFException - if there is an attempt to fill non-matching partIDKeysJDFException - if by adding of last partition key there is either non-continuous partmap or left more than one keypublic boolean reorderPartitions(java.util.List<java.lang.String> newPartIDKeys)
public VElement createPartitions(VJDFAttributeMap vPartMap, VString vPartIDKeys)
vPartMap - the vector of maps of part keysvPartIDKeys - the vector of partIDKeys strings of the resource. If empty (the default) the Resource PartIDKeys attribute is usedJDFException - if there are in the partMap not matching partitionsJDFException - if there is an attempt to fill non-matching partIDKeysJDFException - if by adding of last partition key there is either non-continuous partmap or left more than one keypublic void setStrictPartVersion(boolean strictPartVersion)
strictPartVersion -