|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.xb.builder.JBossXBBuilder
public class JBossXBBuilder
JBossXBBuilder. Builds instances SchemaBinding for passed in classes by parsing binding annotations. By default, built instances of SchemaBinding are cached in the instances of ClassInfo. There are methods though that allow to re-build the cached bindings. Whether SequenceBinding or UnorderedSequenceBinding is used as the default for sequences is controlled by static property useUnorderedSequence. The value can be set by calling static method setUseUnorderedSequence(boolean value) or by setting system property xb.builder.useUnorderedSequence to true or false. The initialization fro the system property happens once in the static initializer.
Field Summary | |
---|---|
static String |
SEQUENCES_REQUIRE_PROP_ORDER
system property name to use for initialization |
static String |
USE_UNORDERED_SEQUENCE_PROPERTY
system property name to use for initialization |
Constructor Summary | |
---|---|
JBossXBBuilder()
|
Method Summary | ||
---|---|---|
static SchemaBinding |
build(boolean rebuildFirst,
Class<?>... roots)
Builds a schema binding from an array of classes. |
|
static SchemaBinding |
build(Class<?>... roots)
Calls build(false, roots). |
|
static SchemaBinding |
build(Class<?> root)
Build the SchemaBinding from the class |
|
static SchemaBinding |
build(Class<?> root,
boolean rebuild)
Build the SchemaBinding from the class. |
|
static void |
build(SchemaBinding schemaBinding,
Class<?> root)
Build from a preparsed schema binding. |
|
static String |
generateXMLNameFromClassName(org.jboss.reflect.spi.TypeInfo typeInfo,
boolean ignoreLowerLine)
Generate an xml name from a clazz name |
|
static String |
generateXMLNameFromJavaName(String string,
boolean dash,
boolean ignoreLowerLine)
Generate an xml name from a java name |
|
protected static void |
initSchema(SchemaBinding schemaBinding,
org.jboss.reflect.spi.ClassInfo classInfo)
Initialize the schema binding from the root |
|
static boolean |
isSequencesRequirePropOrder()
|
|
static boolean |
isUseUnorderedSequence()
|
|
static
|
newInitializer(Class<T> root)
Create a new schema binding initializer |
|
static void |
setSequencesRequirePropOrder(boolean sequencesRequirePropOrder)
|
|
static void |
setUseUnorderedSequence(boolean unorderedSequences)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String USE_UNORDERED_SEQUENCE_PROPERTY
public static final String SEQUENCES_REQUIRE_PROP_ORDER
Constructor Detail |
---|
public JBossXBBuilder()
Method Detail |
---|
public static boolean isUseUnorderedSequence()
public static void setUseUnorderedSequence(boolean unorderedSequences)
public static boolean isSequencesRequirePropOrder()
public static void setSequencesRequirePropOrder(boolean sequencesRequirePropOrder)
public static <T> SchemaBindingInitializer newInitializer(Class<T> root)
T
- the root typeroot
- the root class
IllegalArgumentException
- for a null rootpublic static SchemaBinding build(Class<?>... roots)
roots
-
public static SchemaBinding build(boolean rebuildFirst, Class<?>... roots)
rebuildFirst
- roots
-
public static void build(SchemaBinding schemaBinding, Class<?> root)
schemaBinding
- the schema bindingroot
- the root
IllegalArgumentException
- for a null schema binding or rootpublic static SchemaBinding build(Class<?> root)
root
- the root
IllegalArgumentException
- for a null rootpublic static SchemaBinding build(Class<?> root, boolean rebuild)
root
- rebuild
-
protected static void initSchema(SchemaBinding schemaBinding, org.jboss.reflect.spi.ClassInfo classInfo)
schemaBinding
- the schema bindingclassInfo
- the classInfopublic static String generateXMLNameFromClassName(org.jboss.reflect.spi.TypeInfo typeInfo, boolean ignoreLowerLine)
typeInfo
- the typeInfoignoreLowerLine
- whether to ignore the lower line
public static String generateXMLNameFromJavaName(String string, boolean dash, boolean ignoreLowerLine)
string
- the java namedash
- whether to insert dashes to seperate wordsignoreLowerLine
- TODO ignore the lower line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |