org.fcrepo.server.utilities
Class TypeUtility
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeUtility
public TypeUtility()
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.