TIBCOSoftware / genxdm

GenXDM: XQuery/XPath Data Model API, bridges, and processors for tree-model neutral access to XML.
http://www.genxdm.org/
9 stars 4 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 9 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 9 years ago

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

aalewis-tibco commented 8 years ago

Marking as an enhancement rather than a bug, which is more accurate. Per Joe, closing as unneeded (proven in three years of working around without notable difficulty).