public class PrimitiveXNode<T> extends XNode implements Serializable
KEY_CONTAINER_ID, KEY_OID, KEY_REFERENCE_DESCRIPTION, KEY_REFERENCE_FILTER, KEY_REFERENCE_OBJECT, KEY_REFERENCE_OID, KEY_REFERENCE_RELATION, KEY_REFERENCE_TYPE, KEY_VERSION
INDENT_STRING
Constructor and Description |
---|
PrimitiveXNode() |
PrimitiveXNode(T value) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor) |
String |
debugDump(int indent) |
boolean |
equals(Object obj) |
String |
getDesc() |
String |
getFormattedValue()
Returns a value that is correctly string-formatted according
to its type definition.
|
String |
getGuessedFormattedValue()
Returns formatted parsed value without actually changing node state from UNPARSED to PARSED
(if node is originally unparsed).
|
T |
getParsedValue(QName typeName) |
T |
getParsedValueWithoutRecording(QName typeName)
Returns parsed value without actually changing node state from UNPARSED to PARSED
(if node is originally unparsed).
|
String |
getStringValue()
Returns the value represented as string - in the best format that we can.
|
T |
getValue() |
ValueParser<T> |
getValueParser() |
int |
hashCode()
The basic idea of equals() is:
- if parsed, compare the value;
- if unparsed, compare getStringValue()
Therefore the hashcode is generated based on value (if parsed) or getStringValue() (if unparsed).
|
boolean |
isAttribute() |
boolean |
isEmpty() |
boolean |
isParsed() |
void |
parseValue(QName typeName) |
void |
setAttribute(boolean isAttribute) |
void |
setValue(T value) |
void |
setValueParser(ValueParser<T> valueParser) |
String |
toString() |
clone, cloneTransformKeys, debugDump, dumpSuffix, getComment, getLineNumber, getMaxOccurs, getOriginDescription, getOriginFile, getParent, getTypeQName, isExplicitTypeDeclaration, setComment, setExplicitTypeDeclaration, setLineNumber, setMaxOccurs, setOriginDescription, setOriginFile, setParent, setTypeQName
public PrimitiveXNode()
public PrimitiveXNode(T value)
public void parseValue(QName typeName) throws SchemaException
SchemaException
public T getValue()
public T getParsedValue(QName typeName) throws SchemaException
SchemaException
public ValueParser<T> getValueParser()
public void setValueParser(ValueParser<T> valueParser)
public void setValue(T value)
public boolean isParsed()
public boolean isAttribute()
public void setAttribute(boolean isAttribute)
public T getParsedValueWithoutRecording(QName typeName) throws SchemaException
SchemaException
public String getFormattedValue()
public String getGuessedFormattedValue() throws SchemaException
SchemaException
public void accept(Visitor visitor)
public String debugDump(int indent)
debugDump
in interface DebugDumpable
public String getStringValue()
Copyright © 2014 evolveum. All rights reserved.