|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.tools.dict.parser.DefinitionFactory
public class DefinitionFactory
This class builds definitions from ObjectStatements. The format of the object
statement should be in compliance standard PDS dictionary. These definitions
can then be added to a Dictionary
.
Constructor Summary | |
---|---|
DefinitionFactory()
|
Method Summary | |
---|---|
static Definition |
createDefinition(Dictionary sourceDictionary,
ObjectStatement object)
This method will determine the type of definition and created it. |
static ElementDefinition |
createElementDefinition(Dictionary sourceDictionary,
ObjectStatement object)
This method creates an ElementDefinition by gathering the
attributes required from the ObjectStatement as specified in the
PDS Data Dictionary document. |
static GroupDefinition |
createGroupDefinition(Dictionary sourceDictionary,
ObjectStatement object)
This method creates an GroupDefinition by gathering the
attributes required from the ObjectStatement as specified in the
PDS Data Dictionary document. |
static ObjectDefinition |
createObjectDefinition(Dictionary sourceDictionary,
ObjectStatement object)
This method creates an ObjectDefinition by gathering the
attributes required from the ObjectStatement as specified in the
PDS Data Dictionary document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefinitionFactory()
Method Detail |
---|
public static Definition createDefinition(Dictionary sourceDictionary, ObjectStatement object) throws UnknownDefinitionException
sourceDictionary
- with which this definition will be associated with. This call
will NOT add the definition to the given source dictionary as
Alias
es have not been added to the definition at this
point.object
- from which the definition will be created
Definition
that represents an
entry in a PDS data dictionary
UnknownDefinitionException
- thrown when the type of definition can not be recognized.public static ObjectDefinition createObjectDefinition(Dictionary sourceDictionary, ObjectStatement object) throws UnknownDefinitionException
ObjectDefinition
by gathering the
attributes required from the ObjectStatement
as specified in the
PDS Data Dictionary document.
sourceDictionary
- with which this definition will be associated with. This call
will NOT add the definition to the given source dictionary as
Alias
es have not been added to the definition at this
point.object
- that has the information to form an ObjectDefinition
Definition
that represents an entry in a PDS data
dictionary
UnknownDefinitionException
- thrown when the type of definition can not be recognized.public static GroupDefinition createGroupDefinition(Dictionary sourceDictionary, ObjectStatement object) throws UnknownDefinitionException
GroupDefinition
by gathering the
attributes required from the ObjectStatement
as specified in the
PDS Data Dictionary document.
sourceDictionary
- with which this definition will be associated with. This call
will NOT add the definition to the given source dictionary as
Alias
es have not been added to the definition at this
point.object
- that has the information to form an GroupDefinition
Definition
that represents an entry in a PDS data
dictionary
UnknownDefinitionException
- thrown when the type of definition can not be recognized.public static ElementDefinition createElementDefinition(Dictionary sourceDictionary, ObjectStatement object) throws UnknownDefinitionException
ElementDefinition
by gathering the
attributes required from the ObjectStatement
as specified in the
PDS Data Dictionary document.
sourceDictionary
- with which this definition will be associated with. This call
will NOT add the definition to the given source dictionary as
Alias
es have not been added to the definition at this
point.object
- that has the information to form an ElementDefinition
Definition
that represents an entry in a PDS data
dictionary
UnknownDefinitionException
- thrown when the type of definition can not be recognized.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |