sshyran / genxdm

Automatically exported from code.google.com/p/genxdm
0 stars 0 forks source link

Add org.genxdm.xs.Type.isSimpleType() method; remove Type.isAtomicType() method #123

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Given an org.genxdm.xs.Type object, our Type API offers no way for users to 
determine if that Type is a simple or complex type.  We need to offer that 
functionality.  We should add an isSimpleType() method to the Type API.  
(Currently, users must use "instanceof SimpleType" to determine complex vs. 
simple type).

Also, given that SimpleType.isAtomicType already exists, we don't need 
Type.isAtomicType.    

As for the Type.isAtomicUrType(), Type.isComplexUrType(), and 
Type.isSimpleUrType(), should these methods remain on Type or be pushed down to 
the SimpleType and ComplexType interfaces?

Original issue reported on code.google.com by joe.bays...@gmail.com on 7 Feb 2013 at 8:08

GoogleCodeExporter commented 8 years ago

Original comment by joe.bays...@gmail.com on 24 Oct 2013 at 5:25