Package org.exolab.castor.xml.schema
Class BlockList
java.lang.Object
org.exolab.castor.xml.schema.BlockList
A class to represent the values of the XML Schema block property
- Version:
- $Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Keith Visco
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasAll()
Returns true if the BlockList contains "#all".boolean
Returns true if extension is contained within this BlockList.boolean
Returns true if restriction is contained within this BlockList.boolean
Returns true if substitution is contained within this BlockList.toString()
Returns the String representation of this BlockList
-
Field Details
-
ALL
-
EXTENSION
-
RESTRICTION
-
SUBSTITUTION
-
-
Constructor Details
-
BlockList
public BlockList()Creates a new default BlockList. Nothing is flagged as being blocked. -
BlockList
Creates a new BlockList using the given list of values.- Parameters:
listOfValues
- the list of block values- Throws:
IllegalArgumentException
- if the list of values contains something other than "extension", "restriction", or "substition".
-
-
Method Details
-
hasAll
public boolean hasAll()Returns true if the BlockList contains "#all".- Returns:
- true if the BlockList contains "#all".
-
hasExtension
public boolean hasExtension()Returns true if extension is contained within this BlockList.- Returns:
- true if extension is contained within this BlockList.
-
hasRestriction
public boolean hasRestriction()Returns true if restriction is contained within this BlockList.- Returns:
- true if restriction is contained within this BlockList
-
hasSubstitution
public boolean hasSubstitution()Returns true if substitution is contained within this BlockList.- Returns:
- true if substitution is contained within this BlockList.
-
toString
-