Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class ValidationError

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

public class ValidationError
extends Object

Describes an error that occurred during validation.


Field Summary
static String REASONCODE_ENVELOPE_ISINVALID
          Reason code envelope is invalid = "envelopeIsInvalid"
static String REASONCODE_PARAMETER_ISINVALID
          Reason code parameter is invalid = "parameterIsInvalid"
static String REASONCODE_PARAMETER_ISREQUIRED
          Reason code parameter is required = "parameterIsRequired"
static String REASONCODE_TITLE_ISREQUIRED
          Reason code title is required = "titleIsRequired"
static String REASONCODE_XML_ISINVALID
          Reason code XML document is invalid = "xmlIsInvalid"
static String REASONCODE_XSD_ISINVALID
          Reason code XSD reference is invalid = "xsdIsInvalid"
static String REASONCODE_XSD_VIOLATION
          Reason code XSD rule violation = "xsdViolation"
 
Constructor Summary
ValidationError()
          Default constructor.
ValidationError(Section section, Parameter parameter, String reasonCode)
          Constructs with a supplied section, the parameter that failed and a reason code
 
Method Summary
 String getMessage()
          Gets the message.
 Parameter getParameter()
          Gets the parameter that failed to validate.
 String getParameterResourceKey()
          Gets the parameter resource key.
 String getParameterXPath()
          Gets the parameter XPath selection expression
 String getReasonCode()
          Gets the reason code.
 Section getSection()
          Gets the section containing parameter that failed to validate.
 String getSectionResourceKey()
          Gets the section resource key.
 void setMessage(String message)
          Sets the message.
 void setParameter(Parameter parameter)
          Sets the parameter that failed to validate.
 void setReasonCode(String reasonCode)
          Sets the reason code.
 void setSection(Section section)
          Sets the section containing parameter that failed to validate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REASONCODE_ENVELOPE_ISINVALID

public static final String REASONCODE_ENVELOPE_ISINVALID
Reason code envelope is invalid = "envelopeIsInvalid"

See Also:
Constant Field Values

REASONCODE_PARAMETER_ISINVALID

public static final String REASONCODE_PARAMETER_ISINVALID
Reason code parameter is invalid = "parameterIsInvalid"

See Also:
Constant Field Values

REASONCODE_PARAMETER_ISREQUIRED

public static final String REASONCODE_PARAMETER_ISREQUIRED
Reason code parameter is required = "parameterIsRequired"

See Also:
Constant Field Values

REASONCODE_TITLE_ISREQUIRED

public static final String REASONCODE_TITLE_ISREQUIRED
Reason code title is required = "titleIsRequired"

See Also:
Constant Field Values

REASONCODE_XML_ISINVALID

public static final String REASONCODE_XML_ISINVALID
Reason code XML document is invalid = "xmlIsInvalid"

See Also:
Constant Field Values

REASONCODE_XSD_ISINVALID

public static final String REASONCODE_XSD_ISINVALID
Reason code XSD reference is invalid = "xsdIsInvalid"

See Also:
Constant Field Values

REASONCODE_XSD_VIOLATION

public static final String REASONCODE_XSD_VIOLATION
Reason code XSD rule violation = "xsdViolation"

See Also:
Constant Field Values
Constructor Detail

ValidationError

public ValidationError()
Default constructor.


ValidationError

public ValidationError(Section section,
                       Parameter parameter,
                       String reasonCode)
Constructs with a supplied section, the parameter that failed and a reason code

Parameters:
section - the containing section
parameter - the parameter that failed
reasonCode - the reason code
Method Detail

getMessage

public String getMessage()
Gets the message.

Returns:
the message

setMessage

public void setMessage(String message)
Sets the message.

Parameters:
message - the message

getParameter

public Parameter getParameter()
Gets the parameter that failed to validate.

Returns:
the parameter that failed

setParameter

public void setParameter(Parameter parameter)
Sets the parameter that failed to validate.

Parameters:
parameter - the parameter that failed

getParameterResourceKey

public String getParameterResourceKey()
Gets the parameter resource key.

Returns:
the parameter resource key

getParameterXPath

public String getParameterXPath()
Gets the parameter XPath selection expression

Returns:
the parameter XPath selection expression

getReasonCode

public String getReasonCode()
Gets the reason code.

Returns:
the reason code

setReasonCode

public void setReasonCode(String reasonCode)
Sets the reason code.

Parameters:
reasonCode - the reason code

getSection

public Section getSection()
Gets the section containing parameter that failed to validate.

Returns:
the containing section

setSection

public void setSection(Section section)
Sets the section containing parameter that failed to validate.

Parameters:
section - the containing section

getSectionResourceKey

public String getSectionResourceKey()
Gets the section resource key.

Returns:
the section resource key

Esri Geoportal Server
1.0

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