Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JSCHE_ARRAY |
static java.lang.String |
JSCHE_BOOLEAN |
static java.lang.String |
JSCHE_INTEGER |
static java.lang.String |
JSCHE_NULL |
static java.lang.String |
JSCHE_NUMBER |
static java.lang.String |
JSCHE_OBJECT |
static java.lang.String |
JSCHE_STRING |
ACCEPT_HEADER, ACCEPT_LANGUAGE_HEADER, ALLOWEDACTIONS, ALLOWEDOPTIONS, ALLOWEDSTATES, ATTACHMENT_MEMBER, CONTENTTYPE_HEADER, CREATION_DIALOG, CREATION_FACTORY, DCTERMS_NS, DEFAULT_USAGE, DESCENDENT, ETAG_HEADER, EXTENDED_TYPES, FOAF_NS, IFMATCH_HEADER, INSTANCE_SHAPE, INTERNALSTATUS, LOCATION_HEADER, MIME_TYPE_COMPACTRDFXML, MIME_TYPE_OSLCJSON, MIME_TYPE_RDFXML, OCCURS_EXACTLY_ONE, OCCURS_ONE_OR_MANY, OCCURS_ZERO_OR_MANY, OCCURS_ZERO_OR_ONE, OSLC_CM_NS, OSLC_FORMAT_COMPACTXML, OSLC_FORMAT_CSV, OSLC_FORMAT_FORMENCODED, OSLC_FORMAT_OSLCJSON, OSLC_FORMAT_OSLCLEANJSON, OSLC_FORMAT_RDFJSON, OSLC_FORMAT_RDFXML, OSLC_FORMAT_XML, OSLC_NS, OSLC_VERSION_HEADER, QUERY_CAPABILITY, RDF_NS, RDFS_MEMBER, RDFS_MEMBER_QNAME, RDFS_NS, REPRESENTATION_EITHER, REPRESENTATION_INLINE, REPRESENTATION_REFERENCE, RR_DOMAIN_URI, RR_NS, SELECTION_DIALOG, SPI_NS, TYPE_ANYRESOURCE, TYPE_BOOLEAN, TYPE_DATETIME, TYPE_DECIMAL, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INTEGER, TYPE_LOCALRESOURCE, TYPE_RESOURCE, TYPE_RESOURCESHAPE, TYPE_STRING, TYPE_XMLLITERAL, WDRS_NS
Constructor and Description |
---|
OslcJsonSchemaGenerator(OslcRequest oslcRequest,
java.lang.String osName,
java.lang.String relatedResource) |
Modifier and Type | Method and Description |
---|---|
void |
addPrimaryKeys(JSONSchema jsonSchema,
MosDetailInfo mosDetailInfo) |
void |
createAttachmentLiteralProperty(boolean occur,
java.lang.String propName,
JSONSchema jsonschema,
java.lang.String type,
java.lang.String title,
java.lang.String defaultValueOrigin,
int maxLength,
IfaceColumnInfo ifcl) |
void |
createAttachmentResourceProperty(java.lang.String occurs,
java.lang.String propName,
JSONSchema jsonschema,
java.lang.String valueType,
java.lang.String subSchemaURI,
java.lang.String title,
java.lang.String usageURIs,
java.lang.String representationURI) |
void |
createImplicitProperties(JSONSchema jsonschema) |
void |
createLiteralProperty(boolean occurs,
java.lang.String propName,
JSONSchema js,
java.lang.String propNs,
java.lang.String valueType,
MosDetailInfo mosDetailInfo,
OslcResourceDetailInfo resourceDetailInfo,
IfaceColumnInfo colInfo,
Mbo zombieMbo) |
void |
createRelationLiteralProperty(boolean occurs,
java.lang.String propName,
JSONSchema js,
MboValueInfo mvi,
MboValueInfoStatic mvis,
java.lang.String overrideTitle) |
void |
createResourceProperty(boolean occurs,
java.lang.String propName,
JSONSchema jschema,
java.lang.String propNs,
java.lang.String valueType,
java.lang.String linkOSName,
MosDetailInfo mosDetailInfo,
OslcResourceDetailInfo resourceDetailInfo,
IfaceColumnInfo colInfo) |
JSONSchema |
generateJSONSchema() |
java.util.Map<java.lang.String,java.lang.String> |
getMapDesc() |
OslcResourceResponse |
getRepresentation() |
com.ibm.json.java.JSONObject |
getRepresentationAsJSON() |
byte[] |
getShape() |
com.ibm.json.java.JSONObject |
getShapeAsJSON() |
boolean |
isAddEnum() |
void |
loadOSDetailDescriptions() |
void |
relatedJSONSchema(java.lang.String xattr,
java.lang.String curxattr,
MboSetRemote msr,
Mbo zombieMbo,
JSONSchema jsonSchema,
java.util.Map<java.lang.String,OslcResourceProperty> resProp) |
void |
relationJSONSchema(java.lang.String xattr,
java.lang.String curxattr,
MboSetRemote msr,
Mbo zombieMbo,
JSONSchema jsonSchema) |
void |
relationJSONSchema(java.lang.String xattr,
java.lang.String curxattr,
MboSetRemote msr,
Mbo zombieMbo,
JSONSchema jsonSchema,
java.lang.String alias) |
void |
setAddEnum(boolean addEnum) |
void |
setMapDesc(java.util.Map<java.lang.String,java.lang.String> mapDesc) |
void |
setResourceProperties(java.util.Map<java.lang.String,OslcResourceProperty> resourceProperties) |
public static final java.lang.String JSCHE_STRING
public static final java.lang.String JSCHE_NUMBER
public static final java.lang.String JSCHE_NULL
public static final java.lang.String JSCHE_INTEGER
public static final java.lang.String JSCHE_BOOLEAN
public static final java.lang.String JSCHE_ARRAY
public static final java.lang.String JSCHE_OBJECT
public OslcJsonSchemaGenerator(OslcRequest oslcRequest, java.lang.String osName, java.lang.String relatedResource) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setAddEnum(boolean addEnum)
public boolean isAddEnum()
public void setResourceProperties(java.util.Map<java.lang.String,OslcResourceProperty> resourceProperties)
public void createResourceProperty(boolean occurs, java.lang.String propName, JSONSchema jschema, java.lang.String propNs, java.lang.String valueType, java.lang.String linkOSName, MosDetailInfo mosDetailInfo, OslcResourceDetailInfo resourceDetailInfo, IfaceColumnInfo colInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void createAttachmentResourceProperty(java.lang.String occurs, java.lang.String propName, JSONSchema jsonschema, java.lang.String valueType, java.lang.String subSchemaURI, java.lang.String title, java.lang.String usageURIs, java.lang.String representationURI) throws MXException
MXException
public void createLiteralProperty(boolean occurs, java.lang.String propName, JSONSchema js, java.lang.String propNs, java.lang.String valueType, MosDetailInfo mosDetailInfo, OslcResourceDetailInfo resourceDetailInfo, IfaceColumnInfo colInfo, Mbo zombieMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void createRelationLiteralProperty(boolean occurs, java.lang.String propName, JSONSchema js, MboValueInfo mvi, MboValueInfoStatic mvis, java.lang.String overrideTitle) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void createAttachmentLiteralProperty(boolean occur, java.lang.String propName, JSONSchema jsonschema, java.lang.String type, java.lang.String title, java.lang.String defaultValueOrigin, int maxLength, IfaceColumnInfo ifcl) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void createImplicitProperties(JSONSchema jsonschema) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void relationJSONSchema(java.lang.String xattr, java.lang.String curxattr, MboSetRemote msr, Mbo zombieMbo, JSONSchema jsonSchema) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void relationJSONSchema(java.lang.String xattr, java.lang.String curxattr, MboSetRemote msr, Mbo zombieMbo, JSONSchema jsonSchema, java.lang.String alias) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void relatedJSONSchema(java.lang.String xattr, java.lang.String curxattr, MboSetRemote msr, Mbo zombieMbo, JSONSchema jsonSchema, java.util.Map<java.lang.String,OslcResourceProperty> resProp) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public JSONSchema generateJSONSchema() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public OslcResourceResponse getRepresentation() throws MXException, java.rmi.RemoteException, java.io.UnsupportedEncodingException
MXException
java.rmi.RemoteException
java.io.UnsupportedEncodingException
public com.ibm.json.java.JSONObject getRepresentationAsJSON() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public byte[] getShape() throws MXException, java.rmi.RemoteException, java.io.UnsupportedEncodingException
MXException
java.rmi.RemoteException
java.io.UnsupportedEncodingException
public com.ibm.json.java.JSONObject getShapeAsJSON() throws MXException, java.rmi.RemoteException, java.io.UnsupportedEncodingException
MXException
java.rmi.RemoteException
java.io.UnsupportedEncodingException
public void addPrimaryKeys(JSONSchema jsonSchema, MosDetailInfo mosDetailInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void loadOSDetailDescriptions() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public java.util.Map<java.lang.String,java.lang.String> getMapDesc()
public void setMapDesc(java.util.Map<java.lang.String,java.lang.String> mapDesc)