- adapt
Adds an adaptation from the element type of this element to the adaptation type.
An adaptation is a
- addAttribute
Add the key for an attribute. If an attribute with the same ID already exists,
the previous attribut
- addElement
Add the metadata for a child element. If an element with the same ID already
exists, the previous el
- addUndeclaredElementMarker
Sets the location of the undeclared elements. By default, undeclared elements
appear after all decla
- replaceAttribute
Replaces the existing metadata for an attribute.
- replaceElement
Replaces the existing metadata for a child element.
- setCardinality
Sets the cardinality of the element. The cardinality can be either
Cardinality#SINGLE for only a sin
- setContentRequired
Sets whether the element's content is required. By default the content is
required if the datatype i
- setName
Sets the name of the element. This can be used after copying some other metadata
to change the name.
- setProperties
Sets the element's properties. This is used to provide additional information
during parsing/generat
- setRequired
Sets the requiredness of this element. This means that the element must appear
in the parent element
- setValidator
Sets the element's validator. The validator is used to check that the element
has all required attri