Class Schema

    • Constructor Detail

      • Schema

        public Schema()
      • Schema

        public Schema​(java.lang.String name)
      • Schema

        public Schema​(java.lang.String name,
                      java.util.List<IDataModel> dataModels)
    • Method Detail

      • getOneOf

        public java.lang.String[] getOneOf()
      • setOneOf

        public void setOneOf​(java.lang.String[] oneOf)
      • get$schema

        public java.lang.String get$schema()
      • set$schema

        public void set$schema​(java.lang.String $schema)
      • getDataModels

        public java.util.List<IDataModel> getDataModels()
        /** Gets all datamodels in this Schema.
        Specified by:
        getDataModels in interface ISchema
        Returns:
        the datamodels that reside in the schema
      • setDataModels

        public void setDataModels​(java.util.List<IDataModel> dataModels)
      • getOperations

        public java.util.List<IOperation> getOperations()
      • setOperations

        public void setOperations​(java.util.List<IOperation> operations)
      • getDataModelCount

        public int getDataModelCount()
        Gets the number of datamodels that reside in this schema.
        Returns:
        the number of datamodels that reside in this schema.
      • getDataModelNames

        public java.lang.String[] getDataModelNames()
        Gets the names of the datamodels that reside in this Schema.
        Returns:
        an array of DataModel names.
      • getDataModelByName

        public IDataModel getDataModelByName​(java.lang.String dataModelName)
        Convenience method for retrieving a DataModel by it's name.
        Parameters:
        dataModelName - the name of the DataModel to retrieve
        Returns:
        the DataModel with the given name. Returns null if no such dataModel is found.