peiyongz    2004/09/23 14:22:47

  Modified:    c/src/xercesc/framework/psvi XSValue.hpp XSValue.cpp
  Log:
  Documentation
  st_noContent added
  unused parameter removed
  
  Revision  Changes    Path
  1.12      +40 -4     xml-xerces/c/src/xercesc/framework/psvi/XSValue.hpp
  
  Index: XSValue.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSValue.hpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- XSValue.hpp       13 Sep 2004 21:24:20 -0000      1.11
  +++ XSValue.hpp       23 Sep 2004 21:22:47 -0000      1.12
  @@ -16,6 +16,11 @@
   
   /*
    * $Log$
  + * Revision 1.12  2004/09/23 21:22:47  peiyongz
  + * Documentation
  + * st_noContent added
  + * unused parameter removed
  + *
    * Revision 1.11  2004/09/13 21:24:20  peiyongz
    * 1. returned data to contain datatype in addition to value
    * 2. registry to map type name (in string) to type name enum
  @@ -120,7 +125,8 @@
   
       enum Status {
               st_Init,
  -            st_InvalidRange,    
  +            st_InvalidRange,
  +            st_NoContent,
               st_NoCanRep,
               st_NoActVal,
               st_NotSupported,
  @@ -149,6 +155,15 @@
       /** @name Externalization methods */
       //@{
   
  +    /** 
  +      * Validate a given string of the data type specified
  +      *
  +      * @param  content    data to be validated
  +      * @param  datatype   schema datatype
  +      * @param  status     validation status which is set upon validation fails
  +      * @param  version    xml version
  +      * @param  manager    memory manager provided
  +      */
       static
       bool     validate
                (
  @@ -159,6 +174,17 @@
                 ,       MemoryManager*  const manager    = 
XMLPlatformUtils::fgMemoryManager
                );
   
  +    /** 
  +      * Get the canonical representation for a given string of the 
  +      * data type specified
  +      *
  +      * @param  content    raw data
  +      * @param  datatype   schema datatype
  +      * @param  status     validation status which is set upon validation fails
  +      * @param  version    xml version
  +      * @param  toValidate to validate the content before generate canonical 
representation
  +      * @param  manager    memory manager provided
  +      */
       static
       XMLCh*   getCanonicalRepresentation
                (
  @@ -170,6 +196,19 @@
                 ,       MemoryManager*  const manager    = 
XMLPlatformUtils::fgMemoryManager
                );
   
  +    /** 
  +      * Get the actual value, in the form of XSValue, for a given string of the 
  +      * data type specified
  +      *
  +      * Client application is responsible for the deleletion of the XSValue 
returned.
  +      *
  +      * @param  content    raw data
  +      * @param  datatype   schema datatype
  +      * @param  status     validation status which is set upon validation fails
  +      * @param  version    xml version
  +      * @param  toValidate to validate the content before generate actual value
  +      * @param  manager    memory manager provided
  +      */
       static
       XSValue* getActualValue
                (
  @@ -345,7 +384,6 @@
                 ,       DataType              datatype
                 ,       Status&               status
                 ,       XMLVersion            version
  -              ,       bool                  toValidate
                 ,       MemoryManager*  const manager
                );
   
  @@ -356,7 +394,6 @@
                 ,       DataType              datatype
                 ,       Status&               status
                 ,       XMLVersion            version
  -              ,       bool                  toValidate
                 ,       MemoryManager*  const manager
                );
   
  
  
  
  1.12      +17 -5     xml-xerces/c/src/xercesc/framework/psvi/XSValue.cpp
  
  Index: XSValue.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSValue.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- XSValue.cpp       13 Sep 2004 21:24:20 -0000      1.11
  +++ XSValue.cpp       23 Sep 2004 21:22:47 -0000      1.12
  @@ -16,6 +16,11 @@
   
   /*
    * $Log$
  + * Revision 1.12  2004/09/23 21:22:47  peiyongz
  + * Documentation
  + * st_noContent added
  + * unused parameter removed
  + *
    * Revision 1.11  2004/09/13 21:24:20  peiyongz
    * 1. returned data to contain datatype in addition to value
    * 2. registry to map type name (in string) to type name enum
  @@ -335,7 +340,10 @@
   {
   
       if (!content || !*content)
  +    {
  +        status=st_NoContent;
           return false;
  +    }
   
       switch (inGroup[datatype])
       {
  @@ -366,7 +374,10 @@
   {
    
       if (!content || !*content)
  +    {
  +        status=st_NoContent;
           return 0;
  +    }
       
       switch (inGroup[datatype])
       {
  @@ -396,15 +407,19 @@
   {
   
       if (!content || !*content)
  +    {
  +        status=st_NoContent;
           return 0;
  +    }
  +
   
       switch (inGroup[datatype])
       {
       case XSValue::dg_numerics :
  -        return getActValNumerics(content, datatype,  status, version, toValidate, 
manager);
  +        return getActValNumerics(content, datatype,  status, version, manager);
           break;
       case XSValue::dg_datetimes:
  -        return getActValDateTimes(content, datatype,  status, version, toValidate, 
manager);
  +        return getActValDateTimes(content, datatype,  status, version, manager);
           break;
       case XSValue::dg_strings:
           return getActValStrings(content, datatype,  status, version, toValidate, 
manager);
  @@ -1274,7 +1289,6 @@
                            ,       DataType             datatype
                            ,       Status&              status
                            ,       XMLVersion           version
  -                         ,       bool                 toValidate
                            ,       MemoryManager* const manager)
   {
   
  @@ -1635,7 +1649,6 @@
                             ,       DataType             datatype
                             ,       Status&              status
                             ,       XMLVersion           version
  -                          ,       bool                 toValidate
                             ,       MemoryManager* const manager)
   {
       try
  
  
  

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

Reply via email to