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 StringgetName()longgetPluginId()Retrieves the plugin identifier, corresponding to the identifier of the OSGi bundle implementing the plugin.List<JSONType>getRootTypes()StringgetSchemaId()StringgetTarget()StringgetVendor()StringgetVersion()voidsetName(String name)voidsetPluginId(long pluginId)Associates this plugin with its associated OSGi bundle identifier.voidsetSchemaId(String schemaId)voidsetTarget(String target)voidsetVendor(String vendor)voidsetVersion(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:PluginTypeRetrieves the plugin identifier, corresponding to the identifier of the OSGi bundle implementing the plugin.- Specified by:
getPluginIdin 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:PluginTypeAssociates this plugin with its associated OSGi bundle identifier.- Specified by:
setPluginIdin 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)
-
-