public class SchemaBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
SchemaBuilder |
addActionClass(java.lang.Class<? extends Action> actionClass,
java.lang.Class<? extends ActionResult> actionResultClass)
Add action class to the schema
|
Schema |
build()
Build schema object.
|
static SchemaBuilder |
newSchemaBuilder(java.lang.String thingType,
java.lang.String schemaName,
int schemaVersion,
java.lang.Class<? extends TargetState> stateClass)
Instantiate new SchemaBuilder.
|
public static SchemaBuilder newSchemaBuilder(java.lang.String thingType, java.lang.String schemaName, int schemaVersion, java.lang.Class<? extends TargetState> stateClass)
thingType
- type of the thing to which schema is bound.schemaName
- name of the schema.schemaVersion
- version of schema.stateClass
- State class defines target state in this schema.public SchemaBuilder addActionClass(java.lang.Class<? extends Action> actionClass, java.lang.Class<? extends ActionResult> actionResultClass)
actionClass
- action defined in schema is serialized in this
class.actionResultClass
- action result defined in the schema is serialized
in this class.public Schema build()
Copyright 2015 Kii Corporation. All rights reserved. (Last updated on 2016-10-13 08:55 UTC)