Package org.exolab.castor.xml.schema
Class FacetList
java.lang.Object
org.exolab.castor.xml.schema.FacetList
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given Facet to this listvoid
Adds the facets from the given list into this FacetListReturns the facet of the list with with the given name.Returns an Enumeration of the Facets in this listget
(int index) Returns the facet at the given indexremove
(int index) Removes the facet located at the given indexboolean
Removes the given Facet from this listint
size()
Returns the number of Facets in this list
-
Constructor Details
-
FacetList
public FacetList()Creates a new FacetList
-
-
Method Details
-
add
Adds the given Facet to this list- Parameters:
facet
- the facet to add
-
add
Adds the facets from the given list into this FacetList- Parameters:
facetList
- the FacetList to copy from
-
get
Returns the facet at the given index- Parameters:
index
- the index of the Facet to return
-
remove
Removes the given Facet from this list- Parameters:
facet
- the Facet to remove
-
remove
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
Returns an Enumeration of the Facets in this list- Returns:
- an Enumeration of the Facets in this list
-
contains
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
-