Package com.esri.ges.core.geoevent
Class DefaultFieldDefinition
- java.lang.Object
-
- com.esri.ges.core.geoevent.DefaultFieldDefinition
-
- All Implemented Interfaces:
FieldDefinition
,Validatable
,Serializable
public class DefaultFieldDefinition extends Object implements FieldDefinition
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultFieldDefinition(String name, FieldType type, String... tags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(FieldDefinition child)
void
addTag(String tag)
Object
clone()
FieldCardinality
getCardinality()
List<FieldDefinition>
getChildren()
String
getName()
List<String>
getTags()
FieldType
getType()
boolean
hasTag(String tag)
void
removeTag(String tag)
void
setCardinality(FieldCardinality cardinality)
void
setName(String name)
void
setType(FieldType type)
String
toString()
void
validate()
Object
validateValue(Object value)
-
-
-
Constructor Detail
-
DefaultFieldDefinition
public DefaultFieldDefinition(String name, FieldType type, String... tags) throws ConfigurationException
- Throws:
ConfigurationException
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceFieldDefinition
-
setName
public void setName(String name) throws ConfigurationException
- Specified by:
setName
in interfaceFieldDefinition
- Throws:
ConfigurationException
-
getType
public FieldType getType()
- Specified by:
getType
in interfaceFieldDefinition
-
setType
public void setType(FieldType type) throws ConfigurationException
- Specified by:
setType
in interfaceFieldDefinition
- Throws:
ConfigurationException
-
validateValue
public Object validateValue(Object value)
- Specified by:
validateValue
in interfaceFieldDefinition
-
clone
public Object clone() throws CloneNotSupportedException
- Specified by:
clone
in interfaceFieldDefinition
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
getCardinality
public FieldCardinality getCardinality()
- Specified by:
getCardinality
in interfaceFieldDefinition
-
setCardinality
public void setCardinality(FieldCardinality cardinality) throws ConfigurationException
- Specified by:
setCardinality
in interfaceFieldDefinition
- Throws:
ConfigurationException
-
getTags
public List<String> getTags()
- Specified by:
getTags
in interfaceFieldDefinition
-
addTag
public void addTag(String tag)
- Specified by:
addTag
in interfaceFieldDefinition
-
hasTag
public boolean hasTag(String tag)
- Specified by:
hasTag
in interfaceFieldDefinition
-
removeTag
public void removeTag(String tag)
- Specified by:
removeTag
in interfaceFieldDefinition
-
getChildren
public List<FieldDefinition> getChildren()
- Specified by:
getChildren
in interfaceFieldDefinition
-
addChild
public void addChild(FieldDefinition child)
- Specified by:
addChild
in interfaceFieldDefinition
-
toString
public String toString()
- Specified by:
toString
in interfaceFieldDefinition
- Overrides:
toString
in classObject
-
validate
public void validate() throws ValidationException
- Specified by:
validate
in interfaceValidatable
- Throws:
ValidationException
-
-