Package org.exolab.castor.xml.schema
Class FinalList
- java.lang.Object
-
- org.exolab.castor.xml.schema.FinalList
-
public final class FinalList extends java.lang.Object
A class to represent the values of the XML Schema block property- Version:
- $Revision: 5951 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Keith Visco
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALL
The #all valuestatic java.lang.String
EXTENSION
The extension valuestatic java.lang.String
RESTRICTION
The restriction value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasAll()
Returns true if the FinalList contains "#all".boolean
hasExtension()
Returns true if extension is contained within this FinalList.boolean
hasRestriction()
Returns true if restriction is contained within this FinalList.java.lang.String
toString()
Returns the String representation of this FinalList.
-
-
-
Field Detail
-
ALL
public static final java.lang.String ALL
The #all value- See Also:
- Constant Field Values
-
EXTENSION
public static final java.lang.String EXTENSION
The extension value- See Also:
- Constant Field Values
-
RESTRICTION
public static final java.lang.String RESTRICTION
The restriction value- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FinalList
public FinalList()
Creates a new default FinalList. Nothing is flagged as being final.
-
FinalList
public FinalList(java.lang.String listOfValues)
Creates a new FinalList using the given list of values.- Parameters:
listOfValues
- the list of final values- Throws:
java.lang.IllegalArgumentException
- if the list of values contains something other than "#all", "extension", "restriction".
-
-
Method Detail
-
hasAll
public boolean hasAll()
Returns true if the FinalList contains "#all".- Returns:
- true if the FinalList contains "#all".
-
hasExtension
public boolean hasExtension()
Returns true if extension is contained within this FinalList.- Returns:
- true if extension is contained within this FinalList.
-
hasRestriction
public boolean hasRestriction()
Returns true if restriction is contained within this FinalList.- Returns:
- true if restriction is contained within this FinalList.
-
toString
public java.lang.String toString()
Returns the String representation of this FinalList.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the String representation of this FinalList.
-
-