Class GO_Record

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.gco.PropertyType<GO_Record,org.opengis.util.Record>
org.apache.sis.internal.jaxb.gco.GO_Record
Direct Known Subclasses:
GO_Record.Since2014

public class GO_Record extends PropertyType<GO_Record,org.opengis.util.Record>
JAXB wrapper in order to map implementing class with the GeoAPI interface. See package documentation for more information about JAXB and interface.
Since:
1.0
Version:
1.0
  • Constructor Details

    • GO_Record

      GO_Record()
      Empty constructor for JAXB only.
    • GO_Record

      private GO_Record(org.opengis.util.Record metadata)
      Wraps a Record value with a gco:Record element at marshalling-time.
      Parameters:
      metadata - the metadata value to marshal.
  • Method Details

    • getBoundType

      protected final Class<org.opengis.util.Record> getBoundType()
      Returns the GeoAPI interface which is bound by this adapter.
      Specified by:
      getBoundType in class PropertyType<GO_Record,org.opengis.util.Record>
      Returns:
      Record.class
    • wrap

      protected GO_Record wrap(org.opengis.util.Record value)
      Returns a wrapper for the given Record element.
      Specified by:
      wrap in class PropertyType<GO_Record,org.opengis.util.Record>
      Parameters:
      value - the value to marshal.
      Returns:
      the wrapper around the given metadata value.
    • getElement

      public final DefaultRecord getElement()
      Returns the DefaultRecord generated from the metadata value. This method is systematically called at marshalling-time by JAXB.
      Returns:
      the metadata to be marshalled.
    • setElement

      public final void setElement(DefaultRecord metadata)
      Sets the value for the DefaultRecord. This method is systematically called at unmarshalling-time by JAXB.
      Parameters:
      metadata - the unmarshalled metadata.