|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Element
The Interface Element. Basic interface for jsxp elements. Elements are the basic parts a view is composed of.
Method Summary | |
---|---|
void |
addElement(Element e)
Adds the element. |
void |
addElements(Element[] elements)
Adds the elements. |
void |
addText(java.lang.String text)
Adds the text. |
Element |
addXmlAsElements(java.lang.String xml)
Adds the as elements. |
Element |
copy()
Copy. |
Element |
copy(java.lang.String idPrefix,
java.lang.String idSuffix)
Copy. |
void |
exchange(Element e)
Exchange. |
void |
exchange(Element[] elements)
Exchange. |
Element |
findElementById(java.lang.String id)
Find element by id. |
Element |
findElementByName(java.lang.String name,
java.lang.String namespaceURI)
Find element by name. |
java.lang.String |
getAttribute(java.lang.String key)
Gets the attribute. |
java.lang.String |
getAttribute(java.lang.String namespace,
java.lang.String key)
Gets the attribute. |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Gets the attributes. |
Element[] |
getElements()
Gets the elements. |
java.lang.String |
getId()
Gets the id. |
java.lang.String |
getIdPrefix()
Gets the id prefix. |
java.lang.String |
getIdSuffix()
Gets the id suffix. |
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getNamespaceURI()
Gets the namespace uri. |
Element |
getParent()
Gets the parent. |
ViewController |
getSourceViewController()
Gets the source view controller. |
java.lang.String |
getValue()
Gets the value. |
boolean |
hasAttribute(java.lang.String key)
Checks for attribute. |
boolean |
hasAttribute(java.lang.String namespace,
java.lang.String key)
Checks for attribute. |
boolean |
isText()
Checks if is text. |
void |
remove()
Removes the. |
void |
removeAttribute(java.lang.String name)
Removes the attribute. |
void |
removeAttribute(java.lang.String namespace,
java.lang.String name)
Removes the attribute. |
void |
removeElement(Element e)
Removes the element. |
void |
removeElements()
Removes the elements. |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Sets the attribute. |
void |
setAttribute(java.lang.String namespace,
java.lang.String key,
java.lang.String value)
Sets the attribute. |
void |
setValue(java.lang.String value)
Sets the value. |
void |
setValues(java.lang.String[] values)
Sets the values. |
void |
setVariable(java.lang.String name,
java.lang.String value)
Sets the variable. |
void |
setVariablesWithBean(java.lang.Object bean)
Fill variables. |
Method Detail |
---|
void addElement(Element e)
e
- the evoid addElements(Element[] elements)
elements
- the elementsvoid addText(java.lang.String text)
text
- the textElement addXmlAsElements(java.lang.String xml)
xml
- the xml
Element copy()
Element copy(java.lang.String idPrefix, java.lang.String idSuffix)
idPrefix
- the id prefixidSuffix
- the id suffix
void exchange(Element e)
e
- the evoid exchange(Element[] elements)
elements
- the elementsElement findElementById(java.lang.String id)
id
- the id
Element findElementByName(java.lang.String name, java.lang.String namespaceURI)
name
- the namenamespaceURI
- the namespace uri
java.lang.String getAttribute(java.lang.String key)
key
- the key
java.lang.String getAttribute(java.lang.String namespace, java.lang.String key)
namespace
- the namespacekey
- the key
java.util.Map<java.lang.String,java.lang.String> getAttributes()
Element[] getElements()
java.lang.String getId()
java.lang.String getIdPrefix()
java.lang.String getIdSuffix()
java.lang.String getName()
java.lang.String getNamespaceURI()
Element getParent()
ViewController getSourceViewController()
java.lang.String getValue()
boolean hasAttribute(java.lang.String key)
key
- the key
boolean hasAttribute(java.lang.String namespace, java.lang.String key)
namespace
- the namespacekey
- the key
boolean isText()
void remove()
void removeAttribute(java.lang.String name)
name
- the namevoid removeAttribute(java.lang.String namespace, java.lang.String name)
namespace
- the namespacename
- the namevoid removeElement(Element e)
e
- the evoid removeElements()
void setAttribute(java.lang.String key, java.lang.String value)
key
- the keyvalue
- the valuevoid setAttribute(java.lang.String namespace, java.lang.String key, java.lang.String value)
namespace
- the namespacekey
- the keyvalue
- the valuevoid setValue(java.lang.String value)
value
- the new valuevoid setValues(java.lang.String[] values)
values
- the new valuesvoid setVariable(java.lang.String name, java.lang.String value)
name
- the namevalue
- the valuevoid setVariablesWithBean(java.lang.Object bean)
bean
- the bean used to fill the variables of an element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |