|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.utilities.TypeUtility
public abstract class TypeUtility
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.
| Constructor Summary | |
|---|---|
TypeUtility()
|
|
| Method Summary | |
|---|---|
static DatastreamDef[] |
convertDatastreamDefArrayToGenDatastreamDefArray(DatastreamDef[] dsDefs)
|
static DatastreamDef |
convertDatastreamDefToGenDatastreamDef(DatastreamDef in)
|
static Datastream |
convertDatastreamToGenDatastream(Datastream in)
|
static FieldSearchResult |
convertFieldSearchResultToGenFieldSearchResult(FieldSearchResult result)
|
static List |
convertGenConditionArrayToSearchConditionList(Condition[] genConditions)
|
static DatastreamDef[] |
convertGenDatastreamDefArrayToDatastreamDefArray(DatastreamDef[] genDatastreamDefs)
|
static DatastreamDef |
convertGenDatastreamDefToDatastreamDef(DatastreamDef genDatastreamDef)
|
static FieldSearchQuery |
convertGenFieldSearchQueryToFieldSearchQuery(FieldSearchQuery gen)
|
static MethodParmDef[] |
convertGenMethodParmDefArrayToMethodParmDefArray(MethodParmDef[] genMethodParmDefs)
Converts an array of org.fcrepo.server.types.gen.MethodParmDef into an array of org.fcrepo.server.storage.types.MethodParmDef. |
static MethodParmDef |
convertGenMethodParmDefToMethodParmDef(MethodParmDef genMethodParmDef)
Converts an instance of org.fcrepo.server.storage.types.MethodParmDef into an instance of org.fcrepo.server.types.gen.MethodParmDef. |
static MIMETypedStream |
convertGenMIMETypedStreamToMIMETypedStream(MIMETypedStream genMIMETypedStream)
Converts an instance of org.fcrepo.server.types.gen.MIMETypedStream into an instance of org.fcrepo.server.storage.types.MIMETypedStream. |
static ObjectMethodsDef[] |
convertGenObjectMethodsDefArrayToObjectMethodsDefArray(ObjectMethodsDef[] genObjectMethodDefs)
Converts an array of org.fcrepo.server.types.gen.ObjectMethodsDef into an array of org.fcrepo.server.storage.types.ObjectMethodsDef. |
static ObjectMethodsDef |
convertGenObjectMethodsDefToObjectMethodsDef(ObjectMethodsDef genObjectMethodDef)
Converts an instance of org.fcrepo.server.types.gen.ObjectMethodsDef into an instance of org.fcrepo.server.storage.types.ObjectMethodsDef. |
static ObjectProfile |
convertGenObjectProfileToObjectProfile(ObjectProfile genObjectProfile)
Converts an instance of org.fcrepo.server.types.gen.ObjectProfile into an instance of org.fcrepo.server.access.ObjectProfile. |
static Property[] |
convertGenPropertyArrayToPropertyArray(Property[] genProperties)
Converts an array of org.fcrepo.server.types.gen.Property into an array of org.fcrepo.server.storage.types.Property. |
static Property |
convertGenPropertyToProperty(Property genProperty)
Converts an instance of org.fcrepo.server.types.gen.Property into an instance of org.fcrepo.server.storage.types.Property. |
static MethodParmDef[] |
convertMethodParmDefArrayToGenMethodParmDefArray(MethodParmDef[] methodParmDefs)
Converts an array of org.fcrepo.server.storage.types.MethodParmDef into an array of org.fcrepo.server.types.gen.MethodParmDef. |
static MethodParmDef |
convertMethodParmDefToGenMethodParmDef(MethodParmDef methodParmDef)
Converts an instance of org.fcrepo.server.storage.types.MethodParmDef into an instance of org.fcrepo.server.types.gen.MethodParmDef. |
static MIMETypedStream |
convertMIMETypedStreamToGenMIMETypedStream(MIMETypedStream mimeTypedStream)
Converts an instance of org.fcrepo.server.storage.types.MIMETypedStream into an instance of org.fcrepo.server.types.gen.MIMETypedStream. |
static ObjectMethodsDef[] |
convertObjectMethodsDefArrayToGenObjectMethodsDefArray(ObjectMethodsDef[] objectMethodDefs)
Converts an array of org.fcrepo.server.storage.types.ObjectMethodsDef into an array of org.fcrepo.server.types.gen.ObjectMethodsDef. |
static ObjectMethodsDef |
convertObjectMethodsDefToGenObjectMethodsDef(ObjectMethodsDef objectMethodDef)
Converts an instance of org.fcrepo.server.storage.types.ObjectMethodsDef into an instance of org.fcrepo.server.types.gen.ObjectMethodsDef. |
static ObjectProfile |
convertObjectProfileToGenObjectProfile(ObjectProfile objectProfile)
|
static Property[] |
convertPropertyArrayToGenPropertyArray(Property[] properties)
Converts an array of org.fcrepo.server.storage.types.Property into an array of org.fcrepo.server.types.gen.Property. |
static Property |
convertPropertyToGenProperty(Property property)
Converts an instance of org.fcrepo.server.storage.types.Property into an instance of org.fcrepo.server.types.gen.Property. |
static RelationshipTuple |
convertRelsTupleToGenRelsTuple(RelationshipTuple in)
|
static RepositoryInfo |
convertReposInfoToGenReposInfo(RepositoryInfo repositoryInfo)
|
static ObjectFields[] |
convertSearchObjectFieldsListToGenObjectFieldsArray(List sfList)
|
static Validation |
convertValidationToGenValidation(Validation validation)
|
static void |
main(String[] args)
|
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 |
|---|
public TypeUtility()
| Method Detail |
|---|
public static Datastream convertDatastreamToGenDatastream(Datastream in)
public static FieldSearchResult convertFieldSearchResultToGenFieldSearchResult(FieldSearchResult result)
public static FieldSearchQuery convertGenFieldSearchQueryToFieldSearchQuery(FieldSearchQuery gen)
throws InvalidOperatorException,
QueryParseException
InvalidOperatorException
QueryParseException
public static List convertGenConditionArrayToSearchConditionList(Condition[] genConditions)
throws InvalidOperatorException,
QueryParseException
InvalidOperatorException
QueryParseExceptionpublic static ObjectFields[] convertSearchObjectFieldsListToGenObjectFieldsArray(List sfList)
public static String[] toStringArray(List<DCField> l)
public static MethodParmDef[] convertMethodParmDefArrayToGenMethodParmDefArray(MethodParmDef[] methodParmDefs)
Converts an array of org.fcrepo.server.storage.types.MethodParmDef into an array of org.fcrepo.server.types.gen.MethodParmDef.
methodParmDefs - An array of org.fcrepo.server.storage.types.MethodParmDef.
public static MethodParmDef convertMethodParmDefToGenMethodParmDef(MethodParmDef methodParmDef)
Converts an instance of org.fcrepo.server.storage.types.MethodParmDef into an instance of org.fcrepo.server.types.gen.MethodParmDef.
methodParmDef - An instance of org.fcrepo.server.storage.types.MethodParmDef.
public static MethodParmDef[] convertGenMethodParmDefArrayToMethodParmDefArray(MethodParmDef[] genMethodParmDefs)
Converts an array of org.fcrepo.server.types.gen.MethodParmDef into an array of org.fcrepo.server.storage.types.MethodParmDef.
genMethodParmDefs - An array of org.fcrepo.server.types.gen.MethodParmDef.
public static MethodParmDef convertGenMethodParmDefToMethodParmDef(MethodParmDef genMethodParmDef)
Converts an instance of org.fcrepo.server.storage.types.MethodParmDef into an instance of org.fcrepo.server.types.gen.MethodParmDef.
genMethodParmDef - An instance of org.fcrepo.server.storage.types.MethodParmDef.
public static MIMETypedStream convertMIMETypedStreamToGenMIMETypedStream(MIMETypedStream mimeTypedStream)
Converts an instance of org.fcrepo.server.storage.types.MIMETypedStream into an instance of org.fcrepo.server.types.gen.MIMETypedStream.
mimeTypedStream - An instance of org.fcrepo.server.storage.types.MIMETypedStream.
public static MIMETypedStream convertGenMIMETypedStreamToMIMETypedStream(MIMETypedStream genMIMETypedStream)
Converts an instance of org.fcrepo.server.types.gen.MIMETypedStream into an instance of org.fcrepo.server.storage.types.MIMETypedStream.
genMIMETypedStream - An instance of org.fcrepo.server.types.gen.MIMETypedStream.
public static ObjectMethodsDef[] convertGenObjectMethodsDefArrayToObjectMethodsDefArray(ObjectMethodsDef[] genObjectMethodDefs)
Converts an array of org.fcrepo.server.types.gen.ObjectMethodsDef into an array of org.fcrepo.server.storage.types.ObjectMethodsDef.
genObjectMethodDefs - An array of org.fcrepo.server.types.gen.ObjectMethodsDef.
public static ObjectMethodsDef convertGenObjectMethodsDefToObjectMethodsDef(ObjectMethodsDef genObjectMethodDef)
Converts an instance of org.fcrepo.server.types.gen.ObjectMethodsDef into an instance of org.fcrepo.server.storage.types.ObjectMethodsDef.
genObjectMethodDef - An instance of org.fcrepo.server.types.gen.ObjectMethodsDef.
public static ObjectMethodsDef[] convertObjectMethodsDefArrayToGenObjectMethodsDefArray(ObjectMethodsDef[] objectMethodDefs)
Converts an array of org.fcrepo.server.storage.types.ObjectMethodsDef into an array of org.fcrepo.server.types.gen.ObjectMethodsDef.
objectMethodDefs - An array of org.fcrepo.server.storage.types.ObjectMethodsDef.
public static ObjectMethodsDef convertObjectMethodsDefToGenObjectMethodsDef(ObjectMethodsDef objectMethodDef)
Converts an instance of org.fcrepo.server.storage.types.ObjectMethodsDef into an instance of org.fcrepo.server.types.gen.ObjectMethodsDef.
objectMethodDef - An instance of org.fcrepo.server.storage.types.ObjectMethodsDef.
public static ObjectProfile convertGenObjectProfileToObjectProfile(ObjectProfile genObjectProfile)
Converts an instance of org.fcrepo.server.types.gen.ObjectProfile into an instance of org.fcrepo.server.access.ObjectProfile.
genObjectProfile - An instance of org.fcrepo.server.types.gen.ObjectProfile.
public static ObjectProfile convertObjectProfileToGenObjectProfile(ObjectProfile objectProfile)
public static RepositoryInfo convertReposInfoToGenReposInfo(RepositoryInfo repositoryInfo)
public static Property[] convertGenPropertyArrayToPropertyArray(Property[] genProperties)
Converts an array of org.fcrepo.server.types.gen.Property into an array of org.fcrepo.server.storage.types.Property.
genProperties - An array of org.fcrepo.server.types.gen.Property.
public static Property convertGenPropertyToProperty(Property genProperty)
Converts an instance of org.fcrepo.server.types.gen.Property into an instance of org.fcrepo.server.storage.types.Property.
genProperty - An instance of org.fcrepo.server.types.gen.Property.
public static Property[] convertPropertyArrayToGenPropertyArray(Property[] properties)
Converts an array of org.fcrepo.server.storage.types.Property into an array of org.fcrepo.server.types.gen.Property.
properties - An array of org.fcrepo.server.storage.typesProperty.
public static Property convertPropertyToGenProperty(Property property)
Converts an instance of org.fcrepo.server.storage.types.Property into an instance of org.fcrepo.server.types.gen.Property.
property - An instance of org.fcrepo.server.storage.types.Property.
public static RelationshipTuple convertRelsTupleToGenRelsTuple(RelationshipTuple in)
public static DatastreamDef convertDatastreamDefToGenDatastreamDef(DatastreamDef in)
public static DatastreamDef convertGenDatastreamDefToDatastreamDef(DatastreamDef genDatastreamDef)
public static DatastreamDef[] convertDatastreamDefArrayToGenDatastreamDefArray(DatastreamDef[] dsDefs)
public static Validation convertValidationToGenValidation(Validation validation)
public static DatastreamDef[] convertGenDatastreamDefArrayToDatastreamDefArray(DatastreamDef[] genDatastreamDefs)
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||