|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.web.ProfileManagerBinding
public class ProfileManagerBinding
Code for reading and writing ProfileManager objects as XML
| Field Summary | |
|---|---|
static java.lang.String |
ZERO_PROFILE_VERSION
Default version of profile if it is not specified. |
| Constructor Summary | |
|---|---|
ProfileManagerBinding()
|
|
| Method Summary | |
|---|---|
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,
PkQueryIdUpgrader idUpgrader)
Read a ProfileManager from an XML stream Reader. |
static void |
unmarshal(java.io.Reader reader,
ProfileManager profileManager,
ObjectStoreWriter osw,
PkQueryIdUpgrader idUpgrader,
boolean abortOnError)
Read a ProfileManager from an XML stream Reader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ZERO_PROFILE_VERSION
| Constructor Detail |
|---|
public ProfileManagerBinding()
| Method Detail |
|---|
public static void marshal(ProfileManager profileManager,
javax.xml.stream.XMLStreamWriter writer)
profileManager - the ProfileManagerwriter - the XMLStreamWriter to write to
public static void unmarshal(java.io.Reader reader,
ProfileManager profileManager,
ObjectStoreWriter osw,
PkQueryIdUpgrader idUpgrader,
boolean abortOnError)
reader - contains the ProfileManager XMLprofileManager - the ProfileManager to store the unmarshalled Profiles toosw - ObjectStoreWriter used to resolve object ids and write bagsidUpgrader - the IdUpgrader to use to find objects in the new ObjectStore that
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).
public static void unmarshal(java.io.Reader reader,
ProfileManager profileManager,
ObjectStoreWriter osw,
PkQueryIdUpgrader idUpgrader)
reader - contains the ProfileManager XMLprofileManager - the ProfileManager to store the unmarshalled Profiles toosw - ObjectStoreWriter used to resolve object ids and write bagsidUpgrader - the IdUpgrader to use to find objects in the new ObjectStore that
correspond to object in old bags.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||