All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ccsds.moims.mo.com.archive.ArchiveHelper Maven / Gradle / Ivy

There is a newer version: 8.2
Show newest version
package org.ccsds.moims.mo.com.archive;

/**
 * Helper class for Archive service.
 */
public class ArchiveHelper
{
  /**
   * Service number literal.
   */
  public static final int _ARCHIVE_SERVICE_NUMBER = 2;
  /**
   * Service number instance.
   */
  public static final org.ccsds.moims.mo.mal.structures.UShort ARCHIVE_SERVICE_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_ARCHIVE_SERVICE_NUMBER);
  /**
   * Service name constant.
   */
  public static final org.ccsds.moims.mo.mal.structures.Identifier ARCHIVE_SERVICE_NAME = new org.ccsds.moims.mo.mal.structures.Identifier("Archive");
  /**
   * Service singleton instance.
   */
  public static org.ccsds.moims.mo.com.COMService ARCHIVE_SERVICE = new org.ccsds.moims.mo.com.COMService(ARCHIVE_SERVICE_NUMBER, ARCHIVE_SERVICE_NAME);
  /**
   * Operation number literal for operation RETRIEVE.
   */
  public static final int _RETRIEVE_OP_NUMBER = 1;
  /**
   * Operation number instance for operation RETRIEVE.
   */
  public static final org.ccsds.moims.mo.mal.structures.UShort RETRIEVE_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_RETRIEVE_OP_NUMBER);
  /**
   * Operation instance for operation RETRIEVE.
   */
  public static final org.ccsds.moims.mo.mal.MALInvokeOperation RETRIEVE_OP = new org.ccsds.moims.mo.mal.MALInvokeOperation(RETRIEVE_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("retrieve"), true, new org.ccsds.moims.mo.mal.structures.UShort(1), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {org.ccsds.moims.mo.com.structures.ObjectType.SHORT_FORM, org.ccsds.moims.mo.mal.structures.IdentifierList.SHORT_FORM, org.ccsds.moims.mo.mal.structures.LongList.SHORT_FORM}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 2), new Long[] {}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 3), new Long[] {org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList.SHORT_FORM, null}, new Long[] {}));
  /**
   * Operation number literal for operation QUERY.
   */
  public static final int _QUERY_OP_NUMBER = 2;
  /**
   * Operation number instance for operation QUERY.
   */
  public static final org.ccsds.moims.mo.mal.structures.UShort QUERY_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_QUERY_OP_NUMBER);
  /**
   * Operation instance for operation QUERY.
   */
  public static final org.ccsds.moims.mo.mal.MALProgressOperation QUERY_OP = new org.ccsds.moims.mo.mal.MALProgressOperation(QUERY_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("query"), true, new org.ccsds.moims.mo.mal.structures.UShort(1), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {org.ccsds.moims.mo.mal.structures.Attribute.BOOLEAN_SHORT_FORM, org.ccsds.moims.mo.com.structures.ObjectType.SHORT_FORM, org.ccsds.moims.mo.com.archive.structures.ArchiveQueryList.SHORT_FORM, null}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 2), new Long[] {}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 3), new Long[] {org.ccsds.moims.mo.com.structures.ObjectType.SHORT_FORM, org.ccsds.moims.mo.mal.structures.IdentifierList.SHORT_FORM, org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList.SHORT_FORM, null}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 4), new Long[] {org.ccsds.moims.mo.com.structures.ObjectType.SHORT_FORM, org.ccsds.moims.mo.mal.structures.IdentifierList.SHORT_FORM, org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList.SHORT_FORM, null}, new Long[] {}));
  /**
   * Operation number literal for operation COUNT.
   */
  public static final int _COUNT_OP_NUMBER = 3;
  /**
   * Operation number instance for operation COUNT.
   */
  public static final org.ccsds.moims.mo.mal.structures.UShort COUNT_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_COUNT_OP_NUMBER);
  /**
   * Operation instance for operation COUNT.
   */
  public static final org.ccsds.moims.mo.mal.MALInvokeOperation COUNT_OP = new org.ccsds.moims.mo.mal.MALInvokeOperation(COUNT_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("count"), true, new org.ccsds.moims.mo.mal.structures.UShort(1), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {org.ccsds.moims.mo.com.structures.ObjectType.SHORT_FORM, org.ccsds.moims.mo.com.archive.structures.ArchiveQueryList.SHORT_FORM, null}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 2), new Long[] {}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 3), new Long[] {org.ccsds.moims.mo.mal.structures.LongList.SHORT_FORM}, new Long[] {}));
  /**
   * Operation number literal for operation STORE.
   */
  public static final int _STORE_OP_NUMBER = 4;
  /**
   * Operation number instance for operation STORE.
   */
  public static final org.ccsds.moims.mo.mal.structures.UShort STORE_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_STORE_OP_NUMBER);
  /**
   * Operation instance for operation STORE.
   */
  public static final org.ccsds.moims.mo.mal.MALRequestOperation STORE_OP = new org.ccsds.moims.mo.mal.MALRequestOperation(STORE_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("store"), false, new org.ccsds.moims.mo.mal.structures.UShort(2), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {org.ccsds.moims.mo.mal.structures.Attribute.BOOLEAN_SHORT_FORM, org.ccsds.moims.mo.com.structures.ObjectType.SHORT_FORM, org.ccsds.moims.mo.mal.structures.IdentifierList.SHORT_FORM, org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList.SHORT_FORM, null}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 2), new Long[] {org.ccsds.moims.mo.mal.structures.LongList.SHORT_FORM}, new Long[] {}));
  /**
   * Operation number literal for operation UPDATE.
   */
  public static final int _UPDATE_OP_NUMBER = 5;
  /**
   * Operation number instance for operation UPDATE.
   */
  public static final org.ccsds.moims.mo.mal.structures.UShort UPDATE_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_UPDATE_OP_NUMBER);
  /**
   * Operation instance for operation UPDATE.
   */
  public static final org.ccsds.moims.mo.mal.MALSubmitOperation UPDATE_OP = new org.ccsds.moims.mo.mal.MALSubmitOperation(UPDATE_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("update"), false, new org.ccsds.moims.mo.mal.structures.UShort(3), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {org.ccsds.moims.mo.com.structures.ObjectType.SHORT_FORM, org.ccsds.moims.mo.mal.structures.IdentifierList.SHORT_FORM, org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList.SHORT_FORM, null}, new Long[] {}));
  /**
   * Operation number literal for operation DELETE.
   */
  public static final int _DELETE_OP_NUMBER = 6;
  /**
   * Operation number instance for operation DELETE.
   */
  public static final org.ccsds.moims.mo.mal.structures.UShort DELETE_OP_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_DELETE_OP_NUMBER);
  /**
   * Operation instance for operation DELETE.
   */
  public static final org.ccsds.moims.mo.mal.MALRequestOperation DELETE_OP = new org.ccsds.moims.mo.mal.MALRequestOperation(DELETE_OP_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("delete"), false, new org.ccsds.moims.mo.mal.structures.UShort(4), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 1), new Long[] {org.ccsds.moims.mo.com.structures.ObjectType.SHORT_FORM, org.ccsds.moims.mo.mal.structures.IdentifierList.SHORT_FORM, org.ccsds.moims.mo.mal.structures.LongList.SHORT_FORM}, new Long[] {}), new org.ccsds.moims.mo.mal.MALOperationStage(new org.ccsds.moims.mo.mal.structures.UOctet((short) 2), new Long[] {org.ccsds.moims.mo.mal.structures.LongList.SHORT_FORM}, new Long[] {}));
  /**
   * Literal for object OBJECTSTORED.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final int _OBJECTSTORED_OBJECT_NUMBER = 1;
  /**
   * Instance for object OBJECTSTORED.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final org.ccsds.moims.mo.mal.structures.UShort OBJECTSTORED_OBJECT_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_OBJECTSTORED_OBJECT_NUMBER);
  /**
   * Object name constant.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final org.ccsds.moims.mo.mal.structures.Identifier OBJECTSTORED_OBJECT_NAME = new org.ccsds.moims.mo.mal.structures.Identifier("ObjectStored");
  /**
   * Object type constant.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final org.ccsds.moims.mo.com.structures.ObjectType OBJECTSTORED_OBJECT_TYPE = new org.ccsds.moims.mo.com.structures.ObjectType(org.ccsds.moims.mo.com.COMHelper.COM_AREA_NUMBER, ARCHIVE_SERVICE_NUMBER, org.ccsds.moims.mo.com.COMHelper.COM_AREA_VERSION, OBJECTSTORED_OBJECT_NUMBER);
  /**
   * Object instance.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static org.ccsds.moims.mo.com.COMObject OBJECTSTORED_OBJECT = new org.ccsds.moims.mo.com.COMObject(OBJECTSTORED_OBJECT_TYPE, OBJECTSTORED_OBJECT_NAME, null, false, null, true, null, true);
  /**
   * Literal for object OBJECTUPDATED.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final int _OBJECTUPDATED_OBJECT_NUMBER = 2;
  /**
   * Instance for object OBJECTUPDATED.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final org.ccsds.moims.mo.mal.structures.UShort OBJECTUPDATED_OBJECT_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_OBJECTUPDATED_OBJECT_NUMBER);
  /**
   * Object name constant.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final org.ccsds.moims.mo.mal.structures.Identifier OBJECTUPDATED_OBJECT_NAME = new org.ccsds.moims.mo.mal.structures.Identifier("ObjectUpdated");
  /**
   * Object type constant.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final org.ccsds.moims.mo.com.structures.ObjectType OBJECTUPDATED_OBJECT_TYPE = new org.ccsds.moims.mo.com.structures.ObjectType(org.ccsds.moims.mo.com.COMHelper.COM_AREA_NUMBER, ARCHIVE_SERVICE_NUMBER, org.ccsds.moims.mo.com.COMHelper.COM_AREA_VERSION, OBJECTUPDATED_OBJECT_NUMBER);
  /**
   * Object instance.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static org.ccsds.moims.mo.com.COMObject OBJECTUPDATED_OBJECT = new org.ccsds.moims.mo.com.COMObject(OBJECTUPDATED_OBJECT_TYPE, OBJECTUPDATED_OBJECT_NAME, null, false, null, true, null, true);
  /**
   * Literal for object OBJECTDELETED.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final int _OBJECTDELETED_OBJECT_NUMBER = 3;
  /**
   * Instance for object OBJECTDELETED.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final org.ccsds.moims.mo.mal.structures.UShort OBJECTDELETED_OBJECT_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_OBJECTDELETED_OBJECT_NUMBER);
  /**
   * Object name constant.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final org.ccsds.moims.mo.mal.structures.Identifier OBJECTDELETED_OBJECT_NAME = new org.ccsds.moims.mo.mal.structures.Identifier("ObjectDeleted");
  /**
   * Object type constant.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static final org.ccsds.moims.mo.com.structures.ObjectType OBJECTDELETED_OBJECT_TYPE = new org.ccsds.moims.mo.com.structures.ObjectType(org.ccsds.moims.mo.com.COMHelper.COM_AREA_NUMBER, ARCHIVE_SERVICE_NUMBER, org.ccsds.moims.mo.com.COMHelper.COM_AREA_VERSION, OBJECTDELETED_OBJECT_NUMBER);
  /**
   * Object instance.
   */
  @org.ccsds.moims.mo.com.Proposed
  public static org.ccsds.moims.mo.com.COMObject OBJECTDELETED_OBJECT = new org.ccsds.moims.mo.com.COMObject(OBJECTDELETED_OBJECT_TYPE, OBJECTDELETED_OBJECT_NAME, null, false, null, true, null, true);
  /**
   * Registers all aspects of this service with the provided element factory.
   * @param bodyElementFactory bodyElementFactory The element factory registry to initialise with this helper.
   * @throws org.ccsds.moims.mo.mal.MALException If cannot initialise this helper.
   */
  public static void init(org.ccsds.moims.mo.mal.MALElementFactoryRegistry bodyElementFactory) throws org.ccsds.moims.mo.mal.MALException
  {
    ARCHIVE_SERVICE.addOperation(RETRIEVE_OP);
    ARCHIVE_SERVICE.addOperation(QUERY_OP);
    ARCHIVE_SERVICE.addOperation(COUNT_OP);
    ARCHIVE_SERVICE.addOperation(STORE_OP);
    ARCHIVE_SERVICE.addOperation(UPDATE_OP);
    ARCHIVE_SERVICE.addOperation(DELETE_OP);
    ARCHIVE_SERVICE.addCOMObject(OBJECTSTORED_OBJECT);
    ARCHIVE_SERVICE.addCOMObject(OBJECTUPDATED_OBJECT);
    ARCHIVE_SERVICE.addCOMObject(OBJECTDELETED_OBJECT);
    org.ccsds.moims.mo.com.COMHelper.COM_AREA.addService(ARCHIVE_SERVICE);
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.ExpressionOperator.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.ExpressionOperatorFactory());
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.ExpressionOperatorList.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.ExpressionOperatorListFactory());
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.ArchiveDetails.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.ArchiveDetailsFactory());
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.ArchiveDetailsList.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.ArchiveDetailsListFactory());
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.ArchiveQuery.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.ArchiveQueryFactory());
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.ArchiveQueryList.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.ArchiveQueryListFactory());
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.CompositeFilter.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.CompositeFilterFactory());
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.CompositeFilterList.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.CompositeFilterListFactory());
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.CompositeFilterSet.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.CompositeFilterSetFactory());
    bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.archive.structures.CompositeFilterSetList.SHORT_FORM, new org.ccsds.moims.mo.com.archive.structures.factory.CompositeFilterSetListFactory());
  }

  /**
   * Registers all aspects of this service with the provided element factory and any referenced areas/services.
   * @param bodyElementFactory bodyElementFactory The element factory registry to initialise with this helper.
   * @throws org.ccsds.moims.mo.mal.MALException If cannot initialise this helper.
   */
  public static void deepInit(org.ccsds.moims.mo.mal.MALElementFactoryRegistry bodyElementFactory) throws org.ccsds.moims.mo.mal.MALException
  {
    init(bodyElementFactory);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy