Class FacetList

  • All Implemented Interfaces:
    java.io.Serializable

    public class FacetList
    extends java.lang.Object
    implements java.io.Serializable
    A list for maintaining facets
    Version:
    $Revision: 8667 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
    Author:
    Keith Visco
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FacetList()
      Creates a new FacetList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Facet facet)
      Adds the given Facet to this list
      void add​(FacetList facetList)
      Adds the facets from the given list into this FacetList
      Facet contains​(java.lang.String name)
      Returns the facet of the list with with the given name.
      java.util.Enumeration<Facet> enumerate()
      Returns an Enumeration of the Facets in this list
      Facet get​(int index)
      Returns the facet at the given index
      Facet remove​(int index)
      Removes the facet located at the given index
      boolean remove​(Facet facet)
      Removes the given Facet from this list
      int size()
      Returns the number of Facets in this list
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FacetList

        public FacetList()
        Creates a new FacetList
    • Method Detail

      • add

        public void add​(Facet facet)
        Adds the given Facet to this list
        Parameters:
        facet - the facet to add
      • add

        public void add​(FacetList facetList)
        Adds the facets from the given list into this FacetList
        Parameters:
        facetList - the FacetList to copy from
      • get

        public Facet get​(int index)
        Returns the facet at the given index
        Parameters:
        index - the index of the Facet to return
      • remove

        public boolean remove​(Facet facet)
        Removes the given Facet from this list
        Parameters:
        facet - the Facet to remove
      • remove

        public Facet remove​(int index)
        Removes the facet located at the given index
        Parameters:
        index - the index of the Facet to remove
        Returns:
        the removed facet
      • size

        public int size()
        Returns the number of Facets in this list
        Returns:
        the number of Facets in this list
      • enumerate

        public java.util.Enumeration<Facet> enumerate()
        Returns an Enumeration of the Facets in this list
        Returns:
        an Enumeration of the Facets in this list
      • contains

        public Facet contains​(java.lang.String name)
        Returns the facet of the list with with the given name. In case of an ENUMERATION the first facet is returned. If none of the name of the facets of that list correspond to the given name, null is returned.
        Parameters:
        name - the facet name to look for.
        Returns:
        The facet of the list with the given name