org.ccsds.moims.mo.com.COMHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of API_COM Show documentation
Show all versions of API_COM Show documentation
The CCSDS COM API for Java
package org.ccsds.moims.mo.com;
/**
* Helper class for COM area.
*/
public class COMHelper
{
/**
* Area number literal.
*/
public static final int _COM_AREA_NUMBER = 2;
/**
* Area number instance.
*/
public static final org.ccsds.moims.mo.mal.structures.UShort COM_AREA_NUMBER = new org.ccsds.moims.mo.mal.structures.UShort(_COM_AREA_NUMBER);
/**
* Area name constant.
*/
public static final org.ccsds.moims.mo.mal.structures.Identifier COM_AREA_NAME = new org.ccsds.moims.mo.mal.structures.Identifier("COM");
/**
* Area version literal.
*/
public static final short _COM_AREA_VERSION = 1;
/**
* Area version instance.
*/
public static final org.ccsds.moims.mo.mal.structures.UOctet COM_AREA_VERSION = new org.ccsds.moims.mo.mal.structures.UOctet(_COM_AREA_VERSION);
/**
* Area singleton instance.
*/
public static org.ccsds.moims.mo.mal.MALArea COM_AREA = new org.ccsds.moims.mo.mal.MALArea(COM_AREA_NUMBER, COM_AREA_NAME, new org.ccsds.moims.mo.mal.structures.UOctet((short) 1));
/**
* Error literal for error INVALID.
*/
public static final long _INVALID_ERROR_NUMBER = 70000;
/**
* Error instance for error INVALID.
*/
public static final org.ccsds.moims.mo.mal.structures.UInteger INVALID_ERROR_NUMBER = new org.ccsds.moims.mo.mal.structures.UInteger(_INVALID_ERROR_NUMBER);
/**
* Error literal for error DUPLICATE.
*/
public static final long _DUPLICATE_ERROR_NUMBER = 70001;
/**
* Error instance for error DUPLICATE.
*/
public static final org.ccsds.moims.mo.mal.structures.UInteger DUPLICATE_ERROR_NUMBER = new org.ccsds.moims.mo.mal.structures.UInteger(_DUPLICATE_ERROR_NUMBER);
/**
* Registers all aspects of this area 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
{
org.ccsds.moims.mo.mal.MALContextFactory.registerArea(COM_AREA);
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.ObjectType.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.ObjectTypeFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.ObjectTypeList.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.ObjectTypeListFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.ObjectKey.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.ObjectKeyFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.ObjectKeyList.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.ObjectKeyListFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.ObjectId.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.ObjectIdFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.ObjectIdList.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.ObjectIdListFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.ObjectDetails.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.ObjectDetailsFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.ObjectDetailsList.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.ObjectDetailsListFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.InstanceBooleanPair.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.InstanceBooleanPairFactory());
bodyElementFactory.registerElementFactory(org.ccsds.moims.mo.com.structures.InstanceBooleanPairList.SHORT_FORM, new org.ccsds.moims.mo.com.structures.factory.InstanceBooleanPairListFactory());
org.ccsds.moims.mo.mal.MALContextFactory.registerError(INVALID_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("INVALID"));
org.ccsds.moims.mo.mal.MALContextFactory.registerError(DUPLICATE_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Identifier("DUPLICATE"));
}
/**
* Registers all aspects of this area with the provided element factory and any referenced areas and contained 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);
org.ccsds.moims.mo.com.event.EventHelper.deepInit(bodyElementFactory);
org.ccsds.moims.mo.com.archive.ArchiveHelper.deepInit(bodyElementFactory);
org.ccsds.moims.mo.com.activitytracking.ActivityTrackingHelper.deepInit(bodyElementFactory);
}
}