Hi Sandy,
        
> we  still need one on XSSimpleTypeDecl, which will be called from
> SchemaValidator.

Agreed, we need isEqual(Object value1, Object value2) method in XSSimpleTypeDecl 
,i see its usage for list and union datatypes,  at that time isEqual() of ListDV
and UnionDV wont be of much use. as we need to check the validity as per base 
types.

i think of this method access identifier as private and will be called 
*internallly* from validate().  I see SchemaValidator calling only 
validate(..).

Call to isEqual(Object value1, Object value2) is made from validate(..) which in 
turn works as per the "fVariety" currently set

like 
        private boolean isEqual(Object value1, Object value2){
        
        switch(fVariety){
        
                case VARIETY_ATOMIC:
                ....
                
                case VARIETY_LIST:
                ...
                
                case VARIETY_UNION:
                ....
                
        }
        
        }//isEqual()

as i am still not over with Union validation so i dont know about the potential
problem that may come as of this approach.
Please point out for any issues if i am missing or u  have different context in 
mind.


regards
        
Neeraj Bajaj
---------------------
Sun Microsystems, inc.
Ph.91-80-2298989 x87425.




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

Reply via email to