com.thinkaurelius.titan.graphdb.database.serialize

## Interface AttributeHandling

- All Known Subinterfaces:
    Serializer
  All Known Implementing Classes:
    StandardAttributeHandling, StandardSerializer

      public interface AttributeHandling

  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<V> V` | `convert(Class<V> datatype, Object value)` Converts the given (not-null) value to the this datatype V.
    `boolean` | `isOrderPreservingDatatype(Class<?> datatype)`
    `<T> void` | `registerClass(Class<T> type, AttributeHandler<T> attributeHandler)`
    `<V> void` | `verifyAttribute(Class<V> datatype, Object value)`

- - ### Method Detail

    - #### registerClass

          <T> void registerClass(Class<T> type,
                               AttributeHandler<T> attributeHandler)

    - #### verifyAttribute

          <V> void verifyAttribute(Class<V> datatype,
                                 Object value)

    - #### convert

          <V> V convert(Class<V> datatype,
                      Object value)

      Converts the given (not-null) value to the this datatype V. The given object will NOT be of type V. Throws an `IllegalArgumentException` if it cannot be converted.
      Parameters:
        `value` - to convert
      Returns:
        converted to expected datatype

    - #### isOrderPreservingDatatype

          boolean isOrderPreservingDatatype(Class<?> datatype)

Copyright © 2012–2014. All rights reserved.