public abstract class KStringPLAINTag<TARGET extends GProp<?>> extends KStringTag<TARGET>
KStringTag.Type
Modifier and Type | Field and Description |
---|---|
protected String |
ref
The name in the text table.
|
Constructor and Description |
---|
KStringPLAINTag(KStringTag.Type type,
String ref,
String inputString,
int position,
LinkedHashMap<String,String> attributes)
Creates a VirtualSpace tag for KString that is of type PLAIN.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalsName(KStringTag<?> kst)
Checks for the same "name" (tag ordinal and closing tag for HTML, tag name for PLAIN).
|
String |
getHTMLTagText(StringBuilder useme,
IKStringInfoProvider provider)
Gets the "unparsed" string representation of this tag in the HTML format,
e.g.
|
String |
getPLAINTagText(StringBuilder useme)
Gets the "unparsed" string representation of this tag in the PLAIN format.
|
String |
getReference()
Gets the reference.
|
boolean |
isReferenceTag()
Checks if this tag is of reference type, i.e.
|
boolean |
setReference(String ref)
Updates the reference for the tag.
|
boolean |
willLoseFormatting()
Checks if this string will lose formatting when translated to PLAIN.
|
appendHTMLAttributes, appendHTMLAttributes, appendHTMLAttributesSkip, appendPLAINAttributes, appendPLAINValue, clone, disposeTagReference, equals, getAttribute, getHTMLString, getPLAINString, getReferenceClass, getReferenceDescription, getReferenceError, getSourceEndPosition, getSourceLength, getSourcePosition, getType, isReferenceValid, isRefreshRequired, isRefreshRequired, resolve, setAttribute, setSourceLocation, verify
protected String ref
public KStringPLAINTag(KStringTag.Type type, String ref, String inputString, int position, LinkedHashMap<String,String> attributes) throws KStringParseException
type
- The connector type.ref
- The reference value.inputString
- The input string.position
- The position in the character based and parsed string.attributes
- The attributes for the tag.KStringParseException
- If the reference is missing or empty.public final String getReference()
getReference
in class KStringTag<TARGET extends GProp<?>>
public boolean setReference(String ref)
setReference
in class KStringTag<TARGET extends GProp<?>>
ref
- The new reference string.NullPointerException
- If ref is null.public final boolean isReferenceTag()
isReferenceTag
in class KStringTag<TARGET extends GProp<?>>
public final boolean willLoseFormatting()
willLoseFormatting
in class KStringTag<TARGET extends GProp<?>>
public final String getPLAINTagText(StringBuilder useme)
getPLAINTagText
in class KStringTag<TARGET extends GProp<?>>
public final String getHTMLTagText(StringBuilder useme, IKStringInfoProvider provider)
IZ type="xx" ref="fullPath" [attr=value] ...
.getHTMLTagText
in class KStringTag<TARGET extends GProp<?>>
useme
- Temporary StringBuilder for any use.provider
- The information provider or null for none.public boolean equalsName(KStringTag<?> kst)
equalsName
in class KStringTag<TARGET extends GProp<?>>
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.