|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfedora.server.utilities.TypeUtility
Title: TypeUtility.java
Description: A utility class for converting back and forth from the internal Fedora type classes in fedora.server.storage.types and the generated type classes produced by the wsdl2java emitter in fedora.server.types.gen.
-----------------------------------------------------------------------------License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Constructor Summary | |
TypeUtility()
|
|
| Method Summary | |
static DatastreamDef[] |
convertDatastreamDefArrayToGenDatastreamDefArray(DatastreamDef[] dsDefs)
|
static DatastreamDef |
convertDatastreamDefToGenDatastreamDef(DatastreamDef in)
|
static Datastream |
convertDatastreamToGenDatastream(Datastream in)
|
static Disseminator |
convertDisseminatorToGenDisseminator(Disseminator in)
|
static DatastreamBinding[] |
convertDSBindingArrayToGenDatastreamBindingArray(DSBinding[] dsBindings)
|
static DatastreamBindingMap |
convertDSBindingMapToGenDatastreamBindingMap(DSBindingMap in)
|
static DatastreamBinding |
convertDSBindingToGenDatastreamBinding(DSBinding in)
|
static FieldSearchResult |
convertFieldSearchResultToGenFieldSearchResult(FieldSearchResult result)
|
static java.util.List |
convertGenConditionArrayToSearchConditionList(Condition[] genConditions)
|
static DSBinding[] |
convertGenDatastreamBindingArrayToDSBindingArray(DatastreamBinding[] genDatastreamBindings)
|
static DSBindingMap |
convertGenDatastreamBindingMapToDSBindingMap(DatastreamBindingMap genDatastreamBindingMap)
|
static DSBinding |
convertGenDatastreamBindingToDSBinding(DatastreamBinding genDatastreamBinding)
|
static DatastreamDef[] |
convertGenDatastreamDefArrayToDatastreamDefArray(DatastreamDef[] genDatastreamDefs)
|
static DatastreamDef |
convertGenDatastreamDefToDatastreamDef(DatastreamDef genDatastreamDef)
|
static FieldSearchQuery |
convertGenFieldSearchQueryToFieldSearchQuery(FieldSearchQuery gen)
|
static MethodParmDef[] |
convertGenMethodParmDefArrayToMethodParmDefArray(MethodParmDef[] genMethodParmDefs)
Converts an array of fedora.server.types.gen.MethodParmDef into an array of fedora.server.storage.types.MethodParmDef. |
static MethodParmDef |
convertGenMethodParmDefToMethodParmDef(MethodParmDef genMethodParmDef)
Converts an instance of fedora.server.storage.types.MethodParmDef into an instance of fedora.server.types.gen.MethodParmDef. |
static MIMETypedStream |
convertGenMIMETypedStreamToMIMETypedStream(MIMETypedStream genMIMETypedStream)
Converts an instance of fedora.server.types.gen.MIMETypedStream into an instance of fedora.server.storage.types.MIMETypedStream. |
static ObjectMethodsDef[] |
convertGenObjectMethodsDefArrayToObjectMethodsDefArray(ObjectMethodsDef[] genObjectMethodDefs)
Converts an array of fedora.server.types.gen.ObjectMethodsDef into an array of fedora.server.storage.types.ObjectMethodsDef. |
static ObjectMethodsDef |
convertGenObjectMethodsDefToObjectMethodsDef(ObjectMethodsDef genObjectMethodDef)
Converts an instance of fedora.server.types.gen.ObjectMethodsDef into an instance of fedora.server.storage.types.ObjectMethodsDef. |
static ObjectProfile |
convertGenObjectProfileToObjectProfile(ObjectProfile genObjectProfile)
Converts an instance of fedora.server.types.gen.ObjectProfile into an instance of fedora.server.access.ObjectProfile. |
static Property[] |
convertGenPropertyArrayToPropertyArray(Property[] genProperties)
Converts an array of fedora.server.types.gen.Property into an array of fedora.server.storage.types.Property. |
static Property |
convertGenPropertyToProperty(Property genProperty)
Converts an instance of fedora.server.types.gen.Property into an instance of fedora.server.storage.types.Property. |
static MethodParmDef[] |
convertMethodParmDefArrayToGenMethodParmDefArray(MethodParmDef[] methodParmDefs)
Converts an array of fedora.server.storage.types.MethodParmDef into an array of fedora.server.types.gen.MethodParmDef. |
static MethodParmDef |
convertMethodParmDefToGenMethodParmDef(MethodParmDef methodParmDef)
Converts an instance of fedora.server.storage.types.MethodParmDef into an instance of fedora.server.types.gen.MethodParmDef. |
static MIMETypedStream |
convertMIMETypedStreamToGenMIMETypedStream(MIMETypedStream mimeTypedStream)
Converts an instance of fedora.server.storage.types.MIMETypedStream into an instance of fedora.server.types.gen.MIMETypedStream. |
static ObjectMethodsDef[] |
convertObjectMethodsDefArrayToGenObjectMethodsDefArray(ObjectMethodsDef[] objectMethodDefs)
Converts an array of fedora.server.storage.types.ObjectMethodsDef into an array of fedora.server.types.gen.ObjectMethodsDef. |
static ObjectMethodsDef |
convertObjectMethodsDefToGenObjectMethodsDef(ObjectMethodsDef objectMethodDef)
Converts an instance of fedora.server.storage.types.ObjectMethodsDef into an instance of fedora.server.types.gen.ObjectMethodsDef. |
static ObjectProfile |
convertObjectProfileToGenObjectProfile(ObjectProfile objectProfile)
|
static Property[] |
convertPropertyArrayToGenPropertyArray(Property[] properties)
Converts an array of fedora.server.storage.types.Property into an array of fedora.server.types.gen.Property. |
static Property |
convertPropertyToGenProperty(Property property)
Converts an instance of fedora.server.storage.types.Property into an instance of fedora.server.types.gen.Property. |
static RepositoryInfo |
convertReposInfoToGenReposInfo(RepositoryInfo repositoryInfo)
|
static ObjectFields[] |
convertSearchObjectFieldsListToGenObjectFieldsArray(java.util.List sfList)
|
static void |
main(java.lang.String[] args)
|
static java.lang.String[] |
toStringArray(java.util.List 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 java.util.List convertGenConditionArrayToSearchConditionList(Condition[] genConditions)
throws InvalidOperatorException,
QueryParseException
InvalidOperatorException
QueryParseExceptionpublic static ObjectFields[] convertSearchObjectFieldsListToGenObjectFieldsArray(java.util.List sfList)
public static java.lang.String[] toStringArray(java.util.List l)
public static MethodParmDef[] convertMethodParmDefArrayToGenMethodParmDefArray(MethodParmDef[] methodParmDefs)
Converts an array of fedora.server.storage.types.MethodParmDef into an array of fedora.server.types.gen.MethodParmDef.
methodParmDefs - An array of fedora.server.storage.types.MethodParmDef.
public static MethodParmDef convertMethodParmDefToGenMethodParmDef(MethodParmDef methodParmDef)
Converts an instance of fedora.server.storage.types.MethodParmDef into an instance of fedora.server.types.gen.MethodParmDef.
methodParmDef - An instance of
fedora.server.storage.types.MethodParmDef.
public static MethodParmDef[] convertGenMethodParmDefArrayToMethodParmDefArray(MethodParmDef[] genMethodParmDefs)
Converts an array of fedora.server.types.gen.MethodParmDef into an array of fedora.server.storage.types.MethodParmDef.
genMethodParmDefs - An array of fedora.server.types.gen.MethodParmDef.
public static MethodParmDef convertGenMethodParmDefToMethodParmDef(MethodParmDef genMethodParmDef)
Converts an instance of fedora.server.storage.types.MethodParmDef into an instance of fedora.server.types.gen.MethodParmDef.
genMethodParmDef - An instance of
fedora.server.storage.types.MethodParmDef.
public static MIMETypedStream convertMIMETypedStreamToGenMIMETypedStream(MIMETypedStream mimeTypedStream)
Converts an instance of fedora.server.storage.types.MIMETypedStream into an instance of fedora.server.types.gen.MIMETypedStream.
mimeTypedStream - An instance of
fedora.server.storage.types.MIMETypedStream.
public static MIMETypedStream convertGenMIMETypedStreamToMIMETypedStream(MIMETypedStream genMIMETypedStream)
Converts an instance of fedora.server.types.gen.MIMETypedStream into an instance of fedora.server.storage.types.MIMETypedStream.
genMIMETypedStream - An instance of
fedora.server.types.gen.MIMETypedStream.
public static ObjectMethodsDef[] convertGenObjectMethodsDefArrayToObjectMethodsDefArray(ObjectMethodsDef[] genObjectMethodDefs)
Converts an array of fedora.server.types.gen.ObjectMethodsDef into an array of fedora.server.storage.types.ObjectMethodsDef.
genObjectMethodDefs - An array of
fedora.server.types.gen.ObjectMethodsDef.
public static ObjectMethodsDef convertGenObjectMethodsDefToObjectMethodsDef(ObjectMethodsDef genObjectMethodDef)
Converts an instance of fedora.server.types.gen.ObjectMethodsDef into an instance of fedora.server.storage.types.ObjectMethodsDef.
genObjectMethodDef - An instance of
fedora.server.types.gen.ObjectMethodsDef.
public static ObjectMethodsDef[] convertObjectMethodsDefArrayToGenObjectMethodsDefArray(ObjectMethodsDef[] objectMethodDefs)
Converts an array of fedora.server.storage.types.ObjectMethodsDef into an array of fedora.server.types.gen.ObjectMethodsDef.
objectMethodDefs - An array of
fedora.server.storage.types.ObjectMethodsDef.
public static ObjectMethodsDef convertObjectMethodsDefToGenObjectMethodsDef(ObjectMethodsDef objectMethodDef)
Converts an instance of fedora.server.storage.types.ObjectMethodsDef into an instance of fedora.server.types.gen.ObjectMethodsDef.
objectMethodDef - An instance of
fedora.server.storage.types.ObjectMethodsDef.
public static ObjectProfile convertGenObjectProfileToObjectProfile(ObjectProfile genObjectProfile)
Converts an instance of fedora.server.types.gen.ObjectProfile into an instance of fedora.server.access.ObjectProfile.
genObjectProfile - An instance of
fedora.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 fedora.server.types.gen.Property into an array of fedora.server.storage.types.Property.
genProperties - An array of fedora.server.types.gen.Property.
public static Property convertGenPropertyToProperty(Property genProperty)
Converts an instance of fedora.server.types.gen.Property into an instance of fedora.server.storage.types.Property.
genProperty - An instance of fedora.server.types.gen.Property.
public static Property[] convertPropertyArrayToGenPropertyArray(Property[] properties)
Converts an array of fedora.server.storage.types.Property into an array of fedora.server.types.gen.Property.
properties - An array of fedora.server.storage.typesProperty.
public static Property convertPropertyToGenProperty(Property property)
Converts an instance of fedora.server.storage.types.Property into an instance of fedora.server.types.gen.Property.
property - An instance of fedora.server.storage.types.Property.
public static Disseminator convertDisseminatorToGenDisseminator(Disseminator in)
public static DatastreamDef convertDatastreamDefToGenDatastreamDef(DatastreamDef in)
public static DatastreamDef convertGenDatastreamDefToDatastreamDef(DatastreamDef genDatastreamDef)
public static DatastreamBindingMap convertDSBindingMapToGenDatastreamBindingMap(DSBindingMap in)
public static DSBindingMap convertGenDatastreamBindingMapToDSBindingMap(DatastreamBindingMap genDatastreamBindingMap)
public static DatastreamBinding convertDSBindingToGenDatastreamBinding(DSBinding in)
public static DSBinding convertGenDatastreamBindingToDSBinding(DatastreamBinding genDatastreamBinding)
public static DatastreamBinding[] convertDSBindingArrayToGenDatastreamBindingArray(DSBinding[] dsBindings)
public static DatastreamDef[] convertDatastreamDefArrayToGenDatastreamDefArray(DatastreamDef[] dsDefs)
public static DSBinding[] convertGenDatastreamBindingArrayToDSBindingArray(DatastreamBinding[] genDatastreamBindings)
public static DatastreamDef[] convertGenDatastreamDefArrayToDatastreamDefArray(DatastreamDef[] genDatastreamDefs)
public static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||