VALUE_TYPE - type which is represented by the primitive attribute@Api(allMethods=true) public abstract class PrimitiveAttribute<VALUE_TYPE> extends Object implements Attribute<VALUE_TYPE>
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
clone()
Create a clone of this attribute object.
|
PrimitiveType |
getType()
Get type of primitive attribute.
|
VALUE_TYPE |
getValue()
Get the value for this attribute.
|
boolean |
isEditable()
Indicates whether the user is authorized to edit this attribute.
|
boolean |
isEmpty()
Does the attribute have a value?
|
boolean |
isPrimitive()
Return true, as this type is the very definition of a primitive attribute.
|
void |
setEditable(boolean editable)
set whether the feature is editable or not.
|
void |
setType(PrimitiveType type)
Set type of primitive attribute.
|
void |
setValue(VALUE_TYPE value)
Set the actual value for the attribute.
|
String |
toString()
Returns a string representation of the primitive value using
Object.toString(). |
public abstract Object clone()
clone in interface Attribute<VALUE_TYPE>clone in class Objectpublic PrimitiveType getType()
PrimitiveTypepublic void setType(PrimitiveType type)
type - type of primitive attributepublic boolean isPrimitive()
isPrimitive in interface Attribute<VALUE_TYPE>public boolean isEmpty()
isEmpty in interface Attribute<VALUE_TYPE>public VALUE_TYPE getValue()
getValue in interface Attribute<VALUE_TYPE>public void setValue(VALUE_TYPE value)
value - value for the attributepublic boolean isEditable()
isEditable in interface Attribute<VALUE_TYPE>public void setEditable(boolean editable)
setEditable in interface Attribute<VALUE_TYPE>editable - editable statuspublic String toString()
Object.toString().Copyright © 2015 Geosparc. All Rights Reserved.