|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Attributes in the jbind namespace that can be occur in a schema document in order to control the code generation.
Many of the attributes influence the generation of methods. Some of them are
GETTER
, SETTER
, and CREATOR
. These attributes can
take one the values:
Field Summary | |
static java.lang.String |
ATTR_GROUP_SUB_PACKAGE
|
static java.lang.String |
ATTRIBUTE_NAME_SUFFIX_FOR_NAME_PREFIX
|
static java.lang.String |
ATTRIBUTE_NAME_SUFFIX_FOR_NAME_SUFFIX
|
static java.lang.String |
ATTRIBUTE_SUB_PACKAGE
|
static java.lang.String |
CHECKER
Property variant attribute that controls the generation of methods that check if an attribute or element is present. |
static java.lang.String |
CREATOR
Property variant attribute that controls the generation of creator methods for elements. |
static java.lang.String |
CREATOR_WITH_TYPE
Property variant attribute that controls the generation of creator methods for elements that allow to overload the type of the element. |
static java.lang.String |
ELEM_GROUP_SUB_PACKAGE
|
static java.lang.String |
ELEMENT_SUB_PACKAGE
|
static java.lang.String |
FACTORY_TYPE
The type of the schema factory. |
static java.lang.String |
GETTER
Property variant attribute that controls the generation of getter methods. |
static java.lang.String |
HAS_BEHAVIOUR
Determines if a "behaviour" class and interface is created for a type. |
static java.lang.String |
ITERATOR
Property variant attribute that controls the generation of methods that iterate elements or the items of list valued attributes. |
static java.lang.String |
NAME
Specifies a name that is used in the generated code ("name"). |
static java.lang.String |
PACKAGE
Determines the root package for the generated types. |
static java.lang.String |
REFERENCE_GETTER
|
static java.lang.String |
REFERENCE_ITERATOR
|
static java.lang.String |
REFERENCED_TYPE
|
static java.lang.String |
REMOVER
Property variant attribute that controls the generation of methods that remove an attribute or element. |
static java.lang.String |
SETTER
Property variant attribute that controls the generation of setter methods. |
static java.lang.String |
TYPE_SUB_PACKAGE
|
static java.lang.String |
USE_DATA_CLASS
Determines if the value of an attribute or a non-complex element is accessed by its data class or by its simple storage type. |
Field Detail |
public static final java.lang.String PACKAGE
This attribute can appear in the schema elements and in import elements. If an import element specifies a package then this package overwrites the package specified in the imported schema.
public static final java.lang.String HAS_BEHAVIOUR
This attribute can appear in schema elements and in type definition elements. Anonymous inner types never have behaviour classes and interfaces.
public static final java.lang.String GETTER
IBindingAttributes
.
public static final java.lang.String SETTER
IBindingAttributes
.
public static final java.lang.String CREATOR
IBindingAttributes
.
public static final java.lang.String CREATOR_WITH_TYPE
IBindingAttributes
.
public static final java.lang.String CHECKER
IBindingAttributes
.
public static final java.lang.String REMOVER
IBindingAttributes
.
If an attribute is removed that has a default or fixed value then a new attribute will be created (on demand).
Remover methods for elements are only generated if the element has a maximum number of occurences that is 0 or 1. Elements that can appear several times are removed by iterating them and using the remove method of the iterator.
public static final java.lang.String ITERATOR
IBindingAttributes
.
public static final java.lang.String USE_DATA_CLASS
This attribute can appear in attribute or element declarations.
public static final java.lang.String REFERENCE_GETTER
public static final java.lang.String REFERENCE_ITERATOR
public static final java.lang.String REFERENCED_TYPE
public static final java.lang.String FACTORY_TYPE
An instance of the factory type is created after the schema was read in and
is set as the factory of the schema (cf.
setFactory
). The factory
can now be used to create new elements using its newXXX methods.
The factory has a special data implementation that does not store any references to the elements it has created.
public static final java.lang.String NAME
public static final java.lang.String TYPE_SUB_PACKAGE
public static final java.lang.String ATTRIBUTE_SUB_PACKAGE
public static final java.lang.String ELEMENT_SUB_PACKAGE
public static final java.lang.String ATTR_GROUP_SUB_PACKAGE
public static final java.lang.String ELEM_GROUP_SUB_PACKAGE
public static final java.lang.String ATTRIBUTE_NAME_SUFFIX_FOR_NAME_PREFIX
public static final java.lang.String ATTRIBUTE_NAME_SUFFIX_FOR_NAME_SUFFIX
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |