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 |
---|---|
com.saperion.ngc.favorites.xml.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(com.saperion.ngc.favorites.xml.Favorites favorites)
Converts the given favorites java object to xml binding.
|
com.saperion.rmi.SaContentStream |
marshalToStream(com.saperion.ngc.favorites.xml.Favorites favorites)
Converts the given favorites java object to xml binding.
|
com.saperion.ngc.favorites.xml.Favorites |
unmarshal(InputStream stream)
Converts the given favorites xml stream to java binding.
|
com.saperion.ngc.favorites.xml.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 com.saperion.ngc.favorites.xml.Favorites unmarshal(String xml) throws JAXBException
xml
- the favorites xml stringFavorites
element rootJAXBException
- JAXBExceptionpublic com.saperion.ngc.favorites.xml.Favorites unmarshal(InputStream stream) throws JAXBException
stream
- the favorites xml streamFavorites
element rootJAXBException
- JAXBExceptionpublic com.saperion.ngc.favorites.xml.Favorites getAdaptedFavorites(InputStream stream) throws JAXBException, FavoriteReadException
stream
- the favorites xml streamFavorites
element rootJAXBException
- JAXBExceptionFavoriteReadException
- favorite settings could not be readpublic String marshal(com.saperion.ngc.favorites.xml.Favorites favorites) throws JAXBException
favorites
- Favorites
element rootJAXBException
- JAXBExceptionpublic com.saperion.rmi.SaContentStream marshalToStream(com.saperion.ngc.favorites.xml.Favorites favorites) throws JAXBException
favorites
- Favorites
element rootJAXBException
- JAXBExceptionCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.