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