org.eclipse.xsd
Class XSDConstraint

java.lang.Object
  |
  +--org.eclipse.emf.common.util.AbstractEnumerator
        |
        +--org.eclipse.xsd.XSDConstraint
All Implemented Interfaces:
org.eclipse.emf.common.util.Enumerator

public final class XSDConstraint
extends org.eclipse.emf.common.util.AbstractEnumerator

A representation of the literals of the enumeration 'Constraint'.

See Also:
XSDAttributeUse.getConstraint(), XSDFeature.getConstraint(), XSDFeature.getConstraint(), XSDPackage.getXSDConstraint()

Field Summary
static int DEFAULT
          The 'Default' literal value.
static XSDConstraint DEFAULT_LITERAL
          The 'Default' literal object.
static int FIXED
          The 'Fixed' literal value.
static XSDConstraint FIXED_LITERAL
          The 'Fixed' literal object.
static java.util.List VALUES
          A public read-only list of all the 'Constraint' enumerators.
 
Method Summary
static XSDConstraint get(int value)
          Returns the 'Constraint' literal with the specified value.
static XSDConstraint get(java.lang.String name)
          Returns the 'Constraint' literal with the specified name.
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEnumerator
getName, getValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT
The 'Default' literal value.

This is used to indicate that an attribute use defaults to its constrained value.

See Also:
DEFAULT_LITERAL

FIXED

public static final int FIXED
The 'Fixed' literal value.

This is used to indicate that an attribute use is fixed to its constrained value.

See Also:
FIXED_LITERAL

DEFAULT_LITERAL

public static final XSDConstraint DEFAULT_LITERAL
The 'Default' literal object.

See Also:
DEFAULT

FIXED_LITERAL

public static final XSDConstraint FIXED_LITERAL
The 'Fixed' literal object.

See Also:
FIXED

VALUES

public static final java.util.List VALUES
A public read-only list of all the 'Constraint' enumerators.
Method Detail

get

public static XSDConstraint get(java.lang.String name)
Returns the 'Constraint' literal with the specified name.

get

public static XSDConstraint get(int value)
Returns the 'Constraint' literal with the specified value.

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