|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Namespace | |
---|---|
org.cdmckay.coffeedom | Classes to represent the components of an XML document. |
org.cdmckay.coffeedom.filter | Classes to programmatically filter nodes of a document based on type, name, value, or other aspects and to boolean and/or/negate these rules. |
org.cdmckay.coffeedom.xpath | Support for XPath from within CoffeeDOM. |
org.cdmckay.coffeedom.xpath.jaxen | Jaxen support for CoffeeDOM. |
Uses of Namespace in org.cdmckay.coffeedom |
---|
Fields in org.cdmckay.coffeedom declared as Namespace | |
---|---|
protected Namespace |
Element.namespace
The namespace of the element |
protected Namespace |
Attribute.namespace
The of the Attribute |
static Namespace |
Namespace.NO_NAMESPACE
Define a Namespace for when not in a namespace |
static Namespace |
Namespace.XML_NAMESPACE
Define a Namespace for the standard xml prefix. |
Fields in org.cdmckay.coffeedom with type parameters of type Namespace | |
---|---|
protected List<Namespace> |
Element.additionalNamespaces
Additional namespace declarations to store on this element; useful during output |
Methods in org.cdmckay.coffeedom that return Namespace | |
---|---|
Namespace |
Element.getNamespace()
Returns the element's Namespace . |
Namespace |
Attribute.getNamespace()
This will return this Attribute 's . |
static Namespace |
Namespace.getNamespace(String uri)
This will retrieve (if in existence) or create (if not) a Namespace for the supplied URI, and make
it usable as a default namespace, as no prefix is supplied. |
Namespace |
Element.getNamespace(String prefix)
Returns the Namespace corresponding to the given prefix in scope for this element. |
static Namespace |
Namespace.getNamespace(String prefix,
String uri)
This will retrieve (if in existence) or create (if not) a Namespace for the supplied prefix and
URI. |
Methods in org.cdmckay.coffeedom that return types with arguments of type Namespace | |
---|---|
List<Namespace> |
Element.getAdditionalNamespaces()
Returns a list of the additional namespace declarations on this element. |
Methods in org.cdmckay.coffeedom with parameters of type Namespace | |
---|---|
void |
UncheckedCoffeeDOMFactory.addNamespaceDeclaration(Element parent,
Namespace additional)
|
void |
DefaultCoffeeDOMFactory.addNamespaceDeclaration(Element parent,
Namespace additional)
|
void |
CoffeeDOMFactory.addNamespaceDeclaration(Element element,
Namespace additional)
|
void |
Element.addNamespaceDeclaration(Namespace additionalNamespace)
Adds a namespace declarations to this element. |
Attribute |
UncheckedCoffeeDOMFactory.attribute(String name,
String value,
Attribute.Type type,
Namespace namespace)
|
Attribute |
DefaultCoffeeDOMFactory.attribute(String name,
String value,
Attribute.Type type,
Namespace namespace)
|
Attribute |
CoffeeDOMFactory.attribute(String name,
String value,
Attribute.Type type,
Namespace namespace)
This will create a new Attribute with the specified (local) name, value, and type, and in the
provided . |
Attribute |
UncheckedCoffeeDOMFactory.attribute(String name,
String value,
Namespace namespace)
|
Attribute |
DefaultCoffeeDOMFactory.attribute(String name,
String value,
Namespace namespace)
|
Attribute |
CoffeeDOMFactory.attribute(String name,
String value,
Namespace namespace)
This will create a new Attribute with the specified (local) name and value, and in the provided
. |
static String |
Verifier.checkNamespaceCollision(Namespace namespace,
Attribute attribute)
Check if a collides with a 's namespace. |
static String |
Verifier.checkNamespaceCollision(Namespace namespace,
Element element)
Check if a collides with a 's namespace. |
static String |
Verifier.checkNamespaceCollision(Namespace namespace,
List<?> list)
Check if a collides with any namespace from a list of objects. |
static String |
Verifier.checkNamespaceCollision(Namespace namespace,
Namespace other)
Check if two namespaces collide. |
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. |
Attribute |
Element.getAttribute(String name,
Namespace ns)
This returns the attribute for this element with the given name and within the given Namespace, or null if no such attribute exists. |
String |
Element.getAttributeValue(String name,
Namespace ns)
This returns the attribute value for the attribute with the given name and within the given Namespace, null if there is no such attribute, and the empty string if the attribute value is empty. |
String |
Element.getAttributeValue(String name,
Namespace ns,
String def)
This returns the attribute value for the attribute with the given name and within the given Namespace, or the passed-in default if there is no such attribute. |
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. |
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. |
String |
Element.getChildText(String name,
Namespace ns)
Returns the textual content of the named child element, or null if there's no such child. |
String |
Element.getChildTextNormalize(String name,
Namespace ns)
Returns the normalized textual content of the named child element, or null if there's no such child. |
String |
Element.getChildTextTrim(String name,
Namespace ns)
Returns the trimmed textual content of the named child element, or null if there's no such child. |
boolean |
Element.removeAttribute(String name,
Namespace ns)
This removes the attribute with the given name and within the given Namespace. |
boolean |
Element.removeChild(String name,
Namespace ns)
This removes the first child element (one level deep) with the given local name and belonging to the given namespace. |
boolean |
Element.removeChildren(String name,
Namespace ns)
This removes all child elements (one level deep) with the given local name and belonging to the given namespace. |
void |
Element.removeNamespaceDeclaration(Namespace additionalNamespace)
Removes an additional namespace declarations from this element. |
Element |
Element.setAttribute(String name,
String value,
Namespace ns)
This sets an attribute value for this element. |
Element |
Element.setNamespace(Namespace namespace)
Sets the element's Namespace . |
Attribute |
Attribute.setNamespace(Namespace namespace)
This sets this Attribute 's . |
Constructors in org.cdmckay.coffeedom with parameters of type Namespace | |
---|---|
Attribute(String name,
String value,
Attribute.Type type,
Namespace namespace)
This will create a new Attribute with the specified (local) name, value, and type, and in the
provided . |
|
Attribute(String name,
String value,
Namespace namespace)
This will create a new Attribute with the specified (local) name and value, and in the provided
. |
|
Element(String name,
Namespace namespace)
Creates a new element with the supplied (local) name and namespace. |
Uses of Namespace in org.cdmckay.coffeedom.filter |
---|
Constructors in org.cdmckay.coffeedom.filter with parameters of type Namespace | |
---|---|
ElementFilter(Namespace namespace)
Select only the Elements with the supplied Namespace. |
|
ElementFilter(String name,
Namespace namespace)
Select only the Elements with the supplied name and Namespace. |
Uses of Namespace in org.cdmckay.coffeedom.xpath |
---|
Methods in org.cdmckay.coffeedom.xpath with parameters of type Namespace | |
---|---|
abstract void |
XPath.addNamespace(Namespace namespace)
Adds a namespace definition to the list of namespaces known of this XPath expression. |
Uses of Namespace in org.cdmckay.coffeedom.xpath.jaxen |
---|
Methods in org.cdmckay.coffeedom.xpath.jaxen that return Namespace | |
---|---|
Namespace |
XPathNamespace.getJDOMNamespace()
Returns the CoffeeDOM namespace object of this namespace node; the CoffeeDOM namespace object contains the prefix and URI of the namespace. |
Constructors in org.cdmckay.coffeedom.xpath.jaxen with parameters of type Namespace | |
---|---|
XPathNamespace(Element coffeedomElement,
Namespace coffeedomNamespace)
Creates a namespace-node wrapper for a namespace node that is assigned to the given CoffeeDOM element. |
|
XPathNamespace(Namespace coffeedomNamespace)
Creates a namespace-node wrapper for a namespace node that hasn't been assigned to an element yet. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |