Class BlockList


  • public final class BlockList
    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 value
      static java.lang.String EXTENSION
      The extension value
      static java.lang.String RESTRICTION
      The restriction value
      static java.lang.String SUBSTITUTION
      The substitution value
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasAll()
      Returns true if the BlockList contains "#all".
      boolean hasExtension()
      Returns true if extension is contained within this BlockList.
      boolean hasRestriction()
      Returns true if restriction is contained within this BlockList.
      boolean hasSubstitution()
      Returns true if substitution is contained within this BlockList.
      java.lang.String toString()
      Returns the String representation of this BlockList
      • Methods inherited from class java.lang.Object

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

      • 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
      • SUBSTITUTION

        public static final java.lang.String SUBSTITUTION
        The substitution value
        See Also:
        Constant Field Values
    • Constructor Detail

      • BlockList

        public BlockList()
        Creates a new default BlockList. Nothing is flagged as being blocked.
      • BlockList

        public BlockList​(java.lang.String listOfValues)
        Creates a new BlockList using the given list of values.
        Parameters:
        listOfValues - the list of block values
        Throws:
        java.lang.IllegalArgumentException - if the list of values contains something other than "extension", "restriction", or "substition".
    • Method Detail

      • 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

        public java.lang.String toString()
        Returns the String representation of this BlockList
        Overrides:
        toString in class java.lang.Object