Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl » schema » [javadoc | source]
org.apache.xmlbeans.impl.schema
public final class: SchemaTypeCodePrinter [javadoc | source]
java.lang.Object
   org.apache.xmlbeans.impl.schema.SchemaTypeCodePrinter

All Implemented Interfaces:
    SchemaCodePrinter

Prints the java code for a single schema type
Field Summary
 Writer _writer     
 int _indent     
 boolean _useJava15     
static final  String LINE_SEPARATOR     
static final  String MAX_SPACES     
static final  int INDENT_INCREMENT     
public static final  String INDEX_CLASSNAME     
Constructor:
 public SchemaTypeCodePrinter(XmlOptions opt) 
Method from org.apache.xmlbeans.impl.schema.SchemaTypeCodePrinter Summary:
emit,   emitAddTarget,   emitDeclareTarget,   emitGetTarget,   emitImplementationPostamble,   emitImplementationPreamble,   emitPost,   emitPost,   emitPre,   emitPre,   encodeString,   endBlock,   findBaseType,   findJavaType,   getAtomicRestrictionType,   getBaseClass,   getIdentifier,   getSetIdentifier,   getTypeName,   indent,   indexClassForSystem,   isJavaPrimitive,   javaStringEscape,   javaTypeForProperty,   javaWrappedType,   makeAttributeDefaultValue,   makeMissingValue,   outdent,   prePostOpString,   prettyQName,   printConstructor,   printFactory,   printGetterImpls,   printInnerType,   printInnerTypeImpl,   printInnerTypeJavaDoc,   printInterfaceMethodDecl,   printInterfaceMethodImpl,   printJGetArrayValue,   printJGetValue,   printJSetValue,   printJavaDoc,   printListGetter15Impl,   printLoader,   printLoader,   printNestedInnerTypes,   printNestedTypeImpls,   printPackage,   printPropertyGetters,   printPropertySetters,   printSetterImpls,   printShortJavaDoc,   printStaticFields,   printStaticTypeDeclaration,   printStringEnumeration,   printTopComment,   printType,   printType,   printTypeImpl,   printTypeImpl,   shortIndexClassForSystem,   startBlock,   startClass,   startInterface,   xmlTypeForProperty,   xmlTypeForPropertyIsUnion
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.impl.schema.SchemaTypeCodePrinter Detail:
  void emit(String s) throws IOException 
  void emitAddTarget(String identifier,
    boolean isAttr,
    boolean declareTarget,
    String xtype) throws IOException 
  void emitDeclareTarget(boolean declareTarget,
    String xtype) throws IOException 
  void emitGetTarget(String setIdentifier,
    String identifier,
    boolean isAttr,
    String index,
    int nullBehaviour,
    String xtype) throws IOException 
  void emitImplementationPostamble() throws IOException 
  void emitImplementationPreamble() throws IOException 
  void emitPost(SchemaType sType,
    int opType,
    String identifier,
    boolean isAttr) throws IOException 
  void emitPost(SchemaType sType,
    int opType,
    String identifier,
    boolean isAttr,
    String index) throws IOException 
  void emitPre(SchemaType sType,
    int opType,
    String identifier,
    boolean isAttr) throws IOException 
  void emitPre(SchemaType sType,
    int opType,
    String identifier,
    boolean isAttr,
    String index) throws IOException 
 String encodeString(String s) 
  void endBlock() throws IOException 
 static SchemaType findBaseType(SchemaType sType) 
 String findJavaType(SchemaType sType) 
    Since not all schema types have java types, this skips over any that don't and gives you the nearest java base type.
 String getAtomicRestrictionType(SchemaType sType) 
 String getBaseClass(SchemaType sType) 
 String getIdentifier(Map qNameMap,
    QName qName) 
 String getSetIdentifier(Map qNameMap,
    QName qName) 
 static  void getTypeName(Class c,
    StringBuffer sb) 
  void indent() 
 public static String indexClassForSystem(SchemaTypeSystem system) 
 static boolean isJavaPrimitive(int javaType) 
 public static String javaStringEscape(String str) 
 String javaTypeForProperty(SchemaProperty sProp) 
 static String javaWrappedType(int javaType) 
    Returns the wrapped type for a java primitive.
  void makeAttributeDefaultValue(String jtargetType,
    SchemaProperty prop,
    String identifier) throws IOException 
  void makeMissingValue(int javaType) throws IOException 
  void outdent() 
 String prePostOpString(int opType) 
 static String prettyQName(QName qname) 
  void printConstructor(SchemaType sType,
    String shortName) throws IOException 
  void printFactory(SchemaType sType) throws IOException 
  void printGetterImpls(String parentJavaName,
    SchemaProperty prop,
    QName qName,
    boolean isAttr,
    String propertyName,
    int javaType,
    String type,
    String xtype,
    boolean nillable,
    boolean optional,
    boolean several,
    boolean singleton,
    boolean isunion,
    String identifier,
    String setIdentifier) throws IOException 
  void printInnerType(SchemaType sType,
    SchemaTypeSystem system) throws IOException 
  void printInnerTypeImpl(SchemaType sType,
    SchemaTypeSystem system,
    boolean isInner) throws IOException 
  void printInnerTypeJavaDoc(SchemaType sType) throws IOException 
  void printInterfaceMethodDecl(MethodSignature method) throws IOException 
  void printInterfaceMethodImpl(String handler,
    MethodSignature method) throws IOException 
  void printJGetArrayValue(int javaType,
    String type,
    SchemaTypeImpl stype) throws IOException 
  void printJGetValue(int javaType,
    String type,
    SchemaTypeImpl stype) throws IOException 
  void printJSetValue(int javaType,
    String safeVarName,
    SchemaTypeImpl stype) throws IOException 
  void printJavaDoc(String sentence) throws IOException 
  void printListGetter15Impl(String parentJavaName,
    String propdesc,
    String propertyName,
    String wrappedType,
    String xtype,
    boolean xmltype,
    boolean xget) throws IOException 
 public  void printLoader(Writer writer,
    SchemaTypeSystem system) throws IOException 
