java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.refcodes.mixin.AbstractSchema<SerialSchema>
org.refcodes.serial.SerialSchema
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> org.refcodes.mixin.AliasAccessor,org.refcodes.mixin.ChildrenAccessor<org.refcodes.mixin.Schema<SerialSchema>[]>,org.refcodes.mixin.DescriptionAccessor,org.refcodes.mixin.LengthAccessor,org.refcodes.mixin.Schema<SerialSchema>,org.refcodes.mixin.TypeAccessor,org.refcodes.mixin.ValueAccessor<Sequence>
public class SerialSchema
extends org.refcodes.mixin.AbstractSchema<SerialSchema>
implements org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.DescriptionAccessor, org.refcodes.mixin.ValueAccessor<Sequence>
The purpose of a
SerialSchema is automatically generate documentation
of serial data. It describes a portion of defined data such as a
AllocSectionDecoratorSegment and its components such as
Segment or Section. A type supporting its schema
representation- 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
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasPropertyNested classes/interfaces inherited from interface org.refcodes.mixin.ChildrenAccessor
org.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<T extends Object,B extends org.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<T, B>>, org.refcodes.mixin.ChildrenAccessor.ChildrenMutator<T extends Object>, org.refcodes.mixin.ChildrenAccessor.ChildrenProperty<T extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.DescriptionAccessor
org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B extends org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B>>, org.refcodes.mixin.DescriptionAccessor.DescriptionMutator, org.refcodes.mixin.DescriptionAccessor.DescriptionPropertyNested classes/interfaces inherited from interface org.refcodes.mixin.LengthAccessor
org.refcodes.mixin.LengthAccessor.LengthBuilder<B extends org.refcodes.mixin.LengthAccessor.LengthBuilder<B>>, org.refcodes.mixin.LengthAccessor.LengthMutator, org.refcodes.mixin.LengthAccessor.LengthPropertyNested 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
org.refcodes.mixin.TypeAccessor.TypeBuilder<T extends Object,B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T, B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T extends Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends Object> Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V, B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object> -
Field Summary
FieldsFields inherited from interface org.refcodes.mixin.Schema
ALIAS, DESCRIPTION, KEY, TYPE, VALUE -
Constructor Summary
ConstructorsConstructorDescriptionSerialSchema(Class<?> aType, String aDescription, String aAlias, int aLength) Constructs aSerialSchemawith the provided arguments.SerialSchema(Class<?> aType, String aDescription, String aAlias, Sequence aValue, int aLength) Constructs aSerialSchemawith the provided arguments.SerialSchema(Class<?> aType, String aDescription, String aAlias, Sequence aValue, int aLength, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.SerialSchema(Class<?> aType, String aDescription, String aAlias, Sequence aValue, String aVerbose, int aLength) Constructs aSerialSchemawith the provided arguments.SerialSchema(Class<?> aType, String aDescription, String aAlias, Sequence aValue, String aVerbose, int aLength, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.SerialSchema(Class<?> aType, String aDescription, Sequence aValue, int aLength) Constructs aSerialSchemawith the provided arguments.SerialSchema(Class<?> aType, String aDescription, Sequence aValue, int aLength, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.SerialSchema(Class<?> aType, String aDescription, Sequence aValue, String aVerbose, int aLength) Constructs aSerialSchemawith the provided arguments.SerialSchema(Class<?> aType, String aDescription, Sequence aValue, String aVerbose, int aLength, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.SerialSchema(Class<?> aType, String aDescription, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.SerialSchema(String aAlias, String aDescription, Class<?> aType, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.SerialSchema(SerialSchema aSchema) Constructs aSerialSchemawith the properties of the providedSerialSchema("copy constructor"),.SerialSchema(SerialSchema aSchema, SerialSchema... aChildren) Constructs aSerialSchemawith the properties of the providedSerialSchema("copy constructor"),. -
Method Summary
Methods inherited from class org.refcodes.mixin.AbstractSchema
getChildren, getType, toStringMethods 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, valuesMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, valuesMethods inherited from interface org.refcodes.mixin.ValueAccessor
getValueOr
-
Field Details
-
VERBOSE
- See Also:
-
LENGTH
- See Also:
-
-
Constructor Details
-
SerialSchema
Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aChildren- The children'sSerialSchemadescriptions representing part of theSerialSchemaproviding type.
-
SerialSchema
Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aValue- The content of theSerialSchemaproviding type.aLength- The length of theSerialSchemaproviding type.
-
SerialSchema
public SerialSchema(Class<?> aType, String aDescription, Sequence aValue, String aVerbose, int aLength) Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aValue- The content of theSerialSchemaproviding type.aVerbose- The verbose representation of the value.aLength- The length of theSerialSchemaproviding type.
-
SerialSchema
public SerialSchema(Class<?> aType, String aDescription, Sequence aValue, int aLength, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aValue- The content of theSerialSchemaproviding type.aLength- The length of theSerialSchemaproviding type.aChildren- The children'sSerialSchemadescriptions representing part of theSerialSchemaproviding type.
-
SerialSchema
public SerialSchema(Class<?> aType, String aDescription, Sequence aValue, String aVerbose, int aLength, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aValue- The content of theSerialSchemaproviding type.aVerbose- The verbose representation of the value.aLength- The length of theSerialSchemaproviding type.aChildren- The children'sSerialSchemadescriptions representing part of theSerialSchemaproviding type.
-
SerialSchema
Constructs aSerialSchemawith the provided arguments.- Parameters:
aAlias- The alias (name) of the schema described by theSerialSchemaproviding type.aDescription- The description of the schema described by theSerialSchemaproviding type.aType- The type providing the thisSerialSchemainstance.aChildren- The children'sSerialSchemadescriptions representing part of theSerialSchemaproviding type.
-
SerialSchema
Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aAlias- The alias (name) of the schema described by theSerialSchemaproviding type.aLength- The length of theSerialSchemaproviding type.
-
SerialSchema
public SerialSchema(Class<?> aType, String aDescription, String aAlias, Sequence aValue, int aLength) Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aAlias- The alias (name) of the schema described by theSerialSchemaproviding type.aValue- The content of theSerialSchemaproviding type.aLength- The length of theSerialSchemaproviding type.
-
SerialSchema
public SerialSchema(Class<?> aType, String aDescription, String aAlias, Sequence aValue, String aVerbose, int aLength) Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aAlias- The alias (name) of the schema described by theSerialSchemaproviding type.aValue- The content of theSerialSchemaproviding type.aVerbose- The verbose representation of the value.aLength- The length of theSerialSchemaproviding type.
-
SerialSchema
public SerialSchema(Class<?> aType, String aDescription, String aAlias, Sequence aValue, int aLength, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aAlias- The alias (name) of the schema described by theSerialSchemaproviding type.aValue- The content of theSerialSchemaproviding type.aLength- The length of theSerialSchemaproviding type.aChildren- The children'sSerialSchemadescriptions representing part of theSerialSchemaproviding type.
-
SerialSchema
public SerialSchema(Class<?> aType, String aDescription, String aAlias, Sequence aValue, String aVerbose, int aLength, SerialSchema... aChildren) Constructs aSerialSchemawith the provided arguments.- Parameters:
aType- The type providing the thisSerialSchemainstance.aDescription- The description of the schema described by theSerialSchemaproviding type.aAlias- The alias (name) of the schema described by theSerialSchemaproviding type.aValue- The content of theSerialSchemaproviding type.aVerbose- The verbose representation of the value.aLength- The length of theSerialSchemaproviding type.aChildren- The children'sSerialSchemadescriptions representing part of theSerialSchemaproviding type.
-
SerialSchema
Constructs aSerialSchemawith the properties of the providedSerialSchema("copy constructor"),.- Parameters:
aSchema- TheSerialSchemafrom which to copy the attributes.
-
SerialSchema
Constructs aSerialSchemawith the properties of the providedSerialSchema("copy constructor"),.- Parameters:
aSchema- TheSerialSchemafrom which to copy the attributes.aChildren- The children'sSerialSchemadescriptions representing part of theSerialSchemaproviding type.
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceorg.refcodes.mixin.ValueAccessor<Sequence>
-
getLength
public int getLength()- Specified by:
getLengthin interfaceorg.refcodes.mixin.LengthAccessor
-
getVerbose
Retrieves the verbose representation of the value.- Returns:
- The human readable value representation.
-
getDescription
- Specified by:
getDescriptionin interfaceorg.refcodes.mixin.DescriptionAccessor
-
getAlias
- Specified by:
getAliasin interfaceorg.refcodes.mixin.AliasAccessor
-
toString
- Overrides:
toStringin classorg.refcodes.mixin.AbstractSchema<SerialSchema>
-