XMLBindingComponent
public interface BindingComponent
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:
Modifier and Type | Field | Description |
---|---|---|
static short |
CLASS |
A class binding component.
|
static short |
CONTENT_MEMBER_TYPE |
A content member binding component.
|
static short |
ENUM_TYPE |
An enum binding component.
|
static short |
INTERFACE |
An interface binding component.
|
static short |
MEMBER |
A member binding component.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
EnumBindingType |
getEnumBinding() |
Returns the EnumBindingType instance for the active binding component.
|
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.
|
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.
|
static final short INTERFACE
static final short CLASS
static final short MEMBER
static final short ENUM_TYPE
static final short CONTENT_MEMBER_TYPE
boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the object to compare to this instanceObject.equals(java.lang.Object)
java.lang.String getCollectionType()
java.lang.String getExtends()
java.lang.String[] getImplements()
java.lang.String getJavaClassName()
getQualifiedName()
java.lang.String getJavaMemberName()
getQualifiedName()
java.lang.String getJavaPackage()
XSType getJavaType()
int getLowerBound()
java.lang.String getQualifiedName()
short getType()
int getUpperBound()
java.lang.String getValue()
java.lang.String getValidator()
EnumBindingType getEnumBinding()
java.lang.String getXMLFieldHandler()
boolean hasBoundProperties()
boolean hasEquals()
int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
boolean isAbstract()
boolean isFinal()
boolean useWrapper()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com