org.richfaces.cdk.xmlconfig
Class JAXBBinding

java.lang.Object
  extended by org.richfaces.cdk.xmlconfig.JAXBBinding
All Implemented Interfaces:
JAXB

public class JAXBBinding
extends java.lang.Object
implements JAXB

Author:
asmirnov@exadel.com

Field Summary
static com.google.common.collect.ImmutableSet<java.lang.String> IGNORE_PROPERTIES
           
 
Constructor Summary
JAXBBinding()
           
 
Method Summary
static boolean isCollections(java.lang.Class<?> targetType, java.lang.Object propertyValue)
           
<T> void
marshal(javax.xml.transform.Result output, java.lang.String schemaLocation, T model)
           
<T> void
marshal(java.io.Writer output, java.lang.String schemaLocation, T model)
           
<T> T
unmarshal(java.io.File file, java.lang.String schemaLocation, java.lang.Class<T> bindClass)
           
<T> T
unmarshal(java.lang.String url, java.lang.String schemaLocation, java.lang.Class<T> bindClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORE_PROPERTIES

public static final com.google.common.collect.ImmutableSet<java.lang.String> IGNORE_PROPERTIES
Constructor Detail

JAXBBinding

public JAXBBinding()
Method Detail

unmarshal

public <T> T unmarshal(java.io.File file,
                       java.lang.String schemaLocation,
                       java.lang.Class<T> bindClass)
            throws CdkException,
                   java.io.FileNotFoundException
Specified by:
unmarshal in interface JAXB
Throws:
CdkException
java.io.FileNotFoundException

unmarshal

public <T> T unmarshal(java.lang.String url,
                       java.lang.String schemaLocation,
                       java.lang.Class<T> bindClass)
            throws CdkException,
                   java.io.FileNotFoundException
Specified by:
unmarshal in interface JAXB
Throws:
CdkException
java.io.FileNotFoundException

marshal

public <T> void marshal(java.io.Writer output,
                        java.lang.String schemaLocation,
                        T model)
             throws CdkException
Specified by:
marshal in interface JAXB
Throws:
CdkException

marshal

public <T> void marshal(javax.xml.transform.Result output,
                        java.lang.String schemaLocation,
                        T model)
             throws CdkException
Specified by:
marshal in interface JAXB
Throws:
CdkException

isCollections

public static boolean isCollections(java.lang.Class<?> targetType,
                                    java.lang.Object propertyValue)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.