org.jboss.xb.builder
Class JBossXBBuilder

java.lang.Object
  extended by org.jboss.xb.builder.JBossXBBuilder

public class JBossXBBuilder
extends Object

JBossXBBuilder.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
JBossXBBuilder()
           
 
Method Summary
static SchemaBinding build(Class<?> root)
          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
<T> SchemaBindingInitializer
newInitializer(Class<T> root)
          Create a new schema binding initializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossXBBuilder

public JBossXBBuilder()
Method Detail

newInitializer

public static <T> SchemaBindingInitializer newInitializer(Class<T> root)
Create a new schema binding initializer

Type Parameters:
T - the root type
Parameters:
root - the root class
Returns:
the initializer
Throws:
IllegalArgumentException - for a null root

build

public static void build(SchemaBinding schemaBinding,
                         Class<?> root)
Build from a preparsed schema binding

Parameters:
schemaBinding - the schema binding
root - the root
Throws:
IllegalArgumentException - for a null schema binding or root

build

public static SchemaBinding build(Class<?> root)
Build the SchemaBinding from the class

Parameters:
root - the root
Returns:
the schema binding
Throws:
IllegalArgumentException - for a null root

initSchema

protected static void initSchema(SchemaBinding schemaBinding,
                                 org.jboss.reflect.spi.ClassInfo classInfo)
Initialize the schema binding from the root

Parameters:
schemaBinding - the schema binding
classInfo - the classInfo

generateXMLNameFromClassName

public static String generateXMLNameFromClassName(org.jboss.reflect.spi.TypeInfo typeInfo,
                                                  boolean ignoreLowerLine)
Generate an xml name from a clazz name

Parameters:
typeInfo - the typeInfo
ignoreLowerLine - whether to ignore the lower line
Returns:
the xml name

generateXMLNameFromJavaName

public static String generateXMLNameFromJavaName(String string,
                                                 boolean dash,
                                                 boolean ignoreLowerLine)
Generate an xml name from a java name

Parameters:
string - the java name
dash - whether to insert dashes to seperate words
ignoreLowerLine - TODO ignore the lower line
Returns:
the xml name


Copyright © 2007 JBoss Inc.. All Rights Reserved.