Represents most of a xs:element for an XMLSchema.
we have three types of information to store, Schema defined types, references and extentions on types. If the type represented is either a reference or a Schema defined type then isRef should be true.
Non-complex types are of the form:
{element name='test' type='xs:string'/}
{element name='test' type='gml:PointType'/}
These cases have their type name stored in this.type
For complex types such as:
{element name='test' {xs:complexContent} {xs:extension base="gml:AbstractFeatureType"} {xs:sequence} {xs:element name="id" type="xs:string" minOccurs="0"/} {xs:element ref="gml:pointProperty" minOccurs="0"/} {/xs:sequence} {/xs:extension} {/xs:complexContent} {/element}
The type will be equals to "(xml fragment)" and fragment contains a similar to above. minOccurs, maxOccurs and nillable are all attributes for all cases. There is more stuff in the XMLSchema spec but we don't care to parse it out right now.
@author dzwiers, Refractions Research, Inc. @version $Id: AttributeTypeInfoConfig.java,v 1.19 2004/02/16 23:46:54 dmzwiers Exp $
|
|
|
|
|
|
|
|
|
|