List of usage examples for org.apache.commons.jxpath.ri QName QName
public QName(String prefix, String localName)
From source file:org.apache.maven.project.harness.Xpp3DomAttributePointer.java
@Override public QName getName() { return new QName(null, attrib.getKey()); }
From source file:org.apache.maven.project.harness.Xpp3DomNodePointer.java
@Override public QName getName() { return new QName(null, node.getName()); }
From source file:org.eclipse.e4.emf.internal.xpath.EStructuralFeaturePointer.java
@Override public QName getName() { return new QName(null, getPropertyName()); }
From source file:org.eclipse.e4.emf.internal.xpath.LangAttributePointer.java
@Override public QName getName() { return new QName("xml", "lang"); }
From source file:org.firesoa.common.jxpath.model.dom4j.Dom4JNodePointer.java
@Override public QName getName() { String ns = null;// w ww .j a v a 2 s .c o m String ln = null; if (node instanceof Element) { ns = ((Element) node).getNamespacePrefix(); if (ns != null && ns.equals("")) { ns = null; } ln = ((Element) node).getName(); } else if (node instanceof ProcessingInstruction) { ln = ((ProcessingInstruction) node).getTarget(); } return new QName(ns, ln); }
From source file:org.geotools.feature.xpath.AttributeNodeIterator.java
public NodePointer getNodePointer() { Attribute attribute = (Attribute) children.get(position - 1); Name name = attribute.getDescriptor().getName(); QName qname = new QName(name.getNamespaceURI(), name.getLocalPart()); return new AttributeNodePointer(pointer, attribute, qname); }
From source file:org.geotools.feature.xpath.DescriptorXmlAttributeNodePointer.java
public QName getName() { return new QName(name.getURI(), name.getLocalPart()); }
From source file:org.geotools.feature.xpath.FeatureTypeAttributePointer.java
/** * Returns the qname */ public QName getName() { return new QName(name.getNamespaceURI(), name.getLocalPart()); }
From source file:org.geotools.xml.impl.jxpath.FeaturePropertyPointer.java
/** * Returns the qname with prefix as <code>null</code>, and local part the name of the * feature attribute./* ww w. j av a2s. c o m*/ */ public QName getName() { return (index != -1) ? new QName(null, feature.getFeatureType().getDescriptor(index).getLocalName()) : new QName(null, "fid"); }
From source file:org.geotools.xml.impl.jxpath.FeatureTypeAttributePointer.java
/** * Returns the qname with prefix as <code>null</code>, and local part the name of the * feature attribute.//from www . ja v a2 s . c om */ public QName getName() { return new QName(null, featureType.getDescriptor(index).getLocalName()); }