Package org.cip4.jdflib.node
Class NodeIdentifier
- java.lang.Object
-
- org.cip4.jdflib.node.NodeIdentifier
-
- All Implemented Interfaces:
IMatches,INodeIdentifiable
public final class NodeIdentifier extends java.lang.Object implements IMatches, INodeIdentifiable
class to identify nodes even after parsing, e.g in hashmaps
uses JobID, JobPartID and the partMapVector as identifier
-
-
Constructor Summary
Constructors Constructor Description NodeIdentifier()NodeIdentifier(java.lang.String jobID, java.lang.String jobPartID, VJDFAttributeMap partMapVector)NodeIdentifier(INodeIdentifiable ni)creates a NodeIdentifier from a given QueueEntry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object inObject)NodeIdentifiergetIdentifier()formalism so zhat we can use this as aINodeIdentifiablejava.lang.StringgetJobID()java.lang.StringgetJobPartID()VJDFAttributeMapgetPartMapVector()inthashCode()booleanmatches(java.lang.Object o)return true if the nodeIdentifier matches this, i.e.voidsetIdentifier(NodeIdentifier n)sets a NodeIdentifier to a given JDF node identifier uses the AncestorPool or NodeInfo or output resource in that sequence to determine the partmapvoidsetTo(java.lang.String jobID, java.lang.String jobPartID, VJDFAttributeMap partMapVector)voidsetTo(INodeIdentifiable qe)sets a NodeIdentifier to a given JDF nodejava.lang.StringtoString()
-
-
-
Constructor Detail
-
NodeIdentifier
public NodeIdentifier(java.lang.String jobID, java.lang.String jobPartID, VJDFAttributeMap partMapVector)- Parameters:
jobID-jobPartID-partMapVector-
-
NodeIdentifier
public NodeIdentifier()
-
NodeIdentifier
public NodeIdentifier(INodeIdentifiable ni)
creates a NodeIdentifier from a given QueueEntry- Parameters:
ni- the INodeIdentifiable to set this to
-
-
Method Detail
-
setTo
public void setTo(java.lang.String jobID, java.lang.String jobPartID, VJDFAttributeMap partMapVector)- Parameters:
jobID-jobPartID-partMapVector-
-
setIdentifier
public void setIdentifier(NodeIdentifier n)
sets a NodeIdentifier to a given JDF node identifier uses the AncestorPool or NodeInfo or output resource in that sequence to determine the partmap- Specified by:
setIdentifierin interfaceINodeIdentifiable- Parameters:
n-
-
setTo
public void setTo(INodeIdentifiable qe)
sets a NodeIdentifier to a given JDF node- Parameters:
qe-
-
equals
public boolean equals(java.lang.Object inObject)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
matches
public boolean matches(java.lang.Object o)
return true if the nodeIdentifier matches this, i.e. if all parameters match or o has matching wildcards, or o==null
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
getJobID
public java.lang.String getJobID()
- Returns:
-
getJobPartID
public java.lang.String getJobPartID()
- Returns:
-
getPartMapVector
public VJDFAttributeMap getPartMapVector()
- Returns:
-
getIdentifier
public NodeIdentifier getIdentifier()
formalism so zhat we can use this as aINodeIdentifiable- Specified by:
getIdentifierin interfaceINodeIdentifiable- Returns:
NodeIdentifierthe nodeidentifier that matches this- See Also:
INodeIdentifiable.getIdentifier()
-
-