Package com.luciad.format.gml3.adapter
Class TLcdGML2ElementAdapterProvider
java.lang.Object
com.luciad.format.gml3.adapter.TLcdGML2ElementAdapterProvider
- All Implemented Interfaces:
ILcdXMLElementAdapterProvider
,ILcdXMLTypedElementAdapterProvider
@Deprecated
public class TLcdGML2ElementAdapterProvider
extends Object
implements ILcdXMLTypedElementAdapterProvider
Deprecated.
Provides default
ILcdXMLTypedElementAdapter
adapters for creating an XML view on
LuciadLightspeed models, compatible with the GML 2 Schema.
The following XML types are currently supported (each type is shown with the interface that is
expected by its adapter:
Element | Required interface | Notes |
---|---|---|
gml:AbstractFeatureCollectionType | ILcdModel | |
gml:FeaturePropertyType | Object | |
gml:AbstractFeatureType | ILcdShape | |
gml:GeometryPropertyType | Object | |
gml:GeometryArrayPropertyType | ILcdShapeList | |
gml:AbstractFeaturedType | ILcdFeatured | |
gml:CoordinatesType | ILcdPoint | |
gml:CoordinatesType | ILcdPointList | |
gml:PolygonType | ILcdComplexPolygon | |
gml:MultiGeometryType | ILcdShapeList | |
gml:BoundingShapeType | ILcdBounded | |
gml:BoxType | ILcdBounds | |
gml:CoordinatesType | ILcdBounds | |
gml:PointPropertyType | ILcdPoint | |
gml:AbstractRingPropertyType | ILcdPolygon | |
gml:PolygonPropertyType | ILcdPolygon | |
gml:LineStringPropertyType | ILcdPolyline | |
gml:PolygonPropertyType | ILcdComplexPolygon | |
gml:MultiPointPropertyType | ILcdPolypoint | |
gml:MultiGeometryPropertyType | ILcdShapeList | |
gml:PointMemberType | ILcdPoint | |
gml:LinearRingMemberType | ILcdPolygon | |
gml:PolygonMemberType | ILcdPolygon | |
gml:LineStringMemberType | ILcdPolyline | |
gml:PolygonMemberType | ILcdComplexPolygon | |
gml:PointType | ILcdPoint | |
gml:LinearRingType | ILcdPolygon | |
gml:PolygonType | ILcdPolygon | |
gml:LineStringType | ILcdPolyline | |
gml:MultiPointType | ILcdPolypoint | |
xml:string | String | |
xml:boolean | Boolean | |
xml:integer | Integer | |
xml:long | Long | |
xml:float | Float | |
xml:double | Double | |
xml:string | Character | |
xml:anyURI | URI | |
xml:anyURI | URL |
-
Constructor Summary
ConstructorDescriptionTLcdGML2ElementAdapterProvider
(ILcdXMLSchemaProvider aSchemaProvider, ILcdXMLElementNameProvider aElementNameProvider) Deprecated.Constructs a newTLcdGML3ElementAdapterProvider
, that will use the givenILcdXMLElementNameProvider
andILcdXMLSchemaProvider
. -
Method Summary
Modifier and TypeMethodDescriptiongetAdapterForObject
(ILcdXMLNameStack aParentElementNameStack, ILcdXMLObjectStack aParentObjectStack, TLcdXMLName aSubstitutionGroup, Object aObject) Deprecated.Returns theILcdXMLElementAdapter
that is most suitable to handle the object, specified by the given name/object stack, substitution group and object.getAdapterForType
(TLcdXMLName aTypeName, Object aObject, boolean aRecursiveSearch) Deprecated.Returns aILcdXMLElementAdapter
for the given XML name and Java object.void
registerElementAdapter
(TLcdXMLName aTypeName, TLcdXMLName[] aElementNameStack, Class aJavaClass, ILcdXMLElementAdapter aAdapter) Deprecated.Registers the given adapter for the anonymous XML type, identified by the element name stack, and, if the element name stack is contained within a named type, the name of that type.void
registerElementAdapter
(TLcdXMLName aXMLTypeName, Class aJavaClass, ILcdXMLElementAdapter aElementAdapter) Deprecated.Registers an element adapter for the given XML type and java class.
-
Constructor Details
-
TLcdGML2ElementAdapterProvider
public TLcdGML2ElementAdapterProvider(ILcdXMLSchemaProvider aSchemaProvider, ILcdXMLElementNameProvider aElementNameProvider) Deprecated.Constructs a newTLcdGML3ElementAdapterProvider
, that will use the givenILcdXMLElementNameProvider
andILcdXMLSchemaProvider
.- Parameters:
aSchemaProvider
- the schema provider to be used by the adapters in this provider.aElementNameProvider
- the element name provider to be used by the adapters in this provider.
-
-
Method Details
-
registerElementAdapter
public void registerElementAdapter(TLcdXMLName aXMLTypeName, Class aJavaClass, ILcdXMLElementAdapter aElementAdapter) Deprecated.Registers an element adapter for the given XML type and java class.- Parameters:
aXMLTypeName
- the XML type name for which to register the element adapter.aJavaClass
- the Java class for which to register the element adapter.aElementAdapter
- the element adapter to be registered.
-
registerElementAdapter
public void registerElementAdapter(TLcdXMLName aTypeName, TLcdXMLName[] aElementNameStack, Class aJavaClass, ILcdXMLElementAdapter aAdapter) Deprecated.Registers the given adapter for the anonymous XML type, identified by the element name stack, and, if the element name stack is contained within a named type, the name of that type.- Parameters:
aTypeName
- The XML type name from which the specified element name stack is part of.aElementNameStack
- The element name stack, identifying the XML type within the provided XML type.aAdapter
- the adapter to be registered.- Throws:
NullPointerException
- ifaAdapter == null || aJavaClass == null
.
-
getAdapterForType
public ILcdXMLElementAdapter getAdapterForType(TLcdXMLName aTypeName, Object aObject, boolean aRecursiveSearch) Deprecated.Description copied from interface:ILcdXMLTypedElementAdapterProvider
Returns aILcdXMLElementAdapter
for the given XML name and Java object. If no reader is available for the XML given type, andaSearchRecursive == true
, the provider will recursively look at the XML base types of the given type, until a base type is found for which a reader is available.- Specified by:
getAdapterForType
in interfaceILcdXMLTypedElementAdapterProvider
- Parameters:
aTypeName
-aObject
-aRecursiveSearch
-- Returns:
- a element adapter that can handle the given (XML Type, Java object) combination.
-
getAdapterForObject
public ILcdXMLElementAdapter getAdapterForObject(ILcdXMLNameStack aParentElementNameStack, ILcdXMLObjectStack aParentObjectStack, TLcdXMLName aSubstitutionGroup, Object aObject) Deprecated.Description copied from interface:ILcdXMLElementAdapterProvider
Returns theILcdXMLElementAdapter
that is most suitable to handle the object, specified by the given name/object stack, substitution group and object.- Specified by:
getAdapterForObject
in interfaceILcdXMLElementAdapterProvider
- Parameters:
aParentElementNameStack
- the XML name stack, containing all XML names from the root element up to the parent element nameaParentObjectStack
- the XML object stack, containing all XML objects from the root element up to the parent elementaSubstitutionGroup
- the substitution group the element belongs to, if there is one (null
otherwise).aObject
- the element for which to return an adapter.- Returns:
- the element adapter that is most suitable to handle the specified object.
-
com.luciad.format.gml3.*
packages are replaced by new decoders and encoders in the packagescom.luciad.format.gml2.xml
,com.luciad.format.gml31.xml
andcom.luciad.format.gml32.xml
.