Class OptionsSchema.Builder
java.lang.Object
org.refcodes.schema.Schema.Builder
org.refcodes.runtime.OptionsSchema.Builder
- All Implemented Interfaces:
org.refcodes.exception.ExceptionAccessor.ExceptionBuilder<Throwable,,org.refcodes.schema.Schema.Builder> org.refcodes.mixin.AliasAccessor.AliasBuilder<org.refcodes.schema.Schema.Builder>,org.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<org.refcodes.schema.Schema[],,org.refcodes.schema.Schema.Builder> org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<org.refcodes.schema.Schema.Builder>,org.refcodes.mixin.HashAccessor.HashBuilder<org.refcodes.schema.Schema.Builder>,org.refcodes.mixin.IdentifierAccessor.IdentifierBuilder<org.refcodes.schema.Schema.Builder>,org.refcodes.mixin.InstanceAccessor.InstanceBuilder<Object,,org.refcodes.schema.Schema.Builder> org.refcodes.mixin.KeyAccessor.KeyBuilder<String,,org.refcodes.schema.Schema.Builder> org.refcodes.mixin.StereotypeAccessor.StereotypeBuilder<String,,org.refcodes.schema.Schema.Builder> org.refcodes.mixin.TypeAccessor.TypeBuilder<Class<?>,,org.refcodes.schema.Schema.Builder> org.refcodes.mixin.ValueAccessor.ValueBuilder<Object,org.refcodes.schema.Schema.Builder>
- Enclosing class:
OptionsSchema
public static final class OptionsSchema.Builder
extends org.refcodes.schema.Schema.Builder
Builder for creating
OptionsSchema instances.
The builder collects common schema metadata (identifier, alias, key, type, hash, description, stereotype, exception, value), custom options, and optional children.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withChildren(Collection<? extends org.refcodes.schema.Schema> aChildren) withChildren(org.refcodes.schema.Schema... aChildren) withDescription(String aDescription) withException(Throwable aException) withHash(int aHash) withIdentifier(String aIdentifier) withInstance(Object aInstance) withProperty(String aKey, Object aValue) withSchema(org.refcodes.schema.Schema aSchema) withStereotype(String aStereotype) Methods inherited from class org.refcodes.schema.Schema.Builder
withAddChildren, withAddChildren
-
Method Details
-
withIdentifier
- Specified by:
withIdentifierin interfaceorg.refcodes.mixin.IdentifierAccessor.IdentifierBuilder<org.refcodes.schema.Schema.Builder>- Overrides:
withIdentifierin classorg.refcodes.schema.Schema.Builder
-
withAlias
- Specified by:
withAliasin interfaceorg.refcodes.mixin.AliasAccessor.AliasBuilder<org.refcodes.schema.Schema.Builder>- Overrides:
withAliasin classorg.refcodes.schema.Schema.Builder
-
withKey
- Specified by:
withKeyin interfaceorg.refcodes.mixin.KeyAccessor.KeyBuilder<String,org.refcodes.schema.Schema.Builder> - Overrides:
withKeyin classorg.refcodes.schema.Schema.Builder
-
withType
- Specified by:
withTypein interfaceorg.refcodes.mixin.TypeAccessor.TypeBuilder<Class<?>,org.refcodes.schema.Schema.Builder> - Overrides:
withTypein classorg.refcodes.schema.Schema.Builder
-
withHash
- Specified by:
withHashin interfaceorg.refcodes.mixin.HashAccessor.HashBuilder<org.refcodes.schema.Schema.Builder>- Overrides:
withHashin classorg.refcodes.schema.Schema.Builder
-
withInstance
- Specified by:
withInstancein interfaceorg.refcodes.mixin.InstanceAccessor.InstanceBuilder<Object,org.refcodes.schema.Schema.Builder> - Overrides:
withInstancein classorg.refcodes.schema.Schema.Builder
-
withStereotype
- Specified by:
withStereotypein interfaceorg.refcodes.mixin.StereotypeAccessor.StereotypeBuilder<String,org.refcodes.schema.Schema.Builder> - Overrides:
withStereotypein classorg.refcodes.schema.Schema.Builder
-
withValue
- Specified by:
withValuein interfaceorg.refcodes.mixin.ValueAccessor.ValueBuilder<Object,org.refcodes.schema.Schema.Builder> - Overrides:
withValuein classorg.refcodes.schema.Schema.Builder
-
withException
- Specified by:
withExceptionin interfaceorg.refcodes.exception.ExceptionAccessor.ExceptionBuilder<Throwable,org.refcodes.schema.Schema.Builder> - Overrides:
withExceptionin classorg.refcodes.schema.Schema.Builder
-
withDescription
- Specified by:
withDescriptionin interfaceorg.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<org.refcodes.schema.Schema.Builder>- Overrides:
withDescriptionin classorg.refcodes.schema.Schema.Builder
-
withSchema
- Overrides:
withSchemain classorg.refcodes.schema.Schema.Builder
-
withChildren
- Specified by:
withChildrenin interfaceorg.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<org.refcodes.schema.Schema[],org.refcodes.schema.Schema.Builder> - Overrides:
withChildrenin classorg.refcodes.schema.Schema.Builder
-
withChildren
public OptionsSchema.Builder withChildren(Collection<? extends org.refcodes.schema.Schema> aChildren) - Overrides:
withChildrenin classorg.refcodes.schema.Schema.Builder
-
withProperty
- Overrides:
withPropertyin classorg.refcodes.schema.Schema.Builder
-
build
- Overrides:
buildin classorg.refcodes.schema.Schema.Builder
-