org.eclipse.xsd
Class XSDConstraint

java.lang.Object
  extended byAbstractEnumerator
      extended byorg.eclipse.xsd.XSDConstraint

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(), Serialized Form

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 value
static XSDConstraint get(String name)
          Returns the 'Constraint' literal with the specified name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 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-2004 IBM Corporation and others.
All Rights Reserved.