~ubuntu-branches/debian/wheezy/jing-trang/wheezy

« back to all changes in this revision

Viewing changes to mod/dtd-parse/src/main/com/thaiopensource/xml/dtd/om/NameSpecDef.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 NameSpecDef extends Def {
 
4
  private final NameSpec nameSpec;
 
5
 
 
6
  public NameSpecDef(String name, NameSpec nameSpec) {
 
7
    super(name);
 
8
    this.nameSpec = nameSpec;
 
9
  }
 
10
 
 
11
  public int getType() {
 
12
    return NAME_SPEC_DEF;
 
13
  }
 
14
 
 
15
  public NameSpec getNameSpec() {
 
16
    return nameSpec;
 
17
  }
 
18
 
 
19
  public void accept(TopLevelVisitor visitor) throws Exception {
 
20
    visitor.nameSpecDef(getName(), nameSpec);
 
21
  }
 
22
}