Code examples for Element

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
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
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
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
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
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
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
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
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
25:	NodeList nodeList = manifestElement.getElementsByTagName( elementName ); 
-
30:	manifestElement.appendChild( element ); 
Full Snippet Info
8
CodeRank
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
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
452:	String name = camera.getAttribute("name"); 
453:	String id = camera.getAttribute("id"); 
-
502:	NodeList nl = elem.getElementsByTagName(name); 
Full Snippet Info
7
CodeRank
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
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
34:	super(form, e); 
-
36:	_readonly = (e.getAttribute("readonly").length() > 0); 
37:	if (e.getNodeName().equalsIgnoreCase("textarea")) { 
-
40:	_size = getIntAttribute(e, "cols", DEFAULT_SIZE); 
41:	_rows = getIntAttribute(e, "rows", DEFAULT_ROWS); 
-
43:	setInitialValue(collectText(e)); 
-
46:	_password = e.getAttribute("type").equalsIgnoreCase("password"); 
47:	_size = getIntAttribute(e, "size", DEFAULT_SIZE); 
-
49:	_maxlength = getIntAttribute(e, "maxlength", -1); 
Full Snippet Info
7
CodeRank
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
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
42:	String id = element.getAttribute("id"); 
-
44:	String delay = element.getAttribute("delay"); 
45:	String period = element.getAttribute("period"); 
-
54:	org.w3c.dom.Node xmlNode = element.getFirstChild(); 
-
58:	action = AbstractNodeHandler.extractAction(actionXml); 
Full Snippet Info
7
CodeRank
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
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