public class TextEntity extends java.lang.Object implements EntityList
| Constructor and Description |
|---|
TextEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Object... values)
Add Elements to List or KeyValue
if param Modulo 2 the Params can be Key,Value
or add all Values to List
|
java.util.Comparator<java.lang.Object> |
comparator() |
BaseItem |
getChild(int index)
Return a Element from list
|
BaseItem |
getNewList(boolean keyValue) |
java.lang.String |
getTag() |
boolean |
isComparator() |
int |
size()
Get the Size of Elements
|
int |
sizeChildren() |
java.lang.String |
toString()
Convert Element to String
|
java.lang.String |
toString(Converter converter)
Convert Element to String
|
java.lang.String |
toString(int indentFactor)
Make a prettyprinted Text of this Entity.
|
TextEntity |
withTag(char value) |
TextEntity |
withTag(java.lang.String value) |
TextEntity |
withTagEnd(char value) |
TextEntity |
withTagEnd(java.lang.CharSequence value) |
BaseItem |
withValue(Buffer values) |
public java.lang.String toString(Converter converter)
BaseItempublic java.lang.String toString()
BaseItempublic java.lang.String toString(int indentFactor)
EntityListWarning: This method assumes that the data structure is acyclical.
toString in interface EntityListindentFactor - The number of spaces to add to each level of indentation.{ (left
brace) and ending with } (right
brace).public boolean add(java.lang.Object... values)
BaseItempublic java.lang.String getTag()
public TextEntity withTag(java.lang.String value)
public TextEntity withTag(char value)
public TextEntity withTagEnd(java.lang.CharSequence value)
public TextEntity withTagEnd(char value)
public BaseItem getNewList(boolean keyValue)
getNewList in interface BaseItempublic int size()
BaseItempublic int sizeChildren()
sizeChildren in interface EntityListpublic BaseItem getChild(int index)
EntityListgetChild in interface EntityListindex - index of Elementpublic boolean isComparator()
isComparator in interface EntityListpublic java.util.Comparator<java.lang.Object> comparator()
comparator in interface EntityListpublic BaseItem withValue(Buffer values)
withValue in interface EntityList