01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.rio.rdfxml;
07:
08: /**
09: * An XML attribute.
10: */
11: class Att {
12:
13: /*-----------*
14: * Variables *
15: *-----------*/
16:
17: private String namespace;
18:
19: private String localName;
20:
21: private String qName;
22:
23: private String value;
24:
25: /*--------------*
26: * Constructors *
27: *--------------*/
28:
29: public Att(String namespace, String localName, String qName,
30: String value) {
31: this .namespace = namespace;
32: this .localName = localName;
33: this .qName = qName;
34: this .value = value;
35: }
36:
37: /*---------*
38: * Methods *
39: *---------*/
40:
41: public String getNamespace() {
42: return namespace;
43: }
44:
45: public String getLocalName() {
46: return localName;
47: }
48:
49: public String getURI() {
50: return namespace + localName;
51: }
52:
53: public String getQName() {
54: return qName;
55: }
56:
57: public String getValue() {
58: return value;
59: }
60: }
|