yarfraw.utils
Class JAXBUtils

java.lang.Object
  extended by yarfraw.utils.JAXBUtils

public class JAXBUtils
extends Object


Field Summary
static String PREFIX_MAPPER_PROPERTY_NAME
           
 
Constructor Summary
JAXBUtils()
           
 
Method Summary
static JAXBContext getContext(FeedFormat format)
          Gets the JAXBContext based on the input FeedFormat
static com.sun.xml.bind.marshaller.NamespacePrefixMapper getNamespacePrefixMapper(FeedFormat format)
          Gets the namespace prefix map for the marshaller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX_MAPPER_PROPERTY_NAME

public static final String PREFIX_MAPPER_PROPERTY_NAME
See Also:
Constant Field Values
Constructor Detail

JAXBUtils

public JAXBUtils()
Method Detail

getNamespacePrefixMapper

public static com.sun.xml.bind.marshaller.NamespacePrefixMapper getNamespacePrefixMapper(FeedFormat format)
Gets the namespace prefix map for the marshaller.

Parameters:
format - a FeedFormat
Returns:
a NamespacePrefixMapper object for the Marshaller

getContext

public static JAXBContext getContext(FeedFormat format)
                              throws JAXBException
Gets the JAXBContext based on the input FeedFormat

Parameters:
format -
Returns:
Throws:
JAXBException


Copyright © 2008. All Rights Reserved.