Interface BeanDefinition
public interface BeanDefinition
This interface is used to define the schema associated with a
non-persistent bean object (as opposed to a record or a dataset).
The root element for the schema of a dynamic bean is defined internally by EBX®. Therefore, all paths used by means of this class are relative to this root element and must be prefixed by './'.
- Since:
- 5.8.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SchemaTypeName
Special type used to create a file upload element. -
Method Summary
Modifier and TypeMethodDescriptioncreateComplexElement
(Path aPath) Creates a complex type element (a group).createComplexElement
(Path aPath, Class<?> aClassToInstantiate) Creates a complex type element (a group), mapped to a JavaBean.createElement
(Path aPath, SchemaTypeName aTypeName) Creates a simple type element (a field).
-
Field Details
-
OSD_FILE_UPLOAD
Special type used to create a file upload element.- See Also:
-
-
Method Details
-
createComplexElement
Creates a complex type element (a group).- Parameters:
aPath
- the path of the element relative to the root one.- Returns:
- the element.
-
createComplexElement
Creates a complex type element (a group), mapped to a JavaBean.- Parameters:
aPath
- the path of the element relative to the root one.aClassToInstantiate
- the class of the JavaBean to instantiate and map to the element.- Returns:
- the element.
-
createElement
Creates a simple type element (a field).The element type can be any type supported by EBX® except
osd:resource
,osd:UDA
andosd:UDACatalog
.- Parameters:
aPath
- the path of the element relative to the root one.aTypeName
- the type of the element.- Returns:
- the element.
-