public class BooleanManager extends java.lang.Object implements FormatManager<java.lang.Boolean>
| Constructor and Description |
|---|
BooleanManager() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
convert(java.lang.String s)
Converts the given String to an object of the type processed by this
FormatManager.
|
Indirect<java.lang.Boolean> |
convertIndirect(java.lang.String s)
Converts the given String to an Indirect containing an object of the type
processed by this FormatManager.
|
ObjectContainer<java.lang.Boolean> |
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<java.lang.Boolean> |
getManagedClass()
The Class that this FormatManager can convert or unconvert.
|
int |
hashCode() |
java.lang.String |
unconvert(java.lang.Boolean s)
"Unconverts" the object (converts the object to a "serializable" String
format that can be reinterpreted by the convert* methods).
|
public java.lang.Boolean convert(java.lang.String s)
convert in interface FormatManager<java.lang.Boolean>s - The input String which should be converted into the
appropriate objectpcgen.rules.format.FormatManager#convert(java.lang.String)public Indirect<java.lang.Boolean> convertIndirect(java.lang.String s)
convertIndirect in interface FormatManager<java.lang.Boolean>s - The input String which should be converted into the
appropriate objectpcgen.rules.format.FormatManager#convertIndirect(java.lang.String)public ObjectContainer<java.lang.Boolean> convertObjectContainer(java.lang.String s)
convertObjectContainer in interface FormatManager<java.lang.Boolean>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(java.lang.Boolean s)
unconvert in interface FormatManager<java.lang.Boolean>s - The object to be converted into a human-readable serialized
formpcgen.rules.format.FormatManager#unconvert(java.lang.Object)public java.lang.Class<java.lang.Boolean> getManagedClass()
getManagedClass in interface FormatManager<java.lang.Boolean>pcgen.rules.format.FormatManager#getManagedClass()public java.lang.String getIdentifierType()
getIdentifierType in interface FormatManager<java.lang.Boolean>pcgen.rules.format.FormatManager#getIdentifierType()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic FormatManager<?> getComponentManager()
getComponentManager in interface FormatManager<java.lang.Boolean>FormatManager.getComponentManager()