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_RESOLUTION_TIME, KEY_REFERENCE_TARGET_NAME, 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 |
getParsedValue(QName typeName,
XNodeProcessorEvaluationMode mode) |
T |
getParsedValueWithoutRecording(QName typeName)
Returns parsed value without actually changing node state from UNPARSED to PARSED
(if node is originally unparsed).
|
Map<String,String> |
getRelevantNamespaceDeclarations()
This method is used with conjunction with getStringValue, typically when serializing unparsed values.
|
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,
XNodeProcessorEvaluationMode mode) |
void |
setAttribute(boolean isAttribute) |
void |
setValue(T value,
QName typeQName) |
void |
setValueParser(ValueParser<T> valueParser) |
String |
toString() |
clone, cloneTransformKeys, copyCommonAttributesFrom, 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, XNodeProcessorEvaluationMode mode) throws SchemaException
SchemaException
public T getValue()
public T getParsedValue(QName typeName) throws SchemaException
SchemaException
public T getParsedValue(QName typeName, XNodeProcessorEvaluationMode mode) throws SchemaException
SchemaException
public ValueParser<T> getValueParser()
public void setValueParser(ValueParser<T> valueParser)
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()
public Map<String,String> getRelevantNamespaceDeclarations()
Copyright © 2016 evolveum. All rights reserved.