Deprecated!
 public static  void printLoader(Writer writer,
    SchemaTypeSystem system,
    XmlOptions opt) throws IOException 
Deprecated!
  void printNestedInnerTypes(SchemaType sType,
    SchemaTypeSystem system) throws IOException 
  void printNestedTypeImpls(SchemaType sType,
    SchemaTypeSystem system) throws IOException 
  void printPackage(SchemaType sType,
    boolean intf) throws IOException 
  void printPropertyGetters(QName qName,
    boolean isAttr,
    String propertyName,
    int javaType,
    String type,
    String xtype,
    boolean nillable,
    boolean optional,
    boolean several,
    boolean singleton) throws IOException 
  void printPropertySetters(QName qName,
    boolean isAttr,
    String propertyName,
    int javaType,
    String type,
    String xtype,
    boolean nillable,
    boolean optional,
    boolean several,
    boolean singleton) throws IOException 
  void printSetterImpls(QName qName,
    SchemaProperty prop,
    boolean isAttr,
    String propertyName,
    int javaType,
    String type,
    String xtype,
    boolean nillable,
    boolean optional,
    boolean several,
    boolean singleton,
    boolean isunion,
    String identifier,
    String setIdentifier,
    SchemaType sType) throws IOException 
  void printShortJavaDoc(String sentence) throws IOException 
 Map printStaticFields(SchemaProperty[] properties) throws IOException 
  void printStaticTypeDeclaration(SchemaType sType,
    SchemaTypeSystem system) throws IOException 
  void printStringEnumeration(SchemaType sType) throws IOException 
  void printTopComment(SchemaType sType) throws IOException 
 public  void printType(Writer writer,
    SchemaType sType) throws IOException 
 public static  void printType(Writer writer,
    SchemaType sType,
    XmlOptions opt) throws IOException 
 public  void printTypeImpl(Writer writer,
    SchemaType sType) throws IOException 
 public static  void printTypeImpl(Writer writer,
    SchemaType sType,
    XmlOptions opt) throws IOException 
 static String shortIndexClassForSystem(SchemaTypeSystem system) 
  void startBlock() throws IOException 
  void startClass(SchemaType sType,
    boolean isInner) throws IOException 
  void startInterface(SchemaType sType) throws IOException 
 String xmlTypeForProperty(SchemaProperty sProp) 
 static boolean xmlTypeForPropertyIsUnion(SchemaProperty sProp)