|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Element | |
---|---|
org.cdmckay.coffeedom | Classes to represent the components of an XML document. |
org.cdmckay.coffeedom.input | Classes to build CoffeeDOM documents from various sources. |
org.cdmckay.coffeedom.output | Classes to output CoffeeDOM documents to various destinations. |
org.cdmckay.coffeedom.transform | Classes to help with transformations, based on the JAXP TrAX classes. |
org.cdmckay.coffeedom.xpath.jaxen | Jaxen support for CoffeeDOM. |
Uses of Element in org.cdmckay.coffeedom |
---|
Fields in org.cdmckay.coffeedom declared as Element | |
---|---|
protected Element |
Attribute.parent
Parent element, or null if none |
Methods in org.cdmckay.coffeedom that return Element | |
---|---|
Element |
Element.addContent(Content child)
Appends the child to the end of the element's content list. |
Element |
Element.addContent(int index,
Content child)
Inserts the child into the content list at the given index. |
Element |
Element.addContent(String str)
This adds text content to this element. |
Element |
Element.addContents(Collection<? extends Content> newContents)
Appends all children in the given collection to the end of the content list. |
Element |
Element.addContents(int index,
Collection<? extends Content> newContents)
Inserts the content in a collection into the content list at the given index. |
Element |
Element.clone()
This returns a deep clone of this element. |
Element |
Element.detach()
|
Element |
Document.detachRootElement()
Detach the root from this document. |
Element |
UncheckedCoffeeDOMFactory.element(String name)
|
Element |
DefaultCoffeeDOMFactory.element(String name)
|
Element |
CoffeeDOMFactory.element(String name)
This will create an Element in no . |
Element |
UncheckedCoffeeDOMFactory.element(String name,
Namespace namespace)
|
Element |
DefaultCoffeeDOMFactory.element(String name,
Namespace namespace)
|
Element |
CoffeeDOMFactory.element(String name,
Namespace namespace)
This will create a new Element with the supplied (local) name, and define the to be used. |
Element |
UncheckedCoffeeDOMFactory.element(String name,
String uri)
|
Element |
DefaultCoffeeDOMFactory.element(String name,
String uri)
|
Element |
CoffeeDOMFactory.element(String name,
String uri)
This will create a new Element with the supplied (local) name, and specifies the URI of the
the Element should be in, resulting it being
unprefixed (in the default namespace). |
Element |
UncheckedCoffeeDOMFactory.element(String name,
String prefix,
String uri)
|
Element |
DefaultCoffeeDOMFactory.element(String name,
String prefix,
String uri)
|
Element |
CoffeeDOMFactory.element(String name,
String prefix,
String uri)
This will create a new Element with the supplied (local) name, and specifies the prefix and URI of
the the Element should be in. |
Element |
Element.getChild(String name)
This returns the first child element within this element with the given local name and belonging to no namespace. |
Element |
Element.getChild(String name,
Namespace ns)
This returns the first child element within this element with the given local name and belonging to the given namespace. |
Element |
Text.getParent()
|
Element |
EntityRef.getParent()
|
Element |
Attribute.getParent()
This will return the parent of this Attribute . |
Element |
Content.getParentElement()
A convenience method that returns any parent element for this element, or null if the element is unattached or is a root element. |
Element |
Document.getRootElement()
This will return the root Element for this Document |
Element |
Element.setAttribute(Attribute attribute)
This sets an attribute value for this element. |
Element |
Element.setAttribute(String name,
String value)
This sets an attribute value for this element. |
Element |
Element.setAttribute(String name,
String value,
Namespace ns)
This sets an attribute value for this element. |
Element |
Element.setAttributes(Collection<? extends Attribute> newAttributes)
This sets the attributes of the element. |
Element |
Element.setContent(Content child)
Set this element's content to be the supplied child. |
Element |
Element.setContent(int index,
Content child)
Replace the current child the given index with the supplied child. |
Element |
Element.setContents(Collection<? extends Content> newContents)
This sets the content of the element. |
Element |
Element.setName(String name)
Sets the (local) name of the element. |
Element |
Element.setNamespace(Namespace namespace)
Sets the element's Namespace . |
protected Element |
Element.setParent(Parent parent)
|
Element |
Element.setText(String text)
Sets the content of the element to be the text given. |
Methods in org.cdmckay.coffeedom that return types with arguments of type Element | |
---|---|
List<Element> |
Element.getChildren()
This returns a List of all the child elements nested directly (one level deep) within this element,
as Element objects. |
List<Element> |
Element.getChildren(String name)
This returns a List of all the child elements nested directly (one level deep) within this element
with the given local name and belonging to no namespace, returned as Element objects. |
List<Element> |
Element.getChildren(String name,
Namespace ns)
This returns a List of all the child elements nested directly (one level deep) within this element
with the given local name and belonging to the given Namespace, returned as Element objects. |
Methods in org.cdmckay.coffeedom with parameters of type Element | |
---|---|
void |
UncheckedCoffeeDOMFactory.addNamespaceDeclaration(Element parent,
Namespace additional)
|
void |
DefaultCoffeeDOMFactory.addNamespaceDeclaration(Element parent,
Namespace additional)
|
void |
CoffeeDOMFactory.addNamespaceDeclaration(Element element,
Namespace additional)
|
static String |
Verifier.checkNamespaceCollision(Attribute attribute,
Element element)
Check if 's namespace collides with a 's namespace. |
static String |
Verifier.checkNamespaceCollision(Namespace namespace,
Element element)
Check if a collides with a 's namespace. |
Document |
UncheckedCoffeeDOMFactory.document(Element rootElement)
|
Document |
DefaultCoffeeDOMFactory.document(Element rootElement)
|
Document |
CoffeeDOMFactory.document(Element rootElement)
This will create a new Document , with the supplied as
the root element, and no declaration. |
Document |
UncheckedCoffeeDOMFactory.document(Element rootElement,
DocType docType)
|
Document |
DefaultCoffeeDOMFactory.document(Element rootElement,
DocType docType)
|
Document |
CoffeeDOMFactory.document(Element rootElement,
DocType docType)
This will create a new Document , with the supplied as
the root element and the supplied declaration. |
Document |
UncheckedCoffeeDOMFactory.document(Element rootElement,
DocType docType,
String baseURI)
|
Document |
DefaultCoffeeDOMFactory.document(Element rootElement,
DocType docType,
String baseURI)
|
Document |
CoffeeDOMFactory.document(Element rootElement,
DocType docType,
String baseURI)
This will create a new Document , with the supplied as
the root element and the supplied declaration. |
boolean |
Element.isAncestor(Element element)
Determines if this element is the ancestor of another element. |
void |
UncheckedCoffeeDOMFactory.setAttribute(Element parent,
Attribute a)
|
void |
DefaultCoffeeDOMFactory.setAttribute(Element parent,
Attribute a)
|
void |
CoffeeDOMFactory.setAttribute(Element element,
Attribute a)
|
protected Attribute |
Attribute.setParent(Element parent)
This will set the parent of this Attribute . |
Document |
Document.setRootElement(Element rootElement)
This sets the root for the Document . |
Constructors in org.cdmckay.coffeedom with parameters of type Element | |
---|---|
Document(Element rootElement)
This will create a new Document , with the supplied as the root element,
and no declaration. |
|
Document(Element rootElement,
DocType docType)
This will create a new Document , with the supplied as the root element
and the supplied declaration. |
|
Document(Element rootElement,
DocType docType,
String baseURI)
This will create a new Document , with the supplied as the root element,
the supplied declaration, and the specified base URI. |
Uses of Element in org.cdmckay.coffeedom.input |
---|
Methods in org.cdmckay.coffeedom.input that return Element | |
---|---|
Element |
DOMBuilder.build(Element domElement)
This will build a CoffeeDOM Element from an existing DOM Element |
Element |
SAXHandler.getCurrentElement()
Returns the being-parsed element. |
Methods in org.cdmckay.coffeedom.input with parameters of type Element | |
---|---|
protected void |
SAXHandler.pushElement(Element element)
Pushes an element onto the tree under construction. |
Uses of Element in org.cdmckay.coffeedom.output |
---|
Methods in org.cdmckay.coffeedom.output with parameters of type Element | |
---|---|
void |
SAXOutputter.output(Element node)
This will output a single CoffeeDOM element as a document, firing off the SAX events that have been registered. |
void |
XMLOutputter.output(Element element,
OutputStream out)
Print out an , including its s, and all contained
(child) elements, etc. |
void |
XMLOutputter.output(Element element,
Writer out)
Print out an , including its s, and all contained
(child) elements, etc. |
void |
XMLOutputter.outputElementContent(Element element,
OutputStream out)
This will handle printing out an 's content only, not including its tag, and
attributes. |
void |
XMLOutputter.outputElementContent(Element element,
Writer out)
This will handle printing out an 's content only, not including its tag, and
attributes. |
String |
XMLOutputter.outputString(Element element)
Return a string representing an element. |
protected void |
XMLOutputter.printAttributes(Writer out,
List<Attribute> attributes,
Element parent,
XMLOutputter.NamespaceStack namespaces)
This will handle printing of a list. |
protected void |
XMLOutputter.printElement(Writer out,
Element element,
int level,
XMLOutputter.NamespaceStack namespaces)
This will handle printing of a , its s, and all
contained (child) elements, etc. |
Uses of Element in org.cdmckay.coffeedom.transform |
---|
Constructors in org.cdmckay.coffeedom.transform with parameters of type Element | |
---|---|
CoffeeDOMSource(Element source)
Creates a CoffeeDOM TrAX source wrapping a CoffeeDOM element. |
Uses of Element in org.cdmckay.coffeedom.xpath.jaxen |
---|
Methods in org.cdmckay.coffeedom.xpath.jaxen that return Element | |
---|---|
Element |
XPathNamespace.getCoffeeDOMElement()
Returns the CoffeeDOM element from which this namespace node has been retrieved. |
Methods in org.cdmckay.coffeedom.xpath.jaxen with parameters of type Element | |
---|---|
void |
XPathNamespace.setCoffeeDOMElement(Element coffeedomElement)
Sets or changes the element to which this namespace node is assigned. |
Constructors in org.cdmckay.coffeedom.xpath.jaxen with parameters of type Element | |
---|---|
XPathNamespace(Element coffeedomElement,
Namespace coffeedomNamespace)
Creates a namespace-node wrapper for a namespace node that is assigned to the given CoffeeDOM element. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |