com.ibm.commerce.foundation.client.facade.bod.servlet.config

Class Noun

  • java.lang.Object
    • com.ibm.commerce.foundation.client.facade.bod.servlet.config.Noun


  • public class Noun
    extends java.lang.Object
    This class represents the configuration of noun. The noun configuratoin contains the factory and method that can be used to instantiate an instance of the noun along with containing the information pertaining to the elements in the noun.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Noun()
      Creates an instance of the noun configuration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object createInstance()
      This method will create a new instance of the object if the factory has been defined.
      java.lang.String getName()
      This method returns the name of the noun.
      NounElement getNounElement(java.lang.String element)
      This method returns the noun element configuration of the sub element of the noun specified.
      void init(org.w3c.dom.Element noun)
      Initializes the instance of the noun configuration.
      boolean isFactoryDeclared()
      This method returns whether the factory to instantiate the class has been defined.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Noun

        public Noun()
        Creates an instance of the noun configuration. This constructor will parse the configuration and load the noun configuration.
    • Method Detail

      • init

        public void init(org.w3c.dom.Element noun)
        Initializes the instance of the noun configuration. This method will parse the configuration and load the noun configuration.
        Parameters:
        noun - The noun configuration element.
      • isFactoryDeclared

        public boolean isFactoryDeclared()
        This method returns whether the factory to instantiate the class has been defined. This method indicates whether the factory has been specified or the default object should be used.
        Returns:
        Whether the factory was declared.
      • createInstance

        public java.lang.Object createInstance()
        This method will create a new instance of the object if the factory has been defined.
        Returns:
        A new instance of the noun.
      • getName

        public java.lang.String getName()
        This method returns the name of the noun.
        Returns:
        The name of the noun.
      • getNounElement

        public NounElement getNounElement(java.lang.String element)
        This method returns the noun element configuration of the sub element of the noun specified.
        Parameters:
        element - The sub element of the noun.
        Returns:
        The noun element configuration if defined.