T
- An enum type that defines the URNs this factory knows about.public abstract class AbstractPropertyFactory<T extends java.lang.Enum<T>> extends java.lang.Object implements PropertyFactory
Modifier | Constructor and Description |
---|---|
protected |
AbstractPropertyFactory(java.lang.Class<T> clazz)
Constructor for AbstractPropertyFactory.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getKnownPropertyURNs()
Get all property urns understood by this factory.
|
protected java.util.EnumSet<T> |
getKnownPropertyURNsEnum()
Get an EnumSet containing known property URNs.
|
Property |
makeProperty(java.lang.String urn)
Create a new Property.
|
protected abstract Property |
makeProperty(T urn)
Create a new Property.
|
protected AbstractPropertyFactory(java.lang.Class<T> clazz)
clazz
- The class of enum this factory uses.public java.lang.String[] getKnownPropertyURNs()
PropertyFactory
getKnownPropertyURNs
in interface PropertyFactory
public Property makeProperty(java.lang.String urn)
PropertyFactory
makeProperty
in interface PropertyFactory
urn
- The urn of the property to create.protected java.util.EnumSet<T> getKnownPropertyURNsEnum()