public class ElementImpl extends BranchImpl implements com.liferay.portal.kernel.xml.Element
| Constructor and Description |
|---|
ElementImpl(org.dom4j.Element element) |
| Modifier and Type | Method and Description |
|---|---|
<T,V extends com.liferay.portal.kernel.xml.Visitor<T>> |
accept(V visitor) |
void |
add(com.liferay.portal.kernel.xml.Attribute attribute) |
void |
add(com.liferay.portal.kernel.xml.CDATA cdata) |
void |
add(com.liferay.portal.kernel.xml.Entity entity) |
void |
add(com.liferay.portal.kernel.xml.Namespace namespace) |
void |
add(com.liferay.portal.kernel.xml.Text text) |
com.liferay.portal.kernel.xml.Element |
addAttribute(com.liferay.portal.kernel.xml.QName qName,
String value) |
com.liferay.portal.kernel.xml.Element |
addAttribute(String name,
String value) |
com.liferay.portal.kernel.xml.Element |
addCDATA(String cdata) |
com.liferay.portal.kernel.xml.Element |
addComment(String comment) |
com.liferay.portal.kernel.xml.Element |
addEntity(String name,
String text) |
List<com.liferay.portal.kernel.xml.Namespace> |
additionalNamespaces() |
com.liferay.portal.kernel.xml.Element |
addNamespace(String prefix,
String uri) |
com.liferay.portal.kernel.xml.Element |
addProcessingInstruction(String target,
Map<String,String> data) |
com.liferay.portal.kernel.xml.Element |
addProcessingInstruction(String target,
String data) |
com.liferay.portal.kernel.xml.Element |
addText(String text) |
void |
appendAttributes(com.liferay.portal.kernel.xml.Element element) |
com.liferay.portal.kernel.xml.Attribute |
attribute(int index) |
com.liferay.portal.kernel.xml.Attribute |
attribute(com.liferay.portal.kernel.xml.QName qName) |
com.liferay.portal.kernel.xml.Attribute |
attribute(String name) |
int |
attributeCount() |
Iterator<com.liferay.portal.kernel.xml.Attribute> |
attributeIterator() |
List<com.liferay.portal.kernel.xml.Attribute> |
attributes() |
String |
attributeValue(com.liferay.portal.kernel.xml.QName qName) |
String |
attributeValue(com.liferay.portal.kernel.xml.QName qName,
String defaultValue) |
String |
attributeValue(String name) |
String |
attributeValue(String name,
String defaultValue) |
com.liferay.portal.kernel.xml.Element |
createCopy() |
com.liferay.portal.kernel.xml.Element |
createCopy(com.liferay.portal.kernel.xml.QName qName) |
com.liferay.portal.kernel.xml.Element |
createCopy(String name) |
List<com.liferay.portal.kernel.xml.Namespace> |
declaredNamespaces() |
com.liferay.portal.kernel.xml.Element |
element(com.liferay.portal.kernel.xml.QName qName) |
com.liferay.portal.kernel.xml.Element |
element(String name) |
Iterator<com.liferay.portal.kernel.xml.Element> |
elementIterator() |
Iterator<com.liferay.portal.kernel.xml.Element> |
elementIterator(com.liferay.portal.kernel.xml.QName qName) |
Iterator<com.liferay.portal.kernel.xml.Element> |
elementIterator(String name) |
List<com.liferay.portal.kernel.xml.Element> |
elements() |
List<com.liferay.portal.kernel.xml.Element> |
elements(com.liferay.portal.kernel.xml.QName qName) |
List<com.liferay.portal.kernel.xml.Element> |
elements(String name) |
String |
elementText(com.liferay.portal.kernel.xml.QName qName) |
String |
elementText(String name) |
String |
elementTextTrim(com.liferay.portal.kernel.xml.QName qName) |
String |
elementTextTrim(String name) |
boolean |
equals(Object object) |
String |
formattedString() |
String |
formattedString(String indent) |
String |
formattedString(String indent,
boolean expandEmptyElements) |
Object |
getData() |
com.liferay.portal.kernel.xml.Namespace |
getNamespace() |
com.liferay.portal.kernel.xml.Namespace |
getNamespaceForPrefix(String prefix) |
com.liferay.portal.kernel.xml.Namespace |
getNamespaceForURI(String uri) |
String |
getNamespacePrefix() |
List<com.liferay.portal.kernel.xml.Namespace> |
getNamespacesForURI(String uri) |
String |
getNamespaceURI() |
com.liferay.portal.kernel.xml.QName |
getQName() |
com.liferay.portal.kernel.xml.QName |
getQName(String qualifiedName) |
String |
getQualifiedName() |
String |
getTextTrim() |
org.dom4j.Element |
getWrappedElement() |
com.liferay.portal.kernel.xml.Node |
getXPathResult(int index) |
int |
hashCode() |
boolean |
hasMixedContent() |
boolean |
isRootElement() |
boolean |
isTextOnly() |
boolean |
remove(com.liferay.portal.kernel.xml.Attribute attribute) |
boolean |
remove(com.liferay.portal.kernel.xml.CDATA cdata) |
boolean |
remove(com.liferay.portal.kernel.xml.Entity entity) |
boolean |
remove(com.liferay.portal.kernel.xml.Namespace namespace) |
boolean |
remove(com.liferay.portal.kernel.xml.Text text) |
void |
setAttributes(List<com.liferay.portal.kernel.xml.Attribute> attributes) |
void |
setData(Object data) |
void |
setQName(com.liferay.portal.kernel.xml.QName qName) |
void |
sortAttributes(boolean recursive) |
void |
sortElementsByAttribute(String elementName,
String attributeName) |
void |
sortElementsByChildElement(String elementName,
String childElementName) |
String |
toString() |
add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, getWrappedBranch, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructionsasXML, asXPathResult, compactString, detach, formattedString, getDocument, getName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, getWrappedNode, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setName, setText, supportsParent, valueOf, writeadd, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructionsasXML, asXPathResult, compactString, detach, formattedString, getDocument, getName, getParent, getPath, getPath, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setName, setText, supportsParent, valueOf, writepublic <T,V extends com.liferay.portal.kernel.xml.Visitor<T>> T accept(V visitor)
public void add(com.liferay.portal.kernel.xml.Attribute attribute)
add in interface com.liferay.portal.kernel.xml.Elementpublic void add(com.liferay.portal.kernel.xml.CDATA cdata)
add in interface com.liferay.portal.kernel.xml.Elementpublic void add(com.liferay.portal.kernel.xml.Entity entity)
add in interface com.liferay.portal.kernel.xml.Elementpublic void add(com.liferay.portal.kernel.xml.Namespace namespace)
add in interface com.liferay.portal.kernel.xml.Elementpublic void add(com.liferay.portal.kernel.xml.Text text)
add in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element addAttribute(com.liferay.portal.kernel.xml.QName qName,
String value)
addAttribute in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element addAttribute(String name,
String value)
addAttribute in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element addCDATA(String cdata)
addCDATA in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element addComment(String comment)
addComment in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element addEntity(String name,
String text)
addEntity in interface com.liferay.portal.kernel.xml.Elementpublic List<com.liferay.portal.kernel.xml.Namespace> additionalNamespaces()
additionalNamespaces in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element addNamespace(String prefix,
String uri)
addNamespace in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element addProcessingInstruction(String target,
Map<String,String> data)
addProcessingInstruction in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element addProcessingInstruction(String target,
String data)
addProcessingInstruction in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element addText(String text)
addText in interface com.liferay.portal.kernel.xml.Elementpublic void appendAttributes(com.liferay.portal.kernel.xml.Element element)
appendAttributes in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Attribute attribute(int index)
attribute in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Attribute attribute(com.liferay.portal.kernel.xml.QName qName)
attribute in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Attribute attribute(String name)
attribute in interface com.liferay.portal.kernel.xml.Elementpublic int attributeCount()
attributeCount in interface com.liferay.portal.kernel.xml.Elementpublic Iterator<com.liferay.portal.kernel.xml.Attribute> attributeIterator()
attributeIterator in interface com.liferay.portal.kernel.xml.Elementpublic List<com.liferay.portal.kernel.xml.Attribute> attributes()
attributes in interface com.liferay.portal.kernel.xml.Elementpublic String attributeValue(com.liferay.portal.kernel.xml.QName qName)
attributeValue in interface com.liferay.portal.kernel.xml.Elementpublic String attributeValue(com.liferay.portal.kernel.xml.QName qName,
String defaultValue)
attributeValue in interface com.liferay.portal.kernel.xml.Elementpublic String attributeValue(String name)
attributeValue in interface com.liferay.portal.kernel.xml.Elementpublic String attributeValue(String name,
String defaultValue)
attributeValue in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element createCopy()
createCopy in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element createCopy(com.liferay.portal.kernel.xml.QName qName)
createCopy in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element createCopy(String name)
createCopy in interface com.liferay.portal.kernel.xml.Elementpublic List<com.liferay.portal.kernel.xml.Namespace> declaredNamespaces()
declaredNamespaces in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element element(com.liferay.portal.kernel.xml.QName qName)
element in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Element element(String name)
element in interface com.liferay.portal.kernel.xml.Elementpublic Iterator<com.liferay.portal.kernel.xml.Element> elementIterator()
elementIterator in interface com.liferay.portal.kernel.xml.Elementpublic Iterator<com.liferay.portal.kernel.xml.Element> elementIterator(com.liferay.portal.kernel.xml.QName qName)
elementIterator in interface com.liferay.portal.kernel.xml.Elementpublic Iterator<com.liferay.portal.kernel.xml.Element> elementIterator(String name)
elementIterator in interface com.liferay.portal.kernel.xml.Elementpublic List<com.liferay.portal.kernel.xml.Element> elements()
elements in interface com.liferay.portal.kernel.xml.Elementpublic List<com.liferay.portal.kernel.xml.Element> elements(com.liferay.portal.kernel.xml.QName qName)
elements in interface com.liferay.portal.kernel.xml.Elementpublic List<com.liferay.portal.kernel.xml.Element> elements(String name)
elements in interface com.liferay.portal.kernel.xml.Elementpublic String elementText(com.liferay.portal.kernel.xml.QName qName)
elementText in interface com.liferay.portal.kernel.xml.Elementpublic String elementText(String name)
elementText in interface com.liferay.portal.kernel.xml.Elementpublic String elementTextTrim(com.liferay.portal.kernel.xml.QName qName)
elementTextTrim in interface com.liferay.portal.kernel.xml.Elementpublic String elementTextTrim(String name)
elementTextTrim in interface com.liferay.portal.kernel.xml.Elementpublic boolean equals(Object object)
equals in class BranchImplpublic String formattedString()
throws IOException
formattedString in interface com.liferay.portal.kernel.xml.ElementformattedString in interface com.liferay.portal.kernel.xml.NodeformattedString in class NodeImplIOExceptionpublic String formattedString(String indent)
throws IOException
formattedString in interface com.liferay.portal.kernel.xml.ElementformattedString in interface com.liferay.portal.kernel.xml.NodeformattedString in class NodeImplIOExceptionpublic String formattedString(String indent,
boolean expandEmptyElements)
throws IOException
formattedString in interface com.liferay.portal.kernel.xml.ElementformattedString in interface com.liferay.portal.kernel.xml.NodeformattedString in class NodeImplIOExceptionpublic Object getData()
getData in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Namespace getNamespace()
getNamespace in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Namespace getNamespaceForPrefix(String prefix)
getNamespaceForPrefix in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.Namespace getNamespaceForURI(String uri)
getNamespaceForURI in interface com.liferay.portal.kernel.xml.Elementpublic String getNamespacePrefix()
getNamespacePrefix in interface com.liferay.portal.kernel.xml.Elementpublic List<com.liferay.portal.kernel.xml.Namespace> getNamespacesForURI(String uri)
getNamespacesForURI in interface com.liferay.portal.kernel.xml.Elementpublic String getNamespaceURI()
getNamespaceURI in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.QName getQName()
getQName in interface com.liferay.portal.kernel.xml.Elementpublic com.liferay.portal.kernel.xml.QName getQName(String qualifiedName)
getQName in interface com.liferay.portal.kernel.xml.Elementpublic String getQualifiedName()
getQualifiedName in interface com.liferay.portal.kernel.xml.Elementpublic String getTextTrim()
getTextTrim in interface com.liferay.portal.kernel.xml.Elementpublic org.dom4j.Element getWrappedElement()
public com.liferay.portal.kernel.xml.Node getXPathResult(int index)
getXPathResult in interface com.liferay.portal.kernel.xml.Elementpublic int hashCode()
hashCode in class BranchImplpublic boolean hasMixedContent()
hasMixedContent in interface com.liferay.portal.kernel.xml.Elementpublic boolean isRootElement()
isRootElement in interface com.liferay.portal.kernel.xml.Elementpublic boolean isTextOnly()
isTextOnly in interface com.liferay.portal.kernel.xml.Elementpublic boolean remove(com.liferay.portal.kernel.xml.Attribute attribute)
remove in interface com.liferay.portal.kernel.xml.Elementpublic boolean remove(com.liferay.portal.kernel.xml.CDATA cdata)
remove in interface com.liferay.portal.kernel.xml.Elementpublic boolean remove(com.liferay.portal.kernel.xml.Entity entity)
remove in interface com.liferay.portal.kernel.xml.Elementpublic boolean remove(com.liferay.portal.kernel.xml.Namespace namespace)
remove in interface com.liferay.portal.kernel.xml.Elementpublic boolean remove(com.liferay.portal.kernel.xml.Text text)
remove in interface com.liferay.portal.kernel.xml.Elementpublic void setAttributes(List<com.liferay.portal.kernel.xml.Attribute> attributes)
setAttributes in interface com.liferay.portal.kernel.xml.Elementpublic void setData(Object data)
setData in interface com.liferay.portal.kernel.xml.Elementpublic void setQName(com.liferay.portal.kernel.xml.QName qName)
setQName in interface com.liferay.portal.kernel.xml.Elementpublic void sortAttributes(boolean recursive)
sortAttributes in interface com.liferay.portal.kernel.xml.Elementpublic void sortElementsByAttribute(String elementName,
String attributeName)
sortElementsByAttribute in interface com.liferay.portal.kernel.xml.Elementpublic void sortElementsByChildElement(String elementName,
String childElementName)
sortElementsByChildElement in interface com.liferay.portal.kernel.xml.Elementpublic String toString()
toString in class BranchImpl