|
||||||||||
| 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)
Add class binding. |
|
static String |
findNamespace(Class<?> metadata)
Find the namespace on class/package |
|
boolean |
isUseSchemaValidation()
Get the useSchemaValidation. |
|
boolean |
isUseValidation()
Get the useValidation. |
|
|
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)
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. |
|
| 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 output| Method Detail |
|---|
public void setFeature(String featureName,
boolean flag)
throws Exception
FeatureAware
setFeature in interface FeatureAwarefeatureName - 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 static void addClassBinding(String namespace,
Class<?> metadata)
namespace - the namespacemetadata - the metadatapublic static void removeClassBinding(String namespace)
namespace - the namespacepublic static String findNamespace(Class<?> metadata)
metadata - the metadata class
public T parse(InputSource source)
throws Exception
source - the source to parse
Exception - for any error
public <U> U parse(Class<U> expectedType,
InputSource source)
throws Exception
U - the expect typeexpectedType - the expected typesource - the source
Exception - for any error
public 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 error
public <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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||