org.eclipse.xsd
Enum XSDSubstitutionGroupExclusions

java.lang.Object
  extended by java.lang.Enum<XSDSubstitutionGroupExclusions>
      extended by org.eclipse.xsd.XSDSubstitutionGroupExclusions
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<XSDSubstitutionGroupExclusions>, org.eclipse.emf.common.util.Enumerator

public enum XSDSubstitutionGroupExclusions
extends java.lang.Enum<XSDSubstitutionGroupExclusions>
implements org.eclipse.emf.common.util.Enumerator

A representation of the literals of the enumeration 'Substitution Group Exclusions'.

See Also:
XSDElementDeclaration.getSubstitutionGroupExclusions(), XSDPackage.getXSDSubstitutionGroupExclusions()

Enum Constant Summary
EXTENSION_LITERAL
          The 'Extension' literal object
RESTRICTION_LITERAL
          The 'Restriction' literal object
 
Field Summary
static int EXTENSION
          The 'Extension' literal value
static int RESTRICTION
          The 'Restriction' literal value
static java.util.List<XSDSubstitutionGroupExclusions> VALUES
          A public read-only list of all the 'Substitution Group Exclusions' enumerators
 
Method Summary
static XSDSubstitutionGroupExclusions get(int value)
          Returns the 'Substitution Group Exclusions' literal with the specified integer value
static XSDSubstitutionGroupExclusions get(java.lang.String literal)
          Returns the 'Substitution Group Exclusions' literal with the specified literal value
static XSDSubstitutionGroupExclusions getByName(java.lang.String name)
          Returns the 'Substitution Group Exclusions' literal with the specified name
 java.lang.String getLiteral()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation
static XSDSubstitutionGroupExclusions valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static XSDSubstitutionGroupExclusions[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXTENSION_LITERAL

public static final XSDSubstitutionGroupExclusions EXTENSION_LITERAL
The 'Extension' literal object.

See Also:
EXTENSION

RESTRICTION_LITERAL

public static final XSDSubstitutionGroupExclusions RESTRICTION_LITERAL
The 'Restriction' literal object.

See Also:
RESTRICTION
Field Detail

EXTENSION

public static final int EXTENSION
The 'Extension' literal value.

This is used to indicate that an element with a type derived via extension may not be nominated to an element declaration's substitution group.

See Also:
EXTENSION_LITERAL, Constant Field Values

RESTRICTION

public static final int RESTRICTION
The 'Restriction' literal value.

This is used to indicate that an element with a type derived via restriction may not be nominated to an element declaration's substitution group.

See Also:
RESTRICTION_LITERAL, Constant Field Values

VALUES

public static final java.util.List<XSDSubstitutionGroupExclusions> VALUES
A public read-only list of all the 'Substitution Group Exclusions' enumerators.

Method Detail

values

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

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

valueOf

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

get

public static XSDSubstitutionGroupExclusions get(java.lang.String literal)
Returns the 'Substitution Group Exclusions' literal with the specified literal value.


getByName

public static XSDSubstitutionGroupExclusions getByName(java.lang.String name)
Returns the 'Substitution Group Exclusions' literal with the specified name.


get

public static XSDSubstitutionGroupExclusions get(int value)
Returns the 'Substitution Group Exclusions' literal with the specified integer value.


getValue

public int getValue()

Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator

getName

public java.lang.String getName()

Specified by:
getName in interface org.eclipse.emf.common.util.Enumerator

getLiteral

public java.lang.String getLiteral()

Specified by:
getLiteral in interface org.eclipse.emf.common.util.Enumerator

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<XSDSubstitutionGroupExclusions>

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.