|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<XSDAttribute> cz.cuni.mff.ksi.jinfer.xsdimporter.utils.XSDAttribute
public enum XSDAttribute
Enumeration of known tag attributes for the purpose of parsing XSD Schemas.
XSD Schema specifies several tag attributes that can occur within a schema document.
Every value has its case sensitive name which should be used for comparison with tag attributes from schema.
Special value INVALID
is reserved for possible unknown tag attributes.
Enum Constant Summary | |
---|---|
INVALID
Special value meaning that the parsed attribute is not known. |
|
MAXOCCURS
Attribute maxOccurs of a tag. |
|
MINOCCURS
Attribute minOccurs of a tag. |
|
NAME
Attribute name of a tag. |
|
REF
Attribute ref of a tag. |
|
TYPE
Attribute type of a tag. |
|
USE
Attribute use of a tag. |
Method Summary | |
---|---|
String |
getMetadataName()
Get the prefixed name of current attribute to be used as a key in metadata. |
String |
getName()
Get the case sensitive name of current attribute. |
static XSDAttribute |
matchName(String name)
Determine if the parameter can match any of the attributes. |
String |
toString()
Get the case sensitive name of current attribute. |
static XSDAttribute |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static XSDAttribute[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final XSDAttribute NAME
public static final XSDAttribute REF
public static final XSDAttribute TYPE
public static final XSDAttribute USE
public static final XSDAttribute MINOCCURS
public static final XSDAttribute MAXOCCURS
public static final XSDAttribute INVALID
Method Detail |
---|
public static XSDAttribute[] values()
for (XSDAttribute c : XSDAttribute.values()) System.out.println(c);
public static XSDAttribute valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<XSDAttribute>
public String getName()
public String getMetadataName()
public static XSDAttribute matchName(String name)
name
- A name to match up with an attribute.
INVALID
when such attribute is not known.
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |