~ubuntu-branches/ubuntu/utopic/jing-trang/utopic

« back to all changes in this revision

Viewing changes to mod/dtd-parse/src/main/com/thaiopensource/xml/dtd/om/Attribute.java

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Thibault
  • Date: 2009-09-01 15:53:03 UTC
  • Revision ID: james.westby@ubuntu.com-20090901155303-2kweef05h5v9j3ni
Tags: upstream-20090818
ImportĀ upstreamĀ versionĀ 20090818

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package com.thaiopensource.xml.dtd.om;
 
2
 
 
3
public class Attribute extends AttributeGroupMember {
 
4
  private final NameSpec nameSpec;
 
5
  private final Datatype datatype;
 
6
  private final AttributeDefault attributeDefault;
 
7
 
 
8
  public Attribute(NameSpec nameSpec,
 
9
                   Datatype datatype,
 
10
                   AttributeDefault attributeDefault) {
 
11
    this.nameSpec = nameSpec;
 
12
    this.datatype = datatype;
 
13
    this.attributeDefault = attributeDefault;
 
14
  }
 
15
 
 
16
  public NameSpec getNameSpec() {
 
17
    return nameSpec;
 
18
  }
 
19
 
 
20
  public Datatype getDatatype() {
 
21
    return datatype;
 
22
  }
 
23
 
 
24
  public AttributeDefault getAttributeDefault() {
 
25
    return attributeDefault;
 
26
  }
 
27
 
 
28
  public void accept(AttributeGroupVisitor visitor) throws Exception {
 
29
    visitor.attribute(nameSpec, datatype, attributeDefault);
 
30
  }
 
31
 
 
32
  public int getType() {
 
33
    return ATTRIBUTE;
 
34
  }
 
35
  
 
36
}