- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
,Object> AliasAccessor
,ChildrenAccessor<Schema[]>
,DescriptionAccessor
,Schema
,TypeAccessor
The purpose of a
Schema
is automatically generate documentation of
nested data structures.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
AliasAccessor.AliasBuilder<B extends AliasAccessor.AliasBuilder<B>>, AliasAccessor.AliasMutator, AliasAccessor.AliasProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.ChildrenAccessor
ChildrenAccessor.ChildrenBuilder<T,
B extends ChildrenAccessor.ChildrenBuilder<T, B>>, ChildrenAccessor.ChildrenMutator<T>, ChildrenAccessor.ChildrenProperty<T> Nested classes/interfaces inherited from interface org.refcodes.mixin.DescriptionAccessor
DescriptionAccessor.DescriptionBuilder<B extends DescriptionAccessor.DescriptionBuilder<B>>, DescriptionAccessor.DescriptionMutator, DescriptionAccessor.DescriptionProperty
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,
V extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor
TypeAccessor.TypeBuilder<T,
B extends TypeAccessor.TypeBuilder<T, B>>, TypeAccessor.TypeMutator<T>, TypeAccessor.TypeProperty<T> -
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractSchema
(Class<?> aType, String aDescription) Constructs aSchema
with the provided arguments.AbstractSchema
(Class<?> aType, String aDescription, Schema... aChildren) Constructs aSchema
with the provided arguments.AbstractSchema
(Class<?> aType, Schema aSchema) Constructs aSchema
with the provided arguments.AbstractSchema
(String aAlias, Class<?> aType) Constructs aSchema
with the provided arguments.AbstractSchema
(String aAlias, Class<?> aType, String aDescription) Constructs aSchema
with the provided arguments.AbstractSchema
(String aAlias, Class<?> aType, String aDescription, Schema... aChildren) Constructs aSchema
with the provided arguments.AbstractSchema
(Schema aSchema) AbstractSchema
(Schema aSchema, Schema... aChildren) -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from interface org.refcodes.mixin.Schema
getAlias, getDescription, getType
-
Constructor Details
-
AbstractSchema
Constructs aSchema
with the provided arguments. -
AbstractSchema
Constructs aSchema
with the provided arguments. -
AbstractSchema
Constructs aSchema
with the provided arguments. -
AbstractSchema
Constructs aSchema
with the provided arguments. -
AbstractSchema
Constructs aSchema
with the provided arguments.- Parameters:
aAlias
- The alias (name) of the schema described by theSchema
providing type.aType
- The type providing the thisSchema
instance.aDescription
- The description of the schema described by theSchema
providing type.aChildren
- The children'sSchema
descriptions representing part of theSchema
providing type.
-
AbstractSchema
- Parameters:
aSchema
- TheSchema
from which to copy the attributes.
-
AbstractSchema
Constructs aSchema
with the provided arguments. -
AbstractSchema
-
-
Method Details
-
getChildren
Retrieves the children from the children property.- Specified by:
getChildren
in interfaceChildrenAccessor<Schema[]>
- Specified by:
getChildren
in interfaceSchema
- Returns:
- The children stored by the children property.
-
toString
- Overrides:
toString
in classAbstractMap<String,
Object>
-
toString
Hook method for converting a type to an accordingString
.- Parameters:
aValue
- The value of a given type to be converted accordingly.- Returns:
- The accordingly converted value.
-