public class Property extends Valuable
Constructor and Description |
---|
Property()
Creates a new property
|
Property(String type,
String name)
Creates a new property
|
Property(String type,
String name,
ValueType valueType,
Object value)
Creates a new property
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
Get name of property.
|
List<Operation> |
getOperations()
Gets operations.
|
int |
hashCode() |
boolean |
isNull()
Check if this property is
null (value == null) or the type is "Edm.Null" . |
void |
setName(String name)
Set name of property.
|
String |
toString() |
asCollection, asComplex, asEnum, asGeospatial, asPrimitive, getType, getValue, getValueType, isCollection, isComplex, isEnum, isGeospatial, isPrimitive, setType, setValue
getAnnotations
public Property()
public Property(String type, String name)
type
- String representation of type (can be null)name
- Name of the propertypublic Property(String type, String name, ValueType valueType, Object value)
type
- String representation of type (can be null)name
- Name of the propertyvalueType
- Kind of the property e.g. primitive property, complex propertyvalue
- Value of the property.Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.