Annotation Interface TypeDsl
Allows setting directives regarding syntax and semantics of the generated XML DSL.
- Since:
- 1.0
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the associated element should support inline definition as child element.booleanWhether the associated element should support being defined as a top level element.Specifies that the annotated type should extend from an specific baseType If the namespace prefix does not exist or the string doesn't match the required format, anIllegalArgumentExceptionwill be thrown.Specifies that the annotated element should extend a particular substitution group.
-
Element Details
-
allowInlineDefinition
boolean allowInlineDefinitionWhether the associated element should support inline definition as child element. Defaults totrue- Default:
- true
-
allowTopLevelDefinition
boolean allowTopLevelDefinitionWhether the associated element should support being defined as a top level element. This directive only makes sense when the annotation is applied on a type level, on a class which is being used as a complex parameter. Defaults tofalse- Default:
- false
-
substitutionGroup
String substitutionGroupSpecifies that the annotated element should extend a particular substitution group. The format expected is prefix:element where the prefix should correspond to an existent one related to an imported namespace. The element should belong to the namespace related to that prefix. If the namespace prefix does not exist or the string doesn't match the required format, anIllegalArgumentExceptionwill be thrown.- Default:
- ""
-
baseType
String baseTypeSpecifies that the annotated type should extend from an specific baseType If the namespace prefix does not exist or the string doesn't match the required format, anIllegalArgumentExceptionwill be thrown.- Returns:
- the baseType defined or the default
- Default:
- ""
-