Best code examples for Java 8 QName class (javax.xml.namespace.QName)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 QName class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 QName examples from Open Source projects
This code example shows how to use the following methods:
59:	mapper.registerRootElement(new QName(namespace, "server"), parser); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLocalPart, getPrefix
28:	qn = new QName(uri,localName, "s"); 
29:	qName = qn.getPrefix() + ":" + qn.getLocalPart(); 
30:	if (!qn.getPrefix().equals("s")) { // only a problem with MOXy 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getNamespaceURI
75:	QName rootQName = new QName(name.getNamespaceURI(), name.getLocalPart()); 
-
78:	expected = Collections.singletonList(new XPathUtil.Step(rootQName, 1)); 
-
82:	expected = Collections.singletonList(new XPathUtil.Step(rootQName, 1)); 
-
86:	expected = Collections.singletonList(new XPathUtil.Step(rootQName, 1)); 
-
91:	new XPathUtil.Step(new QName(rootQName.getNamespaceURI(), "measurement"), 2), 
92:	new XPathUtil.Step(new QName(rootQName.getNamespaceURI(), "result"), 1) }); 
-
98:	new XPathUtil.Step(new QName(rootQName.getNamespaceURI(), "measurement"), 1), 
99:	new XPathUtil.Step(new QName(rootQName.getNamespaceURI(), "result"), 1) }); 
-
104:	.getNamespaceURI(), "measurement"), 5) }); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLocalPart
83:	return this.name.getLocalPart(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
72:	final QName serviceName = new QName("org.jboss.as.test.integration.ws.context.as1605", "EJB3EndpointService"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
171:	reader.require(START_ELEMENT, memberName.getNamespaceURI(), memberName.getLocalPart()); 
-
212:	consume(reader, memberName); 
-
214:	reader.require(END_ELEMENT, memberName.getNamespaceURI(), memberName.getLocalPart()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLocalPart
31:	if("success".equals(name.getLocalPart())) { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
54:	final QName serviceName = new QName(TARGET_NAMESPACE, SERVICE_NAME); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
83:	QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wssecuritypolicy", "EncryptSecurityService"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getPrefix
121:	String prefix = qName.getPrefix(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart
115:	if ("LowerCorner".equals(name.getLocalPart()) || "UpperCorner".equals(name.getLocalPart())) { 
-
118:	Object value = super.getProperty(object, name); 
-
124:	return super.getProperty(object, name); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
33:	Assert.assertEquals("http://customerservice.example.com/", name.getNamespaceURI()); 
34:	Assert.assertEquals("getCustomersByName", name.getLocalPart()); 
-
56:	Assert.assertEquals("test", name2.getLocalPart()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
71:	String nsURI = qname.getNamespaceURI(); 
72:	String localPart = qname.getLocalPart(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
28:	private final static QName _SayHello_QNAME = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "sayHello"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
93:	QName serviceName = new QName("http://jbossws.org/injection", "EJB3Service"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLocalPart
86:	if ("srsName".equals(name.getLocalPart())) { 
-
94:	if (GML.id.equals(name)) { 
-
98:	if (GML.name.equals(name)) { 
-
102:	if (GML.description.equals(name)) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
182:	return (getNamespaceUri() != null ? new QName(getNamespaceUri(), name) : new QName(name)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart
99:	if ((OGC.Logical_Operators.equals(name) 
100:	|| org.geotools.filter.v1_1.OGC.LogicalOperators.equals(name)) 
-
105:	if ("Comparison_Operators".equals(name.getLocalPart()) 
106:	|| "ComparisonOperators".equals(name.getLocalPart()) /* 1.1 */) { 
-
110:	if ("Arithmetic_Operators".equals(name.getLocalPart()) 
111:	|| "ArithmeticOperators".equals(name.getLocalPart()) /* 1.1 */) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart
116:	if (OGC.PropertyName.equals(name)) { 
-
120:	if (OGC.Literal.equals(name)) { 
-
124:	if ("wildCard".equals(name.getLocalPart())) { 
-
128:	if ("singleChar".equals(name.getLocalPart())) { 
-
132:	if ("escape".equals(name.getLocalPart()) || "escapeChar".equals(name.getLocalPart())) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getPrefix
149:	return DatatypeConverterImpl.getInstance().printQName( 
-
154:	if ( qName.getPrefix() == null || qName.getPrefix().equals( "") ) { 
155:	return qName.getLocalPart(); 
-
158:	return qName.getPrefix() + ":" + qName.getLocalPart(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI, getPrefix
28:	variable.getNamespaceURI())?null:variable.getNamespaceURI() 
29:	, variable.getPrefix(), variable.getLocalPart()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
34:	private final static QName _PurchaseOrder_QNAME = new QName("", "purchaseOrder"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
38:	currentQName = new QName(prefixNameSpaceMap.get(nameSpacePrefix), localName); 
39:	if (node.getQName().getLocalPart().equals(currentQName.getLocalPart())) { 
40:	if (node.getQName().getNamespaceURI().equals(currentQName.getNamespaceURI())) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
84:	QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wssecuritypolicy", "EncryptSecurityService"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLocalPart
37:	@Override 
-
39:	if(name.getLocalPart().equals("TypeName")) { 
-
43:	} 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
63:	encoder.encode( feature, 
64:	new QName( meta.getNamespace().getURI(), meta.getName()), output ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart
122:	if ("LowerCorner".equals(name.getLocalPart()) || "UpperCorner".equals(name.getLocalPart())) { 
-
125:	Object value = super.getProperty(object, name); 
-
131:	return super.getProperty(object, name); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getPrefix
58:	String nsPrefix = !StringUtils.hasText(element.getPrefix()) ? "" : element.getPrefix() + ":"; 
-
61:	ioWriter.write("</" + nsPrefix + element.getLocalPart() + ">"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
214:	return new QName(namespaceUri, qualifiedName); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
86:	String attr = elm.getAttributeValue(attrName); 
-
100:	attrName = new QName("attr"); 
-
106:	testPol.addAttribute(attrName,"attribute1"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart
115:	if (OGC.PropertyName.equals(name)) { 
-
119:	if (OGC.Literal.equals(name)) { 
-
123:	if ("wildCard".equals(name.getLocalPart())) { 
-
127:	if ("singleChar".equals(name.getLocalPart())) { 
-
131:	if ("escape".equals(name.getLocalPart()) || "escapeChar".equals(name.getLocalPart())) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
49:	assertEquals("Invalid element", new QName("http://springframework.org/spring-ws", "root"), 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
308:	XMLObjectBuilder builder = org.opensaml.xml.Configuration.getBuilderFactory().getBuilder( 
-
313:	return builder.buildObject(objectQName.getNamespaceURI(), objectQName.getLocalPart(), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
38:	Element el = doc.createElementNS(elementType.getNamespaceURI(), 
39:	elementType.getLocalPart()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI, getPrefix
49:	parentQname.getNamespaceURI(), parentQname.getPrefix()); 
50:	omElement = omFactory.createOMElement(parentQname.getLocalPart(), omNamespace); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
87:	unwrapped = new QName(((TypeDefinition)unwrapped).getNamespace(), "anonymous" + ((TypeDefinition)unwrapped).getSimpleName()); 
-
103:	String namespace = qname.getNamespaceURI(); 
-
114:	String localName = qname.getLocalPart(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart
37:	} 
-
39:	gdr.setTransaction((TransactionType) node.getChildValue("Changes")); 
-
43:	} 
-
49:	if (name.getLocalPart().equals("typeName")) { 
-
51:	} else if (name.getLocalPart().equals("fromVersion")) { 
-
53:	} else if (name.getLocalPart().equals("toVersion")) { 
-
55:	} else if (name.getLocalPart().equals("Changes")) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getPrefix
397:	String prefix = qName.getPrefix(); 
-
399:	return qName.getLocalPart(); 
-
402:	return prefix + ":" + qName.getLocalPart(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getPrefix
148:	return DatatypeConverterImpl.getInstance().printQName( 
-
153:	if ( qName.getPrefix() == null || qName.getPrefix().equals( "") ) { 
154:	return qName.getLocalPart(); 
-
157:	return qName.getPrefix() + ":" + qName.getLocalPart(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
67:	return new NameImpl(qName.getNamespaceURI(), qName.getLocalPart()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getNamespaceURI
201:	XMLObjectBuilder builder = Configuration.getBuilderFactory().getBuilder(objectQName); 
-
206:	return builder.buildObject(objectQName.getNamespaceURI(), objectQName.getLocalPart(), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
557:	XMLObjectBuilder builder = org.opensaml.xml.Configuration.getBuilderFactory().getBuilder(objectQName); 
-
562:	return builder.buildObject(objectQName.getNamespaceURI(), objectQName.getLocalPart(), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
40:	return "{" + qname.getNamespaceURI() + "}" + qname.getLocalPart(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart
32:	if("success".equals(name.getLocalPart())) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: sleep
177:	Service  serviceNew =serviceManager.newService(new QName("sns", "ServiceLifeCycleState")); 
-
182:	Thread.sleep(500); 
-
195:	Thread.sleep(500); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart
61:	if ("matchAction".equals(name.getLocalPart())) { 
-
64:	if ("matchCase".equals(name.getLocalPart())) { 
-
67:	if (FES.expression.equals(name)) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart, getNamespaceURI
100:	return GeometryOperand.get(name.getNamespaceURI(), name.getLocalPart()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLocalPart
67:	if ("_Surface".equals(name.getLocalPart()) || "AbstractSurface".equals(name.getLocalPart())) { 
-
73:	return super.getProperty(object, name); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
39:	public static final QName PERSON_ATTRIBUTE_GROUP_STORE_TYPE_QNAME = new QName("pags-group"); 
-
104:	return Collections.singleton(portalDataKey); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
148:	assertEquals("Invalid element", new QName("http://samples.springframework.org/flight", "flights"), 
Full Snippet Info
6
CodeRank
Related Java 8 QName Questions & Answers:
See Code Examples for Java 8 QName Methods: