|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.catalog.schema.Component
com.esri.gpt.catalog.schema.Schema
public class Schema
Defines a metadata schema.
| Constructor Summary | |
|---|---|
Schema()
Default constructor. |
|
Schema(Schema objectToDuplicate)
Construct by duplicating an existing object. |
|
| Method Summary | |
|---|---|
void |
appendDetailSections(UiContext context,
UIComponent sectionsComponent)
Appends all sections of the schema to the sections component of the metadata details page. |
void |
appendEditorSections(UiContext context,
UIComponent sectionsComponent)
Appends all sections of the schema to the metadata editor sections component. |
void |
configure(CfgContext context,
Node node,
NamedNodeMap attributes)
Configures the object based upon a node loaded from a schema configuration XML. |
Schema |
duplicate()
Produces a deep clone of the object. |
void |
echo(StringBuffer sb)
Appends property information for the component to a StringBuffer. |
void |
ensureMinimals()
Ensures the the minimal components of a schema. |
void |
evaluate(Document dom)
Evaluates a schema based upon the supplied metadata document. |
String |
getActiveDocumentXml()
Gets the XML associated with the metadata document that was most recently evaluated for this schema. |
String |
getCswBriefXslt()
Gets the XSLT (file path) for generating the brief CSW response (optional). |
String |
getCswOutputSchema()
Gets the CSW output schema (namespace) associated with the document. |
String |
getCswSummaryXslt()
Gets the XSLT (file path) for generating the summary CSW response (optional). |
String |
getDetailsXslt()
Gets the XSLT (file path) for displaying metadata details (as HTML). |
boolean |
getEditable()
Gets the editable status. |
GxeDefinition |
getGxeEditorDefinition()
Gets the Geoportal XML editor definition (optional). |
Indexables |
getIndexables()
Gets the indexable properties. |
Interrogation |
getInterrogation()
Gets the interrogation component. |
Label |
getLabel()
Gets the label component. |
Meaning |
getMeaning()
Gets the meaning component for the schema. |
Namespaces |
getNamespaces()
Gets the namespaces for the schema. |
protected PropertyMeanings |
getPropertyMeanings()
Gets the configured property meanings. |
String |
getSchematronXslt()
Gets the XSLT (file path) used to perform Schematron validation. |
Sections |
getSections()
Gets the sections for the schema. |
String |
getTemplateFile()
Gets the template file path. |
String |
getToEsriItemInfoXslt()
Gets XSLT (file path) used to perform to ESRI_ItemInformation transformation. |
String |
getToEsriXslt()
Gets the XSLT (file path) for translating to an ESRI format. |
ValidationErrors |
getValidationErrors()
Gets the validation errors. |
String |
getXsdLocation()
Gets the location of the XML Schema definition file for the metadata standard. |
Interrogation |
interrogate(Document dom)
Interrogates a schema based upon the supplied metadata document. |
Document |
loadTemplate()
Loads the template for this schema. |
List<Parameter> |
selectParameters(Predicate predicate)
Selects all parameters conforming to the condiditions defined by predicate. |
void |
setActiveDocumentXml(String xml)
Sets the XML associated with the metadata document that was most recently evaluated for this schema. |
void |
setCswBriefXslt(String xslt)
Sets the XSLT (file path) for generating the brief CSW response (optional). |
void |
setCswOutputSchema(String namespace)
Sets the CSW output schema (namespace) associated with the document. |
void |
setCswSummaryXslt(String xslt)
Sets the XSLT (file path) for generating the summary CSW response (optional). |
void |
setDetailsXslt(String xslt)
Sets the XSLT (file path) for displaying metadata details (as HTML). |
void |
setEditable(boolean editable)
Sets the editable status. |
void |
setGxeEditorDefinition(GxeDefinition definition)
Sets the Geoportal XML editor definition (optional). |
void |
setIndexables(Indexables indexables)
Sets the indexable properties. |
protected void |
setInterrogation(Interrogation interrogation)
Sets the interrogation component. |
protected void |
setLabel(Label label)
Sets the label component. |
protected void |
setNamespaces(Namespaces namespaces)
Sets the namespaces for the schema. |
protected void |
setPropertyMeanings(PropertyMeanings meanings)
Sets the configured property meanings. |
void |
setSchematronXslt(String xslt)
Sets the XSLT (file path) used to perform Schematron validation. |
protected void |
setSections(Sections sections)
Sets the sections for the schema. |
void |
setTemplateFile(String templateFile)
Sets the template file path. |
void |
setToEsriItemInfoXslt(String xslt)
Sets XSLT (file path) used to perform to ESRI_ItemInformation transformation. |
void |
setToEsriXslt(String xslt)
Sets the XSLT (file path) for translating to an ESRI format. |
protected void |
setValidationErrors(ValidationErrors errors)
Sets the validation errors. |
void |
setXsdLocation(String url)
Sets the location of the XML Schema definition file for the metadata standard. |
void |
unBind(UiContext context,
UIComponent editorForm)
Triggered on the save event from the metadata editor. |
void |
update(Document dom)
Updates the metadata document template based upon entered parameter value(s). |
void |
validate()
Validates the schema. |
| Methods inherited from class com.esri.gpt.catalog.schema.Component |
|---|
getKey, setKey, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Schema()
public Schema(Schema objectToDuplicate)
objectToDuplicate - the object to duplicate| Method Detail |
|---|
public String getActiveDocumentXml()
public void setActiveDocumentXml(String xml)
xml - the XMLpublic String getCswBriefXslt()
public void setCswBriefXslt(String xslt)
xslt - the file path to the brief XSLTpublic String getCswOutputSchema()
public void setCswOutputSchema(String namespace)
namespace - the CSW output schemapublic String getCswSummaryXslt()
public void setCswSummaryXslt(String xslt)
xslt - the file path to the summary XSLTpublic String getDetailsXslt()
public void setDetailsXslt(String xslt)
xslt - the file path to the details XSLTpublic boolean getEditable()
public void setEditable(boolean editable)
editable - true if this schema is editable within the metadata editorpublic GxeDefinition getGxeEditorDefinition()
public void setGxeEditorDefinition(GxeDefinition definition)
definition - the editor definitionpublic Indexables getIndexables()
public void setIndexables(Indexables indexables)
indexables - the indexable propertiespublic Interrogation getInterrogation()
protected void setInterrogation(Interrogation interrogation)
interrogation - the interrogation componentpublic Label getLabel()
protected void setLabel(Label label)
label - the label componentpublic Meaning getMeaning()
public Namespaces getNamespaces()
protected void setNamespaces(Namespaces namespaces)
namespaces - the schema namespacesprotected PropertyMeanings getPropertyMeanings()
protected void setPropertyMeanings(PropertyMeanings meanings)
meanings - the property meaningspublic String getSchematronXslt()
public void setSchematronXslt(String xslt)
xslt - the file path to the XSLTpublic String getToEsriItemInfoXslt()
public void setToEsriItemInfoXslt(String xslt)
xslt - XSLT file pathpublic Sections getSections()
protected void setSections(Sections sections)
sections - the schema sectionspublic String getTemplateFile()
public void setTemplateFile(String templateFile)
templateFile - the template filepublic String getToEsriXslt()
public void setToEsriXslt(String xslt)
xslt - the file path to the XSLTpublic ValidationErrors getValidationErrors()
protected void setValidationErrors(ValidationErrors errors)
errors - validation errorspublic String getXsdLocation()
public void setXsdLocation(String url)
url - the XSD location (URL)
public void appendDetailSections(UiContext context,
UIComponent sectionsComponent)
context - the UI contextsectionsComponent - the sections component of the metadata details page
public void appendEditorSections(UiContext context,
UIComponent sectionsComponent)
context - the UI contextsectionsComponent - the sections component of the metadata editor
public void configure(CfgContext context,
Node node,
NamedNodeMap attributes)
configure in class Componentcontext - the configuration contextnode - the configuration nodeattributes - the attributes of the configuration nodepublic Schema duplicate()
duplicate in class Componentpublic void ensureMinimals()
public void evaluate(Document dom)
throws XPathExpressionException
dom - the metadata document
XPathExpressionException - if an evaluation expression failspublic void echo(StringBuffer sb)
echo in class Componentsb - the StringBuffer to use when appending information
public Interrogation interrogate(Document dom)
throws XPathExpressionException
dom - the metadata document
XPathExpressionException - if an evaluation expression fails
public Document loadTemplate()
throws ParserConfigurationException,
SAXException,
IOException
ParserConfigurationException - if a configuration exception occurs
SAXException - if an exception occurs during XML parsing
IOException - if an i/o exception occurs
public void update(Document dom)
throws XPathExpressionException,
SchemaException
dom - the metadata document template for the schema
XPathExpressionException - if an expression fails
SchemaException - if the update fails
public void unBind(UiContext context,
UIComponent editorForm)
throws SchemaException
context - the UI contexteditorForm - the Faces HtmlForm for the metadata editor
SchemaException - if an associated Faces UIComponent cannot be located
public void validate()
throws ValidationException
ValidationException - if errors occur during validationpublic List<Parameter> selectParameters(Predicate predicate)
predicate - predicate
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||