org.gxml.xs
Enum SmProcessContentsMode

java.lang.Object
  extended by java.lang.Enum<SmProcessContentsMode>
      extended by org.gxml.xs.SmProcessContentsMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SmProcessContentsMode>

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

Process Contents controls the impact on assessment of the information items allowed by wildcards.


Enum Constant Summary
Lax
          Indicates that the processor should try to validate the contents of the element when it can.
Skip
          (The default) indicates that the processor should not try to validate the content within this element.
Strict
          Indicates that the processor should validate the contents of the element according to the namespace given.
 
Method Summary
static SmProcessContentsMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SmProcessContentsMode[] 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

Lax

public static final SmProcessContentsMode Lax
Indicates that the processor should try to validate the contents of the element when it can. If the item has a uniquely determined declaration available, it must be valid with respect to that definition.


Strict

public static final SmProcessContentsMode Strict
Indicates that the processor should validate the contents of the element according to the namespace given. There must be a top-level declaration for the item available, or the item must have an xsi:type, and the item must be valid as appropriate.


Skip

public static final SmProcessContentsMode Skip
(The default) indicates that the processor should not try to validate the content within this element. No constraint at all: the item must simply be well-formed XML.

Method Detail

values

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

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

valueOf

public static SmProcessContentsMode 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


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.