Interface ElementDefinition<C extends ConfigurationInfo>
-
- All Known Implementing Classes:
DefaultElementDefinition
public interface ElementDefinition<C extends ConfigurationInfo>Defines a container for a set of configurationAttribute. It is usually represented as a top level element when serialized as XML or a top level object for JSON and is associated with a Configuration instance. An ElementDefinition can contain zero or more sub-elements representing nested configurations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classElementDefinition.ElementOutputAn ElementOutput specifies the name and optionally the class that an element must be serialized.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisSynthetic(java.lang.String attributeName)booleanisTopLevel()booleansupports(java.lang.String elementName)ElementDefinition.ElementOutputtoExternalName(C configuration)
-
-
-
Method Detail
-
isTopLevel
boolean isTopLevel()
- Returns:
- true if the ElementDefinition is top-level or false if its attributes and children should be merged with the parent element when serializing.
-
toExternalName
ElementDefinition.ElementOutput toExternalName(C configuration)
- Returns:
- the
ElementDefinition.ElementOutputfor serialization purposes of the configuration element.
-
isSynthetic
default boolean isSynthetic(java.lang.String attributeName)
- Returns:
- true if the attributeName inside the element is not mapped to any
Attribute, but as a helper to identify the element when reading it back.
-
supports
boolean supports(java.lang.String elementName)
- Returns:
- true if a serialized elementName matches this ElementDefinition.
-
-