public class ElementFactoryCollector extends Object implements ElementFactory
Constructor and Description |
---|
ElementFactoryCollector()
Creates a new element factory.
|
Modifier and Type | Method and Description |
---|---|
void |
addFactory(ElementFactory factory)
Adds an element factory.
|
boolean |
equals(Object o)
Indicated whether an other object is equal to this one.
|
Element |
getElementForType(String type)
Returns an element for the given type.
|
Iterator |
getFactories()
Returns an iterator that provides access to the factories.
|
int |
hashCode()
Computes an hashcode for this factory.
|
public ElementFactoryCollector()
public void addFactory(ElementFactory factory)
factory
- the factory.public Iterator getFactories()
public Element getElementForType(String type)
getElementForType
in interface ElementFactory
type
- the content type.public boolean equals(Object o)
equals
in class Object
o
- the other object.Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2017 Hitachi Vantara. All rights reserved.