Best code examples for Java 8 Element class (org.w3c.dom.Element)

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

Java 8 Element examples from Open Source projects
This code example shows how to use the following methods: getAttribute, hasAttribute
76:	CardType type      = CardType.class.getEnumConstants()[Integer.parseInt(rootElement.getAttribute("type"))]; 
77:	byte[]   id        = Utils.hexStringToByteArray(rootElement.getAttribute("id")); 
78:	Date     scannedAt = rootElement.hasAttribute("scanned_at") ? new Date(Long.valueOf(rootElement.getAttribute("scanned_at"))) : new Date(0); 
-
81:	return DesfireCard.fromXml(id, scannedAt, rootElement); 
-
83:	return CEPASCard.fromXML(id, scannedAt, rootElement); 
-
85:	return FelicaCard.fromXml(id, scannedAt, rootElement); 
-
87:	return ClassicCard.fromXml(id, scannedAt, rootElement); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute
198:	String defaultCache = root.getAttribute("cache"); 
199:	key = root.getAttribute("key"); 
200:	keyGenerator = root.getAttribute("key-generator"); 
201:	cacheManager = root.getAttribute("cache-manager"); 
202:	condition = root.getAttribute("condition"); 
203:	method = root.getAttribute(METHOD_ATTRIBUTE); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute
135:	cavs.addIndexedArgumentValue(0, element.getAttribute("redirect-url")); 
-
141:	if (element.hasAttribute("context-relative")) { 
142:	redirectView.getPropertyValues().add("contextRelative", element.getAttribute("context-relative")); 
-
144:	if (element.hasAttribute("keep-query-params")) { 
145:	redirectView.getPropertyValues().add("propagateQueryParams", element.getAttribute("keep-query-params")); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute
75:	if (element.hasAttribute(ADDRESSES) && 
76:	(element.hasAttribute(HOST_ATTRIBUTE) || element.hasAttribute(PORT_ATTRIBUTE))) { 
77:	parserContext.getReaderContext().error("If the 'addresses' attribute is provided, a connection " + 
-
80:	String channelCacheSize = element.getAttribute(CHANNEL_CACHE_SIZE_ATTRIBUTE); 
81:	String connectionCacheSize = element.getAttribute(CONNECTION_CACHE_SIZE_ATTRIBUTE); 
-
83:	parserContext.getReaderContext().error( 
-
86:	NamespaceUtils.addConstructorArgParentRefIfAttributeDefined(builder, element, CONNECTION_FACTORY_ATTRIBUTE); 
87:	NamespaceUtils.setValueIfAttributeDefined(builder, element, CHANNEL_CACHE_SIZE_ATTRIBUTE); 
88:	NamespaceUtils.setValueIfAttributeDefined(builder, element, HOST_ATTRIBUTE); 
89:	NamespaceUtils.setValueIfAttributeDefined(builder, element, PORT_ATTRIBUTE); 
90:	NamespaceUtils.setValueIfAttributeDefined(builder, element, USER_ATTRIBUTE); 
91:	NamespaceUtils.setValueIfAttributeDefined(builder, element, PASSWORD_ATTRIBUTE); 
92:	NamespaceUtils.setValueIfAttributeDefined(builder, element, VIRTUAL_HOST_ATTRIBUTE); 
93:	NamespaceUtils.setReferenceIfAttributeDefined(builder, element, EXECUTOR_ATTRIBUTE); 
94:	NamespaceUtils.setValueIfAttributeDefined(builder, element, ADDRESSES); 
95:	NamespaceUtils.setValueIfAttributeDefined(builder, element, PUBLISHER_CONFIRMS); 
96:	NamespaceUtils.setValueIfAttributeDefined(builder, element, PUBLISHER_RETURNS); 
97:	NamespaceUtils.setValueIfAttributeDefined(builder, element, REQUESTED_HEARTBEAT, "requestedHeartBeat"); 
98:	NamespaceUtils.setValueIfAttributeDefined(builder, element, CACHE_MODE); 
99:	NamespaceUtils.setValueIfAttributeDefined(builder, element, CONNECTION_CACHE_SIZE_ATTRIBUTE); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute
232:	String destinationType = containerEle.getAttribute(DESTINATION_TYPE_ATTRIBUTE); 
-
256:	parserContext.getReaderContext().error("Invalid listener container 'destination-type': only " + 
-
263:	if (containerEle.hasAttribute(CLIENT_ID_ATTRIBUTE)) { 
264:	String clientId = containerEle.getAttribute(CLIENT_ID_ATTRIBUTE); 
-
266:	parserContext.getReaderContext().error( 
-
272:	if (containerEle.hasAttribute(MESSAGE_CONVERTER_ATTRIBUTE)) { 
273:	String messageConverter = containerEle.getAttribute(MESSAGE_CONVERTER_ATTRIBUTE); 
-
275:	parserContext.getReaderContext().error( 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute
24:	String appKey = element.getAttribute("appkey-param-name"); 
25:	String sessionId = element.getAttribute("sessionid-param-name"); 
26:	String method = element.getAttribute("method-param-name"); 
27:	String version = element.getAttribute("version-param-name"); 
28:	String format = element.getAttribute("format-param-name"); 
29:	String locale = element.getAttribute("locale-param-name"); 
30:	String sign = element.getAttribute("sign-param-name"); 
31:	String jsonp = element.getAttribute("jsonp-param-name"); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute
51:	String connectionFactoryRef = element.getAttribute(CONNECTION_FACTORY_ATTRIBUTE); 
-
55:	parserContext.getReaderContext().error("A '" + CONNECTION_FACTORY_ATTRIBUTE + "' attribute must be set.", 
-
65:	attributeValue = element.getAttribute(AUTO_STARTUP_ATTRIBUTE); 
-
70:	NamespaceUtils.setValueIfAttributeDefined(builder, element, IGNORE_DECLARATION_EXCEPTIONS); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute
470:	if (element.hasAttribute(POINTCUT) && element.hasAttribute(POINTCUT_REF)) { 
471:	parserContext.getReaderContext().error( 
-
476:	else if (element.hasAttribute(POINTCUT)) { 
-
483:	else if (element.hasAttribute(POINTCUT_REF)) { 
484:	String pointcutRef = element.getAttribute(POINTCUT_REF); 
-
486:	parserContext.getReaderContext().error( 
-
493:	parserContext.getReaderContext().error( 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getElementsByTagName, appendChild
25:	NodeList nodeList = manifestElement.getElementsByTagName( elementName ); 
-
30:	manifestElement.appendChild( element ); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute
37:	String fieldName = DOMUtils.getAttributeWithInheritance(e, "fieldName"); 
-
39:	String lowerTerm = e.getAttribute("lowerTerm"); 
40:	String upperTerm = e.getAttribute("upperTerm"); 
41:	boolean includeLower = DOMUtils.getAttribute(e, "includeLower", true); 
42:	boolean includeUpper = DOMUtils.getAttribute(e, "includeUpper", true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: appendChild
186:	assertSame(a, DomUtilities.getCommonAncestor(a, a)); 
-
188:	a.appendChild(b); 
-
190:	a.appendChild(c); 
-
198:	assertEquals(1, DomUtilities.getDepth(a)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute, getElementsByTagName
452:	String name = camera.getAttribute("name"); 
453:	String id = camera.getAttribute("id"); 
-
502:	NodeList nl = elem.getElementsByTagName(name); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
115:	return getReaderContext().extractSource(ele); 
-
273:	String name = ele.getAttribute(NAME_ATTRIBUTE); 
274:	String alias = ele.getAttribute(ALIAS_ATTRIBUTE); 
-
277:	getReaderContext().error("Name must not be empty", ele); 
-
281:	getReaderContext().error("Alias must not be empty", ele); 
-
289:	getReaderContext().error("Failed to register alias '" + alias + 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
114:	return element.getAttribute(ANDROID_PADDING).length() > 0 || 
115:	element.getAttribute(ANDROID_PADDING_LEFT).length() > 0 || 
116:	element.getAttribute(ANDROID_PADDING_TOP).length() > 0 || 
117:	element.getAttribute(ANDROID_PADDING_BOTTOM).length() > 0 || 
118:	element.getAttribute(ANDROID_PADDING_RIGHT).length() > 0; 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute
42:	String id = element.getAttribute("id"); 
-
44:	parserContext.getReaderContext().error( 
-
47:	String ref = element.getAttribute("ref"); 
-
49:	parserContext.getReaderContext().error( 
-
52:	String method = element.getAttribute("method"); 
-
54:	parserContext.getReaderContext().error( 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute, getTagName, hasAttribute
286:	if(tag == null || tag.equals(e.getTagName())){ 
287:	if(attr == null || e.hasAttribute(attr)){ 
288:	if(value == null || value.equals(e.getAttribute(attr))){ 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
43:	String keepAliveSeconds = element.getAttribute("keep-alive"); 
-
47:	String queueCapacity = element.getAttribute("queue-capacity"); 
-
52:	String poolSize = element.getAttribute("pool-size"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute
50:	IntegrationNamespaceUtils.setValueIfAttributeDefined(listeningMessageProducer, element, 
-
52:	IntegrationNamespaceUtils.setValueIfAttributeDefined(listeningMessageProducer, element, 
-
55:	if (!element.hasAttribute(REGION_ATTRIBUTE)) { 
56:	parserContext.getReaderContext().error("'region' attribute is required.", element); 
-
59:	listeningMessageProducer.addConstructorArgReference(element.getAttribute(REGION_ATTRIBUTE)); 
-
62:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(listeningMessageProducer, element, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
42:	String mailSenderRef = element.getAttribute("mail-sender"); 
43:	String host = element.getAttribute("host"); 
44:	String port = element.getAttribute("port"); 
45:	String username = element.getAttribute("username"); 
46:	String password = element.getAttribute("password"); 
-
67:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined( 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute, getElementsByTagNameNS, getNamespaceURI
42:	String xPathExpressionRef = element.getAttribute("xpath-expression-ref"); 
43:	NodeList xPathExpressionNodes = element.getElementsByTagNameNS(element.getNamespaceURI(), "xpath-expression"); 
-
55:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "doc-builder-factory", "documentBuilder"); 
56:	IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "create-documents"); 
57:	IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "apply-sequence"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute, getElementsByTagNameNS, getNamespaceURI
46:	NodeList xPathExpressionNodes = element.getElementsByTagNameNS(element.getNamespaceURI(), "xpath-expression"); 
-
48:	String xPathExpressionRef = element.getAttribute("xpath-expression-ref"); 
49:	IntegrationNamespaceUtils.setValueIfAttributeDefined(xpathRouterBuilder, element, "evaluate-as-string"); 
-
61:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(xpathRouterBuilder, element, "converter"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getTagName, hasChildNodes
53:	* 
54:	* @author <a href="mailto:ralf.battenfeld@bluewin.ch">Ralf Battenfeld</a> 
55:	*/ 
56:	public class ElementFilter implements Filter { 
57:	@Override 
58:	public boolean filter(final Metadata metadata, final TreeWalker walker) { 
59:	final Node parent = walker.getCurrentNode(); 
60:	final Element element = (Element) parent; 
-
62:	if (XsdElementEnum.element.isTagNameEqual(element.getTagName())) { 
63:	final String refStr = MetadataUtil.getAttributeValue(element, "ref"); 
-
102:	final String typeStr = MetadataUtil.getAttributeValue(element, "type"); 
-
104:	final String dataTypeName = MetadataUtil.getAttributeValue(element, "name"); 
-
115:	if (!element.hasChildNodes()) { 
-
117:	final String dataTypeName = MetadataUtil.getAttributeValue(element, "name"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
44:	String url = element.getAttribute("url"); 
-
48:	builder.addConstructorArgValue(element.getAttribute("client-id")); 
49:	String clientFactory = element.getAttribute("client-factory"); 
-
55:	parserContext.getReaderContext().error("If no 'url' attribute is provided, a 'client-factory' " + 
-
59:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "converter"); 
60:	IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "send-timeout"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute, getChildNodes, getTextContent, hasChildNodes
146:	if (input.hasAttribute(SRC_ATTR)) { 
-
169:	final String inputType = input.getAttribute(TYPE_ATTR); 
170:	if (input.hasChildNodes()) { 
-
172:	return new StringReader(XMLUtil.nodeListToString(input.getChildNodes())); 
-
174:	return new StringReader(input.getTextContent()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getChildNodes, getFirstChild, normalize
51:	type.visitSignature(new TypeMetaData.SignatureVisitor() { 
-
61:	linkElement.normalize(); 
62:	if (linkElement.getChildNodes().getLength() == 1 && linkElement.getFirstChild() instanceof Element) { 
63:	return linkElement.getFirstChild(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute
326:	boolean hasHeaderMapper = element.hasAttribute("header-mapper"); 
327:	boolean hasMappedRequestHeaders = element.hasAttribute("mapped-request-headers"); 
328:	boolean hasMappedReplyHeaders = element.hasAttribute(replyHeaderValue); 
-
331:	parserContext.getReaderContext().error("The 'header-mapper' attribute is mutually exclusive with" + 
-
342:	headerMapperBuilder.addPropertyValue("requestHeaderNames", element.getAttribute("mapped-request-headers")); 
-
345:	headerMapperBuilder.addPropertyValue("replyHeaderNames", element.getAttribute(replyHeaderValue)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
43:	builder.addPropertyReference("dataSource", element.getAttribute("data-source")); 
44:	builder.addPropertyValue("enabled", element.getAttribute("enabled")); 
-
46:	builder.getRawBeanDefinition().setSource(parserContext.extractSource(element)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setAttributeNS, appendChild
101:	root.appendChild(child); 
-
103:	root.setAttributeNS(namespaceURI, "ID", id); 
104:	root.setAttributeNS(namespaceURI, "TokenType", tokenType.toString()); 
105:	root.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:token", namespaceURI); 
-
107:	doc.appendChild(root); 
-
109:	SecurityToken token = new StandardSecurityToken(tokenType.toString(), root, id); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
60:	String defaultValue = element.getAttribute(DEFAULT_VALUE); 
61:	String defaultRef = element.getAttribute(DEFAULT_REF); 
-
64:	parserContext.getReaderContext().error("<jndi-lookup> element is only allowed to contain either " + 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
130:	String corePoolSize = element.getAttribute("core-pool-size"); 
-
137:	String maxPoolSize = element.getAttribute("max-pool-size"); 
-
144:	String keepAliveSeconds = element.getAttribute("keep-alive-seconds"); 
-
151:	String queueCapacity = element.getAttribute("queue-capacity"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getTextContent
90:	mode = XmlUtil.getAttribute(element, "mode"); 
-
95:	type = XmlUtil.getAttribute(element, "type", ""); 
96:	content = element.getTextContent(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
42:	String mongoDbTemplate = element.getAttribute("mongo-template"); 
43:	String mongoDbFactory = element.getAttribute("mongodb-factory"); 
-
46:	parserContext.getReaderContext().error("Only one of '" + mongoDbTemplate + "' or '" 
-
52:	if (StringUtils.hasText(element.getAttribute("mongo-converter"))) { 
53:	parserContext.getReaderContext().error("'mongo-converter' is not allowed with 'mongo-template'", 
-
62:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "mongo-converter"); 
-
65:	BeanDefinition collectionNameExpressionDef = 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
34:	String targetRef = element.getAttribute("channel"); 
-
36:	parserContext.getReaderContext().error("The 'channel' attribute is required.", element); 
-
39:	String selectorRef = element.getAttribute("selector"); 
-
43:	String timeout = element.getAttribute("timeout"); 
-
47:	String id = element.getAttribute("id"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute
68:	String strategy = element.getAttribute(STRATEGY_ATTRIBUTE); 
-
76:	.parseListElement(element, bd)); 
77:	if (element.hasAttribute(CONVERTER_FACTORY_ATTRIBUTE)) { 
-
79:	.addGenericArgumentValue(new RuntimeBeanReference(element.getAttribute(CONVERTER_FACTORY_ATTRIBUTE))); 
80:	} else if (element.hasAttribute(SERIALIZER_ATTRIBUTE)) { 
81:	bd.getConstructorArgumentValues().addGenericArgumentValue(new RuntimeBeanReference(element.getAttribute( 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
40:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(filterBuilder, element, "discard-channel"); 
41:	IntegrationNamespaceUtils.setValueIfAttributeDefined(filterBuilder, element, "throw-exception-on-rejection"); 
-
43:	String validator = element.getAttribute("xml-validator"); 
44:	String schemaLocation = element.getAttribute("schema-location"); 
-
55:	String schemaType = element.getAttribute("schema-type"); 
-
61:	IntegrationNamespaceUtils.setValueIfAttributeDefined(selectorBuilder, element, "throw-exception-on-rejection"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
40:	String resultTransformer = element.getAttribute("result-transformer"); 
41:	IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "result-type", "resultType"); 
42:	IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "result-factory", "resultFactoryName"); 
43:	String marshaller = element.getAttribute("marshaller"); 
-
49:	String extractPayload = element.getAttribute("extract-payload"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
88:	containerDef.setSource(parserContext.extractSource(containerEle)); 
-
92:	String containerType = containerEle.getAttribute(CONTAINER_TYPE_ATTRIBUTE); 
93:	String containerClass = containerEle.getAttribute(CONTAINER_CLASS_ATTRIBUTE); 
-
104:	parserContext.getReaderContext().error( 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute
50:	if (element.hasAttribute("match-value")) { 
51:	selectorBuilder.addConstructorArgValue(element.getAttribute("match-value")); 
52:	String matchType = element.getAttribute("match-type"); 
-
66:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "discard-channel"); 
67:	IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "throw-exception-on-rejection"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setAttribute
105:	docfrag.appendChild(xhtmlDiv); 
106:	xhtmlDiv.setAttribute("class", tagMap.get("@class")); 
-
109:	xhtmlDiv.setAttribute("id", "t" + sdtId); 
-
112:	xhtmlDiv.setAttribute("style", "display: block;"); 
-
114:	xhtmlDiv.setAttribute("style", "display: none;"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
41:	String protocol = element.getAttribute("protocol"); 
-
46:	IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "port"); 
47:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, 
-
49:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "converter"); 
50:	Element udpAdapterElement = DomUtils.getChildElementByTagName(element, "udp-attributes"); 
-
52:	if (StringUtils.hasText(element.getAttribute("port"))) { 
53:	parserContext.getReaderContext().error( 
-
60:	IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, 
-
62:	IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "send-timeout"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
37:	String resourceId = element.getAttribute("resource-id"); 
38:	String entryPointRef = element.getAttribute("entry-point-ref"); 
39:	String authenticationManagerRef = element.getAttribute("authentication-manager-ref"); 
40:	String tokenExtractorRef = element.getAttribute("token-extractor-ref"); 
41:	String entryAuthDetailsSource = element.getAttribute("auth-details-source-ref"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLocalName, getPrefix
90:	prefix = newElement.getPrefix(); 
-
92:	lname = newElement.getLocalName(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute
44:	String directory = element.getAttribute("directory"); 
45:	String directoryExpression = element.getAttribute("directory-expression"); 
-
48:	parserContext.getReaderContext().error("directory or directory-expression is required", element); 
-
51:	parserContext.getReaderContext().error("Either directory or directory-expression must be provided but not both", element); 
-
67:	String remoteFileNameGenerator = element.getAttribute("filename-generator"); 
68:	String remoteFileNameGeneratorExpression = element.getAttribute("filename-generator-expression"); 
-
73:	parserContext.getReaderContext().error("at most one of 'filename-generator-expression' or 'filename-generator' " + 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAttribute, hasAttribute
38:	.addPropertyValue("aggregateType", element.getAttribute("aggregate-type")) 
39:	.addPropertyReference("repository", element.getAttribute("repository")) 
40:	.addPropertyReference("commandBus", element.getAttribute("command-bus")) 
-
44:	if (element.hasAttribute("command-target-resolver")) { 
45:	builder.addPropertyReference("commandTargetResolver", element.getAttribute("command-target-resolver")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setAttribute
110:	parentNode.setAttribute("class", cssClass); 
-
113:	parentNode.setAttribute("id", cssId); 
-
115:	document.appendChild(parentNode); 
116:	generator = HTMLExporterVisitorGenerator.GENERATOR_FACTORY. 
Full Snippet Info
7
CodeRank
Related Java 8 Element Questions & Answers:
Other Java 8 Element Examples
56:			for (int i = 0; i < nl.getLength(); i++) {
57:				// creating new HashMap
58:				HashMap<String, String> map = new HashMap<String, String>();
59:				Element e = (Element) nl.item(i);
60:				// adding each child node to HashMap key => value
-
56:			for (int i = 0; i < nl.getLength(); i++) {
57:				// creating new HashMap
58:				HashMapg, String> map = new HashMap<String, String>();
59:				Element e = (Element) nl.item(i);
60:				// adding each child node to HashMap key => value

Read More

44:				HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
45:				Element e = (Element) nl.item(i);
46:				// adding each child node to HashMap key =&gt; value
47:				map.put(KEY_ID, parser.getValue(e, KEY_ID));
48:				map.put(KEY_TITLE, parser.getValue(e, KEY_TITLE));
-
44:				HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
45:				Element e = (Element) nl.item(i);
46:				// adding each child node to HashMap key =&gt; value
47:				map.put(KEY_ID, parser.getValue(e, KEY_ID));
48:				map.put(KEY_TITLE, parser.getValue(e, KEY_TITLE));

Read More

68:						Document doc = this.getDomElement(rss_feed_xml);
69:						NodeList nodeList = doc.getElementsByTagName(TAG_CHANNEL);
70:						Element e = (Element) nodeList.item(0);
71:						
72:						// RSS nodes
-
68:						Document doc = this.getDomElement(rss_feed_xml);
69:						NodeList nodeList = doc.getElementsByTagName(TAG_CHANNEL);
70:						Element e = (Element) nodeList.item(0);
71:						
72:						// RSS nodes
-
219:				DocumentBuilder db = dbf.newDocumentBuilder();
220:	
221:				InputSource is = new InputSource();
222:				is.setCharacterStream(new StringReader(xml));
223:				doc = (Document) db.parse(is);

Read More

See Code Examples for Java 8 Element Methods: