public class TLcdOWSDomain extends TLcdOWSUnNamedDomain
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
NAME_PROPERTY
Data property that maps to the
name attribute. |
DEFAULT_VALUE_PROPERTY, DOMAIN_META_DATA_TYPE_PROPERTY, MEANING_PROPERTY, METADATA_PROPERTY, REFERENCE_SYSTEM_PROPERTY, UOM_PROPERTY, VALUE_OBJECTS_PROPERTY
Constructor and Description |
---|
TLcdOWSDomain()
Creates a new
TLcdOWSDomain . |
TLcdOWSDomain(String aName,
String[] aValues)
Creates a new
TLcdOWSDomain with the given name and values. |
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(TLcdOWSMetadata aMetadata)
Adds a metadata object to this domain.
|
void |
addValue(String aValue)
Adds a value to this domain.
|
TLcdOWSMetadata |
getMetadata(int aIndex)
Returns the metadata object at the given index.
|
int |
getMetadataCount()
Returns the number of metadata objects.
|
String |
getName()
Returns the value of the property that maps to the
name attribute. |
String |
getValue(int aIndex)
Returns the value at the given index.
|
int |
getValueCount()
Returns the number of values.
|
String[] |
getValues()
Returns all the values associated to this domain.
|
void |
removeMetadata(int aIndex)
Removes the metadata object at the given index.
|
void |
removeValue(int aIndex)
Removes the value at the given index.
|
void |
setName(String aValue)
Sets the value of the property that maps to the
name attribute. |
getDefaultValue, getDomainMetaDataType, getMeaning, getMetadata, getReferenceSystem, getUOM, getValueObjects, setDefaultValue, setDomainMetaDataType, setMeaning, setReferenceSystem, setUOM, setValueObjects
public static final TLcdDataProperty NAME_PROPERTY
name
attribute.
The possible values for this property are instances of String
.public void addValue(String aValue)
aValue
- the value to be addedpublic int getValueCount()
public void removeValue(int aIndex)
aIndex
- the index of the value to be removedpublic String getValue(int aIndex)
aIndex
- the index of the value to be retrievedpublic void addMetadata(TLcdOWSMetadata aMetadata)
aMetadata
- the metadata object to be added.public int getMetadataCount()
public void removeMetadata(int aIndex)
aIndex
- the index of the metadata object to be removedpublic TLcdOWSMetadata getMetadata(int aIndex)
aIndex
- the index of the metadata object to be retrievedpublic String[] getValues()
public String getName()
name
attribute.
Name or identifier of this quantity.
NAME_PROPERTY
property.public void setName(String aValue)
name
attribute.
Name or identifier of this quantity.
aValue
- the value to set for the NAME_PROPERTY
property.