Package com.iizix.text
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 SummaryModifier and TypeMethodDescription- getAttribute- (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.- boolean- setAttribute- (String attributeName, String value) Updates an attribute value or removes it.- boolean- setReference- (String ref) Updates the reference for the tag.
- Method Details- getTypeKStringTag.Type getType()Gets the type of this tag.
- getSourcePositionint getSourcePosition()Gets the source position of this tag in the source string.- Returns:
- The start position of the tag.
 
- getSourceEndPositionint getSourceEndPosition()Gets the ending position of this tag in the source string.- Returns:
- The end position of the tag.
 
- getReferenceString getReference()Gets the reference.- Returns:
- The reference string to the property.
 
- setReferenceUpdates the reference for the tag.- Parameters:
- ref- The new reference string.
- Returns:
- true for changed, false for no change.
 
- getAttributeGets the attribute value.- Parameters:
- attributeName- The name of the attribute.
- Returns:
- The value, or null if the attribute is not present.
 
- setAttributeUpdates an attribute value or removes it.- Parameters:
- attributeName- The attribute name.
- value- The value to set, or null to remove the attribute.
- Returns:
- true for changed, false for no change.