Class FacetFactory

java.lang.Object
org.exolab.castor.xml.schema.FacetFactory

public final class FacetFactory extends Object
A factory to create instances of Facets.
Version:
$Revision: 6465 $ $Date: 2006-04-13 06:47:36 -0600 (Thu, 13 Apr 2006) $
Author:
Sergei Ivanov
See Also:
  • Method Details

    • getInstance

      public static FacetFactory getInstance()
      Returns the singleton instance of the facet factory.
      Returns:
      factory instance
    • createFacet

      public Facet createFacet(String name, 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