TUM CCSM Commons

edu.tum.cs.commons.xml
Enum EXMLWriterExceptionType

java.lang.Object
  extended by java.lang.Enum<EXMLWriterExceptionType>
      extended by edu.tum.cs.commons.xml.EXMLWriterExceptionType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EXMLWriterExceptionType>

public enum EXMLWriterExceptionType
extends java.lang.Enum<EXMLWriterExceptionType>

Exception types to detail XMLWriterExceptions.

Version:
$Rev: 26283 $
Author:
Florian Deissenboeck, $Author: juergens $
Rating:
GREEN Hash: 366DABAC7EB1635FB2DA48EC24D39B6B

Enum Constant Summary
ATTRIBUTE_OUTSIDE_ELEMENT
          On attempt to create an attribute outside an element head.
CDATA_CONTAINS_CDATA_CLOSING_TAG
          Text added to a CDATA section contains CDATA closing tag ]]>
DUPLICATE_ATTRIBUTE
          On attempt to create a duplicate attribute.
HEADER_WITHIN_DOCUMENT
          On attempt to add an XML header in the middle of a document.
ILLEGAL_ATTRIBUTE_TYPE
          The attributes provided are of the wrong type.
ODD_NUMBER_OF_ARGUMENTS
          The number of arguments provided is odd.
UNCLOSED_ELEMENT
          On attempt to close wrong element.
 
Method Summary
static EXMLWriterExceptionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EXMLWriterExceptionType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNCLOSED_ELEMENT

public static final EXMLWriterExceptionType UNCLOSED_ELEMENT
On attempt to close wrong element.


ATTRIBUTE_OUTSIDE_ELEMENT

public static final EXMLWriterExceptionType ATTRIBUTE_OUTSIDE_ELEMENT
On attempt to create an attribute outside an element head.


DUPLICATE_ATTRIBUTE

public static final EXMLWriterExceptionType DUPLICATE_ATTRIBUTE
On attempt to create a duplicate attribute.


HEADER_WITHIN_DOCUMENT

public static final EXMLWriterExceptionType HEADER_WITHIN_DOCUMENT
On attempt to add an XML header in the middle of a document.


ODD_NUMBER_OF_ARGUMENTS

public static final EXMLWriterExceptionType ODD_NUMBER_OF_ARGUMENTS
The number of arguments provided is odd.


ILLEGAL_ATTRIBUTE_TYPE

public static final EXMLWriterExceptionType ILLEGAL_ATTRIBUTE_TYPE
The attributes provided are of the wrong type.


CDATA_CONTAINS_CDATA_CLOSING_TAG

public static final EXMLWriterExceptionType CDATA_CONTAINS_CDATA_CLOSING_TAG
Text added to a CDATA section contains CDATA closing tag ]]>

Method Detail

values

public static EXMLWriterExceptionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EXMLWriterExceptionType c : EXMLWriterExceptionType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EXMLWriterExceptionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

TUM CCSM Commons

TUM CCSM Commons - 2.7