org.pentaho.reporting.engine.classic.core
Class Anchor

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.Anchor
All Implemented Interfaces:
Serializable

Deprecated. Ancors should not be created this way. Add a Anchor-Style-Expression instead. This class will be removed in 0.8.11.

public class Anchor
extends Object
implements Serializable

An anchor is a possible target for external hyperlinks.

In HTML anchors would be produced by using <a name="anchorname">. This class is immutable.

Author:
Thomas Morgner
See Also:
AnchorElement, Serialized Form

Constructor Summary
Anchor(String name)
          Deprecated. Creates a new anchor with the given name.
 
Method Summary
 boolean equals(Object obj)
          Deprecated. Checks whether the given object is an anchor with the same name as this one.
 String getName()
          Deprecated. Returns the name of the anchor.
 int hashCode()
          Deprecated. Computes a hashcode for this anchor.
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Anchor

public Anchor(String name)
Deprecated. 
Creates a new anchor with the given name.

Parameters:
name - the name of the anchor.
Throws:
NullPointerException - if the given name is null.
Method Detail

getName

public String getName()
Deprecated. 
Returns the name of the anchor.

Returns:
the name

equals

public boolean equals(Object obj)
Deprecated. 
Checks whether the given object is an anchor with the same name as this one.

Overrides:
equals in class Object
Parameters:
obj - the other object.
Returns:
true, if the object is equal to this one, false otherwise.

hashCode

public int hashCode()
Deprecated. 
Computes a hashcode for this anchor.

Overrides:
hashCode in class Object
Returns:
the hashcode.

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object