Best code examples for Java 8 Attributes class (org.xml.sax.Attributes)

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

Java 8 Attributes examples from Open Source projects
This code example shows how to use the following methods: getLength, getLocalName, getQName, getURI
149:	assertEquals(1, attributes.getLength()); 
150:	assertEquals("", attributes.getURI(0)); 
151:	assertOneOf("a:bar", "", attributes.getLocalName(0)); 
152:	assertEquals("a:bar", attributes.getQName(0)); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getValue
35:	final String id = attrs.getValue( "id" ); 
36:	final String name = attrs.getValue( "name" ); 
37:	final String version = attrs.getValue( "version" ); 
38:	final String type = attrs.getValue( "type" ); 
39:	final String packageName = attrs.getValue( "package-name" ); 
40:	final String routerLayout = attrs.getValue( "routerLayout" ); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
113:	return new RemoteException(attrs.getValue("class"), 
114:	attrs.getValue("message")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
128:	packageName = emptyToNull(attrs.getValue("packageName")); 
129:	versionCode = emptyToNull(attrs.getValue("versionCode")); 
130:	versionName = emptyToNull(attrs.getValue("versionName")); 
131:	buildBrand = emptyToNull(attrs.getValue("buildBrand")); 
132:	buildId = emptyToNull(attrs.getValue("buildId")); 
133:	buildModel = emptyToNull(attrs.getValue("buildModel")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
33:	parser.startElementBuilder(localName, attrs); 
-
36:	final String name = attrs.getValue("name"); 
37:	final String type = attrs.getValue("importType"); 
38:	final String location = attrs.getValue("location"); 
39:	final String namespace = attrs.getValue("namespace"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
55:	final String name = attrs.getValue(getUri(), "name");// NON-NLS 
-
57:	parameter.setMandatory("true".equals(attrs.getValue(getUri(), "is-mandatory")));// NON-NLS 
58:	parameter.setStrict("true".equals(attrs.getValue(getUri(), "is-strict")));// NON-NLS 
59:	parameter.setMultiSelect("true".equals(attrs.getValue(getUri(), "is-multi-select")));// NON-NLS 
60:	parameter.setType(attrs.getValue(getUri(), "type"));// NON-NLS 
61:	parameter.setTimezoneHint(attrs.getValue(getUri(), "timezone-hint"));// NON-NLS 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
49:	userName = attrs.getValue(getUri(), "userName"); 
50:	password = attrs.getValue(getUri(), "password"); 
51:	driverClass = attrs.getValue(getUri(), "driverClass"); 
52:	sqlQuery = attrs.getValue(getUri(), "sqlQuery"); 
53:	connectionString = attrs.getValue(getUri(), "connectionString"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
47:	color = ColorConverter.getObject(attrs.getValue(getUri(), "color")); 
48:	final float width = ParserUtil.parseFloat(attrs.getValue(getUri(), "width"), "Failed to parse numeric value", getLocator()); 
49:	final float miterLimit = ParserUtil.parseFloat(attrs.getValue(getUri(), "miterlimit"), "Failed to parse numeric value", getLocator()); 
50:	final float dashPhase = ParserUtil.parseFloat(attrs.getValue(getUri(), "dashPhase"), "Failed to parse numeric value", getLocator()); 
51:	final int cap = ParserUtil.parseInt(attrs.getValue(getUri(), "cap"), "Failed to parse numeric value", getLocator()); 
52:	final int join = ParserUtil.parseInt(attrs.getValue(getUri(), "join"), "Failed to parse numeric value", getLocator()); 
53:	final String dashType = attrs.getValue(getUri(), "dash"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
38:	mCurrentDrink = new Drink(Integer.parseInt(atts.getValue("id").trim())); 
39:	} else if (name.equals("supplier") && !TextUtils.isEmpty(atts.getValue("url").trim())) { 
40:	mCurrentDrink.setSupplierUrl(atts.getValue("url").trim()); 
-
43:	String articleId = atts.getValue("sb_article_id").trim(); 
-
47:	mCurrentVolume.setPriceSek(atts.getValue("price").trim()); 
48:	mCurrentVolume.setRetired(Integer.parseInt(atts.getValue("retired").trim())); 
-
51:	mCurrentTag.setId(Integer.parseInt(atts.getValue("id"))); 
52:	mCurrentTag.setType(atts.getValue("type")); 
-
54:	String producerId = atts.getValue("id"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
62:	name = attrs.getValue(getUri(), "name"); // NON-NLS 
-
67:	bundleName = attrs.getValue(getUri(), "bundle-name"); // NON-NLS 
-
72:	expert = "true".equals(attrs.getValue(getUri(), "expert")); // NON-NLS 
73:	hidden = "true".equals(attrs.getValue(getUri(), "hidden")); // NON-NLS 
74:	preferred = "true".equals(attrs.getValue(getUri(), "preferred")); // NON-NLS 
75:	deprecated = "true".equals(attrs.getValue(getUri(), "deprecated")); // NON-NLS 
-
77:	final String valueTypeText = attrs.getValue(getUri(), "class"); // NON-NLS 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLength, getLocalName, getQName, getURI
46:	assertEquals(1, attributes.getLength()); 
47:	assertEquals("", attributes.getURI(0)); 
48:	assertOneOf("bar", "", attributes.getLocalName(0)); 
49:	assertEquals("bar", attributes.getQName(0)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
132:	id = atts.getValue("", "id"); 
-
135:	id = atts.getValue(namespaceURI, "id"); 
-
138:	name = atts.getValue("", "name"); 
-
141:	name = atts.getValue(namespaceURI, "name"); 
-
144:	ref = atts.getValue("", "ref"); 
-
147:	ref = atts.getValue(namespaceURI, "ref"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
72:	parser.startElementBuilder(localName, attrs); 
-
74:	String id = attrs.getValue("id"); 
75:	String name = attrs.getValue("name"); 
76:	String structureRef = attrs.getValue("structureRef"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
73:	final String type = attrs.getValue("type"); 
-
75:	final String x = attrs.getValue("x"); 
76:	final String y = attrs.getValue("y"); 
77:	final String w = attrs.getValue("width"); 
78:	final String h = attrs.getValue("height"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
57:	parser.startElementBuilder(localName, attrs); 
-
59:	final String type = attrs.getValue("importType"); 
60:	final String location = attrs.getValue("location"); 
61:	final String namespace = attrs.getValue("namespace"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
70:	id = Long.parseLong(attributes.getValue(ATTRIBUTE_NAME_ID)); 
71:	sversion = attributes.getValue(ATTRIBUTE_NAME_VERSION); 
-
78:	timestampContainer = createTimestampContainer(attributes.getValue(ATTRIBUTE_NAME_TIMESTAMP)); 
79:	rawUserId = attributes.getValue(ATTRIBUTE_NAME_USERID); 
80:	rawUserName = attributes.getValue(ATTRIBUTE_NAME_USER); 
81:	changesetId = buildChangesetId(attributes.getValue(ATTRIBUTE_NAME_CHANGESET_ID)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
93:	final String bytesPerCRC = attrs.getValue("bytesPerCRC"); 
94:	final String crcPerBlock = attrs.getValue("crcPerBlock"); 
95:	final String md5 = attrs.getValue("md5"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
68:	instanceNum = Integer.parseInt(attrs.getValue(getUri(), "instanceNum")); 
-
75:	attrs.getValue(getUri(), "modelPath"), 
-
77:	attrs.getValue(getUri(), "operator"), 
78:	attrs.getValue(getUri(), "fieldName"), 
79:	attrs.getValue(getUri(), "comparator"), 
80:	attrs.getValue(getUri(), "value")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
48:	parser.startElementBuilder(localName, attrs); 
-
50:	String id = attrs.getValue("id"); 
51:	String name = attrs.getValue("name"); 
52:	String implRef = attrs.getValue("implementationRef"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
52:	final String label = attrs.getValue(getUri(), "label"); // NON-NLS 
53:	final String value = attrs.getValue(getUri(), "value"); // NON-NLS 
54:	String type = attrs.getValue(getUri(), "type"); // NON-NLS 
-
59:	final boolean selected = "true".equals(attrs.getValue(getUri(), "selected")); // NON-NLS 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
40:	schema = new Schema(attributes.getValue("name")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
62:	parser.startElementBuilder(localName, attrs); 
-
64:	String id = attrs.getValue("id"); 
65:	String errorCode = attrs.getValue("errorCode"); 
66:	String structureRef = attrs.getValue("structureRef"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
48:	domain = attrs.getValue(getUri(), "domain"); 
-
54:	name = attrs.getValue(getUri(), "name"); 
-
60:	final String type = attrs.getValue(getUri(), "type"); 
61:	final String rawValue = attrs.getValue(getUri(), "value"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
50:	name = attrs.getValue(getUri(), "name"); // NON-NLS 
-
56:	final String bundleFromAttributes = attrs.getValue(getUri(), "bundle-name"); // NON-NLS 
-
62:	experimental = "true".equals(attrs.getValue(getUri(), "experimental")); // NON-NLS 
63:	expert = "true".equals(attrs.getValue(getUri(), "expert")); // NON-NLS 
64:	hidden = "true".equals(attrs.getValue(getUri(), "hidden")); // NON-NLS 
65:	preferred = "true".equals(attrs.getValue(getUri(), "preferred")); // NON-NLS 
66:	deprecated = "true".equals(attrs.getValue(getUri(), "deprecated")); // NON-NLS 
67:	compatibilityLevel = ReportParserUtil.parseVersion(attrs.getValue(getUri(), "compatibility-level")); // NON-NLS 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
59:	name = attrs.getValue(getUri(), "name"); 
-
65:	namespace = attrs.getValue(getUri(), "namespace"); 
-
72:	originalExpressionClass = attrs.getValue(getUri(), "class"); 
-
74:	final String formula = attrs.getValue(getUri(), "formula"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
144:	packageName = emptyToNull(attrs.getValue("packageName")); 
145:	versionCode = emptyToNull(attrs.getValue("versionCode")); 
146:	versionName = emptyToNull(attrs.getValue("versionName")); 
147:	buildBrand = emptyToNull(attrs.getValue("buildBrand")); 
148:	buildId = emptyToNull(attrs.getValue("buildId")); 
149:	buildModel = emptyToNull(attrs.getValue("buildModel")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
92:	id = Long.parseLong(attributes.getValue(ATTRIBUTE_NAME_ID)); 
93:	sversion = attributes.getValue(ATTRIBUTE_NAME_VERSION); 
-
100:	timestampContainer = createTimestampContainer(attributes.getValue(ATTRIBUTE_NAME_TIMESTAMP)); 
101:	rawUserId = attributes.getValue(ATTRIBUTE_NAME_USERID); 
102:	rawUserName = attributes.getValue(ATTRIBUTE_NAME_USER); 
103:	changesetId = buildChangesetId(attributes.getValue(ATTRIBUTE_NAME_CHANGESET_ID)); 
-
155:	String value = attributes.getValue(attributeName); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
83:	super.startElement(uri, localName, qName, attributes); 
-
85:	currentObjetKeolis.setAccurate("1".equals(attributes.getValue("accurate"))); 
86:	currentObjetKeolis.setHeadSign(attributes.getValue("headsign")); 
-
91:	dateApi.setTime(dfm.parse(attributes.getValue(LOCAL_DATETIME))); 
-
93:	throw new KeolisException("Erreur lors du parse de " + attributes.getValue(LOCAL_DATETIME), e); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
59:	parameterDefinition.setPromptNeeded("true".equals(attrs.getValue(getUri(), "is-prompt-needed"))); // NON-NLS 
60:	parameterDefinition.setPaginate("true".equals(attrs.getValue(getUri(), "paginate")));// NON-NLS 
61:	parameterDefinition.setSubscribe("true".equals(attrs.getValue(getUri(), "subscribe")));// NON-NLS 
62:	parameterDefinition.setShowParameterUi("true".equals(attrs.getValue(getUri(), "show-parameter-ui")));// NON-NLS 
63:	parameterDefinition.setLayout(attrs.getValue(getUri(), "layout"));// NON-NLS 
64:	final String autoSubmit = attrs.getValue(getUri(), "autoSubmit"); 
-
78:	parameterDefinition.setAutoSubmitUI("true".equals(attrs.getValue(getUri(), "autoSubmitUI")));// NON-NLS 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
105:	id = atts.getValue("", "id"); 
-
108:	id = atts.getValue(namespaceURI, "id"); 
-
111:	name = atts.getValue("", "name"); 
-
114:	name = atts.getValue(namespaceURI, "name"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
86:	final String pageformatName = atts.getValue(getUri(), "pageformat"); 
-
89:	final String orientation = atts.getValue(getUri(), "orientation"); 
-
118:	if (atts.getValue(getUri(), "width") != null && atts.getValue(getUri(), "height") != null) 
-
121:	pageformatData[0] = ParserUtil.parseInt(atts.getValue(getUri(), "width"), 
-
123:	pageformatData[1] = ParserUtil.parseInt(atts.getValue(getUri(), "height"), 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
70:	id = Long.parseLong(attributes.getValue(ATTRIBUTE_NAME_ID)); 
71:	sversion = attributes.getValue(ATTRIBUTE_NAME_VERSION); 
-
78:	timestampContainer = createTimestampContainer(attributes.getValue(ATTRIBUTE_NAME_TIMESTAMP)); 
79:	rawUserId = attributes.getValue(ATTRIBUTE_NAME_USERID); 
80:	rawUserName = attributes.getValue(ATTRIBUTE_NAME_USER); 
81:	changesetId = buildChangesetId(attributes.getValue(ATTRIBUTE_NAME_CHANGESET_ID)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
42:	super.startParsing(attrs); 
43:	language = attrs.getValue(getUri(), "language"); 
44:	script = attrs.getValue(getUri(), "script"); 
45:	shutdownScript = attrs.getValue(getUri(), "shutdown-script"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
43:	super.startParsing(attrs); 
-
45:	query = attrs.getValue(getUri(), "query"); 
46:	keyColumnName = attrs.getValue(getUri(), "key-column"); 
-
53:	valueColumnName = attrs.getValue(getUri(), "value-column"); 
-
59:	strictValueCheck = "true".equals(attrs.getValue(getUri(), "strict-values")); 
60:	allowMultiSelection = "true".equals(attrs.getValue(getUri(), "allow-multi-selection")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
60:	parser.startElementBuilder(localName, attrs); 
-
62:	String id = attrs.getValue("id"); 
63:	String name = attrs.getValue("name"); 
64:	String implRef = attrs.getValue("implementationRef"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
64:	parser.startElementBuilder(localName, attrs); 
-
66:	store.setId(attrs.getValue("id")); 
67:	store.setName(attrs.getValue("name")); 
68:	final String itemSubjectRef = attrs.getValue("itemSubjectRef"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
47:	query = attrs.getValue(getUri(), "report-query"); 
48:	final String queryLimitText = attrs.getValue(getUri(), "limit"); 
-
58:	final String queryTimeoutText = attrs.getValue(getUri(), "timeout"); 
-
68:	final String href = attrs.getValue(getUri(), "ref"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
122:	String username = attributes.getValue("username"); 
-
124:	username = attributes.getValue("name"); 
-
126:	String password = attributes.getValue("password"); 
127:	String roles = attributes.getValue("roles"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
106:	id = atts.getValue("", "id"); 
-
109:	id = atts.getValue(namespaceURI, "id"); 
-
112:	name = atts.getValue("", "name"); 
-
115:	name = atts.getValue(namespaceURI, "name"); 
-
118:	refer = atts.getValue("", "refer"); 
-
121:	refer = atts.getValue(namespaceURI, "refer"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
60:	symbol.setName(valid_string(attrs.getValue(ATTR_NAME))); 
61:	symbol.setCount(Integer.parseInt(attrs.getValue(ATTR_COUNT))); 
62:	symbol.setFilePath(valid_string(attrs.getValue(ATTR_FILE))); 
63:	symbol.setLine(Integer.parseInt(attrs.getValue(ATTR_LINE))); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
120:	String username = attributes.getValue("name"); 
-
122:	username = attributes.getValue("username"); 
-
124:	String password = attributes.getValue("password"); 
125:	String roles = attributes.getValue("roles"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLength, getLocalName, getQName, getURI
73:	assertEquals(1, attributes.getLength()); 
74:	assertEquals("", attributes.getURI(0)); 
75:	assertEquals("bar", attributes.getLocalName(0)); 
76:	assertEquals("bar", attributes.getQName(0)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
46:	final Dimension2D pageSize = DoubleDimensionConverter.getObject(attrs.getValue(getUri(), "pageSize")); 
47:	final double topBorder = Double.parseDouble(attrs.getValue(getUri(), "topBorder")); 
48:	final double leftBorder = Double.parseDouble(attrs.getValue(getUri(), "leftBorder")); 
49:	final double bottomBorder = Double.parseDouble(attrs.getValue(getUri(), "bottomBorder")); 
50:	final double rightBorder = Double.parseDouble(attrs.getValue(getUri(), "rightBorder")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
53:	String gravatarUrl = attributes.getValue(0); 
-
62:	String url = attributes.getValue("href"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
57:	tmp_.setId(Integer.parseInt(attributes.getValue("id"))); 
58:	int tmpBool = Integer.parseInt(attributes.getValue("private")); 
-
63:	tmpBool = Integer.parseInt(attributes.getValue("archived")); 
-
68:	tmp_.setOrder(Integer.parseInt(attributes.getValue("order"))); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
58:	tmp_.setId(Integer.parseInt(attributes.getValue("id"))); 
-
60:	tmp_.setLevel(Integer.parseInt(attributes.getValue("level"))); 
-
64:	tmp_.setContributes(Integer.parseInt(attributes.getValue("contributes"))); 
65:	int tmpBool = Integer.parseInt(attributes.getValue("archived")); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
69:	jndiName = attrs.getValue(getUri(), "jndiName"); 
70:	driverClass = attrs.getValue(getUri(), "driverClass"); 
71:	connectionString = attrs.getValue(getUri(), "connectionString"); 
72:	username = attrs.getValue(getUri(), "userName"); 
73:	password = attrs.getValue(getUri(), "password"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
77:	final String top = attrs.getValue("top"); 
78:	final String left = attrs.getValue("left"); 
79:	final String bottom = attrs.getValue("bottom"); 
80:	final String right = attrs.getValue("right"); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLength, getLocalName, getQName, getURI
45:	assertEquals(1, attributes.getLength()); 
46:	assertEquals("", attributes.getURI(0)); 
47:	assertOneOf("bar", "", attributes.getLocalName(0)); 
48:	assertEquals("bar", attributes.getQName(0)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getValue
47:	currentSubscription.title = attributes.getValue(TITLE); 
48:	currentSubscription.specialization = attributes.getValue(SPECIALIZATION); 
49:	currentSubscription.url = attributes.getValue(URL); 
50:	currentSubscription.homepage = attributes.getValue(HOMEPAGE); 
51:	String prefix = attributes.getValue(PREFIXES); 
-
56:	currentSubscription.author = attributes.getValue(AUTHOR); 
Full Snippet Info
7
CodeRank
Related Java 8 Attributes Questions & Answers:
See Code Examples for Java 8 Attributes Methods: