Class Wrapper


  • public final class Wrapper
    extends java.lang.Object
    Utility class to convert DataObjects dynamically.
    • Method Detail

      • wrap

        public static <T extends ShapeData,​U extends Shape> U wrap​(T object)
        Converts (wraps) a ShapeData object to a Shape object.
        Type Parameters:
        T - The ShapeData type.
        U - The Shape type.
        Parameters:
        object - The object to convert.
        Returns:
        See above.
      • wrap

        public static <T extends AnnotationData,​U extends Annotation> U wrap​(T object)
        Converts (wraps) an AnnotationData object to an Annotation object.
        Type Parameters:
        T - The AnnotationData type.
        U - The Annotation type.
        Parameters:
        object - The object to convert.
        Returns:
        See above.
      • wrapAnnotatableObject

        public static <T extends DataObject,​U extends Annotatable> U wrapAnnotatableObject​(T object)
        Converts (wraps) a DataObject object to an Annotatable object.
        Type Parameters:
        T - The DataObject type.
        U - The Annotatable type.
        Parameters:
        object - The object to convert.
        Returns:
        See above.
      • wrapRepositoryObject

        public static <T extends DataObject,​U extends RepositoryObject> U wrapRepositoryObject​(T object)
        Converts (wraps) a DataObject object to a Repository object.
        Type Parameters:
        T - The DataObject type.
        U - The RepositoryObject type.
        Parameters:
        object - The object to convert.
        Returns:
        See above.
      • wrap

        public static <T extends DataObject,​U extends RemoteObject> U wrap​(T object)
        Converts (wraps) a DataObject to a RemoteObject.
        Type Parameters:
        T - The DataObject type.
        U - The RemoteObject type.
        Parameters:
        object - The object to convert.
        Returns:
        See above.