public enum ParsedUnitsBehavior extends Enum<ParsedUnitsBehavior>
Enum Constant and Description |
---|
CONVERT_COMPATIBLE
Allow compatible units, performing conversion.
|
IGNORE_PARSED
Ignore parsed units, just relying on CCSDS standard.
|
STRICT_COMPLIANCE
Enforce strict compliance with CCSDS standard.
|
Modifier and Type | Method and Description |
---|---|
abstract Unit |
select(Unit message,
Unit standard)
Select the unit to use for interpreting parsed value.
|
static ParsedUnitsBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParsedUnitsBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParsedUnitsBehavior IGNORE_PARSED
When this behavior is selected having a unit parsed as second when CCSDS mandates kilometer will be accepted.
public static final ParsedUnitsBehavior CONVERT_COMPATIBLE
When this behavior is selected having a unit parsed as second
when CCSDS mandates kilometer will be refused, but having a unit
parsed as meter will be accepted, with proper conversion performed.
Missing units (i.e. units parsed as Unit.NONE
) are considered
to be standard.
public static final ParsedUnitsBehavior STRICT_COMPLIANCE
When this behavior is selected having a unit parsed as second
or as meter when CCSDS mandates kilometer will both be refused.
Missing units (i.e. units parsed as Unit.NONE
) are considered
to be standard.
public static ParsedUnitsBehavior[] values()
for (ParsedUnitsBehavior c : ParsedUnitsBehavior.values()) System.out.println(c);
public static ParsedUnitsBehavior valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2002-2022 CS GROUP. All rights reserved.