/[classpath]/cp-tools/src/gnu/ldml/ResetElement.java
ViewVC logotype

Diff of /cp-tools/src/gnu/ldml/ResetElement.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dog, Wed Dec 22 20:59:22 2004 UTC revision 1.2 by cbj, Sun Jan 30 02:21:06 2005 UTC
# Line 2  package gnu.ldml; Line 2  package gnu.ldml;
2    
3  public class ResetElement extends Element  public class ResetElement extends Element
4  {  {
5    public static final int NO_LOGIC = 0;    public static final int BEFORE_IDENTICAL = 4;
6      public static final int BEFORE_PRIMARY = 1;
7      public static final int BEFORE_SECONDARY = 2;
8      public static final int BEFORE_TERTIARY = 3;
9    public static final int FIRST_PRIMARY_IGNORABLE = 1;    public static final int FIRST_PRIMARY_IGNORABLE = 1;
10    public static final int FIRST_SECONDARY_IGNORABLE = 2;    public static final int FIRST_SECONDARY_IGNORABLE = 2;
11    public static final int FIRST_TERTIARY_IGNORABLE = 3;    public static final int FIRST_TERTIARY_IGNORABLE = 3;
12      public static final int LAST_NON_IGNORABLE = 8;
13    public static final int LAST_PRIMARY_IGNORABLE = 4;    public static final int LAST_PRIMARY_IGNORABLE = 4;
14    public static final int LAST_SECONDARY_IGNORABLE = 5;    public static final int LAST_SECONDARY_IGNORABLE = 5;
15    public static final int LAST_TERTIARY_IGNORABLE = 6;    public static final int LAST_TERTIARY_IGNORABLE = 6;
16    public static final int LAST_VARIABLE = 7;    public static final int LAST_VARIABLE = 7;
   public static final int LAST_NON_IGNORABLE = 8;  
   
17    public static final int NO_BEFORE = 0;    public static final int NO_BEFORE = 0;
18    public static final int BEFORE_PRIMARY = 1;    public static final int NO_LOGIC = 0;
   public static final int BEFORE_SECONDARY = 2;  
   public static final int BEFORE_TERTIARY = 3;  
   public static final int BEFORE_IDENTICAL = 4;  
   
19    public int before;    public int before;
20    public String data;    public String data;
21    public int logicalReset;    public int logicalReset;
# Line 25  public class ResetElement extends Elemen Line 23  public class ResetElement extends Elemen
23    public ResetElement(Parser p, Element parent, String name)    public ResetElement(Parser p, Element parent, String name)
24    {    {
25      super(p, parent, name);      super(p, parent, name);
   
26      logicalReset = NO_LOGIC;      logicalReset = NO_LOGIC;
27    }    }
28      
29    public void addChild(Element e)    public void addChild(Element e)
30    {    {
31      if (e.qualifiedName.equals("first_primary_ignorable"))      if (e.qualifiedName.equals("first_primary_ignorable"))
# Line 47  public class ResetElement extends Elemen Line 44  public class ResetElement extends Elemen
44        logicalReset = LAST_VARIABLE;        logicalReset = LAST_VARIABLE;
45      else if (e.qualifiedName.equals("last_non_ignorable"))      else if (e.qualifiedName.equals("last_non_ignorable"))
46        logicalReset = LAST_NON_IGNORABLE;        logicalReset = LAST_NON_IGNORABLE;
   
47      super.addChild(e);      super.addChild(e);
48    }    }
49  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26