Class FinalList

java.lang.Object
org.exolab.castor.xml.schema.FinalList

public final class FinalList extends 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 final String
    The #all value
    static final String
    The extension value
    static final String
    The restriction value
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new default FinalList.
    FinalList(String listOfValues)
    Creates a new FinalList using the given list of values.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the FinalList contains "#all".
    boolean
    Returns true if extension is contained within this FinalList.
    boolean
    Returns true if restriction is contained within this FinalList.
    Returns the String representation of this FinalList.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • FinalList

      public FinalList()
      Creates a new default FinalList. Nothing is flagged as being final.
    • FinalList

      public FinalList(String listOfValues)
      Creates a new FinalList using the given list of values.
      Parameters:
      listOfValues - the list of final values
      Throws:
      IllegalArgumentException - if the list of values contains something other than "#all", "extension", "restriction".
  • Method Details

    • 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 String toString()
      Returns the String representation of this FinalList.
      Overrides:
      toString in class Object
      Returns:
      the String representation of this FinalList.