public class PrimitiveXNode<T> extends XNode implements Serializable
DUMMY_NAME, elementName, 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, maxOccurs, parent, typeQName
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)
Deprecated.
|
T |
getParsedValue(QName typeName,
Class<T> expectedClass) |
T |
getParsedValue(QName typeName,
Class<T> expectedClass,
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 |
setAttribute(boolean isAttribute) |
void |
setValue(T value,
QName typeQName) |
void |
setValueParser(ValueParser<T> valueParser) |
String |
toString() |
clone, cloneTransformKeys, copyCommonAttributesFrom, debugDump, dumpSuffix, getComment, getElementName, getLineNumber, getMaxOccurs, getOriginDescription, getOriginFile, getParent, getTypeQName, isExplicitTypeDeclaration, isHeterogeneousList, isSingleEntryMap, setComment, setElementName, setExplicitTypeDeclaration, setLineNumber, setMaxOccurs, setOriginDescription, setOriginFile, setParent, setTypeQName, toRootXNode
finalize, getClass, notify, notifyAll, wait, wait, wait
debugDumpLazily, debugDumpLazily
public PrimitiveXNode()
public PrimitiveXNode(T value)
public T getValue()
@Deprecated public T getParsedValue(@NotNull QName typeName) throws SchemaException
SchemaException
public T getParsedValue(@NotNull QName typeName, @Nullable Class<T> expectedClass) throws SchemaException
SchemaException
public T getParsedValue(@NotNull QName typeName, @Nullable Class<T> expectedClass, 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 © 2019 Evolveum. All rights reserved.