elena       2003/07/23 13:00:27

  Modified:    java/src/org/apache/xerces/impl/dv/xs XSSimpleTypeDecl.java
  Log:
  inherit annotations for pattern facet from the base type
  
  Revision  Changes    Path
  1.43      +8 -3      
xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
  
  Index: XSSimpleTypeDecl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- XSSimpleTypeDecl.java     23 Jul 2003 18:19:02 -0000      1.42
  +++ XSSimpleTypeDecl.java     23 Jul 2003 20:00:26 -0000      1.43
  @@ -271,7 +271,7 @@
       public XSAnnotation whiteSpaceAnnotation;
       public XSAnnotation totalDigitsAnnotation;
       public XSAnnotation fractionDigitsAnnotation;
  -    public XSObjectList patternAnnotations;
  +    public XSObjectListImpl patternAnnotations;
       public XSObjectList enumerationAnnotations;
       public XSAnnotation maxInclusiveAnnotation;
       public XSAnnotation maxExclusiveAnnotation;
  @@ -1339,7 +1339,12 @@
               else {
                   for (int i = fBase.fPattern.size()-1; i >= 0; i--) {
                       fPattern.addElement(fBase.fPattern.elementAt(i));
  -                    fPatternStr.addElement(fBase.fPatternStr.elementAt(i));
  +                    fPatternStr.addElement(fBase.fPatternStr.elementAt(i));         
           
  +                }
  +                if (fBase.patternAnnotations != null){
  +                    for (int i = fBase.patternAnnotations.getLength()-1;i>=0;i--){
  +                        patternAnnotations.add(fBase.patternAnnotations.item(i));
  +                    }
                   }
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to