Package gov.nasa.pds.tools.dict
Class ContainerDefinition
- java.lang.Object
-
- gov.nasa.pds.tools.dict.Definition
-
- gov.nasa.pds.tools.dict.ContainerDefinition
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GroupDefinition
,ObjectDefinition
public class ContainerDefinition 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 ContainerDefinition(Dictionary sourceDictionary, int lineNumber, DictIdentifier identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOptional(DictIdentifier identifier)
void
addOptional(List<DictIdentifier> optionalList)
void
addRequired(DictIdentifier identifier)
void
addRequired(List<DictIdentifier> requiredList)
boolean
allowsAnyElement()
List<DictIdentifier>
getOptional()
List<DictIdentifier>
getOptionalElements()
List<DictIdentifier>
getRequired()
List<DictIdentifier>
getRequiredElements()
boolean
hasOptionalElements()
boolean
hasRequiredElements()
boolean
isAllowed(DictIdentifier identifier)
boolean
isOptional(DictIdentifier identifier)
boolean
isRequired(DictIdentifier identifier)
-
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
-
ContainerDefinition
public ContainerDefinition(Dictionary sourceDictionary, int lineNumber, DictIdentifier identifier)
-
-
Method Detail
-
isRequired
public boolean isRequired(DictIdentifier identifier)
-
isOptional
public boolean isOptional(DictIdentifier identifier)
-
isAllowed
public boolean isAllowed(DictIdentifier identifier)
-
getRequired
public List<DictIdentifier> getRequired()
-
getOptional
public List<DictIdentifier> getOptional()
-
addOptional
public void addOptional(DictIdentifier identifier)
-
addOptional
public void addOptional(List<DictIdentifier> optionalList)
-
addRequired
public void addRequired(DictIdentifier identifier)
-
addRequired
public void addRequired(List<DictIdentifier> requiredList)
-
getRequiredElements
public List<DictIdentifier> getRequiredElements()
-
hasRequiredElements
public boolean hasRequiredElements()
-
getOptionalElements
public List<DictIdentifier> getOptionalElements()
-
hasOptionalElements
public boolean hasOptionalElements()
-
allowsAnyElement
public boolean allowsAnyElement()
-
-