de.fu_berlin.ties.extract
Class TargetClass

java.lang.Object
  extended by de.fu_berlin.ties.extract.TargetClass

public class TargetClass
extends Object

A class (type) of entities to recognize. Instances of this class are immutable and thus thread-safe.

Version:
$Revision: 1.5 $, $Date: 2006/10/21 16:04:14 $, $Author: siefkes $
Author:
Christian Siefkes

Constructor Summary
protected TargetClass(String className)
          Non-public constructor -- should only be used by subclasses and related classes.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one, fulfulling the Object.equals(java.lang.Object) contract.
 String getName()
          Returns the name of this class.
 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
 

Constructor Detail

TargetClass

protected TargetClass(String className)
               throws IllegalArgumentException
Non-public constructor -- should only be used by subclasses and related classes. Other classes should go thru TargetStructure to access target classes.

Parameters:
className - the name of this class (outer whitespace will be trimmed)
Throws:
IllegalArgumentException - if className is null or empty (after trimming)
Method Detail

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one, fulfulling the Object.equals(java.lang.Object) contract.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare
Returns:
true iff the specified object is a TargetClass equal to this instance

getName

public String getName()
Returns the name of this class.

Returns:
the value of the attribute

hashCode

public int hashCode()
Returns a hash code value for this object, fulfulling the Object.hashCode() contract.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class Object
Returns:
a textual representation


Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.