org.ceryle.xml
Class ALink

java.lang.Object
  extended by org.ceryle.xml.ALink

public class ALink
extends Object

ALink class, a struct for an XHTML (or XHTML-like) "a" link.

If a name attribute is available and not id, the latter is filled in from the former. Note that the toString() method does not support internal markup, returning only textual content.

If fix is true, will also fix the source Document's markup accordingly.

Since:
JDK1.4
Version:
$Id: ALink.java,v 3.7 2007-06-15 12:10:28 altheim Exp $
Author:
Murray Altheim
See Also:
IndexManager

Field Summary
 Element a
           
 String classAttr
           
static boolean fix
          Variable indicating whether the indexer should automatically fix any perceived linking problems, like mismatches between the id and name attribute values, with preference given to the former.
 String hrefAttr
           
 String idAttr
           
 String nameAttr
           
 String text
           
 
Constructor Summary
ALink(Element elt)
           
 
Method Summary
 String getText()
           
 boolean isLink()
           
 boolean isTarget()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fix

public static boolean fix
Variable indicating whether the indexer should automatically fix any perceived linking problems, like mismatches between the id and name attribute values, with preference given to the former. If false, a RuntimeException is thrown upon error. The default is true.


idAttr

public String idAttr

classAttr

public String classAttr

nameAttr

public String nameAttr

hrefAttr

public String hrefAttr

text

public String text

a

public Element a
Constructor Detail

ALink

public ALink(Element elt)
Method Detail

isTarget

public boolean isTarget()

isLink

public boolean isLink()

getText

public String getText()

toString

public String toString()
Overrides:
toString in class Object


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.