Package org.intermine.api.xml
Class ProfileManagerBinding
- java.lang.Object
-
- org.intermine.api.xml.ProfileManagerBinding
-
public final class ProfileManagerBinding extends java.lang.Object
Code for reading and writing ProfileManager objects as XML- Author:
- Kim Rutherford
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ZERO_PROFILE_VERSION
Default version of profile if it is not specified.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
marshal(ProfileManager profileManager, javax.xml.stream.XMLStreamWriter writer)
Convert the contents of a ProfileManager to XML and write the XML to the given writer.static void
unmarshal(java.io.Reader reader, ProfileManager profileManager, ObjectStoreWriter osw)
Read a ProfileManager from an XML stream Reader.static void
unmarshal(java.io.Reader reader, ProfileManager profileManager, ObjectStoreWriter osw, boolean abortOnError)
Read a ProfileManager from an XML stream Reader
-
-
-
Field Detail
-
ZERO_PROFILE_VERSION
public static final java.lang.String ZERO_PROFILE_VERSION
Default version of profile if it is not specified.- See Also:
- Constant Field Values
-
-
Method Detail
-
marshal
public static void marshal(ProfileManager profileManager, javax.xml.stream.XMLStreamWriter writer)
Convert the contents of a ProfileManager to XML and write the XML to the given writer.- Parameters:
profileManager
- the ProfileManagerwriter
- the XMLStreamWriter to write to
-
unmarshal
public static void unmarshal(java.io.Reader reader, ProfileManager profileManager, ObjectStoreWriter osw, boolean abortOnError)
Read a ProfileManager from an XML stream Reader- Parameters:
reader
- contains the ProfileManager XMLprofileManager
- the ProfileManager to store the unmarshalled Profiles toosw
- ObjectStoreWriter used to resolve object ids and write bags correspond to object in old bags.abortOnError
- if true, throw an exception if there is a problem. If false, log the problem and continue if possible (used by read-userprofile-xml).
-
unmarshal
public static void unmarshal(java.io.Reader reader, ProfileManager profileManager, ObjectStoreWriter osw)
Read a ProfileManager from an XML stream Reader. If there is a problem, throw an exception.- Parameters:
reader
- contains the ProfileManager XMLprofileManager
- the ProfileManager to store the unmarshalled Profiles toosw
- ObjectStoreWriter used to resolve object ids and write bags correspond to object in old bags.
-
-