Package org.exolab.castor.xml.schema
Class FacetFactory
- java.lang.Object
-
- org.exolab.castor.xml.schema.FacetFactory
-
public final class FacetFactory extends java.lang.Object
A factory to create instances ofFacet
s.- Version:
- $Revision: 6465 $ $Date: 2006-04-13 06:47:36 -0600 (Thu, 13 Apr 2006) $
- Author:
- Sergei Ivanov
- See Also:
Facet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Facet
createFacet(java.lang.String name, java.lang.String value)
Creates a new instance of a facet.static FacetFactory
getInstance()
Returns the singleton instance of the facet factory.
-
-
-
Method Detail
-
getInstance
public static FacetFactory getInstance()
Returns the singleton instance of the facet factory.- Returns:
- factory instance
-
createFacet
public Facet createFacet(java.lang.String name, java.lang.String value)
Creates a new instance of a facet.- Parameters:
name
- facet name (implies facet type)value
- value of the facet- Returns:
- a new facet instance
-
-