Package org.xwiki.rest.model.jaxb
Class PropertyValue
- java.lang.Object
-
- org.xwiki.rest.model.jaxb.PropertyValue
-
public class PropertyValue extends Object
Holds the value of a class property and its associated meta data (e.g. label, icon, count).We don't generate this class from the schema because we need the
XmlJavaTypeAdapter
annotation on themetaData
field. We tried various ways to add theXmlJavaTypeAdapter
annotation to the schema-generated class from the separate bindings file but none succeeded.- Since:
- 9.8RC1
- Version:
- $Id: a4b8aaf77bd3907c0ef2dbdb0ab41e286beeb8cc $
-
-
Constructor Summary
Constructors Constructor Description PropertyValue()
Default constructor.PropertyValue(Object value)
Creates a new instance with the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Map<String,Object>
getMetaData()
Object
getValue()
int
hashCode()
void
setMetaData(Map<String,Object> value)
Sets the meta data associated with the property value.void
setValue(Object value)
Sets the property value.String
toString()
-
-
-
Constructor Detail
-
PropertyValue
public PropertyValue()
Default constructor.
-
PropertyValue
public PropertyValue(Object value)
Creates a new instance with the specified value.- Parameters:
value
- the actual property value
-
-
Method Detail
-
getValue
public Object getValue()
- Returns:
- the property value
-
setValue
public void setValue(Object value)
Sets the property value.- Parameters:
value
- the new property value
-
getMetaData
public Map<String,Object> getMetaData()
- Returns:
- the meta data associated with the property value
-
setMetaData
public void setMetaData(Map<String,Object> value)
Sets the meta data associated with the property value.- Parameters:
value
- the new meta data
-
-