public class JSONSchema
extends java.lang.Object
Constructor and Description |
---|
JSONSchema() |
JSONSchema(boolean orderNeeded,
boolean sortAsc) |
JSONSchema(com.ibm.json.java.JSONObject obj) |
JSONSchema(java.lang.String schemaURIVer) |
JSONSchema(java.lang.String schemaURIVer,
boolean orderNeeded,
boolean sortAsc) |
JSONSchema(java.lang.String schemaURI,
java.lang.String title,
java.lang.String description,
java.lang.String type) |
JSONSchema(java.lang.String schemaURI,
java.lang.String title,
java.lang.String description,
java.lang.String type,
boolean orderNeeded,
boolean sortAsc) |
Modifier and Type | Method and Description |
---|---|
JSONSchema |
addExtendedSchema(java.lang.String key,
com.ibm.json.java.JSONObject jo) |
JSONSchema |
addItem(JSONSchema js) |
JSONSchema |
addPrimaryKey(java.lang.String pkName) |
JSONSchema |
addPrimaryKeys(com.ibm.json.java.JSONArray pk) |
JSONSchema |
addProperty(JSONProperty jp) |
JSONSchema |
addRequired(com.ibm.json.java.JSONArray required) |
JSONSchema |
addSubRequired(java.lang.String requiredItem) |
JSONSchema |
addTermDefinition(com.ibm.json.java.JSONObject termDefinition) |
JSONSchema |
addTermSubDefinition(java.lang.String subSchemaName,
java.lang.Object subSchema) |
com.ibm.json.java.JSONObject |
build() |
JSONSchema |
descripton(java.lang.String description) |
com.ibm.json.java.JSONArray |
getPK() |
JSONSchema |
getProperty(java.lang.String propName) |
com.ibm.json.java.JSONArray |
getRequired() |
com.ibm.json.java.JSONObject |
getTermDefinition() |
java.lang.String |
getTermDescription() |
java.lang.String |
getTermRef() |
java.lang.String |
getTermSchemaURI() |
java.lang.String |
getTermSubType() |
java.lang.String |
getTermTitle() |
java.lang.String |
getTermType() |
JSONSchema |
isItem(boolean isItem) |
boolean |
isOrderNeeded() |
static void |
main(java.lang.String[] args) |
JSONSchema |
ref(java.lang.String ref) |
void |
removeProperty(java.lang.String propName) |
JSONSchema |
resource(java.lang.String resource) |
void |
schemaPrinter() |
JSONSchema |
schemaURI(java.lang.String schemaURI) |
JSONSchema |
setTermSubType(java.lang.String termSubType) |
JSONSchema |
title(java.lang.String title) |
com.ibm.json.java.JSONObject |
toJSON() |
byte[] |
toJSONByte() |
JSONSchema |
type(java.lang.String type) |
public JSONSchema()
public JSONSchema(boolean orderNeeded, boolean sortAsc)
public JSONSchema(java.lang.String schemaURIVer)
public JSONSchema(java.lang.String schemaURIVer, boolean orderNeeded, boolean sortAsc)
public JSONSchema(com.ibm.json.java.JSONObject obj)
public JSONSchema(java.lang.String schemaURI, java.lang.String title, java.lang.String description, java.lang.String type)
public JSONSchema(java.lang.String schemaURI, java.lang.String title, java.lang.String description, java.lang.String type, boolean orderNeeded, boolean sortAsc)
public JSONSchema addExtendedSchema(java.lang.String key, com.ibm.json.java.JSONObject jo)
public JSONSchema isItem(boolean isItem)
public boolean isOrderNeeded()
public java.lang.String getTermSchemaURI()
public JSONSchema schemaURI(java.lang.String schemaURI)
public java.lang.String getTermTitle()
public JSONSchema title(java.lang.String title)
public java.lang.String getTermDescription()
public JSONSchema descripton(java.lang.String description)
public JSONSchema resource(java.lang.String resource)
public java.lang.String getTermType()
public JSONSchema type(java.lang.String type)
public java.lang.String getTermRef()
public JSONSchema ref(java.lang.String ref)
public java.lang.String getTermSubType()
public JSONSchema setTermSubType(java.lang.String termSubType)
public com.ibm.json.java.JSONObject getTermDefinition()
public JSONSchema addTermDefinition(com.ibm.json.java.JSONObject termDefinition)
public JSONSchema addTermSubDefinition(java.lang.String subSchemaName, java.lang.Object subSchema)
public com.ibm.json.java.JSONArray getRequired()
public JSONSchema addSubRequired(java.lang.String requiredItem)
public JSONSchema addRequired(com.ibm.json.java.JSONArray required)
public com.ibm.json.java.JSONArray getPK()
public JSONSchema addPrimaryKey(java.lang.String pkName)
public JSONSchema addPrimaryKeys(com.ibm.json.java.JSONArray pk)
public JSONSchema addProperty(JSONProperty jp)
public void removeProperty(java.lang.String propName) throws MXException
MXException
public JSONSchema getProperty(java.lang.String propName)
public JSONSchema addItem(JSONSchema js)
public com.ibm.json.java.JSONObject build()
public void schemaPrinter()
public byte[] toJSONByte() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public com.ibm.json.java.JSONObject toJSON()
public static void main(java.lang.String[] args) throws MXException
MXException