|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.extract.TargetStructure
public class TargetStructure
A target structure manages the classes of entities to recognize. Instances of this class are immutable and thus thread-safe.
Field Summary | |
---|---|
protected static String |
CONFIG_TARGET_CLASSES
Configuration key: names of the classes to recognize (temporarily). |
Constructor Summary | |
---|---|
TargetStructure()
Creates a new instance using the standard configuration. |
|
TargetStructure(Configuration config)
Creates a new instance using the provided configuration. |
Method Summary | |
---|---|
TargetClass |
classForName(String name)
Returns the TargetClass object for a given class name, if
defined in this target structure. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one, fulfulling the Object.equals(java.lang.Object) contract. |
Set |
getBaseClassNames()
Returns the set of names of the target classes at the top of the inheritance hierarchy. |
Collection |
getBaseTargetClasses()
Returns the TargetClass es at the top of the inheritance
hierarchy. |
Set<String> |
getClassNames()
Returns the set of names of the defined target classes. |
Collection<TargetClass> |
getTargetClasses()
Returns the defined TargetClass es. |
int |
hashCode()
Returns a hash code value for this object, fulfulling the Object.hashCode() contract. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String CONFIG_TARGET_CLASSES
Constructor Detail |
---|
public TargetStructure()
public TargetStructure(Configuration config)
CONFIG_TARGET_CLASSES
parameter.
config
- used to configure this instanceMethod Detail |
---|
public TargetClass classForName(String name)
TargetClass
object for a given class name, if
defined in this target structure.
name
- the name of the class to look up
TargetClass
for the given name; or null
if the class is not defined in this target structurepublic Set getBaseClassNames()
public Collection getBaseTargetClasses()
TargetClass
es at the top of the inheritance
hierarchy. This collection is immutable and cannot modified.
public boolean equals(Object obj)
Object.equals(java.lang.Object)
contract.
equals
in class Object
obj
- the reference object with which to compare
true
iff the specified object is a
TargetStructure
equal to this instancepublic Set<String> getClassNames()
public Collection<TargetClass> getTargetClasses()
TargetClass
es.
This collection is immutable and cannot modified.
public int hashCode()
Object.hashCode()
contract.
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |