Interface IKStringHTMLHyperlink
- All Known Implementing Classes:
KStringHTMLHyperlinkExternalTag, KStringHTMLHyperlinkResourceTag, KStringHTMLHyperlinkUITag, KStringHTMLHyperlinkVSTag
public interface IKStringHTMLHyperlink
Interface for all HTML hyperlink tags.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attributeName) Gets the attribute value.getHTMLString(StringBuilder useme, IKStringInfoProvider provider) Gets the string representation of this tag in the HTML format.intGets the ending position of this tag in the source string.intGets the source position of this tag in the source string.getType()Gets the type of this tag.booleansetAttribute(String attributeName, String value) Updates an attribute value or removes it.booleansetReference(String ref) Sets the reference.voidSets the target reference, if supported.
Method Details
getType
getSourcePosition
int getSourcePosition()Gets the source position of this tag in the source string.- Returns:
- The start position of the tag.
getSourceEndPosition
int getSourceEndPosition()Gets the ending position of this tag in the source string.- Returns:
- The end position of the tag.
getAttribute
setAttribute
setReference
Sets the reference.- Parameters:
ref- The reference.- Returns:
- true For success (change), false for failure or no change.
setTarget
Sets the target reference, if supported.- Parameters:
target- The new target.
getHTMLString
Gets the string representation of this tag in the HTML format. Method needs to be overridden for IZ that replaces the entire tag with an HTML string.- Parameters:
useme- Temporary StringBuilder for any use.provider- The information provider or null for none.- Returns:
- The HTML string.