Public Member Functions

org.exolab.castor.xml.schema.FacetList Class Reference

List of all members.

Public Member Functions

 FacetList ()
void add (Facet facet)
void add (FacetList facetList)
Facet get (int index)
boolean remove (Facet facet)
Facet remove (int index)
int size ()
Enumeration enumerate ()
Facet contains (String name)

Detailed Description

A list for maintaining facets

Author:
Keith Visco
Version:
Revision:
1.3
Date:
2004/10/01 13:25:21

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.FacetList.FacetList (  ) 

Creates a new FacetList


Member Function Documentation

void org.exolab.castor.xml.schema.FacetList.add ( Facet  facet  ) 
void org.exolab.castor.xml.schema.FacetList.add ( FacetList  facetList  ) 

Adds the facets from the given list into this FacetList

Parameters:
facetList the FacetList to copy from

References org.exolab.castor.util.List.add(), org.exolab.castor.util.List.get(), and org.exolab.castor.util.List.size().

Facet org.exolab.castor.xml.schema.FacetList.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.

Parameters:
name the facet name to look for.
Returns:
The facet of the list with the given name

References org.exolab.castor.xml.schema.FacetList.enumerate(), and org.exolab.castor.xml.schema.Facet.getName().

Enumeration org.exolab.castor.xml.schema.FacetList.enumerate (  ) 
Facet org.exolab.castor.xml.schema.FacetList.get ( int  index  ) 
boolean org.exolab.castor.xml.schema.FacetList.remove ( Facet  facet  ) 

Removes the given Facet from this list

Parameters:
facet the Facet to remove

References org.exolab.castor.util.List.remove().

Referenced by org.exolab.castor.xml.schema.SimpleType.removeFacet().

Facet org.exolab.castor.xml.schema.FacetList.remove ( int  index  ) 

Removes the facet located at the given index

Parameters:
index the index of the Facet to remove
Returns:
the removed facet

References org.exolab.castor.util.List.remove().

int org.exolab.castor.xml.schema.FacetList.size (  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties