public class JBossXBBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_SET_PARENT_OVERRIDE_HANDLER
system property name to use for initialization
General purpose handlers in setParent do a map
|
static String |
REPEATABLE_PARTICLE_HANDLERS
system property name to use for initialization
Used for collection or array properties.
|
static String |
SEQUENCES_REQUIRE_PROP_ORDER
system property name to use for initialization
whether to enforce the presence of propOrder in XmlType annotation when content of the type is bound to a sequence
|
static String |
USE_UNORDERED_SEQUENCE_PROPERTY
system property name to use for initialization
whether to use unordered sequences as the default sequence type during binding
|
Constructor and Description |
---|
JBossXBBuilder() |
Modifier and Type | Method and Description |
---|---|
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 |
isElementSetParentOverrideHandler() |
static boolean |
isRepeatableParticleHandlers() |
static boolean |
isSequencesRequirePropOrder() |
static boolean |
isUseUnorderedSequence() |
static <T> SchemaBindingInitializer |
newInitializer(Class<T> root)
Create a new schema binding initializer
|
static void |
setElementSetParentOverrideHandler(boolean elementSetParentHandler) |
static void |
setRepeatableParticleHandlers(boolean repeatableParticleHandlers) |
static void |
setSequencesRequirePropOrder(boolean sequencesRequirePropOrder) |
static void |
setUseUnorderedSequence(boolean unorderedSequences) |
public static final String USE_UNORDERED_SEQUENCE_PROPERTY
public static final String SEQUENCES_REQUIRE_PROP_ORDER
public static final String ELEMENT_SET_PARENT_OVERRIDE_HANDLER
public static final String REPEATABLE_PARTICLE_HANDLERS
public static boolean isUseUnorderedSequence()
public static void setUseUnorderedSequence(boolean unorderedSequences)
public static boolean isSequencesRequirePropOrder()
public static void setSequencesRequirePropOrder(boolean sequencesRequirePropOrder)
public static boolean isElementSetParentOverrideHandler()
public static void setElementSetParentOverrideHandler(boolean elementSetParentHandler)
public static boolean isRepeatableParticleHandlers()
public static void setRepeatableParticleHandlers(boolean repeatableParticleHandlers)
public static <T> SchemaBindingInitializer newInitializer(Class<T> root)
T
- the root typeroot
- the root classIllegalArgumentException
- 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 rootIllegalArgumentException
- for a null schema binding or rootpublic static SchemaBinding build(Class<?> root)
root
- the rootIllegalArgumentException
- 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 linepublic static String generateXMLNameFromJavaName(String string, boolean dash, boolean ignoreLowerLine)
string
- the java namedash
- whether to insert dashes to seperate wordsignoreLowerLine
- TODO ignore the lower lineCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.