Uses of Class
org.jdom2.Namespace
-
Packages that use Namespace Package Description org.jdom2 Classes representing the components of an XML document.org.jdom2.filter Classes to both filter and generically type-cast nodes of a document based on type, name, value, or other aspects, and to boolean AND/OR/NEGATE these rules.org.jdom2.input.stax Support classes for building JDOM documents and content using StAX readers.org.jdom2.located Extended JDOM Content Classes that contain location coordinates.org.jdom2.output.support Classes used to implement output functionality that are not part of the actual Output API, but rather part of the implementation.org.jdom2.util Classes that implement useful functionality, but are not easy to categorise. -
-
Uses of Namespace in org.jdom2
Fields in org.jdom2 declared as Namespace Modifier and Type Field Description protected NamespaceAttribute. namespaceTheof theNamespaceAttributeprotected NamespaceElement. namespaceThe namespace of the elementstatic NamespaceNamespace. NO_NAMESPACEDefine aNamespacefor when not in a namespacestatic NamespaceNamespace. XML_NAMESPACEDefine aNamespacefor the standard xml prefix.Methods in org.jdom2 that return Namespace Modifier and Type Method Description NamespaceAttribute. getNamespace()This will return thisAttribute's.NamespaceNamespaceElement. getNamespace()Returns the element'sNamespace.NamespaceElement. getNamespace(java.lang.String prefix)Returns theNamespacecorresponding to the given prefix in scope for this element.static NamespaceNamespace. getNamespace(java.lang.String uri)This will retrieve (if in existence) or create (if not) aNamespacefor the supplied URI, and make it usable as a default namespace, as no prefix is supplied.static NamespaceNamespace. getNamespace(java.lang.String prefix, java.lang.String uri)This will retrieve (if in existence) or create (if not) aNamespacefor the supplied prefix and uri.Methods in org.jdom2 that return types with arguments of type Namespace Modifier and Type Method Description java.util.List<Namespace>Element. getAdditionalNamespaces()Returns a list of the additional namespace declarations on this element.java.util.List<Namespace>Attribute. getNamespacesInherited()java.util.List<Namespace>Content. getNamespacesInherited()java.util.List<Namespace>Document. getNamespacesInherited()java.util.List<Namespace>Element. getNamespacesInherited()java.util.List<Namespace>NamespaceAware. getNamespacesInherited()Obtain a list of all namespaces that are in scope for this content, but were not introduced by this content.java.util.List<Namespace>Attribute. getNamespacesInScope()Get the namespaces that are in-scope on this Attribute.java.util.List<Namespace>Content. getNamespacesInScope()java.util.List<Namespace>Document. getNamespacesInScope()Get the Namespaces that are in-scope on this Document.java.util.List<Namespace>Element. getNamespacesInScope()Get the Namespaces that are in-scope on this Element.java.util.List<Namespace>NamespaceAware. getNamespacesInScope()Obtain a list of all namespaces that are in scope for the current content.java.util.List<Namespace>Attribute. getNamespacesIntroduced()java.util.List<Namespace>Content. getNamespacesIntroduced()java.util.List<Namespace>Document. getNamespacesIntroduced()java.util.List<Namespace>Element. getNamespacesIntroduced()java.util.List<Namespace>NamespaceAware. getNamespacesIntroduced()Obtain a list of all namespaces that are introduced to the XML tree by this node.Methods in org.jdom2 with parameters of type Namespace Modifier and Type Method Description voidDefaultJDOMFactory. addNamespaceDeclaration(Element parent, Namespace additional)booleanElement. addNamespaceDeclaration(Namespace additionalNamespace)Adds a namespace declarations to this element.voidJDOMFactory. addNamespaceDeclaration(Element element, Namespace additional)Adds a namespace declaration to an ElementvoidUncheckedJDOMFactory. addNamespaceDeclaration(Element parent, Namespace additional)AttributeDefaultJDOMFactory. attribute(java.lang.String name, java.lang.String value, int type, Namespace namespace)Deprecated.AttributeDefaultJDOMFactory. attribute(java.lang.String name, java.lang.String value, AttributeType type, Namespace namespace)AttributeDefaultJDOMFactory. attribute(java.lang.String name, java.lang.String value, Namespace namespace)AttributeJDOMFactory. attribute(java.lang.String name, java.lang.String value, int type, Namespace namespace)Deprecated.AttributeJDOMFactory. attribute(java.lang.String name, java.lang.String value, AttributeType type, Namespace namespace)This will create a newAttributewith the specified (local) name, value, and type, and in the provided.NamespaceAttributeJDOMFactory. attribute(java.lang.String name, java.lang.String value, Namespace namespace)This will create a newAttributewith the specified (local) name and value, and in the provided.NamespaceAttributeSlimJDOMFactory. attribute(java.lang.String name, java.lang.String value, int type, Namespace namespace)Deprecated.AttributeSlimJDOMFactory. attribute(java.lang.String name, java.lang.String value, AttributeType type, Namespace namespace)AttributeSlimJDOMFactory. attribute(java.lang.String name, java.lang.String value, Namespace namespace)AttributeUncheckedJDOMFactory. attribute(java.lang.String name, java.lang.String value, int type, Namespace namespace)Deprecated.AttributeUncheckedJDOMFactory. attribute(java.lang.String name, java.lang.String value, AttributeType type, Namespace namespace)AttributeUncheckedJDOMFactory. attribute(java.lang.String name, java.lang.String value, Namespace namespace)static java.lang.StringVerifier. checkNamespaceCollision(Namespace namespace, java.util.List<?> list)Check if acollides with any namespace from a list of objects.Namespacestatic java.lang.StringVerifier. checkNamespaceCollision(Namespace namespace, java.util.List<?> list, int ignoreatt)Check if acollides with any namespace from a list of objects.Namespacestatic java.lang.StringVerifier. checkNamespaceCollision(Namespace namespace, Attribute attribute)static java.lang.StringVerifier. checkNamespaceCollision(Namespace namespace, Element element)static java.lang.StringVerifier. checkNamespaceCollision(Namespace namespace, Element element, int ignoreatt)static java.lang.StringVerifier. checkNamespaceCollision(Namespace namespace, Namespace other)Check if two namespaces collide.ElementDefaultJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace)ElementDefaultJDOMFactory. element(java.lang.String name, Namespace namespace)ElementJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace)This will create a newElementwith the supplied (local) name, and define theto be used.NamespaceElementJDOMFactory. element(java.lang.String name, Namespace namespace)This will create a newElementwith the supplied (local) name, and define theto be used.NamespaceElementSlimJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace)ElementUncheckedJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace)AttributeElement. getAttribute(java.lang.String attname, 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.java.lang.StringElement. getAttributeValue(java.lang.String attname, 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.java.lang.StringElement. getAttributeValue(java.lang.String attname, Namespace ns, java.lang.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.ElementElement. getChild(java.lang.String cname, Namespace ns)This returns the first child element within this element with the given local name and belonging to the given namespace.java.util.List<Element>Element. getChildren(java.lang.String cname, Namespace ns)This returns aListof all the child elements nested directly (one level deep) within this element with the given local name and belonging to the given Namespace, returned asElementobjects.java.lang.StringElement. getChildText(java.lang.String cname, Namespace ns)Returns the textual content of the named child element, or null if there's no such child.java.lang.StringElement. getChildTextNormalize(java.lang.String cname, Namespace ns)Returns the normalized textual content of the named child element, or null if there's no such child.java.lang.StringElement. getChildTextTrim(java.lang.String cname, Namespace ns)Returns the trimmed textual content of the named child element, or null if there's no such child.booleanElement. removeAttribute(java.lang.String attname, Namespace ns)This removes the attribute with the given name and within the given Namespace.booleanElement. removeChild(java.lang.String cname, Namespace ns)This removes the first child element (one level deep) with the given local name and belonging to the given namespace.booleanElement. removeChildren(java.lang.String cname, Namespace ns)This removes all child elements (one level deep) with the given local name and belonging to the given namespace.voidElement. removeNamespaceDeclaration(Namespace additionalNamespace)Removes an additional namespace declarations from this element.ElementElement. setAttribute(java.lang.String name, java.lang.String value, Namespace ns)This sets an attribute value for this element.AttributeAttribute. setNamespace(Namespace namespace)This sets thisAttribute's.NamespaceElementElement. setNamespace(Namespace namespace)Sets the element'sNamespace.Constructors in org.jdom2 with parameters of type Namespace Constructor Description Attribute(java.lang.String name, java.lang.String value, int type, Namespace namespace)Deprecated.Attribute(java.lang.String name, java.lang.String value, AttributeType type, Namespace namespace)This will create a newAttributewith the specified (local) name, value, and type, and in the provided.NamespaceAttribute(java.lang.String name, java.lang.String value, Namespace namespace)This will create a newAttributewith the specified (local) name and value, and in the provided.NamespaceElement(java.lang.String name, Namespace namespace)Creates a new element with the supplied (local) name and namespace. -
Uses of Namespace in org.jdom2.filter
Methods in org.jdom2.filter with parameters of type Namespace Modifier and Type Method Description static Filter<Attribute>Filters. attribute(java.lang.String name, Namespace ns)Return a Filter that matches anyAttributedata with the specified name and namespace.static Filter<Attribute>Filters. attribute(Namespace ns)Return a Filter that matches anyAttributedata with the specified namespace.static Filter<Element>Filters. element(java.lang.String name, Namespace ns)Return a Filter that matches anyElementdata with the specified name and Namespace.static Filter<Element>Filters. element(Namespace ns)Return a Filter that matches anyElementdata with the specified Namespace.Constructors in org.jdom2.filter with parameters of type Namespace Constructor Description AttributeFilter(java.lang.String name, Namespace namespace)Select only the Attributes with the supplied name and Namespace.AttributeFilter(Namespace namespace)Select only the Attributes with the supplied Namespace.ElementFilter(java.lang.String name, Namespace namespace)Select only the Elements with the supplied name and Namespace.ElementFilter(Namespace namespace)Select only the Elements with the supplied Namespace. -
Uses of Namespace in org.jdom2.input.stax
Methods in org.jdom2.input.stax with parameters of type Namespace Modifier and Type Method Description booleanDefaultStAXFilter. includeElement(int depth, java.lang.String name, Namespace ns)booleanStAXFilter. includeElement(int depth, java.lang.String name, Namespace ns)The current event is an Element event.booleanDefaultStAXFilter. pruneElement(int depth, java.lang.String name, Namespace ns)booleanStAXFilter. pruneElement(int depth, java.lang.String name, Namespace ns)An Element is being included, and this is a child Element event of the included parent Element. -
Uses of Namespace in org.jdom2.located
Methods in org.jdom2.located with parameters of type Namespace Modifier and Type Method Description ElementLocatedJDOMFactory. element(int line, int col, java.lang.String name, Namespace namespace)Constructors in org.jdom2.located with parameters of type Namespace Constructor Description LocatedElement(java.lang.String name, Namespace namespace)Creates a new element with the supplied (local) name and namespace. -
Uses of Namespace in org.jdom2.output.support
Methods in org.jdom2.output.support with parameters of type Namespace Modifier and Type Method Description protected voidAbstractStAXStreamProcessor. printNamespace(javax.xml.stream.XMLStreamWriter out, FormatStack fstack, Namespace ns)This will handle printing of any neededdeclarations.Namespaceprotected voidAbstractXMLOutputProcessor. printNamespace(java.io.Writer out, FormatStack fstack, Namespace ns)This will handle printing of any neededdeclarations.Namespace -
Uses of Namespace in org.jdom2.util
Methods in org.jdom2.util that return Namespace Modifier and Type Method Description Namespace[]NamespaceStack. getScope()Return a new array instance representing the current scope.Methods in org.jdom2.util that return types with arguments of type Namespace Modifier and Type Method Description java.lang.Iterable<Namespace>NamespaceStack. addedForward()Return an Iterable containing all the Namespaces introduced to the current-level's scope.java.lang.Iterable<Namespace>NamespaceStack. addedReverse()Return an Iterable containing all the Namespaces introduced to the current-level's scope but in reverse order toNamespaceStack.addedForward().java.util.Iterator<Namespace>NamespaceStack. iterator()Get all the Namespaces in-scope at the current level of the stack.Methods in org.jdom2.util with parameters of type Namespace Modifier and Type Method Description booleanNamespaceStack. isInScope(Namespace ns)Inspect the current scope and return true if the specified namespace is in scope.Constructors in org.jdom2.util with parameters of type Namespace Constructor Description NamespaceStack(Namespace[] seed)Create a NamespaceWalker ready to use as a stack.
-