Package | Description |
---|---|
org.exolab.castor.builder |
Castor XML code generator
|
org.exolab.castor.builder.conflict.strategy | |
org.exolab.castor.builder.conflictresolution | |
org.exolab.castor.builder.descriptors | |
org.exolab.castor.builder.factory | |
org.exolab.castor.builder.info | |
org.exolab.castor.builder.printing | |
org.exolab.castor.builder.types | |
org.exolab.javasource |
This package contains classes that represent Java Source objects for Castor XML
code generator.
|
Modifier and Type | Field and Description |
---|---|
static JClass |
SGTypes.CLASS
Represents a
JClass instance of type 'java.lang.Class'. |
static JClass |
SGTypes.INDEX_OUT_OF_BOUNDS_EXCEPTION
Represents a
JClass instance of type 'java.lang.IndexOutOfBoundsException'. |
static JClass |
SGTypes.IO_EXCEPTION
Represents a
JClass instance of type 'java.io.IOException'. |
static JClass |
SGTypes.MARSHAL_EXCEPTION
Represents a
JClass instance of type 'org.exolab.castor.xml.MarshalException'. |
static JClass |
SGTypes.OBJECT
Represents a
JClass instance of type 'java.lang.Object'. |
static JClass |
SGTypes.PROPERTY_CHANGE_SUPPORT
Represents a
JClass instance of type 'java.beans.PropertyChangeSupport'. |
static JClass |
SGTypes.READER
Represents a
JClass instance of type 'java.io.Reader'. |
static JClass |
SGTypes.STRING
Represents a
JClass instance of type 'java.lang.String'. |
static JClass |
SGTypes.VALIDATION_EXCEPTION
Represents a
JClass instance of type
'org.exolab.castor.xml.ValidationException'. |
static JClass |
SGTypes.WRITER
Represents a
JClass instance of type 'java.lang.Writer'. |
Modifier and Type | Method and Description |
---|---|
JClass |
SGStateInfo.getImportedSourceCode(String className)
Returns the JClass with the given name or null if no bindings have been
specified for a JClass with the name.
|
JClass |
FactoryState.getJClass()
Get JClass for which we are currently generating code.
|
JClass[] |
SGStateInfo.getSourceCode(Annotated annotated)
Returns the array of JClass for the given Annotated structure or null if
no bindings have been specified for the given Structure.
|
JClass |
SGStateInfo.getSourceCode(String className)
Returns the JClass with the given name or null if no bindings have been
specified for a JClass with the name.
|
Modifier and Type | Method and Description |
---|---|
Map<String,JClass> |
SGStateInfo.getImportedSourcesByName()
Returns the sources as generated through XML schema imports.
|
Map<String,JClass> |
SGStateInfo.getSourcesByName()
Returns the sources as generated through XML schema imports.
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationBuilder.addClassAnnotations(ClassInfo classInfo,
JClass jClass)
add annotations to a JClass.
|
void |
JClassRegistry.bind(JClass jClass,
XMLBindingComponent component,
String mode)
Registers a
JClass instance for a given XPATH. |
void |
SGStateInfo.bindSourceCode(Annotated annotated,
JClass[] classes)
Binds the given Annotated structure with its generated source classes.
|
Modifier and Type | Method and Description |
---|---|
void |
SGStateInfo.storeImportedSourcesByName(Map<String,JClass> importedSourcesByName)
Stores generated sources as processed within an imported schema.
|
Modifier and Type | Method and Description |
---|---|
void |
TypeClassNameConflictResolver.changeClassInfoAsResultOfConflict(JClass jClass,
String xpath,
String typedXPath,
Annotated annotated)
Changes the JClass' internal class name, appedning a type suffix to the
suggested class name.
|
void |
XPATHClassNameConflictResolver.changeClassInfoAsResultOfConflict(JClass jClass,
String xpath,
String typedXPath,
Annotated annotated)
Changes the JClass' internal class name, as a result of an XPATH
expression uniquely identifying an XML artefact within an XML schema.
|
abstract void |
BaseClassNameConflictResolver.changeClassInfoAsResultOfConflict(JClass jClass,
String xpath,
String typedXPath,
Annotated annotated)
Changes the JClass' internal class name, as a result of an XPATH
expression uniquely identifying an XML artefact within an XML schema.
|
void |
ClassNameConflictResolver.changeClassInfoAsResultOfConflict(JClass jClass,
String xpath,
String typedXPath,
Annotated annotated)
Changes the JClass' internal class name, as a result of an XPATH
expression uniquely identifying an XML artefact within an XML schema.
|
Modifier and Type | Method and Description |
---|---|
SGStateInfo |
InformViaLogClassNameCRStrategy.dealWithClassNameConflict(SGStateInfo state,
ClassInfo newClassInfo,
JClass conflict)
Handle a class name conflict between newClassInfo and conflict.
|
SGStateInfo |
WarningViaDialogClassNameCRStrategy.dealWithClassNameConflict(SGStateInfo state,
ClassInfo newClassInfo,
JClass conflict)
Handle a class name conflict between newClassInfo and conflict.
|
SGStateInfo |
ClassNameCRStrategy.dealWithClassNameConflict(SGStateInfo state,
ClassInfo newClassInfo,
JClass conflict)
Implements a specific strategy for dealing with class name conflicts.
|
Modifier and Type | Class and Description |
---|---|
class |
DescriptorJClass
A class which defines the necessary methods for generating ClassDescriptor
source files.
|
class |
JDODescriptorJClass
A class which defines the necessary methods for creating the JDO-specific
descriptor source files.
|
Modifier and Type | Method and Description |
---|---|
JClass |
JDOClassDescriptorFactory.createSource(ClassInfo classInfo)
Creates the Source code of a ClassInfo for a given XML Schema element
declaration.
|
JClass |
DescriptorSourceFactory.createSource(ClassInfo classInfo)
Creates the Source code of a MarshalInfo for a given XML Schema element
declaration.
|
Constructor and Description |
---|
DescriptorJClass(BuilderConfiguration config,
String className,
JClass type)
Constructs a DescriptorJClass.
|
JDODescriptorJClass(BuilderConfiguration config,
String className,
JClass type)
Constructs a JDODescriptorJClass.
|
Modifier and Type | Method and Description |
---|---|
JClass |
SourceFactory.createSourceCode(ExtendedBinding binding,
SimpleType simpleType,
SGStateInfo sgState)
Creates the Java source code to support the given Simpletype.
|
JClass[] |
SourceFactory.createSourceCode(XMLBindingComponent component,
SGStateInfo sgState)
Creates a new ClassInfo for the given XMLBindingComponent.
|
Modifier and Type | Method and Description |
---|---|
void |
FieldMemberAndAccessorFactory.createAccessMethods(FieldInfo fieldInfo,
JClass jClass,
boolean useJava50,
AnnotationBuilder[] annotationBuilders)
Adds the getter/setter for this field to the jClass.
|
void |
CollectionMemberAndAccessorFactory.createAccessMethods(FieldInfo fieldInfo,
JClass jClass,
boolean useJava50,
AnnotationBuilder[] annotationBuilders)
Adds the getter/setter for this field to the jClass.
|
protected void |
CollectionMemberAndAccessorFactory.createAddByIndexMethod(CollectionInfo fieldInfo,
JClass jClass)
Creates the add by index method.
|
protected void |
CollectionJ2NoIndexMemberAndAccessorFactory.createAddByIndexMethod(CollectionInfo fieldInfo,
JClass jClass)
Creates the add by index method.
|
protected void |
CollectionJ2MemberAndAccessorFactory.createAddMethod(CollectionInfo fieldInfo,
JClass jClass)
Creates the add method for this collection.
|
protected void |
CollectionMemberAndAccessorFactory.createAddMethod(CollectionInfo fieldInfo,
JClass jClass)
Creates the add method for this collection.
|
protected void |
CollectionJ2MemberAndAccessorFactory.createCollectionIterationMethods(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Generate methods for iterating over the objects in the collection.
|
protected void |
CollectionMemberAndAccessorFactory.createCollectionIterationMethods(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Generate methods for iterating over the objects in the collection.
|
protected void |
CollectionODMG30MemberAndAccessorFactory.createEnumerateMethod(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Creates the enumerate method.
|
protected void |
CollectionJ2MemberAndAccessorFactory.createEnumerateMethod(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Creates the enumerate method.
|
protected void |
CollectionMemberAndAccessorFactory.createEnumerateMethod(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Creates the enumerate method.
|
void |
SourceFactory.createEqualsMethod(JClass jclass)
Create an 'equals' method on the given JClass.
|
protected void |
CollectionJ2NoIndexMemberAndAccessorFactory.createGetByIndexMethod(CollectionInfo fieldInfo,
JClass jClass)
supresses the method creation
|
protected void |
CollectionMemberAndAccessorFactory.createGetByIndexMethod(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Creates the get by index method.
|
void |
SourceFactory.createHashCodeMethod(JClass jclass)
Create an "hashCode" method on the given JClass.
|
protected void |
CollectionMemberAndAccessorFactory.createIteratorMethod(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Creates the iterate method.
|
void |
FieldMemberAndAccessorFactory.createJavaField(FieldInfo fieldInfo,
JClass jClass)
Adds the suitable JField to the JClass.
|
protected void |
CollectionMemberAndAccessorFactory.createRemoveByIndexMethod(CollectionInfo fieldInfo,
JClass jClass)
Creates the remove by index method.
|
protected void |
CollectionJ2NoIndexMemberAndAccessorFactory.createRemoveByIndexMethod(CollectionInfo fieldInfo,
JClass jClass)
Creates the remove by index method.
|
protected void |
CollectionMemberAndAccessorFactory.createSetByIndexMethod(CollectionInfo fieldInfo,
JClass jClass)
Creates the set by index method.
|
protected void |
CollectionJ2NoIndexMemberAndAccessorFactory.createSetByIndexMethod(CollectionInfo fieldInfo,
JClass jClass)
Creates the set by index method.
|
void |
SourceFactory.createTestableMethods(JClass jclass,
FactoryState state)
Implement org.castor.xmlctf.CastorTestable im the given JClass.
|
Modifier and Type | Method and Description |
---|---|
JClass |
ClassInfo.getJClass()
Returns the JClass described by this ClassInfo.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CollectionInfoJ2SortedSet.createAddByIndexMethod(JClass jClass) |
protected void |
CollectionInfoJ2SortedSet.createGetByIndexMethod(JClass jClass) |
protected void |
CollectionInfoJ2SortedSet.createRemoveByIndexMethod(JClass jClass) |
protected void |
CollectionInfoJ2SortedSet.createSetByIndexMethod(JClass jClass) |
Constructor and Description |
---|
ClassInfo(JClass jClass)
Creates a new ClassInfo.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TemplateHelper.isEnum(JClass jClass)
Returns true if the
JClass instance is instance of JEnum. |
void |
JClassPrinter.printClass(JClass jClass,
String outputDir,
String lineSeparator,
String header)
Prints the given
JClass instance to the given output directory. |
void |
WriterJClassPrinter.printClass(JClass jClass,
String outputDir,
String lineSeparator,
String header)
Prints the given
JClass instance to the given output directory. |
void |
TemplateJClassPrinter.printClass(JClass jClass,
String outputDir,
String lineSeparator,
String header)
Prints the given
JClass instance to the given output directory. |
Constructor and Description |
---|
XSClass(JClass jClass)
Creates a new XSClass with the given JClass reference.
|
XSClass(JClass jClass,
String schemaTypeName)
Creates a new XSClass with the given JClass reference.
|
Modifier and Type | Class and Description |
---|---|
class |
JEnum
Describes the definition of a enum type class.
|
class |
JInnerClass
A representation of the Java Source code for a Java inner class.
|
Modifier and Type | Method and Description |
---|---|
JClass |
AbstractJClass.createInnerClass(String localname)
Creates and returns an inner-class for this JClass.
|
JClass |
AbstractJField.getDeclaringClass()
Returns the class in which this JField has been declared.
|
JClass[] |
JMethod.getExceptions()
Returns the exceptions that this JMethod throws.
|
JClass[] |
JMethodSignature.getExceptions()
Returns the exceptions that this JMethodSignature lists in its throws
clause.
|
JClass[] |
JConstructor.getExceptions()
Returns the exceptions that this JConstructor lists in its throws clause.
|
JClass[] |
AbstractJClass.getInnerClasses()
Returns an array of JClass (the inner classes) contained within this
JClass.
|
Modifier and Type | Method and Description |
---|---|
void |
JCompUnit.addClass(JClass jClass)
Adds a JClass to be printed in this file.
|
void |
JMethodSignature.addException(JClass exp)
Adds the given Exception to this JMethodSignature's throws clause.
|
void |
JConstructor.addException(JClass exp)
Adds the given Exception to this JConstructor's throws clause.
|
void |
JMethod.addException(JClass exp,
String description)
Adds the given Exception to this JMethod's throws clause.
|
boolean |
AbstractJClass.removeInnerClass(JClass jClass)
Removes the given inner-class (JClass) from this JClass.
|
protected void |
AbstractJField.setDeclaringClass(JClass declaringClass)
Sets the class that declares this JField.
|
Constructor and Description |
---|
JCompUnit(JClass jClass)
Creates a new JCompUnit with the given JClass (which must have been
created with either a full class name or package/local name) as the
public class.
|
Copyright © 2019. All rights reserved.