Class JSONSchema
- java.lang.Object
-
- org.apache.unomi.graphql.schema.json.JSONType
-
- org.apache.unomi.graphql.schema.json.JSONSchema
-
- All Implemented Interfaces:
PluginType
public class JSONSchema extends JSONType implements PluginType
-
-
Field Summary
-
Fields inherited from class org.apache.unomi.graphql.schema.json.JSONType
jsonTypeFactory, schemaTree
-
-
Constructor Summary
Constructors Constructor Description JSONSchema(Map<String,Object> schemaTree, JSONTypeFactory jsonTypeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
long
getPluginId()
Retrieves the plugin identifier, corresponding to the identifier of the OSGi bundle implementing the plugin.List<JSONType>
getRootTypes()
String
getSchemaId()
String
getTarget()
String
getVendor()
String
getVersion()
void
setName(String name)
void
setPluginId(long pluginId)
Associates this plugin with its associated OSGi bundle identifier.void
setSchemaId(String schemaId)
void
setTarget(String target)
void
setVendor(String vendor)
void
setVersion(String version)
-
Methods inherited from class org.apache.unomi.graphql.schema.json.JSONType
getAllOf, getAnyOf, getCustomKeywords, getJsonTypeFactory, getOneOf, getRef, getSchemaTree, getType, merge, setType
-
-
-
-
Constructor Detail
-
JSONSchema
public JSONSchema(Map<String,Object> schemaTree, JSONTypeFactory jsonTypeFactory)
-
-
Method Detail
-
getVendor
public String getVendor()
-
setVendor
public void setVendor(String vendor)
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getPluginId
public long getPluginId()
Description copied from interface:PluginType
Retrieves the plugin identifier, corresponding to the identifier of the OSGi bundle implementing the plugin.- Specified by:
getPluginId
in interfacePluginType
- Returns:
- the plugin identifier, corresponding to the identifier of the OSGi bundle implementing the plugin
-
setPluginId
public void setPluginId(long pluginId)
Description copied from interface:PluginType
Associates this plugin with its associated OSGi bundle identifier.- Specified by:
setPluginId
in interfacePluginType
- Parameters:
pluginId
- the OSGi bundle identifier associated with this plugin
-
getSchemaId
public String getSchemaId()
-
setSchemaId
public void setSchemaId(String schemaId)
-
getTarget
public String getTarget()
-
setTarget
public void setTarget(String target)
-
-