|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is the abstraction of any type of source that can interact with the Source Code Generator. From the Source Code Generator point of view, the source document used to generate Java source code is totally transparent and is not exposed.
Specific implementation of that class will represent the source document used.
For instance when generating source code from an XML Schema, the source generator will
interact with an XMLBindingComponent
whereas when generating source code from an UML model object model, the source generator
will interact with an UMLBindingComponent (This is obviously just an example, no UML Object Model
has been as of today integrated in Castor).
A binding component can be of three different types:
Field Summary | |
static short |
CLASS
|
static short |
INTERFACE
|
static short |
MEMBER
|
Method Summary | |
boolean |
equals(java.lang.Object object)
Returns true if the given Object is equal to this instance of BindingComponent. |
java.lang.String |
getCollectionType()
Returns the name of collection type such as 'arraylist' in which we will store the different occurrences of the java member generated to represent that BindingComponent. |
java.lang.String |
getExtends()
Returns the name of a super class for the current BindingComponent. |
java.lang.String[] |
getImplements()
Returns an array of the different interface names implemented by the class that will represent the current BindingComponent. |
java.lang.String |
getJavaClassName()
Returns a valid Java Class Name corresponding to this BindingComponent. |
java.lang.String |
getJavaMemberName()
Returns a valid Java Member Name corresponding to this BindingComponent. |
java.lang.String |
getJavaPackage()
Returns the java package associated with this BindingComponent. |
org.exolab.castor.builder.types.XSType |
getJavaType()
Returns the XSType that corresponds to the Java type chosen to represent this BindingComponent. |
int |
getLowerBound()
Returns the lower bound of the collection that is generated from this BindingComponent. |
java.lang.String |
getQualifiedName()
Returns a fully qualified java class name. |
short |
getType()
Returns the type of this component binding. |
int |
getUpperBound()
Returns the upper bound of the collection that is generated from this BindingComponent. |
java.lang.String |
getValidator()
Returns the fully qualified name of the Validator to use. |
java.lang.String |
getValue()
Returns the default value of the member generated from this binding component. |
java.lang.String |
getXMLFieldHandler()
Returns the fully qualified name of the XMLFieldHandler to use. |
boolean |
hasBoundProperties()
Returns true if bound properties must be generated for the class that will represent the current BindingComponent. |
boolean |
hasEquals()
Returns true if equal method must be generated for the class that will represent the current BindingComponent. |
int |
hashCode()
Returns the hashCode value for this object. |
boolean |
isAbstract()
Returns true if the class generated from the current BindingComponent will be abstract. |
boolean |
isFinal()
Returns true if the class generated from the current BindingComponent will be final. |
boolean |
useWrapper()
Returns true if the member represented by that BindingComponent is to be represented by an Object wrapper. |
Field Detail |
public static final short INTERFACE
public static final short CLASS
public static final short MEMBER
Method Detail |
public boolean equals(java.lang.Object object)
Object.equals(java.lang.Object)
public java.lang.String getCollectionType()
public java.lang.String getExtends()
public java.lang.String[] getImplements()
public java.lang.String getJavaClassName()
getQualifiedName()
public java.lang.String getJavaMemberName()
getQualifiedName()
public java.lang.String getJavaPackage()
public org.exolab.castor.builder.types.XSType getJavaType()
Returns the XSType that corresponds to the Java type chosen to represent this BindingComponent. An XSType is an abstraction of a Java type used in the Source Generator. It wraps a JType as well as the necessary methods to convert to/from String.
public int getLowerBound()
public java.lang.String getQualifiedName()
Returns a fully qualified java class name. This name corresponds to the class name that will be generated from this BindingComponent.
public short getType()
Returns the type of this component binding. A component binding can be of three different types:
-1 is returned if the component binding is null.
public int getUpperBound()
public java.lang.String getValue()
public java.lang.String getValidator()
public java.lang.String getXMLFieldHandler()
public boolean hasBoundProperties()
public boolean hasEquals()
public int hashCode()
Object.hashCode()
public boolean isAbstract()
public boolean isFinal()
public boolean useWrapper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |