Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class SchemaFactory

java.lang.Object
  extended by com.esri.gpt.catalog.schema.SchemaFactory

public class SchemaFactory
extends Object

Provides a factory for instantiating schema component objects.


Constructor Summary
SchemaFactory()
          Default constructor.
 
Method Summary
 PropertyMeanings loadPropertyMeanings()
          Loads all property meanings from the gpt/metadata/property-meanings.xml configuration file.
 Schemas loadSchemas()
          Loads all schemas from the gpt/metadata/schema.xml configuration file.
 Code newCode(CfgContext context, Node node)
          Instantiates and configures a new Code component.
 Content newContent(CfgContext context, Node node)
          Instantiates and configures a new Content component.
 Input newInput(CfgContext context, Node node)
          Instantiates and configures a new Label component.
 Interrogation newInterrogation(CfgContext context, Node node)
          Instantiates and configures a new Interrogation component.
 Label newLabel(CfgContext context, Node node)
          Instantiates and configures a new Label component.
 Namespace newNamespace(CfgContext context, Node node)
          Instantiates and configures a new Namespace component.
 Parameter newParameter(CfgContext context, Node node)
          Instantiates and configures a new Parameter component.
 Section newSection(CfgContext context, Node node)
          Instantiates and configures a new Section component.
 Validation newValidation(CfgContext context, Node node)
          Instantiates and configures a new Validation component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaFactory

public SchemaFactory()
Default constructor.

Method Detail

loadPropertyMeanings

public PropertyMeanings loadPropertyMeanings()
                                      throws ParserConfigurationException,
                                             SAXException,
                                             IOException
Loads all property meanings from the gpt/metadata/property-meanings.xml configuration file.

Throws:
ParserConfigurationException - if configuration exception occurs
SAXException - if an exception during xml parsing
IOException - if an i/o exception occurs
ParserConfigurationException - if error parsing configuration

loadSchemas

public Schemas loadSchemas()
                    throws ParserConfigurationException,
                           SAXException,
                           IOException
Loads all schemas from the gpt/metadata/schema.xml configuration file.

Throws:
ParserConfigurationException - if configuration exception occurs
SAXException - if an exception during xml parsing
IOException - if an i/o exception occurs

newCode

public Code newCode(CfgContext context,
                    Node node)
Instantiates and configures a new Code component.
The node argument can be null, if so then return a null value.

Parameters:
context - the configuration context
node - the configuration node associated with the component
Returns:
the new Code component (null if the node was invalid)

newContent

public Content newContent(CfgContext context,
                          Node node)
Instantiates and configures a new Content component.
The node argument can be null, if so then return a null value.

Parameters:
context - the configuration context
node - the configuration node associated with the component
Returns:
the new Content component (null if the node was invalid)

newInput

public Input newInput(CfgContext context,
                      Node node)
Instantiates and configures a new Label component.
The node argument can be null, if so then return a null value.

Parameters:
context - the configuration context
node - the configuration node associated with the component
Returns:
the new Label component (null if the node was invalid)

newInterrogation

public Interrogation newInterrogation(CfgContext context,
                                      Node node)
Instantiates and configures a new Interrogation component.
The node argument can be null, if so then return a null value.

Parameters:
context - the configuration context
node - the configuration node associated with the component
Returns:
the new Interrogation component (null if the node was invalid)

newLabel

public Label newLabel(CfgContext context,
                      Node node)
Instantiates and configures a new Label component.
The node argument can be null, if so then return a null value.

Parameters:
context - the configuration context
node - the configuration node associated with the component
Returns:
the new Label component (null if the node was invalid)

newNamespace

public Namespace newNamespace(CfgContext context,
                              Node node)
Instantiates and configures a new Namespace component.
The node argument can be null, if so then return a null value.

Parameters:
context - the configuration context
node - the configuration node associated with the component
Returns:
the new Namespace component (null if the node was invalid)

newParameter

public Parameter newParameter(CfgContext context,
                              Node node)
Instantiates and configures a new Parameter component.
The node argument can be null, if so then return a null value.

Parameters:
context - the configuration context
node - the configuration node associated with the component
Returns:
the new Parameter component (null if the node was invalid)

newSection

public Section newSection(CfgContext context,
                          Node node)
Instantiates and configures a new Section component.
The node argument can be null, if so then return a null value.

Parameters:
context - the configuration context
node - the configuration node associated with the component
Returns:
the new Section component (null if the node was invalid)

newValidation

public Validation newValidation(CfgContext context,
                                Node node)
Instantiates and configures a new Validation component.
The node argument can be null, if so then return a null value.

Parameters:
context - the configuration context
node - the configuration node associated with the component
Returns:
the new Validation component (null if the node was invalid)

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.