gov.nasa.pds.tools.dict
Class ElementDefinition

java.lang.Object
  extended by gov.nasa.pds.tools.dict.Definition
      extended by gov.nasa.pds.tools.dict.ElementDefinition
All Implemented Interfaces:
Serializable

public class ElementDefinition
extends Definition

Version:
$Revision: 4967 $
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
ElementDefinition(Dictionary sourceDictionary, int lineNumber, DictIdentifier identifier)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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()


Copyright © 2005-2011 Planetary Data System. All Rights Reserved.