public class XMLEntity extends SimpleKeyValueList<java.lang.String,java.lang.Object> implements StringItem, Entity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_TAG
Constant of TAG.
|
static java.lang.String |
PROPERTY_VALUE
Constant of VALUE.
|
ALLOWDUPLICATE, ALLOWEMPTYVALUE, BIDI, BIG_KEY, BIG_VALUE, CASESENSITIVE, DELETED, elements, emptyArray, flag, MAP, MAXDELETED, MAXUSEDLIST, MINHASHINGSIZE, MINSIZE, MINUSEDLIST, READONLY, SIZE_BIG, SMALL_KEY, SMALL_VALUE, VISIBLE| Constructor and Description |
|---|
XMLEntity()
Simple Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addChild(XMLEntity child)
Adds the child.
|
XMLEntity |
getChild(java.lang.String value)
Gets the child.
|
java.util.ArrayList<XMLEntity> |
getChildren()
Gets the children.
|
SimpleList<XMLEntity> |
getChildren(java.lang.String key,
java.lang.String value)
Return all Children with Filter
|
MapEntry |
getNewEntity() |
XMLEntity |
getNewList(boolean keyValue) |
java.lang.String |
getTag()
Gets the tag.
|
java.lang.String |
getValueItem()
Gets the value.
|
static XMLEntity |
TAG(java.lang.String tag)
Static Method to generate XMLEntity.
|
java.lang.String |
toString() |
java.lang.String |
toString(int indentFactor)
Make a prettyprinted Text of this Entity.
|
java.lang.String |
toString(int indentFactor,
int intent) |
protected void |
toStringChildren(java.lang.StringBuilder sb,
int indentFactor,
int intent)
Add The Children to StringBuilder.
|
XMLEntity |
withChild(XMLEntity value)
Method to add a new Child to List.
|
XMLEntity |
withKeyValue(java.lang.Object key,
java.lang.Object value) |
XMLEntity |
withTag(java.lang.String value)
Sets the tag.
|
XMLEntity |
withValue(java.lang.String value)
Instantiates a new xML entity.
|
XMLEntity |
withValue(Tokener tokener)
Construct a XMLEntity from a Tokener.
|
XMLEntity |
withValueItem(java.lang.String value)
Sets the value.
|
add, add, containsKey, containsValue, copyEntity, entrySet, get, getBoolean, getDouble, getInt, getKey, getKeyByIndex, getLong, getString, getString, getValue, getValueByIndex, increment, indexOfValue, iterator, keyIterator, keySet, put, putAll, remove, setValueItem, values, with, withAll, withList, withList, withMapaddFlag, addHashItem, addKey, addKeyValue, checkValue, clear, comparator, contains, containsAll, fireProperty, first, flag, get, getByIndex, getLastPositionKey, getPositionKey, getPositionValue, getSignalFlag, getValueItem, hashKey, hasKey, hasKeyAndPos, indexOf, init, init, init, isAllowDuplicate, isAllowEmptyValue, isCaseSensitive, isComparator, isEmpty, isReadOnly, isVisible, last, lastindexOf, move, pack, removeAll, removeByObject, retainAll, setValue, size, subList, toArray, toArray, withAllowDuplicate, withAllowEmptyValue, withCaseSensitive, withFlag, without, withVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisVisible, withVisiblecontainsKey, get, getBoolean, getDouble, getInt, getStringpublic static final java.lang.String PROPERTY_TAG
public static final java.lang.String PROPERTY_VALUE
public XMLEntity withValue(java.lang.String value)
value - the tagpublic XMLEntity withValue(Tokener tokener)
tokener - A Tokener object containing the source string. or a duplicated
key.public java.util.ArrayList<XMLEntity> getChildren()
public boolean addChild(XMLEntity child)
child - the childpublic XMLEntity withChild(XMLEntity value)
value - the new Childpublic XMLEntity getChild(java.lang.String value)
value - the tagpublic SimpleList<XMLEntity> getChildren(java.lang.String key, java.lang.String value)
key - The key of Filtervalue - The Value of Filterpublic java.lang.String getTag()
public XMLEntity withTag(java.lang.String value)
value - the new Tagpublic java.lang.String getValueItem()
public XMLEntity withValueItem(java.lang.String value)
value - the new valuepublic java.lang.String toString()
public java.lang.String toString(int indentFactor)
StringItemWarning: This method assumes that the data structure is acyclical.
toString in interface StringItemindentFactor - The number of spaces to add to each level of indentation.{ (left
brace) and ending with } (right
brace).public java.lang.String toString(int indentFactor,
int intent)
toString in interface StringItemprotected void toStringChildren(java.lang.StringBuilder sb,
int indentFactor,
int intent)
sb - The StringBuilder where The Children addindentFactor - IntentFactor for indentintent - Current Intentpublic MapEntry getNewEntity()
public XMLEntity getNewList(boolean keyValue)
getNewList in interface BaseItemgetNewList in class SimpleKeyValueList<java.lang.String,java.lang.Object>public static XMLEntity TAG(java.lang.String tag)
tag - Tagnamepublic XMLEntity withKeyValue(java.lang.Object key, java.lang.Object value)
withKeyValue in class SimpleKeyValueList<java.lang.String,java.lang.Object>