|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<XSDConstraint> org.eclipse.xsd.XSDConstraint
public enum XSDConstraint
A representation of the literals of the enumeration 'Constraint'.
XSDAttributeUse.getConstraint()
,
XSDFeature.getConstraint()
,
XSDFeature.getConstraint()
,
XSDPackage.getXSDConstraint()
Enum Constant Summary | |
---|---|
DEFAULT_LITERAL
The 'Default' literal object |
|
FIXED_LITERAL
The 'Fixed' literal object |
Field Summary | |
---|---|
static int |
DEFAULT
The 'Default' literal value |
static int |
FIXED
The 'Fixed' literal value |
static java.util.List<XSDConstraint> |
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(java.lang.String literal)
Returns the 'Constraint' literal with the specified literal value |
static XSDConstraint |
getByName(java.lang.String name)
Returns the 'Constraint' 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 XSDConstraint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static XSDConstraint[] |
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 |
---|
public static final XSDConstraint DEFAULT_LITERAL
DEFAULT
public static final XSDConstraint FIXED_LITERAL
FIXED
Field Detail |
---|
public static final int DEFAULT
This is used to indicate that an attribute use defaults to its constrained value.
DEFAULT_LITERAL
,
Constant Field Valuespublic static final int FIXED
This is used to indicate that an attribute use is fixed to its constrained value.
FIXED_LITERAL
,
Constant Field Valuespublic static final java.util.List<XSDConstraint> VALUES
Method Detail |
---|
public static final XSDConstraint[] values()
for(XSDConstraint c : XSDConstraint.values()) System.out.println(c);
public static XSDConstraint valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static XSDConstraint get(java.lang.String literal)
public static XSDConstraint getByName(java.lang.String name)
public static XSDConstraint get(int value)
public int getValue()
getValue
in interface Enumerator
public java.lang.String getName()
getName
in interface Enumerator
public java.lang.String getLiteral()
getLiteral
in interface Enumerator
public java.lang.String toString()
toString
in class java.lang.Enum<XSDConstraint>
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |