gov.nasa.pds.tools.dict
Class ContainerDefinition

java.lang.Object
  extended by gov.nasa.pds.tools.dict.Definition
      extended by gov.nasa.pds.tools.dict.ContainerDefinition
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GroupDefinition, ObjectDefinition

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

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


Copyright © 2005–2013 Planetary Data System. All rights reserved.