|
JBoss XML Binding 2.0.3.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.xb.util.JBossXBHelper<T>
T
- the expected typepublic class JBossXBHelper<T>
JBossXB deployer helper.
Constructor Summary | |
---|---|
JBossXBHelper(Class<T> output)
Create a new SchemaResolverDeployer. |
Method Summary | ||
---|---|---|
static void |
addClassBinding(String namespace,
Class<?> metadata)
Deprecated. Use addTypeBinding(String, Class) |
|
void |
addTypeBinding(String namespace,
Class<?> metadata)
Add class binding. |
|
static String |
findNamespace(Class<?> metadata)
Find the namespace on class/package |
|
protected MutableSchemaResolver |
getResolver()
Get the schema resolver. |
|
boolean |
isUseSchemaValidation()
Get the useSchemaValidation. |
|
boolean |
isUseValidation()
Get the useValidation. |
|
boolean |
isWarnOnParserErrors()
This property controls whether the (underlying) parser errors should be logged as warnings or should they terminate parsing with errors. |
|
|
parse(Class<U> expectedType,
InputSource source)
Parse the file to create metadata instance. |
|
|
parse(Class<U> expectedType,
InputSource source,
U root,
ObjectModelFactory omf)
Parse the file using object model factory. |
|
T |
parse(InputSource source)
Parse file to output metadata. |
|
T |
parse(InputSource source,
T root,
ObjectModelFactory omf)
Parse the file using object model factory. |
|
static void |
removeClassBinding(String namespace)
Deprecated. Use removeTypeBinding(String) |
|
void |
removeTypeBinding(String namespace)
Remove class binding. |
|
void |
setFeature(String featureName,
boolean flag)
Apply feature. |
|
void |
setUseSchemaValidation(boolean useSchemaValidation)
Set the useSchemaValidation. |
|
void |
setUseValidation(boolean useValidation)
Set the useValidation. |
|
void |
setWarnOnParserErrors(boolean value)
This property controls whether the (underlying) parser errors should be logged as warnings or should they terminate parsing with errors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JBossXBHelper(Class<T> output)
output
- the output
IllegalArgumentException
- for a null outputMethod Detail |
---|
public void setFeature(String featureName, boolean flag) throws Exception
FeatureAware
setFeature
in interface FeatureAware
featureName
- the feature nameflag
- the feature flag
Exception
- for any errorpublic boolean isUseSchemaValidation()
public void setUseSchemaValidation(boolean useSchemaValidation)
useSchemaValidation
- the useSchemaValidation.public boolean isUseValidation()
public void setUseValidation(boolean useValidation)
useValidation
- the useValidation.public boolean isWarnOnParserErrors()
public void setWarnOnParserErrors(boolean value)
public static void addClassBinding(String namespace, Class<?> metadata)
addTypeBinding(String, Class)
namespace
- the namespacemetadata
- the metadatapublic static void removeClassBinding(String namespace)
removeTypeBinding(String)
namespace
- the namespacepublic void addTypeBinding(String namespace, Class<?> metadata)
namespace
- the namespacemetadata
- the metadatapublic void removeTypeBinding(String namespace)
namespace
- the namespaceprotected MutableSchemaResolver getResolver()
public static String findNamespace(Class<?> metadata)
metadata
- the metadata class
public T parse(InputSource source) throws Exception
source
- the source to parse
Exception
- for any errorpublic <U> U parse(Class<U> expectedType, InputSource source) throws Exception
U
- the expect typeexpectedType
- the expected typesource
- the source
Exception
- for any errorpublic T parse(InputSource source, T root, ObjectModelFactory omf) throws Exception
source
- the source to parseroot
- the previous rootomf
- the object model factory
Exception
- for any errorpublic <U> U parse(Class<U> expectedType, InputSource source, U root, ObjectModelFactory omf) throws Exception
U
- the expect typeexpectedType
- the expected typesource
- the source to parseroot
- the previous rootomf
- the object model factory
Exception
- for any error
|
JBoss XML Binding 2.0.3.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |