Package gov.nasa.pds.tools.dict
Class ElementDefinition
- java.lang.Object
-
- gov.nasa.pds.tools.dict.Definition
-
- gov.nasa.pds.tools.dict.ElementDefinition
-
- All Implemented Interfaces:
Serializable
public class ElementDefinition extends Definition
- Version:
- $Revision$
- Author:
- pramirez, jagander
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class gov.nasa.pds.tools.dict.Definition
lineNumber, objectType, WILDCARD, WILDCARD_ELEMENT
-
-
Constructor Summary
Constructors Constructor Description ElementDefinition(Dictionary sourceDictionary, int lineNumber, DictIdentifier identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(String value)
Constants.DictionaryType
getDataType()
Number
getMaximum()
Integer
getMaxLength()
Number
getMinimum()
Integer
getMinLength()
String
getUnits()
Collection<String>
getValues()
String
getValueType()
boolean
hasMaximum()
boolean
hasMaxLength()
boolean
hasMinimum()
boolean
hasMinLength()
boolean
hasValidValues()
void
setDataType(Constants.DictionaryType dataType)
void
setMaximum(Number maximum)
void
setMaxLength(int maxLength)
void
setMinimum(Number minimum)
void
setMinLength(int minLength)
void
setUnits(String units)
void
setValues(Collection<String> values)
void
setValueType(String valueType)
-
Methods inherited from class gov.nasa.pds.tools.dict.Definition
addAlias, addAliases, addAliasSimple, getAliases, getDescription, getIdentifier, getLineNumber, getObjectType, getSourceDictionary, getSourceString, getStatusType, hasAliases, hasDescription, hasStatusType, setAliases, setDescription, setIdentifier, setObjectType, setStatusType, toString
-
-
-
-
Constructor Detail
-
ElementDefinition
public ElementDefinition(Dictionary sourceDictionary, int lineNumber, DictIdentifier identifier)
-
-
Method Detail
-
getDataType
public Constants.DictionaryType getDataType()
- Returns:
- Returns the dataType.
-
setDataType
public void setDataType(Constants.DictionaryType dataType)
- Parameters:
dataType
- The dataType to set.
-
getMaximum
public Number getMaximum()
- Returns:
- Returns the maximum.
-
setMaximum
public void setMaximum(Number maximum)
- Parameters:
maximum
- The maximum to set.
-
getMaxLength
public Integer getMaxLength()
- Returns:
- Returns the maxLength.
-
setMaxLength
public void setMaxLength(int maxLength)
- Parameters:
maxLength
- The maxLength to set.
-
getMinimum
public Number getMinimum()
- Returns:
- Returns the minimum.
-
setMinimum
public void setMinimum(Number minimum)
- Parameters:
minimum
- The minimum to set.
-
getMinLength
public Integer getMinLength()
- Returns:
- Returns the minLength.
-
setMinLength
public void setMinLength(int minLength)
- Parameters:
minLength
- The minLength to set.
-
getUnits
public String getUnits()
- Returns:
- Returns the unit id that can be looked up in a dictionary.
-
setUnits
public void setUnits(String units)
- Parameters:
units
-
-
getValues
public Collection<String> getValues()
- Returns:
- Returns the values.
-
setValues
public void setValues(Collection<String> values)
- Parameters:
values
- The values to set.
-
addValue
public void addValue(String value)
-
getValueType
public String getValueType()
- Returns:
- Returns the valueType.
-
setValueType
public void setValueType(String valueType)
- Parameters:
valueType
- The valueType to set.
-
hasValidValues
public boolean hasValidValues()
-
hasMaximum
public boolean hasMaximum()
-
hasMinimum
public boolean hasMinimum()
-
hasMinLength
public boolean hasMinLength()
-
hasMaxLength
public boolean hasMaxLength()
-
-