org.cdmckay.coffeedom.filter
Enum ContentFilter.ContentType

java.lang.Object
  extended by java.lang.Enum<ContentFilter.ContentType>
      extended by org.cdmckay.coffeedom.filter.ContentFilter.ContentType
All Implemented Interfaces:
Serializable, Comparable<ContentFilter.ContentType>
Enclosing class:
ContentFilter

public static enum ContentFilter.ContentType
extends Enum<ContentFilter.ContentType>


Enum Constant Summary
CDATA
          Mask for CoffeeDOM CDATA objects
COMMENT
          Mask for CoffeeDOM Comment objects
DOCTYPE
          Mask for CoffeeDOM DocType object
DOCUMENT
          Mask for CoffeeDOM Document object
ELEMENT
          Mask for CoffeeDOM Element objects
ENTITYREF
          Mask for CoffeeDOM EntityRef objects
PI
          Mask for CoffeeDOM ProcessingInstruction objects
TEXT
          Mask for CoffeeDOM Text objects
 
Method Summary
static ContentFilter.ContentType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ContentFilter.ContentType[] 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

ELEMENT

public static final ContentFilter.ContentType ELEMENT
Mask for CoffeeDOM Element objects


CDATA

public static final ContentFilter.ContentType CDATA
Mask for CoffeeDOM CDATA objects


TEXT

public static final ContentFilter.ContentType TEXT
Mask for CoffeeDOM Text objects


COMMENT

public static final ContentFilter.ContentType COMMENT
Mask for CoffeeDOM Comment objects


PI

public static final ContentFilter.ContentType PI
Mask for CoffeeDOM ProcessingInstruction objects


ENTITYREF

public static final ContentFilter.ContentType ENTITYREF
Mask for CoffeeDOM EntityRef objects


DOCUMENT

public static final ContentFilter.ContentType DOCUMENT
Mask for CoffeeDOM Document object


DOCTYPE

public static final ContentFilter.ContentType DOCTYPE
Mask for CoffeeDOM DocType object

Method Detail

values

public static ContentFilter.ContentType[] 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 (ContentFilter.ContentType c : ContentFilter.ContentType.values())
    System.out.println(c);

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

valueOf

public static ContentFilter.ContentType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.