org.exolab.castor.xml.schema
Class FacetList
java.lang.Object
org.exolab.castor.xml.schema.FacetList
- java.io.Serializable
public class FacetList
extends java.lang.Object
implements java.io.Serializable
A list for maintaining facets
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:31 $
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(String name) - Returns the facet of the list with with the given name.
|
Enumeration | enumerate() - Returns an Enumeration of the Facets in this list
|
Facet | get(int index) - Returns the facet at the given index
|
void | remove(Facet facet) - Removes the given Facet from this list
|
int | size() - Returns the number of Facets in this list
|
FacetList
public FacetList()
Creates a new FacetList
add
public void add(Facet facet)
Adds the given Facet to this list
add
public void add(FacetList facetList)
Adds the facets from the given list into this FacetList
facetList
- the FacetList to copy from
contains
public Facet contains(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.
name
- the facet name to look for.
- The facet of the list with the given name
enumerate
public Enumeration enumerate()
Returns an Enumeration of the Facets in this list
- an Enumeration of the Facets in this list
get
public Facet get(int index)
Returns the facet at the given index
index
- the index of the Facet to return
remove
public void remove(Facet facet)
Removes the given Facet from this list
facet
- the Facet to remove
size
public int size()
Returns the number of Facets in this list
- the number of Facets in this list
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com