Class ElementFactoryCollector

    • Constructor Detail

      • ElementFactoryCollector

        public ElementFactoryCollector()
        Creates a new element factory.
    • Method Detail

      • addFactory

        public void addFactory​(ElementFactory factory)
        Adds an element factory.
        Parameters:
        factory - the factory.
      • getFactories

        public Iterator getFactories()
        Returns an iterator that provides access to the factories.
        Returns:
        The iterator.
      • getElementForType

        public Element getElementForType​(String type)
        Returns an element for the given type.
        Specified by:
        getElementForType in interface ElementFactory
        Parameters:
        type - the content type.
        Returns:
        The element.
      • equals

        public boolean equals​(Object o)
        Indicated whether an other object is equal to this one.
        Overrides:
        equals in class Object
        Parameters:
        o - the other object.
        Returns:
        true, if the object is equal, false otherwise.
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Computes an hashcode for this factory.
        Overrides:
        hashCode in class Object
        Returns:
        the hashcode.
        See Also:
        Object.hashCode()