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

« back to all changes in this revision

Viewing changes to mod/pattern/src/main/com/thaiopensource/relaxng/pattern/PossibleAttributeNamesFunction.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.relaxng.pattern;
 
2
 
 
3
import com.thaiopensource.util.VoidValue;
 
4
 
 
5
/**
 
6
 * PatternFunction to compute the name class of possible attributes.
 
7
 * Computes a NormalizedNameClass.
 
8
 */
 
9
class PossibleAttributeNamesFunction extends PossibleNamesFunction {
 
10
  public VoidValue caseAttribute(AttributePattern p) {
 
11
    add(p.getNameClass());
 
12
    return VoidValue.VOID;
 
13
  }
 
14
 
 
15
  public VoidValue caseGroup(GroupPattern p) {
 
16
    return caseBinary(p);
 
17
  }
 
18
}