| 
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.Validation
public class Validation
Validation component associated with a metadata schema.
The component is configured from a node with a schema configuration XML document. Example:
| Field Summary | |
|---|---|
static String | 
VALUETYPE_DATE
Date = "date"  | 
static String | 
VALUETYPE_DOUBLE
Double = "double"  | 
static String | 
VALUETYPE_EMAIL
Email address = "email"  | 
static String | 
VALUETYPE_INTEGER
Integer = "integer"  | 
static String | 
VALUETYPE_STRING
String = "string" (this is the default)  | 
| Constructor Summary | |
|---|---|
Validation()
Default constructor.  | 
|
Validation(Validation objectToDuplicate)
Construct by duplicating an existing object.  | 
|
| Method Summary | |
|---|---|
 void | 
configure(CfgContext context,
          Node node,
          NamedNodeMap attributes)
Configures the object based upon a node loaded from a schema configuration XML.  | 
 Validation | 
duplicate()
Produces a deep clone of the object.  | 
 void | 
echo(StringBuffer sb)
Appends property information for the component to a StringBuffer.  | 
 String | 
getNilReasonValue()
Gets the associated ISO nil-reason value (if any).  | 
 boolean | 
getRequired()
Gets the required status.  | 
 String | 
getValueType()
Gets the value type.  | 
 void | 
setNilReasonValue(String reason)
Sets the associated ISO nil-reason value (if any).  | 
 void | 
setRequired(boolean required)
Sets the required status.  | 
 void | 
setValueType(String type)
Sets the value type.  | 
 void | 
validate(Schema schema,
         Section section,
         Parameter parameter)
Executes the validation of a parameter Encountered errors should be appended to the schema.getValidationErrors() collection.  | 
| 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 VALUETYPE_DATE
public static final String VALUETYPE_DOUBLE
public static final String VALUETYPE_EMAIL
public static final String VALUETYPE_INTEGER
public static final String VALUETYPE_STRING
| Constructor Detail | 
|---|
public Validation()
public Validation(Validation objectToDuplicate)
objectToDuplicate - the object to duplicate| Method Detail | 
|---|
public String getNilReasonValue()
public void setNilReasonValue(String reason)
reason - the nil-reason valuepublic boolean getRequired()
public void setRequired(boolean required)
required - true if the parameter is requiredpublic String getValueType()
public void setValueType(String type)
type - the value type
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 Validation duplicate()
duplicate in class Componentpublic void echo(StringBuffer sb)
echo in class Componentsb - the StringBuffer to use when appending information
public void validate(Schema schema,
                     Section section,
                     Parameter parameter)
schema - the schema being validatedsection - the section being validatedparameter - the parameter being validated
  | 
Esri Geoportal Server 1.0 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||