|
Esri Geoportal Server 1.0
|
||||||||
| 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.UiComponent
com.esri.gpt.catalog.schema.Section
public class Section
Section component associated with a metadata schema.
The component is configured from a node with a schema configuration XML document. A section contains a label and a collection of parameters. The parameters will appear within the user interface in the order in which they appear within the schema configuration XML. Example:
| Field Summary | |
|---|---|
static String |
OBLIGATION_EXCLUSIVE
Mutually exclusive section = "exclusive" |
static String |
OBLIGATION_MANDATORY
Mandatory section = "mandatory" (this is the default) |
static String |
OBLIGATION_OPTIONAL
Optional section = "optional" |
| Constructor Summary | |
|---|---|
Section()
Default constructor. |
|
Section(Section objectToDuplicate)
Construct by duplicating an existing object. |
|
| Method Summary | |
|---|---|
boolean |
appendDetailComponents(Schema schema,
UiContext context,
UIComponent parentComponent)
Appends Faces display components for this section of the metadata details page. |
void |
appendEditorComponents(Schema schema,
UiContext context,
UIComponent parentComponent)
Appends Faces editing components for this section of the metadata editor |
void |
configure(CfgContext context,
Node node,
NamedNodeMap attributes)
Configures the object based upon a node loaded from a schema configuration XML. |
Section |
duplicate()
Produces a deep clone of the object. |
void |
echo(StringBuffer sb)
Appends property information for the component to a StringBuffer. |
void |
evaluate(Schema schema,
Document dom,
XPath xpath)
Evaluates a section based upon the supplied metadata document. |
void |
forceOpen(UIComponent editorForm)
Force a section open within the editor. |
String |
getDelete()
Gets the XPath expression used to select nodes for deletion when an optional section has not been filled (i.e. |
String |
getFacesId()
Gets the Faces ID for the section. |
Label |
getLabel()
Gets the label component. |
String |
getObligation()
Gets the obligation for this section. |
boolean |
getOpen()
Gets the open status. |
Parameters |
getParameters()
Gets the parameters for the schema. |
Section |
getParent()
Gets the parent section. |
Sections |
getSections()
Gets the sub-sections for this section. |
String |
getSelect()
Gets the XPath selection expression for selecting the section. |
boolean |
getUseSelectForDelete()
Gets the status indicating if the selection expression should be used to select nodes for deletion when an optional section has not been filled (i.e. |
boolean |
getVisibleOnDetails()
Gets the status indicating if the section should be displayed on the view details page. |
List<Parameter> |
selectParameters(Predicate predicate)
Selects all parameters conforming to the condiditions defined by predicate. |
void |
setDelete(String expression)
Sets the XPath expression used to select nodes for deletion when an optional section has not been filled (i.e. |
void |
setLabel(Label label)
Sets the label component. |
void |
setObligation(String obligation)
Sets the obligation for this section. |
void |
setOpen(boolean open)
Sets the open status. |
protected void |
setParameters(Parameters parameters)
Sets the parameters for the schema. |
protected void |
setParent(Section parent)
Sets the parent section. |
protected void |
setSections(Sections sections)
Sets the sub-sections for this section. |
void |
setSelect(String expression)
Sets the XPath selection expression for selecting the section. |
void |
setUseSelectForDelete(boolean useSelectForDelete)
Sets the status indicating if the selection expression should be used to select nodes for deletion when an optional section has not been filled (i.e. |
void |
setVisibleOnDetails(boolean visible)
Sets the status indicating if the section should be displayed on the view details page. |
void |
unBind(Schema schema,
UiContext context,
UIComponent editorForm)
Triggered on the save event from the metadata editor. |
void |
update(Document dom,
XPath xpath)
Updates the metadata document template based upon entered parameter value(s). |
void |
validate(Schema schema)
Validates a section. |
| Methods inherited from class com.esri.gpt.catalog.schema.UiComponent |
|---|
getStyleClass, makeBR, makeNBSP, setStyleClass |
| 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 |
| Field Detail |
|---|
public static final String OBLIGATION_EXCLUSIVE
public static final String OBLIGATION_MANDATORY
public static final String OBLIGATION_OPTIONAL
| Constructor Detail |
|---|
public Section()
public Section(Section objectToDuplicate)
objectToDuplicate - the object to duplicate| Method Detail |
|---|
public String getDelete()
public void setDelete(String expression)
public String getFacesId()
public Label getLabel()
public void setLabel(Label label)
label - the label componentpublic String getObligation()
public void setObligation(String obligation)
obligation - the obligationpublic boolean getOpen()
public void setOpen(boolean open)
open - true if the section is openpublic Parameters getParameters()
protected void setParameters(Parameters parameters)
parameters - the schema parameterspublic Section getParent()
protected void setParent(Section parent)
public Sections getSections()
protected void setSections(Sections sections)
sections - the sub-sectionspublic String getSelect()
public void setSelect(String expression)
expression - the selection expressionpublic boolean getUseSelectForDelete()
public void setUseSelectForDelete(boolean useSelectForDelete)
useSelectForDelete - true if the selection expression
should be used for deletionpublic boolean getVisibleOnDetails()
public void setVisibleOnDetails(boolean visible)
visible - true if the section should be displayed on the view details page
public boolean appendDetailComponents(Schema schema,
UiContext context,
UIComponent parentComponent)
schema - the parent schemacontext - the UI contextparentComponent - the parent component for this section
public void appendEditorComponents(Schema schema,
UiContext context,
UIComponent parentComponent)
schema - the parent schemacontext - the UI contextparentComponent - the parent component for this section
public void configure(CfgContext context,
Node node,
NamedNodeMap attributes)
configure in class UiComponentcontext - the configuration contextnode - the configuration nodeattributes - the attributes of the configuration nodepublic Section duplicate()
duplicate in class Componentpublic void echo(StringBuffer sb)
echo in class UiComponentsb - the StringBuffer to use when appending information
public void evaluate(Schema schema,
Document dom,
XPath xpath)
throws XPathExpressionException
schema - the schema being evaluateddom - the metadata documentxpath - an XPath object configured with an appropriate
Namespace context for the schema
XPathExpressionException - if an evaluation expression failspublic void forceOpen(UIComponent editorForm)
editorForm - the Faces HtmlForm for the metadata editor
public void unBind(Schema schema,
UiContext context,
UIComponent editorForm)
throws SchemaException
schema - the active schemacontext - the UI contexteditorForm - the Faces HtmlForm for the metadata editor
SchemaException - if an associated Faces UIComponent cannot be located
public void update(Document dom,
XPath xpath)
throws XPathExpressionException,
SchemaException
dom - the metadata document template for the schemaxpath - an XPath object configured with an appropriate
Namespace context for the schema
XPathExpressionException - if an expression fails
SchemaException - if the update failspublic void validate(Schema schema)
schema - the schema being validatedpublic List<Parameter> selectParameters(Predicate predicate)
predicate - predicate
|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||