public class TLcdOWSExceptionReport extends TLcdDataObject
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
EXCEPTION_PROPERTY
Data property that maps to the
Exception element. |
static TLcdDataProperty |
LANG_PROPERTY
Data property that maps to the
lang attribute. |
static TLcdDataProperty |
VERSION_PROPERTY
Data property that maps to the
version attribute. |
Constructor and Description |
---|
TLcdOWSExceptionReport() |
Modifier and Type | Method and Description |
---|---|
void |
addException(TLcdOWSException aException)
Adds an exception.
|
List<TLcdOWSException> |
getException()
Returns the value of the property that maps to the
Exception element. |
TLcdOWSException |
getException(int aIndex)
Gets the exception at a given position.
|
int |
getExceptionCount()
Gets the number of exceptions.
|
String |
getLang()
Returns the value of the property that maps to the
lang attribute. |
String |
getLanguage()
Gets the language.
|
String |
getVersion()
Returns the value of the property that maps to the
version attribute. |
void |
removeException(int aIndex)
Removes the exception at a given position.
|
void |
setLang(String aValue)
Sets the value of the property that maps to the
lang attribute. |
void |
setLanguage(String aLanguage)
Sets the language.
|
void |
setVersion(String aValue)
Sets the value of the property that maps to the
version attribute. |
String |
toString()
Returns a string representation of the object.
|
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public static final TLcdDataProperty VERSION_PROPERTY
version
attribute.
The possible values for this property are instances of String
.public static final TLcdDataProperty LANG_PROPERTY
lang
attribute.
The possible values for this property are instances of String
.public static final TLcdDataProperty EXCEPTION_PROPERTY
Exception
element.
The possible values for this property are instances of List<TLcdOWSException>
.public String getLanguage()
Identifier of the language used by all included exception text values.
public void setLanguage(String aLanguage)
Identifier of the language used by all included exception text values.
aLanguage
- the language to be set.public void addException(TLcdOWSException aException)
aException
- the exception to be added.public int getExceptionCount()
public void removeException(int aIndex)
aIndex
- the index of the given position.public TLcdOWSException getException(int aIndex)
aIndex
- the index of the given position.public String toString()
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class TLcdDataObject
public String getVersion()
version
attribute.
Specification version for OWS operation. The string value shall contain one x.y.z "version" value (e.g., "2.1.3"). A version number shall contain three non-negative integers separated by decimal points, in the form "x.y.z". The integers y and z shall not exceed 99. Each version shall be for the Implementation Specification (document) and the associated XML Schemas to which requested operations will conform. An Implementation Specification version normally specifies XML Schemas against which an XML encoded operation response must conform and should be validated. See Version negotiation subclause for more information.
VERSION_PROPERTY
property.public void setVersion(String aValue)
version
attribute.
Specification version for OWS operation. The string value shall contain one x.y.z "version" value (e.g., "2.1.3"). A version number shall contain three non-negative integers separated by decimal points, in the form "x.y.z". The integers y and z shall not exceed 99. Each version shall be for the Implementation Specification (document) and the associated XML Schemas to which requested operations will conform. An Implementation Specification version normally specifies XML Schemas against which an XML encoded operation response must conform and should be validated. See Version negotiation subclause for more information.
aValue
- the value to set for the VERSION_PROPERTY
property.public String getLang()
lang
attribute.
Identifier of the language used by all included exception text values. These language identifiers shall be as specified in IETF RFC 4646. When this attribute is omitted, the language used is not identified.
LANG_PROPERTY
property.public void setLang(String aValue)
lang
attribute.
Identifier of the language used by all included exception text values. These language identifiers shall be as specified in IETF RFC 4646. When this attribute is omitted, the language used is not identified.
aValue
- the value to set for the LANG_PROPERTY
property.public List<TLcdOWSException> getException()
Exception
element.EXCEPTION_PROPERTY
property.