|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.tom.primitive.PrimitiveValue
public class PrimitiveValue
TypedObjectNode
that represents a typed primitive value, e.g. an XML text node or an XML attribute value with
type information.
TODO Should the aspect of textual representation of the value really be reflected here?
BaseType
Constructor Summary | |
---|---|
PrimitiveValue(Object value)
Deprecated. |
|
PrimitiveValue(Object value,
PrimitiveType type)
|
|
PrimitiveValue(Object value,
String textValue,
PrimitiveType type)
Creates a new PrimitiveValue instance. |
|
PrimitiveValue(String value,
PrimitiveType type)
|
Method Summary | |
---|---|
int |
compareTo(PrimitiveValue o)
|
boolean |
equals(Object o)
|
String |
getAsText()
Returns the text representation of the value. |
PrimitiveType |
getType()
Returns the type of the value. |
Object |
getValue()
Returns the canonical object representation of the value. |
int |
hashCode()
|
static Pair<Object,Object> |
makeComparable(Object value1,
Object value2)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveValue(Object value, String textValue, PrimitiveType type) throws IllegalArgumentException
PrimitiveValue
instance.
value
- object value, must not be null
and correspond to typetextValue
- textual representation of the value, can be null
(auto-generated from value)type
- primitive type, must not be null
IllegalArgumentException
public PrimitiveValue(Object value, PrimitiveType type) throws IllegalArgumentException
IllegalArgumentException
public PrimitiveValue(String value, PrimitiveType type) throws IllegalArgumentException
value
- type
-
IllegalArgumentException
@Deprecated public PrimitiveValue(Object value) throws IllegalArgumentException
value
-
IllegalArgumentException
Method Detail |
---|
public Object getValue()
null
public String getAsText()
null
public PrimitiveType getType()
null
public int compareTo(PrimitiveValue o)
compareTo
in interface Comparable<PrimitiveValue>
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public static Pair<Object,Object> makeComparable(Object value1, Object value2) throws IllegalArgumentException
value1
- value2
-
IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |