Interface IKStringTextTag
- All Known Implementing Classes:
KStringHTMLTextTableTag, KStringHTMLTextVirtualSpaceTag, KStringPLAINTextTableTag, KStringPLAINVirtualSpaceTag
public interface IKStringTextTag
Interface for all Text tags, for HTML and Plain Text.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attributeName) Gets the attribute value.Gets the reference.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) Updates the reference for the tag.
Method Details
getType
KStringTag.Type getType()Gets the type of this tag.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.
getReference
setReference
Updates the reference for the tag.- Parameters:
ref- The new reference string.- Returns:
- true for changed, false for no change.
getAttribute
setAttribute