|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.ConstantObject<PropertyName>
de.lmu.ifi.dbs.elki.properties.PropertyName
public final class PropertyName
todo: remove old property names? PropertyName for lookup in property file for class definitions.
Field Summary | |
---|---|
private static long |
serialVersionUID
Serial version UID |
private Class<?> |
type
The type related to the property. |
Constructor Summary | |
---|---|
private |
PropertyName(String name,
Class<?> type)
Provides a new PropertyName of given name and type. |
Method Summary | |
---|---|
Class<?> |
classForName(String classname)
Returns a class for the given name. |
static PropertyName |
getOrCreatePropertyName(Class<?> type)
Gets the PropertyName for the given class named as the classes name if it exists, creates and returns it otherwise. |
static PropertyName |
getPropertyName(String name)
Returns the PropertyName for the given name if it exists, null otherwise. |
Class<?> |
getType()
Returns the type of the PropertyName. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.ConstantObject |
---|
compareTo, equals, getName, hashCode, lookup, readResolve |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private Class<?> type
Constructor Detail |
---|
private PropertyName(String name, Class<?> type)
name
- the name of the PropertyNametype
- the type of the PropertyNameMethod Detail |
---|
public Class<?> classForName(String classname) throws ClassNotFoundException
classname
- name of the class to return
ClassNotFoundException
- if the class for the given name is found neither
on its own nor trying the default package as prefixpublic Class<?> getType()
public static PropertyName getOrCreatePropertyName(Class<?> type)
type
- a class as type and the class' name as name
public static PropertyName getPropertyName(String name)
name
- name of the desired PropertyName
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |