gareth      2002/12/19 06:04:05

  Modified:    c/src/xercesc/validators/schema ComplexTypeInfo.cpp
                        ComplexTypeInfo.hpp
  Log:
  get/set methods to see if the represented type is anonymous. Patch by Peter Volchek.
  
  Revision  Changes    Path
  1.5       +4 -0      xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.cpp
  
  Index: ComplexTypeInfo.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ComplexTypeInfo.cpp       4 Nov 2002 14:49:41 -0000       1.4
  +++ ComplexTypeInfo.cpp       19 Dec 2002 14:04:05 -0000      1.5
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.5  2002/12/19 14:04:05  gareth
  + * get/set methods to see if the represented type is anonymous. Patch by Peter 
Volchek.
  + *
    * Revision 1.4  2002/11/04 14:49:41  tng
    * C++ Namespace Support.
    *
  @@ -197,6 +200,7 @@
       , fContentSpecOrgURISize(16)
       , fSpecNodesToDelete(0)
       , fLocator(0)
  +    , fAnonymous(false)
   {
   
   }
  
  
  
  1.7       +20 -1     xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.hpp
  
  Index: ComplexTypeInfo.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ComplexTypeInfo.hpp       4 Nov 2002 14:49:41 -0000       1.6
  +++ ComplexTypeInfo.hpp       19 Dec 2002 14:04:05 -0000      1.7
  @@ -133,6 +133,11 @@
       const XMLCh*             getFormattedContentModel ()   const;
       XSDLocator*              getLocator() const;
   
  +    /**
  +     * returns true if this type is anonymous
  +     **/
  +    bool getAnonymous() const;
  +
       // -----------------------------------------------------------------------
       //  Setter methods
       // -----------------------------------------------------------------------
  @@ -157,6 +162,11 @@
       void setContentModel(XMLContentModel* const newModelToAdopt);
       void setLocator(XSDLocator* const aLocator);
   
  +    /**
  +     * sets this type to be anonymous
  +     **/
  +    void setAnonymous();    
  +
       // -----------------------------------------------------------------------
       //  Helper methods
       // -----------------------------------------------------------------------
  @@ -227,6 +237,7 @@
       unsigned int                       fContentSpecOrgURISize;
       RefVectorOf<ContentSpecNode>*      fSpecNodesToDelete;
       XSDLocator*                        fLocator;
  +    bool                               fAnonymous; 
   };
   
   // ---------------------------------------------------------------------------
  @@ -379,6 +390,9 @@
       return fLocator;
   }
   
  +inline bool ComplexTypeInfo::getAnonymous() const {
  +    return fAnonymous;
  +}
   
   // ---------------------------------------------------------------------------
   //  ComplexTypeInfo: Setter methods
  @@ -489,6 +503,11 @@
       fContentModel = newModelToAdopt;
   }
   
  +
  +
  +inline void ComplexTypeInfo::setAnonymous() {
  +    fAnonymous = true;
  +}
   
   // ---------------------------------------------------------------------------
   //  ComplexTypeInfo: Helper methods
  
  
  

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

Reply via email to