class SimpleValueMetadata extends java.lang.Object implements ValueMetadata
SimpleValueMetadata interface. Understands Spring's
TypedStringValue.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
typeName |
private java.lang.String |
value |
| Constructor and Description |
|---|
SimpleValueMetadata(java.lang.String typeName,
java.lang.String value)
Constructs a new
SimpleValueMetadata instance. |
SimpleValueMetadata(org.springframework.beans.factory.config.TypedStringValue typedStringValue) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getStringValue()
Return the unconverted string representation of the value.
|
java.lang.String |
getType()
Return the name of the type to which the value should be converted.
|
private final java.lang.String typeName
private final java.lang.String value
public SimpleValueMetadata(java.lang.String typeName,
java.lang.String value)
SimpleValueMetadata instance.typeName - value - public SimpleValueMetadata(org.springframework.beans.factory.config.TypedStringValue typedStringValue)
public java.lang.String getStringValue()
ValueMetadatavalue attribute or text part of the
value element.getStringValue in interface ValueMetadatapublic java.lang.String getType()
ValueMetadatatype attribute.getType in interface ValueMetadatanull if no type is specified.