public class AnyObjectAttributeValue extends AttributeValueAdapter implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
m_typeName
Holds a custom type name if given in the constructor, otherwise the
classname of the wrapped object.
|
m_wrappedObject
EMPTY_VALUE
Constructor and Description |
---|
AnyObjectAttributeValue(Object wrappedObject)
Creates a new AnyObjectAttributeValue.
|
AnyObjectAttributeValue(Object wrappedObject,
String typeName)
Creates a new AnyObjectAttributeValue.
|
Modifier and Type | Method and Description |
---|---|
String |
getTypeName()
gets the type name of the concrete value.
|
equals, getUnspecifiedValue, hashCode, toString
protected String m_typeName
public AnyObjectAttributeValue(Object wrappedObject) throws NullPointerException
wrappedObject
- the wrapped object, must be not null.NullPointerException
- if wrappedObject is null.AttributeValueAdapter.AttributeValueAdapter(Object)
public AnyObjectAttributeValue(Object wrappedObject, String typeName) throws NullPointerException
wrappedObject
- the wrapped object, must be not null.typeName
- a custom typename.
If not given or empty the class name of wrappedObject is used.NullPointerException
- if wrappedObject is null.AttributeValueAdapter.AttributeValueAdapter(Object)
public String getTypeName()
getTypeName
in interface AttributeValue
getTypeName
in class AttributeValueAdapter
AttributeValue.getTypeName()
,
AttributeValueAdapter.getTypeName()
Copyright © 2004–2018 52north.org. All rights reserved.