| org.geotools.data.ComplexTestData
ComplexTestData | abstract public class ComplexTestData extends TestCase (Code) | | author: Gabriel Roldan, Axios Engineering version: $Id: ComplexTestData.java 25814 2007-06-12 12:03:41Z groldan $ since: 2.4 |
checkType | public static void checkType(AttributeType type, Name name, Class binding, Set restrictions, boolean identified, boolean _abstract, AttributeType superType)(Code) | | Asserts the corresponding properties of type for equality
with the provided parameter values
Parameters: type - Parameters: name - Parameters: binding - Parameters: restrictions - Parameters: identified - Parameters: _abstract - Parameters: superType - Parameters: nillable - |
createExample01MultiValuedComplexProperty | public static FeatureType createExample01MultiValuedComplexProperty(TypeFactory typeFactory)(Code) | |
FeatureType[
name = wq_plus
identified = true
super = Feature
abstract = false
binding = Feature.class
restrictions = EMPTY_SET
nillable = false
defaultGeometry = #location
descriptor = OrderedDescriptor(1, 1)[
sequence = List[
AttributeDescriptor(1, 1)[
type = AttributeType[
name = sitename
identified = false
super = null
abstract = false
binding = String.class
restrictions = EMPTY_SET
nillable = false
]
],
AttributeDescriptor(0, 1)[
type = AttributeType[
name = anzlic_no
identified = false
super = null
abstract = false
binding = String.class
restrictions = EMPTY_SET
nillable = true
]
],
AttributeDescriptor(0, 1)[
type = GeometryAttribute[
name = location
identified = false
super = HERE WE NEED TO REFER TO gml:LocationPropertyType
abstract = false
binding = Point.class
restrictions = EMPTY_SET
nillable = true
]
],
AttributeDescriptor (0, Integer.MAX_VALUE)[
type = ComplexType[
name = measurement
identified = true
super = null
abstract = false
binding = null
restrictions = EMPTY_SET
nillable = true
descriptor = OrderedDescriptor(0, Integer.MAX_VALUE)[
AttributeDescriptor(1, 1)[
type = AttributeType[
name = determinand_description
identified = false
super = null
abstract = false
binding = String.class
restrictions = EMPTY_SET
nillable = false
]
],
AttributeDescriptor(1, 1)[
type = AttributeType[
name = result
identified = false
super = null
abstract = false
binding = String.class
restrictions = EMPTY_SET
nillable = false
]
]
]//OrderedDescriptor
] //ComplexType
], //measurement
AttributeDescriptor(0, 1)[
type = AttributeType[
name = project_no
identified = false
super = null
abstract = false
binding = String.class
restrictions = EMPTY_SET
nillable = false
]
]
]
]
]
Parameters: typeFactory - Parameters: descFactory - |
createExample02MultipleMultivalued | public static FeatureType createExample02MultipleMultivalued(TypeFactory typeFactory)(Code) | | A feature type that has various multi-valued properties.
Multi valued properties: meassurement(0:unbounded),
sitename(1:unbounded).
Parameters: typeFactory - Parameters: descFactory - |
createExample03MultipleGeometries | public static FeatureType createExample03MultipleGeometries(TypeFactory typeFactory)(Code) | | A feature may have multiple geometries
<xs:complexType name="measurement_Type">
<xs:sequence>
<xs:element name="determinand_description" type="xs:string"/>
<xs:element name="result" type="xs:string"/>
</xs:sequence>
<xs:attribute ref="gml:id" use="optional"/>
</xs:complexType>
<xs:complexType name="wq_plus_Type" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence>
<xs:element name="measurement" maxOccurs="unbounded" type="sco:measurement_Type"/>
<xs:element name="location" type="gml:LocationPropertyType"/>
<xs:element name="nearestSlimePit" type="gml:PointPropertyType"/>
<xs:element name="sitename" maxOccurs="unbounded" nillable="false" type="xs:string" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name='wq_plus' type='sco:wq_plus_Type' substitutionGroup="gml:_Feature" />
Parameters: typeFactory - Parameters: descFactory - |
createExample04Type | public static FeatureType createExample04Type(TypeFactory typeFactory)(Code) | | Parameters: typeFactory - Parameters: descFactory - |
createExample05JunctionType | public static FeatureType createExample05JunctionType(TypeFactory typeFactory)(Code) | | Creates a FeatureType for the Road
<xs:element name="roadRef" type="sco:RoadPropertyType"/>
<xs:element name="junctionRef" type="sco:JunctionPropertyType"/>
<xs:complexType name="RoadPropertyType">
<xs:annotation>
<xs:documentation>Container for a road - follow gml:AssociationType pattern.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="0">
<xs:element ref="sco:Road" />
</xs:sequence>
<xs:attributeGroup ref="gml:AssociationAttributeGroup" />
</xs:complexType>
<xs:complexType name="JunctionPropertyType">
<xs:annotation>
<xs:documentation>Container for a junction - follow gml:AssociationType pattern.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="0">
<xs:element ref="sco:Junction" />
</xs:sequence>
<xs:attributeGroup ref="gml:AssociationAttributeGroup" />
</xs:complexType>
<xs:complexType name="RoadType">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence>
<xs:element name="geom" type="gml:CurvePropertyType" minOccurs="0" />
<xs:element ref="sco:junctionRef" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="JunctionType">
<xs:complexContent>
<xs:extension base="gml:AbstractFeatureType">
<xs:sequence>
<xs:element ref="sco:roadRef" />
<xs:element name="direction" type="xs:int" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name='Junction' type='sco:JunctionType' substitutionGroup="gml:_Feature" />
<xs:element name='Road' type='sco:RoadType' substitutionGroup="gml:_Feature" />
|
createGmlLocation | public static AttributeType createGmlLocation(TypeFactory typeFactory)(Code) | | Creates a representation of a gml:LocationPropertyType association. This
would be better done by obtaining the type from a registry, so we can
have GML2TypeRegistry, GML3TypeRegistry, DefaultTypeRegistry, etc.
|
createGmlPoint | public static AttributeType createGmlPoint(TypeFactory typeFactory)(Code) | | Creates a representation of a gml:PointPropertyType association as an
AttributeType. This would be better done by obtaining the type from a
registry, so we can have GML2TypeRegistry, GML3TypeRegistry,
DefaultTypeRegistry, etc.
|
createMeasurementType | public static ComplexType createMeasurementType(TypeFactory typeFactory)(Code) | | |
|
|