Package org.cip4.jdflib.resource
Class JDFResource.PartitionGetter
- java.lang.Object
-
- org.cip4.jdflib.resource.PartitionGetter
-
- org.cip4.jdflib.resource.JDFResource.PartitionGetter
-
- Enclosing class:
- JDFResource
@Deprecated public class JDFResource.PartitionGetter extends PartitionGetter
Deprecated.- use the local file type
-
-
Constructor Summary
Constructors Constructor Description PartitionGetter()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JDFResourceaddPartition(JDFResource.EnumPartIDKey partType, java.lang.String value)Deprecated.JDFResourcegetCreatePartition(JDFAttributeMap partMap, VString vPartKeys)Deprecated.Recursively adds the partition leaves defined in partMapprotected JDFResourcegetDeepPart(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)Deprecated.Gets a matching part from somewhere down there,
returns the closest ancestor of all matching elements within the target vectorJDFResourcegetPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)Deprecated.Gets the first part that matches mAttributeVJDFAttributeMapgetPartitionMaps(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage)Deprecated.Gets the vector of parts (resource leaves or nodes) that match mAttributeVElementgetPartitionVector(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)Deprecated.Gets the vector of parts (resource leaves or nodes) that match mAttributeVElementgetPartitionVector(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage)Deprecated.Gets the vector of parts (resource leaves or nodes) that match mAttributebooleanisFollowIdentical()Deprecated.Getter for followIdentical attribute.voidsetFollowIdentical(boolean followIdentical)Deprecated.Setter for followIdentical attribute.voidsetStrictPartVersion(boolean strictPartVersion)Deprecated.if set to true, partversion will only match if the string matches exactly
if set to false (the default) partversions will match if tokens overlapjava.lang.StringtoString()Deprecated.-
Methods inherited from class org.cip4.jdflib.resource.PartitionGetter
createPartitions, fillSparse, isAlwaysStrictPartVersion, isStrictPartVersion, reorderPartitions, setAlwaysStrictPartVersion
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classPartitionGetter- See Also:
Object.toString()
-
isFollowIdentical
public boolean isFollowIdentical()
Deprecated.Description copied from class:PartitionGetterGetter for followIdentical attribute.- Overrides:
isFollowIdenticalin classPartitionGetter- Returns:
- the followIdentical
-
setFollowIdentical
public void setFollowIdentical(boolean followIdentical)
Deprecated.Description copied from class:PartitionGetterSetter for followIdentical attribute.- Overrides:
setFollowIdenticalin classPartitionGetter- Parameters:
followIdentical- the followIdentical to set
-
getPartitionVector
public VElement getPartitionVector(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage)
Deprecated.Description copied from class:PartitionGetterGets the vector of parts (resource leaves or nodes) that match mAttribute- Overrides:
getPartitionVectorin classPartitionGetter- Parameters:
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 specified- Returns:
- VElement - the vector of matching resource leaves or nodes
-
getPartitionMaps
public VJDFAttributeMap getPartitionMaps(VJDFAttributeMap vm, JDFResource.EnumPartUsage partUsage)
Deprecated.Description copied from class:PartitionGetterGets the vector of parts (resource leaves or nodes) that match mAttribute- Overrides:
getPartitionMapsin classPartitionGetter- Parameters:
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 specified- Returns:
- VElement - the vector of matching resource leaves or nodes
-
getPartitionVector
public VElement getPartitionVector(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
Deprecated.Description copied from class:PartitionGetterGets the vector of parts (resource leaves or nodes) that match mAttribute- Overrides:
getPartitionVectorin classPartitionGetter- Parameters:
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 specified- Returns:
- VElement - the vector of matching resource leaves or nodes
-
getPartition
public JDFResource getPartition(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
Deprecated.Description copied from class:PartitionGetterGets the first part that matches mAttribute- Overrides:
getPartitionin classPartitionGetter- Parameters:
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 specified- Returns:
- JDFResource: the first matching resource leaf or node
-
getDeepPart
protected JDFResource getDeepPart(JDFAttributeMap m, JDFResource.EnumPartUsage partUsage)
Deprecated.Description copied from class:PartitionGetterGets a matching part from somewhere down there,
returns the closest ancestor of all matching elements within the target vector- Overrides:
getDeepPartin classPartitionGetter- Parameters:
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 specified- Returns:
- the first found matching resource node or leaf
-
getCreatePartition
public JDFResource getCreatePartition(JDFAttributeMap partMap, VString vPartKeys)
Deprecated.Description copied from class:PartitionGetterRecursively adds the partition leaves defined in partMap- Overrides:
getCreatePartitionin classPartitionGetter- Parameters:
partMap- the map of part keysvPartKeys- the vector of partIDKeys strings of the resource. If empty (the default), the Resource PartIDKeys attribute is used- Returns:
- JDFResource the last created partition leaf
-
addPartition
public JDFResource addPartition(JDFResource.EnumPartIDKey partType, java.lang.String value)
Deprecated.
-
setStrictPartVersion
public void setStrictPartVersion(boolean strictPartVersion)
Deprecated.Description copied from class:PartitionGetterif set to true, partversion will only match if the string matches exactly
if set to false (the default) partversions will match if tokens overlap- Overrides:
setStrictPartVersionin classPartitionGetter
-
-