org.eclipse.xsd
Class XSDConstraint

java.lang.Object
  extended byorg.eclipse.emf.common.util.AbstractEnumerator
      extended byorg.eclipse.xsd.XSDConstraint
All Implemented Interfaces:
Enumerator

public final class XSDConstraint
extends 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 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 integer value
static XSDConstraint get(String literal)
          Returns the 'Constraint' literal with the specified literal value
static XSDConstraint getByName(String name)
          Returns the 'Constraint' literal with the specified name
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEnumerator
getLiteral, 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, Constant Field Values

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, Constant Field Values

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 List VALUES
A public read-only list of all the 'Constraint' enumerators.

Method Detail

get

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


getByName

public static XSDConstraint getByName(String name)
Returns the 'Constraint' literal with the specified name.


get

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


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