~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/TokenizedDatatype.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 TokenizedDatatype extends Datatype {
 
4
  private final String typeName;
 
5
 
 
6
  public TokenizedDatatype(String typeName) {
 
7
    this.typeName = typeName;
 
8
  }
 
9
 
 
10
  public int getType() {
 
11
    return TOKENIZED;
 
12
  }
 
13
 
 
14
  public String getTypeName() {
 
15
    return typeName;
 
16
  }
 
17
 
 
18
  public void accept(DatatypeVisitor visitor) throws Exception {
 
19
    visitor.tokenizedDatatype(typeName);
 
20
  }
 
21
}
 
22