|
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.builder.JBossXBNoSchemaBuilder
public class JBossXBNoSchemaBuilder
JBossXBNoSchemaBuilder.
Constructor Summary | |
---|---|
JBossXBNoSchemaBuilder(org.jboss.reflect.spi.ClassInfo root)
Create a new JBossXBNoSchemaBuilder. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JBossXBNoSchemaBuilder(org.jboss.reflect.spi.ClassInfo root)
root
- the root class info
IllegalArgumentException
- for a null root class infoMethod Detail |
---|
public 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 info
protected TypeBinding generateTypeBinding(org.jboss.reflect.spi.TypeInfo typeInfo)
typeInfo
- the type info
public TypeBinding generateEnum(org.jboss.reflect.spi.EnumInfo typeInfo)
typeInfo
- the type info
public TypeBinding generateAdaptedType(JBossXmlAdaptedType adaptedType)
adaptedType
- the information about the adaption
public void adaptType(TypeBinding adaptedType, JBossXmlAdaptedType annotation)
adaptedType
- the information about the adaptionpublic TypeBinding generateAnnotation(org.jboss.reflect.spi.ClassInfo typeInfo)
typeInfo
- the type info
public TypeBinding generateArray(org.jboss.reflect.spi.ArrayInfo typeInfo)
typeInfo
- the type info
public TypeBinding generateCollection(org.jboss.reflect.spi.ClassInfo typeInfo)
typeInfo
- the type info
public TypeBinding generateMap(org.jboss.reflect.spi.ClassInfo typeInfo)
typeInfo
- the type info
public TypeBinding isSimpleType(org.jboss.reflect.spi.TypeInfo typeInfo)
typeInfo
- the type info
public TypeBinding getSimpleType(org.jboss.reflect.spi.TypeInfo typeInfo)
typeInfo
- the type info
IllegalStateException
- if the type is not boundpublic TypeBinding generateBean(org.jboss.reflect.spi.ClassInfo typeInfo)
typeInfo
- the type info
public TypeBinding generateBean(org.jboss.reflect.spi.ClassInfo typeInfo, boolean root)
typeInfo
- the type inforoot
- whether to force a root type
public TypeBinding generateType(org.jboss.reflect.spi.ClassInfo typeInfo, boolean root)
typeInfo
- the type inforoot
- whether to force a root type
protected 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 name
protected QName generateXmlName(String localName, XmlNsForm form, String namespace, String name)
localName
- the raw local nameform
- the namespace formnamespace
- the override namespacename
- the override name
|
JBoss XML Binding 2.0.3.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |