You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2002/03/21 21:57:29 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/xs ElementPSVImpl.java AttributePSVImpl.java

sandygao    02/03/21 12:57:29

  Modified:    java/src/org/apache/xerces/impl/xs ElementPSVImpl.java
                        AttributePSVImpl.java
  Log:
  Added getTypeDefinition() and getAttribute/ElementDecl() convenient methods to expose type/decl information used for validation.
  
  Revision  Changes    Path
  1.11      +17 -0     xml-xerces/java/src/org/apache/xerces/impl/xs/ElementPSVImpl.java
  
  Index: ElementPSVImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/ElementPSVImpl.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ElementPSVImpl.java	15 Mar 2002 23:01:57 -0000	1.10
  +++ ElementPSVImpl.java	21 Mar 2002 20:57:28 -0000	1.11
  @@ -307,6 +307,23 @@
           return (fDeclaration !=null)? fDeclaration.fTargetNamespace:null;
       }
   
  +    /**
  +     * REVISIT: temprory method to return the internal representation of
  +     * the type definition used to validate this element. This method
  +     * will be removed when we have full PSVI support.
  +     */
  +    public XSTypeDecl getTypeDefinition() {
  +        return fTypeDecl;
  +    }
  +
  +    /**
  +     * REVISIT: temprory method to return the internal representation of
  +     * the element declaration used to validate this element. This method
  +     * will be removed when we have full PSVI support.
  +     */
  +    public XSElementDecl getElementDecl() {
  +        return fDeclaration;
  +    }
   
       /**
        * Reset() should be called in validator startElement(..) method.
  
  
  
  1.6       +17 -3     xml-xerces/java/src/org/apache/xerces/impl/xs/AttributePSVImpl.java
  
  Index: AttributePSVImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/AttributePSVImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AttributePSVImpl.java	29 Jan 2002 01:15:14 -0000	1.5
  +++ AttributePSVImpl.java	21 Mar 2002 20:57:28 -0000	1.6
  @@ -64,7 +64,6 @@
   
   import java.util.Vector;
   
  -
   /**
    * Attribute PSV infoset augmentations implementation.
    * The PSVI information for attributes will be available at the startElement call.
  @@ -101,7 +100,6 @@
       /** validation context: could be QName or XPath expression*/
       protected String fValidationContext = null;
   
  -
       //
       // AttributePSVI methods
       //
  @@ -251,12 +249,28 @@
   
       }
   
  -
       // This is the only information we can provide in a pipeline.
       public String getValidationContext() {
           return fValidationContext;
       }
   
  +    /**
  +     * REVISIT: temprory method to return the internal representation of
  +     * the type definition used to validate this attribute. This method
  +     * will be removed when we have full PSVI support.
  +     */
  +    public XSTypeDecl getTypeDefinition() {
  +        return fTypeDecl;
  +    }
  +
  +    /**
  +     * REVISIT: temprory method to return the internal representation of
  +     * the attribute declaration used to validate this attribute. This method
  +     * will be removed when we have full PSVI support.
  +     */
  +    public XSAttributeDecl getAttributeDecl() {
  +        return fDeclaration;
  +    }
   
       /**
        * Reset() 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org