public class JBossXBNoSchemaBuilder extends Object
Constructor and Description |
---|
JBossXBNoSchemaBuilder(org.jboss.reflect.spi.ClassInfo root)
Create a new JBossXBNoSchemaBuilder.
|
Modifier and Type | Method and Description |
---|---|
void |
adaptType(TypeBinding adaptedType,
JBossXmlAdaptedType annotation)
Generate an adapted type
|
SchemaBinding |
build()
Build the schema
|
void |
build(SchemaBinding schema)
Builds schema binding components from the class and adds them to the SchemaBinding
passed in the argument.
|
protected void |
createRootElementBinding(org.jboss.reflect.spi.TypeInfo typeInfo)
Create a root element binding
|
protected void |
createRootElements()
Create the root elements
|
TypeBinding |
generateAdaptedType(JBossXmlAdaptedType adaptedType)
Generate an adapted type
|
TypeBinding |
generateAnnotation(org.jboss.reflect.spi.ClassInfo typeInfo)
Generate an annotation type binding
|
TypeBinding |
generateArray(org.jboss.reflect.spi.ArrayInfo typeInfo)
Generate an array type binding
|
TypeBinding |
generateBean(org.jboss.reflect.spi.ClassInfo typeInfo)
Generate a bean type binding
|
TypeBinding |
generateBean(org.jboss.reflect.spi.ClassInfo typeInfo,
boolean root)
Generate a bean type binding
|
TypeBinding |
generateCollection(org.jboss.reflect.spi.ClassInfo typeInfo)
Generate a collection type binding
|
TypeBinding |
generateEnum(org.jboss.reflect.spi.EnumInfo typeInfo)
Generate an enum type binding
|
TypeBinding |
generateMap(org.jboss.reflect.spi.ClassInfo typeInfo)
Generate a map type binding
|
TypeBinding |
generateType(org.jboss.reflect.spi.ClassInfo typeInfo,
boolean root)
Generate a bean type binding
|
protected TypeBinding |
generateTypeBinding(org.jboss.reflect.spi.TypeInfo typeInfo)
Generate a type binding
|
protected QName |
generateXmlName(String localName,
XmlNsForm form,
String namespace,
String name)
Create a new xml name
|
protected QName |
generateXmlName(org.jboss.reflect.spi.TypeInfo typeInfo,
XmlNsForm form,
String namespace,
String name)
Create a new xml name
|
TypeBinding |
getSimpleType(org.jboss.reflect.spi.TypeInfo typeInfo)
Get the simple type
|
protected void |
initBuilder()
Initialise the builder
|
boolean |
isElementSetParentOverrideHandler() |
boolean |
isRepeatableParticleHandlers() |
boolean |
isSequenceRequirePropOrder() |
TypeBinding |
isSimpleType(org.jboss.reflect.spi.TypeInfo typeInfo)
Check whether this is a simple type
|
boolean |
isUseUnorderedSequence() |
protected void |
process(org.jboss.reflect.spi.TypeInfo typeInfo)
Process a type
|
protected TypeBinding |
resolveTypeBinding(org.jboss.reflect.spi.TypeInfo typeInfo)
Resolve a type binding
|
void |
setElementSetParentOverrideHandler(boolean elementSetParentHandler) |
void |
setRepeatableParticleHandlers(boolean repeatableParticleHandlers) |
void |
setSequencesRequirePropOrder(boolean sequencesRequirePropOrder) |
void |
setUseUnorderedSequence(boolean useUnorderedSequence) |
public JBossXBNoSchemaBuilder(org.jboss.reflect.spi.ClassInfo root)
root
- the root class infoIllegalArgumentException
- for a null root class infopublic boolean isUseUnorderedSequence()
public void setUseUnorderedSequence(boolean useUnorderedSequence)
public boolean isSequenceRequirePropOrder()
public void setSequencesRequirePropOrder(boolean sequencesRequirePropOrder)
public boolean isElementSetParentOverrideHandler()
public void setElementSetParentOverrideHandler(boolean elementSetParentHandler)
public boolean isRepeatableParticleHandlers()
public void setRepeatableParticleHandlers(boolean repeatableParticleHandlers)
public SchemaBinding build()
public void build(SchemaBinding schema)
schema
- SchemaBinding to add the built binding components toprotected void initBuilder()
protected void createRootElements()
protected void createRootElementBinding(org.jboss.reflect.spi.TypeInfo typeInfo)
typeInfo
- the type infoprotected void process(org.jboss.reflect.spi.TypeInfo typeInfo)
typeInfo
- the type infoprotected TypeBinding resolveTypeBinding(org.jboss.reflect.spi.TypeInfo typeInfo)
typeInfo
- the type infoprotected TypeBinding generateTypeBinding(org.jboss.reflect.spi.TypeInfo typeInfo)
typeInfo
- the type infopublic TypeBinding generateEnum(org.jboss.reflect.spi.EnumInfo typeInfo)
typeInfo
- the type infopublic TypeBinding generateAdaptedType(JBossXmlAdaptedType adaptedType)
adaptedType
- the information about the adaptionpublic void adaptType(TypeBinding adaptedType, JBossXmlAdaptedType annotation)
adaptedType
- the information about the adaptionpublic TypeBinding generateAnnotation(org.jboss.reflect.spi.ClassInfo typeInfo)
typeInfo
- the type infopublic TypeBinding generateArray(org.jboss.reflect.spi.ArrayInfo typeInfo)
typeInfo
- the type infopublic TypeBinding generateCollection(org.jboss.reflect.spi.ClassInfo typeInfo)
typeInfo
- the type infopublic TypeBinding generateMap(org.jboss.reflect.spi.ClassInfo typeInfo)
typeInfo
- the type infopublic TypeBinding isSimpleType(org.jboss.reflect.spi.TypeInfo typeInfo)
typeInfo
- the type infopublic TypeBinding getSimpleType(org.jboss.reflect.spi.TypeInfo typeInfo)
typeInfo
- the type infoIllegalStateException
- if the type is not boundpublic TypeBinding generateBean(org.jboss.reflect.spi.ClassInfo typeInfo)
typeInfo
- the type infopublic TypeBinding generateBean(org.jboss.reflect.spi.ClassInfo typeInfo, boolean root)
typeInfo
- the type inforoot
- whether to force a root typepublic TypeBinding generateType(org.jboss.reflect.spi.ClassInfo typeInfo, boolean root)
typeInfo
- the type inforoot
- whether to force a root typeprotected QName generateXmlName(org.jboss.reflect.spi.TypeInfo typeInfo, XmlNsForm form, String namespace, String name)
typeInfo
- the type infoform
- the namespace formnamespace
- the override namespacename
- the override nameCopyright © 2013 JBoss by Red Hat. All rights reserved.