public enum FavoriteXmlHandler extends Enum<FavoriteXmlHandler>
| Enum Constant and Description |
|---|
INSTANCE
singleton instance.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
FAVORITES_XML
favorites xml file name.
|
| Modifier and Type | Method and Description |
|---|---|
Favorites |
getAdaptedFavorites(InputStream stream)
Converts the given favorites xml stream to java binding and adds additional information
(converts the string data to the real data types).
|
String |
marshal(Favorites favorites)
Converts the given favorites java object to xml binding.
|
com.saperion.rmi.SaContentStream |
marshalToStream(Favorites favorites)
Converts the given favorites java object to xml binding.
|
Favorites |
unmarshal(InputStream stream)
Converts the given favorites xml stream to java binding.
|
Favorites |
unmarshal(String xml)
Converts the given favorites xml string to java binding.
|
static FavoriteXmlHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FavoriteXmlHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FavoriteXmlHandler INSTANCE
public static final String FAVORITES_XML
public static FavoriteXmlHandler[] values()
for (FavoriteXmlHandler c : FavoriteXmlHandler.values()) System.out.println(c);
public static FavoriteXmlHandler valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Favorites unmarshal(String xml) throws JAXBException
xml - the favorites xml stringFavorites element rootJAXBException - JAXBExceptionpublic Favorites unmarshal(InputStream stream) throws JAXBException
stream - the favorites xml streamFavorites element rootJAXBException - JAXBExceptionpublic Favorites getAdaptedFavorites(InputStream stream) throws JAXBException, FavoriteReadException
stream - the favorites xml streamFavorites element rootJAXBException - JAXBExceptionFavoriteReadException - favorite settings could not be readpublic String marshal(Favorites favorites) throws JAXBException
favorites - Favorites element rootJAXBException - JAXBExceptionpublic com.saperion.rmi.SaContentStream marshalToStream(Favorites favorites) throws JAXBException
favorites - Favorites element rootJAXBException - JAXBExceptionCopyright © 2016 SAPERION AG. All rights reserved.