com.ibm.tivoli.maximo.oslc.provider

Class OslcJsonSchemaGenerator

  • java.lang.Object
    • com.ibm.tivoli.maximo.oslc.provider.OslcJsonSchemaGenerator
  • All Implemented Interfaces:
    Constants


    public class OslcJsonSchemaGenerator
    extends java.lang.Object
    implements Constants
    • Constructor Detail

      • OslcJsonSchemaGenerator

        public OslcJsonSchemaGenerator(java.lang.String osName,
                                       java.util.Map resourceProperties,
                                       boolean internalValue,
                                       UserInfo userInfo,
                                       boolean oasSchemaCompliance)
                                throws MXException,
                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • OslcJsonSchemaGenerator

        public OslcJsonSchemaGenerator(OslcRequest oslcRequest,
                                       java.lang.String osName,
                                       java.lang.String relatedResource,
                                       boolean oasSchemaCompliance)
                                throws MXException,
                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • setAddEnum

        public void setAddEnum(boolean addEnum)
      • isAddEnum

        public boolean isAddEnum()
      • setUserInfo

        public void setUserInfo(UserInfo userInfo)
      • setResourceProperties

        public void setResourceProperties(java.util.Map resourceProperties)
      • createResourcePropertyFromMosDetail

        protected void createResourcePropertyFromMosDetail(java.lang.String propName,
                                                           java.lang.String propNs,
                                                           java.lang.String occurs,
                                                           java.lang.String valueType,
                                                           java.lang.String representation,
                                                           MosDetailInfo mosDetInfo,
                                                           OslcResourceDetailInfo oslcResourceDetailInfo,
                                                           JSONSchema jschema)
                                                    throws MXException,
                                                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createAttachmentResourceProperty

        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,
                                                     MosDetailInfo mosDetailInfo)
                                              throws MXException
        Throws:
        MXException
      • createLiteralProperty

        public void createLiteralProperty(boolean occurs,
                                          java.lang.String propName,
                                          JSONSchema js,
                                          java.lang.String propNs,
                                          java.lang.String valueType,
                                          MosDetailInfo mosDetailInfo,
                                          IfaceColumnInfo colInfo,
                                          Mbo zombieMbo)
                                   throws MXException,
                                          java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createAttachmentLiteralProperty

        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
        Throws:
        MXException
        java.rmi.RemoteException
      • createImplicitProperties

        public void createImplicitProperties(JSONSchema jsonschema)
                                      throws MXException,
                                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • relationJSONSchema

        public void relationJSONSchema(java.lang.String xattr,
                                       java.lang.String curxattr,
                                       MboSetRemote msr,
                                       Mbo zombieMbo,
                                       JSONSchema jsonSchema)
                                throws java.rmi.RemoteException,
                                       MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • relationJSONSchema

        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
        Throws:
        java.rmi.RemoteException
        MXException
      • relatedJSONSchema

        public void relatedJSONSchema(java.lang.String xattr,
                                      java.lang.String curxattr,
                                      MboSetRemote msr,
                                      Mbo zombieMbo,
                                      JSONSchema jsonSchema,
                                      java.util.Map resProp)
                               throws java.rmi.RemoteException,
                                      MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getRepresentation

        public OslcResourceResponse getRepresentation()
                                               throws MXException,
                                                      java.rmi.RemoteException,
                                                      java.io.UnsupportedEncodingException
        Throws:
        MXException
        java.rmi.RemoteException
        java.io.UnsupportedEncodingException
      • getRepresentationAsJSON

        public com.ibm.json.java.JSONObject getRepresentationAsJSON()
                                                             throws MXException,
                                                                    java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getMimeType

        protected java.lang.String getMimeType()
      • getShape

        public byte[] getShape()
                        throws MXException,
                               java.rmi.RemoteException,
                               java.io.UnsupportedEncodingException
        Throws:
        MXException
        java.rmi.RemoteException
        java.io.UnsupportedEncodingException
      • getShapeAsJSON

        public com.ibm.json.java.JSONObject getShapeAsJSON()
                                                    throws MXException,
                                                           java.rmi.RemoteException,
                                                           java.io.UnsupportedEncodingException
        Throws:
        MXException
        java.rmi.RemoteException
        java.io.UnsupportedEncodingException
      • loadOSDetailDescriptions

        public void loadOSDetailDescriptions()
                                      throws java.rmi.RemoteException,
                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getMapDesc

        public java.util.Map getMapDesc()
      • setMapDesc

        public void setMapDesc(java.util.Map mapDesc)
      • isOasSchemaCompliance

        public boolean isOasSchemaCompliance()
      • setOasSchemaCompliance

        public void setOasSchemaCompliance(boolean oasSchemaCompliance)