public class OrderedPairManager extends java.lang.Object implements FormatManager<OrderedPair>
Constructor and Description |
---|
OrderedPairManager() |
Modifier and Type | Method and Description |
---|---|
OrderedPair |
convert(java.lang.String s)
Converts the given String to an object of the type processed by this
FormatManager.
|
Indirect<OrderedPair> |
convertIndirect(java.lang.String s)
Converts the given String to an Indirect containing an object of the type
processed by this FormatManager.
|
ObjectContainer<OrderedPair> |
convertObjectContainer(java.lang.String s)
Converts the given String to an ObjectContainer containing an object of
the type processed by this FormatManager.
|
boolean |
equals(java.lang.Object o) |
FormatManager<?> |
getComponentManager()
Returns null, as this FormatManager does not have a component.
|
java.lang.String |
getIdentifierType()
The String used to refer to this format in files like the variable
definition file.
|
java.lang.Class<OrderedPair> |
getManagedClass()
The Class that this FormatManager can convert or unconvert.
|
int |
hashCode() |
java.lang.String |
unconvert(OrderedPair op)
"Unconverts" the object (converts the object to a "serializable" String
format that can be reinterpreted by the convert* methods).
|
public OrderedPair convert(java.lang.String s)
convert
in interface FormatManager<OrderedPair>
s
- The input String which should be converted into the
appropriate objectpcgen.rules.format.FormatManager#convert(java.lang.String)
public Indirect<OrderedPair> convertIndirect(java.lang.String s)
convertIndirect
in interface FormatManager<OrderedPair>
s
- The input String which should be converted into the
appropriate objectpcgen.rules.format.FormatManager#convertIndirect(java.lang.String)
public ObjectContainer<OrderedPair> convertObjectContainer(java.lang.String s)
convertObjectContainer
in interface FormatManager<OrderedPair>
s
- The String to be converted into an ObjectContainer which
contains zero or more objects of the type of object upon which
this FormatManager operatespcgen.rules.format.FormatManager#convertObjectContainer(java.lang.String)
public java.lang.String unconvert(OrderedPair op)
unconvert
in interface FormatManager<OrderedPair>
op
- The object to be converted into a human-readable serialized
formpcgen.rules.format.FormatManager#unconvert(java.lang.Object)
public java.lang.Class<OrderedPair> getManagedClass()
getManagedClass
in interface FormatManager<OrderedPair>
pcgen.rules.format.FormatManager#getManagedClass()
public java.lang.String getIdentifierType()
getIdentifierType
in interface FormatManager<OrderedPair>
pcgen.rules.format.FormatManager#getIdentifierType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public FormatManager<?> getComponentManager()
getComponentManager
in interface FormatManager<OrderedPair>
FormatManager.getComponentManager()