public interface Model
Modifier and Type | Method and Description |
---|---|
void |
addListener(java.beans.PropertyChangeListener listener)
Add an event listener.
|
java.lang.String |
getName()
Get the name of this model, for example "Customer".
|
com.ibm.broker.rest.schema.Schema |
getSchema()
Get the Schema for this model.
|
java.lang.String |
getSchemaAsString(com.ibm.broker.rest.schema.SchemaType schemaType)
Get the schema for this model as a string.
|
void |
removeListener(java.beans.PropertyChangeListener listener)
Remove an event listener.
|
Model |
setName(java.lang.String name)
Set the name of this model, for example "Customer".
|
Model |
setSchema(com.ibm.broker.rest.schema.Schema schema)
Set the Schema for this model.
|
Model |
setSchema(com.ibm.broker.rest.schema.SchemaType schemaType,
java.lang.String schema)
Set the schema for this model.
|
java.lang.String getName()
Model setName(java.lang.String name) throws ApiException
name
- the new name of this model.ApiException
- if the name could not be changed.java.lang.String getSchemaAsString(com.ibm.broker.rest.schema.SchemaType schemaType)
schemaType
- the type of the schema to retrieve, for example JSON Schema.com.ibm.broker.rest.schema.Schema getSchema() throws ApiException
ApiException
Model setSchema(com.ibm.broker.rest.schema.Schema schema) throws ApiException
schema
- the desired Schema.ApiException
Model setSchema(com.ibm.broker.rest.schema.SchemaType schemaType, java.lang.String schema) throws ApiException
schemaType
- the type of the schema to set, for example JSON Schema.schema
- the schema as a string.ApiException
- if the schema could not be changed.void addListener(java.beans.PropertyChangeListener listener)
listener
- void removeListener(java.beans.PropertyChangeListener listener)
listener
-