Liferay 6.0.5

com.liferay.portal.kernel.xml
Interface Element

All Superinterfaces:
Branch, Node, Serializable
All Known Implementing Classes:
ElementImpl

public interface Element
extends Branch


Method Summary
 void add(Attribute attribute)
           
 void add(CDATA cdata)
           
 void add(Entity entity)
           
 void add(Namespace namespace)
           
 void add(Text text)
           
 Element addAttribute(QName qName, String value)
           
 Element addAttribute(String name, String value)
           
 Element addCDATA(String cdata)
           
 Element addComment(String comment)
           
 Element addEntity(String name, String text)
           
 List<Namespace> additionalNamespaces()
           
 Element addNamespace(String prefix, String uri)
           
 Element addProcessingInstruction(String target, Map<String,String> data)
           
 Element addProcessingInstruction(String target, String data)
           
 Element addText(String text)
           
 void appendAttributes(Element element)
           
 Attribute attribute(int index)
           
 Attribute attribute(QName qName)
           
 Attribute attribute(String name)
           
 int attributeCount()
           
 Iterator<Attribute> attributeIterator()
           
 List<Attribute> attributes()
           
 String attributeValue(QName qName)
           
 String attributeValue(QName qName, String defaultValue)
           
 String attributeValue(String name)
           
 String attributeValue(String name, String defaultValue)
           
 Element createCopy()
           
 Element createCopy(QName qName)
           
 Element createCopy(String name)
           
 List<Namespace> declaredNamespaces()
           
 Element element(QName qName)
           
 Element element(String name)
           
 Iterator<Element> elementIterator()
           
 Iterator<Element> elementIterator(QName qName)
           
 Iterator<Element> elementIterator(String name)
           
 List<Element> elements()
           
 List<Element> elements(QName qName)
           
 List<Element> elements(String name)
           
 String elementText(QName qName)
           
 String elementText(String name)
           
 String elementTextTrim(QName qName)
           
 String elementTextTrim(String name)
           
 Object getData()
           
 Namespace getNamespace()
           
 Namespace getNamespaceForPrefix(String prefix)
           
 Namespace getNamespaceForURI(String uri)
           
 String getNamespacePrefix()
           
 List<Namespace> getNamespacesForURI(String uri)
           
 String getNamespaceURI()
           
 QName getQName()
           
 QName getQName(String qualifiedName)
           
 String getQualifiedName()
           
 String getStringValue()
           
 String getText()
           
 String getTextTrim()
           
 Node getXPathResult(int index)
           
 boolean hasMixedContent()
           
 boolean isRootElement()
           
 boolean isTextOnly()
           
 boolean remove(Attribute attribute)
           
 boolean remove(CDATA cdata)
           
 boolean remove(Entity entity)
           
 boolean remove(Namespace namespace)
           
 boolean remove(Text text)
           
 void setAttributes(List<Attribute> attributes)
           
 void setData(Object data)
           
 void setQName(QName qName)
           
 
Methods inherited from interface com.liferay.portal.kernel.xml.Branch
add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructions
 
Methods inherited from interface com.liferay.portal.kernel.xml.Node
asXML, asXPathResult, detach, getDocument, getName, getParent, getPath, getPath, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setName, setText, supportsParent, valueOf, write
 

Method Detail

add

void add(Attribute attribute)

add

void add(CDATA cdata)

add

void add(Entity entity)

add

void add(Namespace namespace)

add

void add(Text text)

addAttribute

Element addAttribute(QName qName,
                     String value)

addAttribute

Element addAttribute(String name,
                     String value)

addCDATA

Element addCDATA(String cdata)

addComment

Element addComment(String comment)

addEntity

Element addEntity(String name,
                  String text)

additionalNamespaces

List<Namespace> additionalNamespaces()

addNamespace

Element addNamespace(String prefix,
                     String uri)

addProcessingInstruction

Element addProcessingInstruction(String target,
                                 Map<String,String> data)

addProcessingInstruction

Element addProcessingInstruction(String target,
                                 String data)

addText

Element addText(String text)

appendAttributes

void appendAttributes(Element element)

attribute

Attribute attribute(int index)

attribute

Attribute attribute(QName qName)

attribute

Attribute attribute(String name)

attributeCount

int attributeCount()

attributeIterator

Iterator<Attribute> attributeIterator()

attributes

List<Attribute> attributes()

attributeValue

String attributeValue(QName qName)

attributeValue

String attributeValue(QName qName,
                      String defaultValue)

attributeValue

String attributeValue(String name)

attributeValue

String attributeValue(String name,
                      String defaultValue)

createCopy

Element createCopy()

createCopy

Element createCopy(QName qName)

createCopy

Element createCopy(String name)

declaredNamespaces

List<Namespace> declaredNamespaces()

element

Element element(QName qName)

element

Element element(String name)

elementIterator

Iterator<Element> elementIterator()

elementIterator

Iterator<Element> elementIterator(QName qName)

elementIterator

Iterator<Element> elementIterator(String name)

elements

List<Element> elements()

elements

List<Element> elements(QName qName)

elements

List<Element> elements(String name)

elementText

String elementText(QName qName)

elementText

String elementText(String name)

elementTextTrim

String elementTextTrim(QName qName)

elementTextTrim

String elementTextTrim(String name)

getData

Object getData()

getNamespace

Namespace getNamespace()

getNamespaceForPrefix

Namespace getNamespaceForPrefix(String prefix)

getNamespaceForURI

Namespace getNamespaceForURI(String uri)

getNamespacePrefix

String getNamespacePrefix()

getNamespacesForURI

List<Namespace> getNamespacesForURI(String uri)

getNamespaceURI

String getNamespaceURI()

getQName

QName getQName()

getQName

QName getQName(String qualifiedName)

getQualifiedName

String getQualifiedName()

getStringValue

String getStringValue()
Specified by:
getStringValue in interface Node

getText

String getText()
Specified by:
getText in interface Node

getTextTrim

String getTextTrim()

getXPathResult

Node getXPathResult(int index)

hasMixedContent

boolean hasMixedContent()

isRootElement

boolean isRootElement()

isTextOnly

boolean isTextOnly()

remove

boolean remove(Attribute attribute)

remove

boolean remove(CDATA cdata)

remove

boolean remove(Entity entity)

remove

boolean remove(Namespace namespace)

remove

boolean remove(Text text)

setAttributes

void setAttributes(List<Attribute> attributes)

setData

void setData(Object data)

setQName

void setQName(QName qName)

Liferay 6.0.5