public class ElementImpl extends Object implements Element
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ElementImpl> |
children |
protected Type |
classType |
protected WSDynamicClient |
client |
protected boolean |
group |
protected String |
id |
protected boolean |
isLeaf |
protected boolean |
lazy |
protected String |
name |
protected boolean |
nil |
protected boolean |
nillable |
protected ElementImpl |
prototype |
protected boolean |
removable |
protected boolean |
resolved |
protected Map<Type,ElementImpl> |
treeTypesMap |
protected String |
value |
| Modifier | Constructor and Description |
|---|---|
protected |
ElementImpl(boolean isLeaf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(ElementImpl child) |
protected void |
checkLeaf() |
Element |
clone()
Every Element must be cloneable; this is required to handle
element's add and removal into/from arrays and collections.
|
protected ElementImpl |
cloneInternal() |
protected void |
enforceNotNillable()
Make sure this element can't be nill and set the default value
(this is to be used e.g.
|
Element |
getChild(String id) |
Element |
getChildByName(String name) |
Iterator<? extends Element> |
getChildren() |
protected Iterator<? extends Element> |
getChildren(boolean resolve) |
int |
getChildrenCount() |
Iterator<String> |
getChildrenIDs() |
protected Iterator<String> |
getChildrenIDs(boolean resolve) |
protected Iterator<ElementImpl> |
getChildrenInternal(boolean resolve) |
Type |
getClassType() |
String |
getId() |
String |
getName() |
Element |
getParent() |
Element |
getPrototype() |
String |
getValue() |
Element |
incrementChildren() |
boolean |
isGroup() |
boolean |
isLazy() |
boolean |
isLeaf() |
boolean |
isNil() |
boolean |
isNillable() |
boolean |
isRemovable() |
boolean |
isResolved() |
void |
parseObject(Object obj) |
void |
removeChild(String id) |
protected void |
resolveReference() |
void |
setClassType(Type classType) |
protected void |
setClient(WSDynamicClient client) |
protected void |
setGroup(boolean group) |
protected void |
setId(String id) |
protected void |
setLazy(boolean lazy) |
void |
setName(String name) |
void |
setNil(boolean nil) |
void |
setNillable(boolean nillable) |
protected void |
setParent(Element parent) |
protected void |
setPrototype(ElementImpl prototype) |
protected void |
setRemovable(boolean removable) |
protected void |
setResolved(boolean resolved) |
protected void |
setTreeTypesMap(Map<Type,ElementImpl> treeTypesMap) |
void |
setValue(String value) |
Object |
toObject()
This is required to convert a tree element into the corresponding object
instance.
|
protected <T> org.jboss.wise.tree.impl.ElementImpl.UnmodifiableIterator<T> |
unmodifiableIterator(Iterator<T> iterator) |
protected String id
protected String name
protected String value
protected boolean nil
protected boolean nillable
protected boolean removable
protected Type classType
protected boolean isLeaf
protected boolean lazy
protected boolean resolved
protected boolean group
protected Map<String,ElementImpl> children
protected ElementImpl prototype
protected WSDynamicClient client
protected Map<Type,ElementImpl> treeTypesMap
public boolean isRemovable()
isRemovable in interface Elementprotected void setRemovable(boolean removable)
public Type getClassType()
getClassType in interface Elementpublic void setClassType(Type classType)
public void setName(String name)
protected void setId(String id)
public boolean isNillable()
isNillable in interface Elementpublic void setNillable(boolean nillable)
protected void setGroup(boolean group)
public Element getParent()
protected void setParent(Element parent)
public void parseObject(Object obj)
protected void checkLeaf()
protected void setClient(WSDynamicClient client)
protected void setTreeTypesMap(Map<Type,ElementImpl> treeTypesMap)
public void addChild(ElementImpl child)
public void removeChild(String id)
removeChild in interface Elementpublic Element getChildByName(String name)
getChildByName in interface Elementpublic Iterator<String> getChildrenIDs()
getChildrenIDs in interface Elementpublic Iterator<? extends Element> getChildren()
getChildren in interface Elementprotected Iterator<ElementImpl> getChildrenInternal(boolean resolve)
protected void resolveReference()
protected void setLazy(boolean lazy)
public boolean isResolved()
isResolved in interface Elementprotected void setResolved(boolean resolved)
public Element getPrototype()
getPrototype in interface Elementprotected void setPrototype(ElementImpl prototype)
public Element incrementChildren()
incrementChildren in interface Elementpublic int getChildrenCount()
getChildrenCount in interface Elementpublic Element clone()
protected ElementImpl cloneInternal()
public Object toObject()
protected void enforceNotNillable()
protected <T> org.jboss.wise.tree.impl.ElementImpl.UnmodifiableIterator<T> unmodifiableIterator(Iterator<T> iterator)
Copyright © 2008–2016 JBoss.org. All rights reserved.