Package com.orchestranetworks.schema
package com.orchestranetworks.schema
Represents XML Schema concepts and provides schema extensions capabilities.
Specification of JavaBeans
Some EBX® extensions rely on specific Java classes. This is the case for :
- constraints, see interface
Constraint
; - enumeration constraints, see interface
ConstraintEnumeration
; - nomenclature constraints, see interface
ConstraintNomenclature
; - functions, see interface
ValueFunction
; - service permissions, see interface
ServicePermission
; - UI bean editor, see class
UIBeanEditor
; - table filters, see class
UITableFilter
; - other schema extensions, see interface
SchemaExtensions
.
The declaration syntax of all those extensions allow to specify JavaBeans properties within the schema. For example :
<osd:xyz class="com.test.MyJavaBean"> <param1>value of param1</param1> <param2>value of param2</param2> </osd:xyz>
Here param1
and param2
are JavaBean properties. It implies that :
- The class
com.test.MyJavaBean
is public and its constructorcom.test.MyJavaBean()
is defined and public. - The property setters
setParam1(...)
andsetParam2(...)
) are defined and public (optional BeanInfo class and its property descriptors will be ignored).
Type conversion
The conversion of the string specified for each property is done according to the type of the JavaBean property. The following types are supported :
String
Boolean
Integer
(xs:int
notation)Float
BigDecimal
(xs:decimal
notation)Date
(xs:date
notation, for example "1999-03-21")Locale
(osd:locale
notation, with "_" (underscore) separator, not "-" (dash), for example "en" or "en_US")URI
(xs:anyURI
notation)File
Path
Step
Localized properties
EBX® adds the possibility to localize a property, by means of attribute
xml:lang
. For example :
<osd:xyz class="com.test.MyJavaBean"> <param1 xml:lang="en" >value of param1</param1> <param1 xml:lang="fr" >valeur de param1</param1> </osd:xyz>
Here param1
is a localized "JavaBean property". It implies that
the method setParam1(Locale, aType)
is defined and public
(optional BeanInfo class and its property descriptors will be always ignored).
-
ClassDescriptionConstraint<T>Specifies a constraint that may be contextual and dynamic.Provides methods for setting up a constraint in the context of its data model.Provides methods for setting up a constraint on a table in the context of its data model.Specifies an enumeration constraint that can be contextual and dynamic.Deprecated.Defines a verification for values that are mandatory under certain circumstances.Specifies a constraint that is able to perform the validation of an entire table.Defines a record-level check, to be performed in addition to table-level checks.Thrown to indicate that an insert, an update or a delete is not valid with respect to a blocking constraint.Provides methods for setting dependencies in the context of a constraint and its data model.Thrown to indicate that a data model is not valid.Defines a JavaBean behavior version.A path is used for locating a node in a tree structure.Thrown when a path cannot be resolved in a data model.Abstract class for dynamically computing the label and description of a node in the context of a data model.This class provides the context used for computing the label and description associated with a node in a data model.Provides methods for setting up the documentation of a data model.Defines extensions of a data model.Context for specifying extensions of a data model.Identifies a data model location, which can be either based on a URL (standard notation) or a module.Represents an element declaration in the resolved data model.This interface defines common services for performing a validation task on an entity associated with a
data model node
.Identifies a named type definition.A path is a sequence of steps.Defines a custom renderer for displaying a foreign key constraint depending on the context of a node.Provides methods for setting up aTableRefDisplay
in the context of its data model.Defines a filter that depends on the context of a constraint.Provides methods for setting up aTableRefFilter
in the context of its data model.Computes a value when this value is not persisted by EBX® repository.Provides methods for setting up a value function in the context of its data model.
enumeration constraint
is more appropriate than this interface when there are many values in the enumeration or when display must be localized.