|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsxp.framework.dom.DefaultElement
public class DefaultElement
The Class DomElement. Default implementation (DOM based) of jsxp elements.
InternalElement
Constructor Summary | |
---|---|
DefaultElement(ViewController sourceViewController,
DefaultElement sourceParent,
java.lang.String id,
java.lang.String idPrefix,
java.lang.String idSuffix,
java.lang.String namespaceUri,
java.lang.String name,
java.lang.String value,
boolean isText)
Instantiates a new dom element. |
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. |
DefaultElement |
copy()
Copy. |
DefaultElement |
copy(java.lang.String idPrefix,
java.lang.String idSuffix)
Copy. |
void |
exchange(Element e)
Exchange. |
void |
exchange(Element[] elements)
Exchange. |
DefaultElement |
findElementById(java.lang.String id)
Find element by id. |
DefaultElement |
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. |
java.lang.String |
getVariableValue(java.lang.String key)
Gets the variable 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 parameterBean)
Fill variables. |
void |
substituteVariables()
Substitute variables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultElement(ViewController sourceViewController, DefaultElement sourceParent, java.lang.String id, java.lang.String idPrefix, java.lang.String idSuffix, java.lang.String namespaceUri, java.lang.String name, java.lang.String value, boolean isText)
sourceViewController
- sourceParent
- id
- idPrefix
- namespaceUri
- name
- value
- Method Detail |
---|
public void addElement(Element e)
Element
addElement
in interface Element
e
- the epublic void addElements(Element[] elements)
Element
addElements
in interface Element
elements
- the elementspublic void addText(java.lang.String text)
Element
addText
in interface Element
text
- the textpublic Element addXmlAsElements(java.lang.String xml)
Element
addXmlAsElements
in interface Element
xml
- the xml
public DefaultElement copy()
Element
copy
in interface Element
public DefaultElement copy(java.lang.String idPrefix, java.lang.String idSuffix)
Element
copy
in interface Element
idPrefix
- the id prefixidSuffix
- the id suffix
public void exchange(Element e)
Element
exchange
in interface Element
e
- the epublic void exchange(Element[] elements)
Element
exchange
in interface Element
elements
- the elementspublic DefaultElement findElementById(java.lang.String id)
Element
findElementById
in interface Element
id
- the id
public DefaultElement findElementByName(java.lang.String name, java.lang.String namespaceURI)
Element
findElementByName
in interface Element
name
- the namenamespaceURI
- the namespace uri
public java.lang.String getAttribute(java.lang.String key)
Element
getAttribute
in interface Element
key
- the key
public java.lang.String getAttribute(java.lang.String namespace, java.lang.String key)
Element
getAttribute
in interface Element
namespace
- the namespacekey
- the key
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Element
getAttributes
in interface Element
public Element[] getElements()
Element
getElements
in interface Element
public java.lang.String getId()
Element
getId
in interface Element
public java.lang.String getIdPrefix()
Element
getIdPrefix
in interface Element
public java.lang.String getIdSuffix()
Element
getIdSuffix
in interface Element
public java.lang.String getName()
Element
getName
in interface Element
public java.lang.String getNamespaceURI()
Element
getNamespaceURI
in interface Element
public Element getParent()
Element
getParent
in interface Element
public ViewController getSourceViewController()
Element
getSourceViewController
in interface Element
public java.lang.String getValue()
Element
getValue
in interface Element
public java.lang.String getVariableValue(java.lang.String key)
InternalElement
getVariableValue
in interface InternalElement
key
- the key
public boolean hasAttribute(java.lang.String key)
Element
hasAttribute
in interface Element
key
- the key
public boolean hasAttribute(java.lang.String namespace, java.lang.String key)
Element
hasAttribute
in interface Element
namespace
- the namespacekey
- the key
public boolean isText()
Element
isText
in interface Element
public void remove()
Element
remove
in interface Element
public void removeAttribute(java.lang.String name)
Element
removeAttribute
in interface Element
name
- the namepublic void removeAttribute(java.lang.String namespace, java.lang.String name)
Element
removeAttribute
in interface Element
namespace
- the namespacename
- the namepublic void removeElement(Element e)
Element
removeElement
in interface Element
e
- the epublic void removeElements()
Element
removeElements
in interface Element
public void setAttribute(java.lang.String key, java.lang.String value)
Element
setAttribute
in interface Element
key
- the keyvalue
- the valuepublic void setAttribute(java.lang.String namespace, java.lang.String key, java.lang.String value)
Element
setAttribute
in interface Element
namespace
- the namespacekey
- the keyvalue
- the valuepublic void setValue(java.lang.String value)
Element
setValue
in interface Element
value
- the new valuepublic void setValues(java.lang.String[] values)
Element
setValues
in interface Element
values
- the new valuespublic void setVariable(java.lang.String name, java.lang.String value)
Element
setVariable
in interface Element
name
- the namevalue
- the valuepublic void setVariablesWithBean(java.lang.Object parameterBean)
Element
setVariablesWithBean
in interface Element
parameterBean
- the bean used to fill the variables of an elementpublic void substituteVariables()
InternalElement
substituteVariables
in interface InternalElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |