You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Anil Saldhana (JIRA)" <xe...@xml.apache.org> on 2005/04/20 19:46:24 UTC

[jira] Created: (XERCESJ-1067) XSComplexTypeDecl. setValues ignores the name param I passed

XSComplexTypeDecl. setValues  ignores the name param I passed
-------------------------------------------------------------

         Key: XERCESJ-1067
         URL: http://issues.apache.org/jira/browse/XERCESJ-1067
     Project: Xerces2-J
        Type: Bug
  Components: XML Schema API  
    Reporter: Anil Saldhana


public void setValues(String name, String targetNamespace,
            XSTypeDefinition baseType, short derivedBy, short schemaFinal, 
            short block, short contentType,
            boolean isAbstract, XSAttributeGroupDecl attrGrp, 
            XSSimpleType simpleType, XSParticleDecl particle,
            XSObjectListImpl annotations) {
        fTargetNamespace = targetNamespace;
        fBaseType = baseType;
        fDerivedBy = derivedBy;
        fFinal = schemaFinal;
        fBlock = block;
        fContentType = contentType;
        if(isAbstract)
            fMiscFlags |= CT_IS_ABSTRACT;
        fAttrGrp = attrGrp;
        fXSSimpleType = simpleType;
        fParticle = particle;
        fAnnotations = annotations;
   }


What happened to the name param, I passed?

Add the following line:
fName = name;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XERCESJ-1067) XSComplexTypeDecl. setValues ignores the name param I passed

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1067?page=comments#action_63328 ]
     
Michael Glavassevich commented on XERCESJ-1067:
-----------------------------------------------

In what context is this a problem? XSComplexTypeDecl is an internal class. Methods not defined by the XSComplexTypeDefinition interface are not intended for general use and may change some time in the futrue. In the instances where setValues() is called setName() is also called. Perhaps the name parameter should be removed from setValues() to avoid confusion.

> XSComplexTypeDecl. setValues  ignores the name param I passed
> -------------------------------------------------------------
>
>          Key: XERCESJ-1067
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1067
>      Project: Xerces2-J
>         Type: Bug
>   Components: XML Schema API
>     Reporter: Anil Saldhana

>
> public void setValues(String name, String targetNamespace,
>             XSTypeDefinition baseType, short derivedBy, short schemaFinal, 
>             short block, short contentType,
>             boolean isAbstract, XSAttributeGroupDecl attrGrp, 
>             XSSimpleType simpleType, XSParticleDecl particle,
>             XSObjectListImpl annotations) {
>         fTargetNamespace = targetNamespace;
>         fBaseType = baseType;
>         fDerivedBy = derivedBy;
>         fFinal = schemaFinal;
>         fBlock = block;
>         fContentType = contentType;
>         if(isAbstract)
>             fMiscFlags |= CT_IS_ABSTRACT;
>         fAttrGrp = attrGrp;
>         fXSSimpleType = simpleType;
>         fParticle = particle;
>         fAnnotations = annotations;
>    }
> What happened to the name param, I passed?
> Add the following line:
> fName = name;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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