org.fcrepo.server.utilities
Class TypeUtility

java.lang.Object
  extended by org.fcrepo.server.utilities.TypeUtility

public abstract class TypeUtility
extends Object

A utility class for converting back and forth from the internal Fedora type classes in org.fcrepo.server.storage.types and the generated type classes produced by the wsdl2java emitter in org.fcrepo.server.types.gen.gen.

Author:
Ross Wayland

Constructor Summary
TypeUtility()
           
 
Method Summary
static DataHandler convertBytesToDataHandler(byte[] content)
           
static byte[] convertDataHandlerToBytes(DataHandler dh)
           
static List<DatastreamDef> convertDatastreamDefArrayToGenDatastreamDefList(DatastreamDef[] dsDefs)
           
static DatastreamDef convertDatastreamDefToGenDatastreamDef(DatastreamDef in)
           
static Datastream convertDatastreamToGenDatastream(Datastream in)
           
static FieldSearchResult convertFieldSearchResultToGenFieldSearchResult(FieldSearchResult result)
           
static List<Condition> convertGenConditionArrayToSearchConditionList(FieldSearchQuery.Conditions genConditions)
           
static FieldSearchQuery convertGenFieldSearchQueryToFieldSearchQuery(FieldSearchQuery gen)
           
static Property[] convertGenPropertyArrayToPropertyArray(GetDissemination.Parameters genProperties)
           
static Property[] convertGenPropertyArrayToPropertyArray(GetDissemination.Parameters genProperties)
           
static Property convertGenPropertyToProperty(Property genProperty)
           
static MethodParmDef convertMethodParmDefToGenMethodParmDef(MethodParmDef methodParmDef)
           
static MIMETypedStream convertMIMETypedStreamToGenMIMETypedStream(MIMETypedStream mimeTypedStream)
           
static MIMETypedStream convertMIMETypedStreamToGenMIMETypedStreamMTOM(MIMETypedStream mimeTypedStream)
           
static List<ObjectMethodsDef> convertObjectMethodsDefArrayToGenObjectMethodsDefList(ObjectMethodsDef[] objectMethodDefs)
           
static ObjectProfile convertObjectProfileToGenObjectProfile(ObjectProfile objectProfile)
           
static Property convertPropertyToGenProperty(Property property)
           
static RelationshipTuple convertRelsTupleToGenRelsTuple(RelationshipTuple in)
           
static RepositoryInfo convertReposInfoToGenReposInfo(RepositoryInfo repositoryInfo)
           
static ArrayOfString convertStringtoAOS(String[] arr)
           
static Validation convertValidationToGenValidation(Validation validation)
           
static String[] toStringArray(List<DCField> l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeUtility

public TypeUtility()
Method Detail

convertDatastreamToGenDatastream

public static Datastream convertDatastreamToGenDatastream(Datastream in)

convertFieldSearchResultToGenFieldSearchResult

public static FieldSearchResult convertFieldSearchResultToGenFieldSearchResult(FieldSearchResult result)

convertGenFieldSearchQueryToFieldSearchQuery

public static FieldSearchQuery convertGenFieldSearchQueryToFieldSearchQuery(FieldSearchQuery gen)
                                                                     throws InvalidOperatorException,
                                                                            QueryParseException
Throws:
InvalidOperatorException
QueryParseException

convertGenConditionArrayToSearchConditionList

public static List<Condition> convertGenConditionArrayToSearchConditionList(FieldSearchQuery.Conditions genConditions)
                                                                     throws InvalidOperatorException,
                                                                            QueryParseException
Throws:
InvalidOperatorException
QueryParseException

toStringArray

public static String[] toStringArray(List<DCField> l)

convertMethodParmDefToGenMethodParmDef

public static MethodParmDef convertMethodParmDefToGenMethodParmDef(MethodParmDef methodParmDef)

convertMIMETypedStreamToGenMIMETypedStream

public static MIMETypedStream convertMIMETypedStreamToGenMIMETypedStream(MIMETypedStream mimeTypedStream)

convertMIMETypedStreamToGenMIMETypedStreamMTOM

public static MIMETypedStream convertMIMETypedStreamToGenMIMETypedStreamMTOM(MIMETypedStream mimeTypedStream)

convertObjectMethodsDefArrayToGenObjectMethodsDefList

public static List<ObjectMethodsDef> convertObjectMethodsDefArrayToGenObjectMethodsDefList(ObjectMethodsDef[] objectMethodDefs)

convertObjectProfileToGenObjectProfile

public static ObjectProfile convertObjectProfileToGenObjectProfile(ObjectProfile objectProfile)

convertReposInfoToGenReposInfo

public static RepositoryInfo convertReposInfoToGenReposInfo(RepositoryInfo repositoryInfo)

convertGenPropertyArrayToPropertyArray

public static Property[] convertGenPropertyArrayToPropertyArray(GetDissemination.Parameters genProperties)

convertGenPropertyArrayToPropertyArray

public static Property[] convertGenPropertyArrayToPropertyArray(GetDissemination.Parameters genProperties)

convertGenPropertyToProperty

public static Property convertGenPropertyToProperty(Property genProperty)

convertPropertyToGenProperty

public static Property convertPropertyToGenProperty(Property property)

convertRelsTupleToGenRelsTuple

public static RelationshipTuple convertRelsTupleToGenRelsTuple(RelationshipTuple in)

convertDatastreamDefToGenDatastreamDef

public static DatastreamDef convertDatastreamDefToGenDatastreamDef(DatastreamDef in)

convertDatastreamDefArrayToGenDatastreamDefList

public static List<DatastreamDef> convertDatastreamDefArrayToGenDatastreamDefList(DatastreamDef[] dsDefs)

convertValidationToGenValidation

public static Validation convertValidationToGenValidation(Validation validation)

convertDataHandlerToBytes

public static byte[] convertDataHandlerToBytes(DataHandler dh)

convertBytesToDataHandler

public static DataHandler convertBytesToDataHandler(byte[] content)

convertStringtoAOS

public static ArrayOfString convertStringtoAOS(String[] arr)


Copyright © 2012 DuraSpace. All Rights Reserved.