Class FacetFactory


  • public final class FacetFactory
    extends java.lang.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:
    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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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