org.ceryle.xml
Class ALink
java.lang.Object
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
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
ALink
public ALink(Element elt)
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.