org.priha.core.values
Class BooleanValueImpl
java.lang.Object
org.priha.core.values.ValueImpl
org.priha.core.values.BooleanValueImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<ValueImpl>
public class BooleanValueImpl
- extends ValueImpl
- implements java.io.Serializable
- See Also:
- Serialized Form
Method Summary |
boolean |
getBoolean()
|
long |
getSize()
Returns the approximate size of this object in bytes. |
java.io.InputStream |
getStream()
By default, returns the inputstream of the String representation. |
java.lang.String |
getString()
|
int |
getType()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BooleanValueImpl
public BooleanValueImpl(boolean value)
BooleanValueImpl
public BooleanValueImpl(java.lang.String value)
BooleanValueImpl
public BooleanValueImpl(BooleanValueImpl value)
getType
public int getType()
getBoolean
public boolean getBoolean()
- Overrides:
getBoolean
in class ValueImpl
getStream
public java.io.InputStream getStream()
throws RepositoryException
- Description copied from class:
ValueImpl
- By default, returns the inputstream of the String representation.
- Overrides:
getStream
in class ValueImpl
- Throws:
RepositoryException
getString
public java.lang.String getString()
throws ValueFormatException,
java.lang.IllegalStateException,
RepositoryException
- Overrides:
getString
in class ValueImpl
- Throws:
ValueFormatException
java.lang.IllegalStateException
RepositoryException
toString
public java.lang.String toString()
- Overrides:
toString
in class ValueImpl
getSize
public long getSize()
- Description copied from class:
ValueImpl
- Returns the approximate size of this object in bytes. If not determinable,
returns -1;
- Overrides:
getSize
in class ValueImpl
- Returns: