Package org.exolab.castor.xml.schema
Class Form
java.lang.Object
org.exolab.castor.xml.schema.Form
Represents an enumerated type which consists of two values: "qualified" and "unqualified". This
is used for the "form" property on attribute and element defintions as well as the
attributeFormDefault and elementFormDefault proprties on the Schema itself.
- Version:
- $Revision$ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Returns the String value of this Form.boolean
Returns true if this Form is the qualified Form.boolean
Returns true if this Form is the unqualified Form.toString()
Returns the String value of this Form.static Form
Returns the Form corresponding to the given value.
-
Field Details
-
QUALIFIED_VALUE
-
UNQUALIFIED_VALUE
-
Qualified
The Qualified Form Object -
Unqualified
The Qualified Form Object
-
-
Method Details
-
getValue
Returns the String value of this Form.- Returns:
- the String value of this Form.
-
isQualified
public boolean isQualified()Returns true if this Form is the qualified Form.- Returns:
- true if this Form is the qualified Form.
-
isUnqualified
public boolean isUnqualified()Returns true if this Form is the unqualified Form.- Returns:
- true if this Form is the unqualified Form.
-
toString
-
valueOf
Returns the Form corresponding to the given value.- Parameters:
formValue
- the value of the Form to return.- Returns:
- the Form corresponding to the given value.
- Throws:
IllegalArgumentException
- when the given value is not valid.
-