Interface ComplexBinding
-
- All Superinterfaces:
Binding
- All Known Implementing Classes:
_axisDescriptionBinding
,_ContentMetadataBinding
,_CoverageDescriptionBinding
,_DataBinding
,_DCPBinding
,_DescribeCoverageBinding
,_ExceptionReportBinding
,_Filter_CapabilitiesBinding
,_Filter_CapabilitiesBinding
,_GetCapabilitiesBinding
,_GetCoverageBinding
,_HTTPBinding
,_keywordsBinding
,_LogicalOperatorsBinding
,_OperationBinding
,_OperationsMetadataBinding
,_rangeSetBinding
,_ServiceIdentificationBinding
,_ServiceProviderBinding
,_XlinkPropertyNameBinding
,AbstractComplexBinding
,AbstractComplexEMFBinding
,AbstractDescriptionBaseTypeBinding
,AbstractDescriptionTypeBinding
,AbstractFeatureCollectionTypeBinding
,AbstractFeatureTypeBinding
,AbstractGeometricPrimitiveTypeBinding
,AbstractGeometryBaseTypeBinding
,AbstractGeometryTypeBinding
,AbstractGeometryTypeBinding
,AbstractGMLTypeBinding
,AbstractMetaDataTypeBinding
,AbstractRingPropertyTypeBinding
,AbstractRingPropertyTypeBinding
,AbstractRingTypeBinding
,AbstractRingTypeBinding
,AbstractSurfaceTypeBinding
,AbstractSurfaceTypeBinding
,AcceptFormatsTypeBinding
,AcceptVersionsTypeBinding
,ActionTypeBinding
,AddressTypeBinding
,AddressTypeBinding
,AfterBinding
,AnchorPointBinding
,AndBinding
,AnyInteractsBinding
,ArcStringTypeBinding
,ArcTypeBinding
,ArgumentsTypeBinding
,ArgumentTypeBinding
,Arithmetic_OperatorsTypeBinding
,AvailableFunctionsTypeBinding
,AvailableFunctionTypeBinding
,AxisDescriptionType_valuesBinding
,AxisDescriptionTypeBinding
,BaseRequestTypeBinding
,BaseSymbolizerBinding
,BasicIdentificationTypeOws11Binding
,BboxtypeBinding
,BBOXTypeBinding
,BeforeBinding
,BeginsBinding
,BegunByBinding
,BeyondBinding
,BinaryComparisonOpTypeBinding
,BinaryLogicOpTypeBinding
,BinaryPayloadBinding
,BinarySpatialOpTypeBinding
,BinaryTemporalOpTypeBinding
,BoundaryTypeBinding
,BoundingBoxTypeBinding
,BoundingShapeTypeBinding
,BoundingShapeTypeBinding
,CapabilitiesBaseType_LanguagesBinding
,CapabilitiesBaseTypeBinding
,CapabilitiesBinding
,CapabilityBinding
,CategorizeBinding
,ChangeCaseBinding
,ChannelSelectionBinding
,CircleTypeBinding
,CodeListTypeBinding
,CodeTypeBinding
,CodeTypeBinding
,ColorMapBinding
,ColorReplacementBinding
,ColorStyleTypeBinding
,Comparison_OperatorsTypeBinding
,ComparisonOperatorsTypeBinding
,ComparisonOperatorsTypeBinding
,ComparisonOperatorTypeBinding
,ComplexDataTypeBinding
,ComplexEMFBinding
,ComplexSupportXSAnyTypeBinding
,CompositeCurveTypeBinding
,ConcatenateBinding
,ConformanceTypeBinding
,ContactTypeBinding
,ContactTypeBinding
,ContainerTypeBinding
,ContainsBinding
,ContentsTypeBinding
,ContrastEnhancementBinding
,CoverageOfferingBriefTypeBinding
,CoverageOfferingTypeBinding
,CoverageStyleBinding
,CoveragetypeBinding
,CrossesBinding
,CurveArrayPropertyTypeBinding
,CurveArrayPropertyTypeBinding
,CurvePropertyTypeBinding
,CurvePropertyTypeBinding
,CurveSegmentArrayPropertyTypeBinding
,CurveTypeBinding
,CurveTypeBinding
,DataTypeBinding
,DCPTypeBinding
,DCPTypeType_HTTPBinding
,DCPTypeTypeBinding
,DeleteElementTypeBinding
,DescribeEOCoverageSetBinding
,DescribeFeatureTypeTypeBinding
,DescriptionBinding
,DescriptionTypeBinding
,DescriptionTypeOws11Binding
,DimensionBinding
,DimensionNameValueBinding
,DirectPositionListTypeBinding
,DirectPositionTypeBinding
,DirectPositionTypeBinding
,DisjointBinding
,DisplacementBinding
,DistanceBufferTypeBinding
,DocumentTypeBinding
,DocumentTypeV22Binding
,DomainSetTypeBinding
,DomainSubsetTypeBinding
,DomainTypeBinding
,DuringBinding
,DWithinBinding
,ElementSetNameTypeBinding
,EndedByBinding
,EndsBinding
,EnvelopePropertyTypeBinding
,EnvelopeTypeBinding
,EnvelopeTypeBinding
,EnvelopeTypeBinding
,EnvelopeWithTimePeriodTypeBinding
,EqualsBinding
,ExceptionTypeBinding
,ExecuteRequestTypeBinding
,ExtendedDataTypeBinding
,ExtensionTypeBinding
,ExternalGraphicBinding
,FeatureArrayPropertyTypeBinding
,FeatureCollectionTypeBinding
,FeatureCollectionTypeBinding
,FeatureCollectionTypeBinding
,FeatureCollectionTypeBinding
,FeatureInfoResponseBinding
,FeaturePropertyTypeBinding
,FeaturesLockedTypeBinding
,FeaturesNotLockedTypeBinding
,FeatureTypeBinding
,FeatureTypeListTypeBinding
,FeatureTypeListTypeBinding
,FeatureTypeStyleBinding
,FeatureTypeType_NoSRSBinding
,FeatureTypeTypeBinding
,FeatureTypeTypeBinding
,FillBinding
,Filter_CapabilitiesTypeBinding
,FilterTypeBinding
,FilterTypeBinding
,FolderBinding
,FolderTypeBinding
,FontBinding
,FormatDateBinding
,FormatNumberBinding
,Function_NamesTypeBinding
,Function_NameTypeBinding
,FunctionsTypeBinding
,FunctionTypeBinding
,FunctionTypeBinding
,GeometryBinding
,GeometryOperandsType_GeometryOperandBinding
,GeometryOperandsTypeBinding
,GeometryOperandsTypeBinding
,GeometryPropertyTypeBinding
,GeometryPropertyTypeBindingBase
,GeometryTypeBinding
,Geopkgtype_featuresBinding
,Geopkgtype_tilesBinding
,GeopkgtypeBinding
,GetCapabilitiesBinding
,GetCapabilitiesTypeBinding
,GetCapabilitiesTypeBinding
,GetFeatureInfoBinding
,GetFeatureTypeBinding
,GetFeatureWithLockTypeBinding
,GetGmlObjectTypeBinding
,GetTileBinding
,GMLAbstractFeatureCollectionBaseTypeBinding
,GMLAbstractFeatureCollectionTypeBinding
,GMLAbstractFeatureTypeBinding
,GMLAbstractGeometryCollectionBaseTypeBinding
,GMLAbstractGeometryTypeBinding
,GMLBoundingShapeTypeBinding
,GMLBoxTypeBinding
,GMLCoordinatesTypeBinding
,GMLCoordTypeBinding
,GMLFeatureAssociationTypeBinding
,GMLGeometryAssociationTypeBinding
,GMLGeometryCollectionTypeBinding
,GMLGeometryPropertyTypeBinding
,GMLLinearRingMemberTypeBinding
,GMLLinearRingTypeBinding
,GMLLineStringMemberTypeBinding
,GMLLineStringPropertyTypeBinding
,GMLLineStringTypeBinding
,GMLMultiGeometryPropertyTypeBinding
,GMLMultiLineStringPropertyTypeBinding
,GMLMultiLineStringTypeBinding
,GMLMultiPointPropertyTypeBinding
,GMLMultiPointTypeBinding
,GMLMultiPolygonPropertyTypeBinding
,GMLMultiPolygonTypeBinding
,GmlObjectIdTypeBinding
,GMLObjectTypeListTypeBinding
,GMLObjectTypeTypeBinding
,GMLPointMemberTypeBinding
,GMLPointPropertyTypeBinding
,GMLPointTypeBinding
,GMLPolygonMemberTypeBinding
,GMLPolygonPropertyTypeBinding
,GMLPolygonTypeBinding
,GraphicBinding
,GraphicFillBinding
,GraphicStrokeBinding
,GridEnvelopeTypeBinding
,GridLimitsTypeBinding
,Gridsettype_gridsBinding
,GridsettypeBinding
,GridtypeBinding
,GridTypeBinding
,HaloBinding
,HistogramBinding
,Id_CapabilitiesTypeBinding
,Id_CapabilitiesTypeBinding
,IdentificationTypeBinding
,IdentificationTypeOws11Binding
,ImageOutlineBinding
,InlineContentBinding
,InputDescriptionTypeBinding
,InputReferenceTypeBinding
,InsertedFeatureTypeBinding
,InsertElementTypeBinding
,InsertResultsTypeBinding
,InsertResultTypeBinding
,InsertTypeBinding
,InterpolateBinding
,InterpolationPointBinding
,IntersectsBinding
,IntervalTypeBinding
,KeywordsTypeBinding
,KmlTypeBinding
,LabelPlacementBinding
,LabelStyleTypeBinding
,LanguagesBinding
,LatLonBoxTypeBinding
,LatLongBoundingBoxBinding
,LayertypeBinding
,LayerTypeBinding
,LegendGraphicBinding
,LegendURLBinding
,LinearRingPropertyTypeBinding
,LinearRingTypeBinding
,LinearRingTypeBinding
,LinearRingTypeBinding
,LinearRingTypeBinding
,LinePlacementBinding
,LineStringPropertyTypeBinding
,LineStringSegmentTypeBinding
,LineStringTypeBinding
,LineStringTypeBinding
,LineStyleTypeBinding
,LineSymbolizerBinding
,LiteralBinding
,LiteralDataType_LiteralDataDomainBinding
,LocationPropertyTypeBinding
,LocationTypeBinding
,LockFeatureResponseTypeBinding
,LockFeatureTypeBinding
,LockTypeBinding
,LonLatEnvelopeBaseTypeBinding
,LonLatEnvelopeTypeBinding
,LookAtTypeBinding
,LowerBoundaryTypeBinding
,MapItemBinding
,MarkBinding
,MeasureTypeBinding
,MeasureTypeBinding
,MeetsBinding
,MemberPropertyTypeBinding
,MetadataAssociationTypeBinding
,MetadataLinkTypeBinding
,MetaDataPropertyTypeBinding
,MetadataTypeBinding
,MetadataTypeBinding
,MetadataTypeBinding
,MetadataURLTypeBinding
,MetadataURLTypeBinding
,MetByBinding
,MultiCurvePropertyTypeBinding
,MultiCurveTypeBinding
,MultiCurveTypeBinding
,MultiGeometryPropertyTypeBinding
,MultiGeometryTypeBinding
,MultiGeometryTypeBinding
,MultiLineStringPropertyTypeBinding
,MultiLineStringTypeBinding
,MultiPointPropertyTypeBinding
,MultiPointTypeBinding
,MultiPolygonPropertyTypeBinding
,MultiPolygonTypeBinding
,MultiPolygonTypeBinding
,MultiSurfacePropertyTypeBinding
,MultiSurfaceTypeBinding
,MultiSurfaceTypeBinding
,NameBinding
,NamedLayerBinding
,NamedStyleBinding
,NativeTypeBinding
,NormalizeBinding
,NotBinding
,ObjectTypeBinding
,OGCAddBinding
,OGCAndBinding
,OGCBBOXTypeBinding
,OGCBeyondBinding
,OGCBinaryComparisonOpTypeBinding
,OGCBinaryLogicOpTypeBinding
,OGCBinaryOperatorTypeBinding
,OGCBinarySpatialOpTypeBinding
,OGCComparisonOpsTypeBinding
,OGCContainsBinding
,OGCCrossesBinding
,OGCDisjointBinding
,OGCDistanceBufferTypeBinding
,OGCDistanceTypeBinding
,OGCDivBinding
,OGCDWithinBinding
,OGCEqualsBinding
,OGCExpressionTypeBinding
,OGCFeatureIdTypeBinding
,OGCFilterTypeBinding
,OGCFunctionTypeBinding
,OGCIntersectsBinding
,OGCLiteralTypeBinding
,OGCLogicOpsTypeBinding
,OGCLowerBoundaryTypeBinding
,OGCMulBinding
,OGCNotBinding
,OGCOrBinding
,OGCOverlapsBinding
,OGCPropertyIsBetweenTypeBinding
,OGCPropertyIsEqualToBinding
,OGCPropertyIsGreaterThanBinding
,OGCPropertyIsGreaterThanOrEqualToBinding
,OGCPropertyIsLessThanBinding
,OGCPropertyIsLessThanOrEqualToBinding
,OGCPropertyIsLikeTypeBinding
,OGCPropertyIsNotEqualToBinding
,OGCPropertyIsNullTypeBinding
,OGCPropertyNameTypeBinding
,OGCSpatialOpsTypeBinding
,OGCSubBinding
,OGCTouchesBinding
,OGCUpperBoundaryTypeBinding
,OGCWithinBinding
,OnlineResourceBinding
,OnlineResourceTypeBinding
,OnlineResourceTypeBinding
,OperationsTypeBinding
,OperationsTypeBinding
,OrBinding
,OutputDefinitionTypeBinding
,OutputDescriptionTypeBinding
,OutputFormatListTypeBinding
,OutputTypeBinding
,OverlappedByBinding
,OverlapsBinding
,OverviewBinding
,ParameterBinding
,ParameterTypeBinding
,ParameterValueTypeBinding
,PlacemarkTypeBinding
,PointArrayPropertyTypeBinding
,PointPlacementBinding
,PointPropertyTypeBinding
,PointSymbolizerBinding
,PointTypeBinding
,PointTypeBinding
,PointTypeBinding
,PolygonPatchTypeBinding
,PolygonPatchTypeBinding
,PolygonPropertyTypeBinding
,PolygonSymbolizerBinding
,PolygonTypeBinding
,PolygonTypeBinding
,PolygonTypeBinding
,PolyStyleTypeBinding
,PropertyIsBetweenTypeBinding
,PropertyIsEqualToBinding
,PropertyIsGreaterThanBinding
,PropertyIsGreaterThanOrEqualToBinding
,PropertyIsLessThanBinding
,PropertyIsLessThanOrEqualToBinding
,PropertyIsLikeTypeBinding
,PropertyIsNotEqualToBinding
,PropertyIsNullTypeBinding
,PropertyTypeBinding
,PropertyTypeBinding
,PropertyTypeBinding_1_1
,QueryExpressionTextTypeBinding
,QueryTypeBinding
,QueryTypeBinding
,QueryTypeBinding
,RangeBinding
,RangeSetTypeBinding
,RangeSubsetType_axisSubsetBinding
,RangeSubsetTypeBinding
,RasterSymbolizerBinding
,RecodeBinding
,RecordBinding
,RectifiedGridTypeBinding
,ReferenceTypeBinding
,ReferenceTypeBinding
,RegionTypeBinding
,RemoteOWSBinding
,RequestMethodTypeBinding
,ResourceIdentifierTypeBinding
,ResourceIdTypeBinding
,ResponsiblePartySubsetTypeBinding
,ResponsiblePartyTypeBinding
,ResponsiblePartyTypeBinding
,RingTypeBinding
,RuleBinding
,Scalar_CapabilitiesTypeBinding
,Scalar_CapabilitiesTypeBinding
,SchemaDataTypeBinding
,SchemaTypeBinding
,SectionsBinding
,SectionsTypeBinding
,SelectedChannelTypeBinding
,ServiceTypeBinding
,ServiceTypeBinding
,ShadedReliefBinding
,SimpleContentComplexEMFBinding
,SimpleLiteralBinding
,SLDAbstractBinding
,SLDAnchorPointBinding
,SLDBlueChannelBinding
,SLDChannelSelectionBinding
,SLDColorMapBinding
,SLDColorMapEntryBinding
,SLDContrastEnhancementBinding
,SLDCssParameterBinding
,SLDDisplacementBinding
,SLDExtentBinding
,SLDExternalGraphicBinding
,SLDFeatureTypeConstraintBinding
,SLDFeatureTypeStyleBinding
,SLDFillBinding
,SLDFontBinding
,SLDGeometryBinding
,SLDGraphicBinding
,SLDGraphicFillBinding
,SLDGraphicStrokeBinding
,SLDGrayChannelBinding
,SLDGreenChannelBinding
,SLDHaloBinding
,SLDHistogramBinding
,SLDImageOutlineBinding
,SLDInternationalStringBinding
,SLDLabelPlacementBinding
,SLDLayerFeatureConstraintsBinding
,SLDLegendGraphicBinding
,SLDLinePlacementBinding
,SLDLineSymbolizerBinding
,SLDMarkBinding
,SLDNamedLayerBinding
,SLDNamedStyleBinding
,SLDNormalizeBinding
,SLDOnlineResourceBinding
,SLDOverlapBehaviorBinding
,SLDParameterValueTypeBinding
,SLDPerpendicularOffsetBinding
,SLDPointPlacementBinding
,SLDPointSymbolizerBinding
,SLDPolygonSymbolizerBinding
,SLDRasterSymbolizerBinding
,SLDRedChannelBinding
,SLDRemoteOWSBinding
,SLDRuleBinding
,SLDSelectedChannelTypeBinding
,SLDShadedReliefBinding
,SLDStrokeBinding
,SLDStyledLayerDescriptorBinding
,SLDSymbolizerBinding
,SLDSymbolizerTypeBinding
,SLDTextSymbolizerBinding
,SLDTitleBinding
,SLDUserLayerBinding
,SLDUserStyleBinding
,SLDVendorOptionBinding
,SortByTypeBinding
,SortByTypeBinding
,SortPropertyTypeBinding
,SortPropertyTypeBinding
,Spatial_CapabilitiesTypeBinding
,Spatial_CapabilitiesTypeBinding
,Spatial_CapabilitiesTypeBinding
,Spatial_OperatorsTypeBinding
,SpatialDomainTypeBinding
,SpatialOperatorsTypeBinding
,SpatialOperatorsTypeBinding
,SpatialOperatorTypeBinding
,SpatialOperatorTypeBinding
,SpatialSubsetTypeBinding
,StringLengthBinding
,StringOrRefTypeBinding
,StringPositionBinding
,StrokeBinding
,StyleBinding
,StyledLayerDescriptorBinding
,StyleTypeBinding
,SubstringBinding
,SupportedCRSsTypeBinding
,SupportedFormatsTypeBinding
,SupportedInterpolationsTypeBinding
,SurfaceArrayPropertyTypeBinding
,SurfaceArrayPropertyTypeBinding
,SurfacePatchArrayPropertyTypeBinding
,SurfacePatchArrayPropertyTypeBinding
,SurfacePropertyTypeBinding
,SurfacePropertyTypeBinding
,SurfaceTypeBinding
,SurfaceTypeBinding
,SvgParameterBinding
,SymbolizerTypeBinding
,TContainsBinding
,TelephoneTypeBinding
,TelephoneTypeBinding
,TEqualsBinding
,TextPayloadBinding
,TextSymbolizerBinding
,ThemeBinding
,ThemesBinding
,TileMatrixBinding
,TileMatrixLimitsBinding
,TileMatrixSetBinding
,TileMatrixSetLimitsBinding
,TileMatrixSetLinkBinding
,TimeInstantPropertyTypeBinding
,TimeInstantTypeBinding
,TimePeriodTypeBinding
,TimePeriodTypeBinding
,TimePeriodTypeBinding
,TimePositionTypeBinding
,TimePositionTypeBinding
,TimePositionTypeBinding
,TimeSequenceTypeBinding
,TimeSequenceTypeBinding
,TouchesBinding
,TOverlapsBinding
,TransactionResponseTypeBinding
,TransactionResultsTypeBinding
,TransactionResultTypeBinding
,TransactionSummaryTypeBinding
,TransactionTypeBinding
,TransactionTypeBinding
,TrimBinding
,TupleTypeBinding
,TypedLiteralTypeBinding
,UpdateElementTypeBinding
,UpperBoundaryTypeBinding
,URLTemplateTypeBinding
,UserLayerBinding
,UserStyleBinding
,ValueCollectionTypeBinding
,ValueEnumBaseTypeBinding
,ValueEnumTypeBinding
,ValueRangeTypeBinding
,ValueReferenceTypeBinding
,VectorTypeBinding
,VendorOptionBinding
,WCS_CapabilitiesTypeBinding
,WCSCapabilityType_ExceptionBinding
,WCSCapabilityType_RequestBinding
,WCSCapabilityType_VendorSpecificCapabilitiesBinding
,WCSCapabilityTypeBinding
,WFS_CapabilitiesTypeBinding
,WFS_CapabilitiesTypeBinding
,WFS_LockFeatureResponseTypeBinding
,WFS_TransactionResponseTypeBinding
,WGS84BoundingBoxTypeBinding
,WithinBinding
,XSAllBinding
,XSAnnotatedBinding
,XSAnyTypeBinding
,XSAttributeBinding
,XSAttributeGroupBinding
,XSAttributeGroupRefBinding
,XSComplexRestrictionTypeBinding
,XSComplexTypeBinding
,XSElementBinding
,XSExplicitGroupBinding
,XSExtensionTypeBinding
,XSFacetBinding
,XSGroupBinding
,XSGroupRefBinding
,XSKeybaseBinding
,XSLocalComplexTypeBinding
,XSLocalElementBinding
,XSLocalSimpleTypeBinding
,XSNamedAttributeGroupBinding
,XSNamedGroupBinding
,XSNarrowMaxMinBinding
,XSNoFixedFacetBinding
,XSNumFacetBinding
,XSOpenAttrsBinding
,XSRealGroupBinding
,XSRestrictionTypeBinding
,XSSimpleExplicitGroupBinding
,XSSimpleExtensionTypeBinding
,XSSimpleRestrictionTypeBinding
,XSSimpleTypeBinding
,XSTopLevelAttributeBinding
,XSTopLevelComplexTypeBinding
,XSTopLevelElementBinding
,XSTopLevelSimpleTypeBinding
,XSWildcardBinding
public interface ComplexBinding extends Binding
A strategy for parsing elements in an instance document which are of complex type.Complex types contain child elements, and attributes. A complex strategy has the ability to
- Author:
- Justin Deoliveira,Refractions Research Inc.,jdeolive@refractions.net
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Element
encode(Object object, Document document, Element value)
Performs the encoding of the object into its xml representation.List<Object[]>
getProperties(Object object, XSDElementDeclaration element)
Returns a list of properties of the specified object.Object
getProperty(Object object, QName name)
Returns a property of a particular object which corresponds to the specified name.void
initialize(ElementInstance instance, Node node, MutablePicoContainer context)
Callback for the binding to initialize itself.void
initializeChildContext(ElementInstance childInstance, Node node, MutablePicoContainer context)
Initializes the context for a child element.Object
parse(ElementInstance instance, Node node, Object value)
Parses a complex element from an instance document into an object representation.-
Methods inherited from interface Binding
getExecutionMode, getTarget, getType
-
-
-
-
Method Detail
-
initialize
void initialize(ElementInstance instance, Node node, MutablePicoContainer context)
Callback for the binding to initialize itself.This method is called when the leading edge of the associated element is reached, before any children have been processed.
- Parameters:
instance
- The element being parsed.node
- The node in the parse tree representing the element being parsed. It is important to note that at the time this method is called the node contains no child element nodes, only child attribute nodes.context
- The container to be used as context for child binding.
-
initializeChildContext
void initializeChildContext(ElementInstance childInstance, Node node, MutablePicoContainer context)
Initializes the context for a child element.This method is called on the leading edge of a child element. It is used to create context for the binding of a child element. It is important to note that each time this method is called, the node parse tree will contain different, ie child nodes for those previous elements parsed.
- Parameters:
childInstance
- The child element instancenode
- The parse node for the parent element.context
- the context in which the child element will be parsed.
-
parse
Object parse(ElementInstance instance, Node node, Object value) throws Exception
Parses a complex element from an instance document into an object representation.This method is called when the trailing edge of the associated element is reached.
- Parameters:
instance
- The element being parsed.node
- The node in the parse tree representing the element being parsed.value
- The result of the parse from another strategy in the type hierarchy. Could be null if this is the first strategy being executed.- Returns:
- The parsed object, or null if the component could not be parsed.
- Throws:
Exception
- Strategy objects should not attempt to handle any exceptions.
-
encode
Element encode(Object object, Document document, Element value) throws Exception
Performs the encoding of the object into its xml representation.Complex objects are encoded as elements in a document. The value parameter is the encoded element, created by the parent binding. For the first binding in the execution chain this is just an empty element ( no children or attributes ). The binding has the choice to return value or to create a new element to return.
This method may choose to create child elements and attributes for the element. Or as an alternative return the object values for these contructs in
getProperty(Object, QName)
.- Parameters:
object
- The object being encoded.document
- The document containing the encoded element.value
- The object as encoded by the parent binding.- Returns:
- The element for the objcet being encoded, or
null
- Throws:
Exception
-
getProperty
Object getProperty(Object object, QName name) throws Exception
Returns a property of a particular object which corresponds to the specified name.This method should just return null in the event that the object being encoded is an leaf in its object model.
For multi-values properties ( maxOccurs > 0 ), this method may return an instance of
Collection
,Iterator
, or an array.- Parameters:
object
- The object being encoded.name
- The name of the property to obtain.- Returns:
- The value of the property, or
null
. - Throws:
Exception
-
getProperties
List<Object[]> getProperties(Object object, XSDElementDeclaration element) throws Exception
Returns a list of properties of the specified object.The return list contains a set of tuples (two element object array) which represent the properties of the object. The second value is an object which respresents the value. The first value of the tuple can one of two things:
- A
QName
identifying an element. This name will be used to locate the schema element for the property. - A
XSDParticle
representing the element itself.
This method should only be implemented in the case where the encoder can not determine what the properties of the object are from the schema.
An example would be an object which corresponds to an element in the schema which has a the type
xs:anyType
. Since the content of this type can be anything the schema has no way to determine what the properties are. So in this case this method must specify the properties manually as a set of name, object tuples.In the case of a multi-valued property, this method must return a tuple for each instance of the property, and not a list, iterator, or array containing all of the instances.
- Parameters:
object
- the object being encoded.- Returns:
- A list of the properties for the object.
- Throws:
Exception
- A
-
-