Tabnine Logo
Attribute.getTypeShortForm
Code IndexAdd Tabnine to your IDE (free)

How to use
getTypeShortForm
method
in
org.ccsds.moims.mo.mal.structures.Attribute

Best Java code snippets using org.ccsds.moims.mo.mal.structures.Attribute.getTypeShortForm (Showing top 9 results out of 315)

origin: int.esa.nmf.core/helper-tools

/**
 * Checks if an attribute is an Identifier, String or URI MAL data type
 *
 * @param obj The attribute
 * @return True if the object can be read as a string
 */
public static boolean isStringAttribute(Attribute obj) {
  Integer shortFormPart = obj.getTypeShortForm();
  if (shortFormPart == 6) { // Identifier
    return true;
  }
  if (shortFormPart == 15) { // String
    return true;
  }
  if (shortFormPart == 18) { // URI
    return true;
  }
  return false;
}
origin: int.esa.nmf.core.moservices.impl/ccsds-com

@Override
public void encodeAttribute(final Attribute value) throws MALException
{
 try
 {
  checkForNull(value);
  outputStream.addByte(internalEncodeAttributeType(value.getTypeShortForm().byteValue()));
  value.encode(this);
 }
 catch (IOException ex)
 {
  throw new MALException(ENCODING_EXCEPTION_STR, ex);
 }
}
origin: int.esa.ccsds.mo/ENCODING_GEN

@Override
public void encodeAttribute(final Attribute value) throws MALException
{
 try
 {
  checkForNull(value);
  outputStream.addByte(internalEncodeAttributeType(value.getTypeShortForm().byteValue()));
  value.encode(this);
 }
 catch (IOException ex)
 {
  throw new MALException(ENCODING_EXCEPTION_STR, ex);
 }
}
origin: int.esa.nmf.core.moservices.impl/ccsds-mc

public static double getDouble(Attribute attr) {
  int type = attr.getTypeShortForm();
  switch (type) {
    case Attribute._DOUBLE_TYPE_SHORT_FORM:
      //Already double.
      return ((Union) attr).getDoubleValue();
    case Attribute._SHORT_TYPE_SHORT_FORM:
      // Short.
      return ((Union) attr).getShortValue();
    case Attribute._USHORT_TYPE_SHORT_FORM:
      // UShort
      return ((UShort) attr).getValue();
    case Attribute._INTEGER_TYPE_SHORT_FORM:
      // Integer
      return ((Union) attr).getIntegerValue();
    case Attribute._UINTEGER_TYPE_SHORT_FORM:
      // UInteger
      return ((UInteger) attr).getValue();
    case Attribute._LONG_TYPE_SHORT_FORM:
      // Long
      return ((Union) attr).getLongValue();
  }
  return 0;
}
origin: int.esa.nmf.core.moservices.impl/ccsds-mc

  arg.setRawType(Union.DOUBLE_TYPE_SHORT_FORM.byteValue());
} else {
  arg.setRawType(argumentValue.getValue().getTypeShortForm().byteValue()); // Check what is the type and stamp it
origin: int.esa.nmf.core.moservices.impl/ccsds-mc

  pDef.setRawType(Union.DOUBLE_TYPE_SHORT_FORM.byteValue());
} else {
  pDef.setRawType(parameters.get(i).getParameterValue().getRawValue().getTypeShortForm().byteValue()); // Check what is the type and stamp it
origin: int.esa.nmf.core.moservices.impl/ccsds-com

if (compositeFilter.getFieldValue().getTypeShortForm() != 15) {  // Is it String?
  return false;
origin: int.esa.nmf.core.moservices.impl/ccsds-mc

if (!newValue.getRawValue().getTypeShortForm().equals(new Integer(pDef.getRawType()))) {
  invIndexList.add(new UInteger(index));
  continue;
origin: int.esa.nmf.core.moservices.impl/ccsds-mc

int defRawType = actionDef.getArguments().get(index).getRawType().intValue();
int defConvType = actionDef.getArguments().get(index).getConvertedType().intValue();
int instType = actionInstance.getArgumentValues().get(index).getValue().getTypeShortForm();
boolean isRawValue = (actionInstance.getIsRawValue() == null)
    || (actionInstance.getIsRawValue().get(index) == null)
org.ccsds.moims.mo.mal.structuresAttributegetTypeShortForm

Popular methods of Attribute

  • encode

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now