Interface Element
- All Known Implementing Classes:
ArrayElement, NullElement, ObjectElement, PrimitiveElement
An abstract element that can be included into any document type. Not all implemented types must be supported by a
document type. The default element types are:
- Objects
- Arrays
- Primitives
- Null
- Since:
- 4.0
-
Field Summary
Fields -
Method Summary
-
Field Details
-
NO_KEY
Indicates that an element has no key. This key is only used for array entries at the moment.- See Also:
-
-
Method Details
-
key
-
accept
Applies the given visitor to this element. It is up to the implementation (and therefore the element type) to decide what steps should be executed on the given element visitor.- Parameters:
visitor- the visitor to apply to this element.- Throws:
NullPointerException- if the given visitor is null.
-