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 and 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 and Description |
|---|---|
boolean |
equals(Object object)
Returns true if the given Object is equal to this instance of BindingComponent.
|
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.
|
String |
getExtends()
Returns the name of a super class for the current BindingComponent.
|
String[] |
getImplements()
Returns an array of the different interface names implemented by the class that will represent
the current BindingComponent.
|
String |
getJavaClassName()
Returns a valid Java Class Name corresponding to this BindingComponent.
|
String |
getJavaMemberName()
Returns a valid Java Member Name corresponding to this BindingComponent.
|
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.
|
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.
|
String |
getValidator()
Returns the fully qualified name of the Validator to use.
|
String |
getValue()
Returns the default value of the member generated from this binding component.
|
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(Object object)
equals in class Objectobject - the object to compare to this instanceObject.equals(java.lang.Object)String getCollectionType()
String getExtends()
String[] getImplements()
String getJavaClassName()
getQualifiedName()String getJavaMemberName()
getQualifiedName()String getJavaPackage()
XSType getJavaType()
int getLowerBound()
String getQualifiedName()
short getType()
int getUpperBound()
String getValue()
String getValidator()
EnumBindingType getEnumBinding()
String getXMLFieldHandler()
boolean hasBoundProperties()
boolean hasEquals()
int hashCode()
hashCode in class ObjectObject.hashCode()boolean isAbstract()
boolean isFinal()
boolean useWrapper()
Copyright © 2016. All rights reserved.