public static class Trait.InternalLink
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Trait.InternalLink(java.lang.String attrValue)
Create an InternalLink based on the given XML attribute value.
|
Trait.InternalLink(java.lang.String pvKey,
java.lang.String idRef)
Create an InternalLink to the given PageViewport and target ID
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIDRef()
Returns the target ID.
|
java.lang.String |
getPVKey()
Returns the key of the targeted PageViewport.
|
static java.lang.String |
makeXMLAttribute(java.lang.String pvKey,
java.lang.String idRef)
Returns the XML attribute value for the given PV key and ID ref.
|
static java.lang.String[] |
parseXMLAttribute(java.lang.String attrValue)
Parses XML attribute value from the area tree into
PageViewport key + IDRef strings.
|
void |
setIDRef(java.lang.String idRef)
Sets the target ID.
|
void |
setPVKey(java.lang.String pvKey)
Sets the key of the targeted PageViewport.
|
java.lang.String |
toString()
Return the human-friendly string for debugging.
|
java.lang.String |
xmlAttribute()
Returns the attribute value for this object as
used in the area tree XML.
|
public Trait.InternalLink(java.lang.String pvKey, java.lang.String idRef)
pvKey
- the PageViewport keyidRef
- the target IDpublic Trait.InternalLink(java.lang.String attrValue)
attrValue
- attribute value to be parsed by InternalLink.parseXMLAttributepublic void setPVKey(java.lang.String pvKey)
pvKey
- the PageViewport keypublic java.lang.String getPVKey()
public void setIDRef(java.lang.String idRef)
idRef
- the target IDpublic java.lang.String getIDRef()
public java.lang.String xmlAttribute()
public static java.lang.String makeXMLAttribute(java.lang.String pvKey, java.lang.String idRef)
pvKey
- the PageViewport key of the link targetidRef
- the ID of the link targetpublic static java.lang.String[] parseXMLAttribute(java.lang.String attrValue)
attrValue
- the atribute value (PV key and possibly IDRef)public java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.