mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/persistence/ObservationStoreImpl.java
private String findObservationSubType(final Observation observation) // NOCHECKSTYLE: Complexity required to check
                                                                         // each sub-type
    {
        if (observation.isSetAudioMetadata())
        {
            return ObservationSubTypeEnum.AUDIO_METADATA.toString();
        }
        else if (observation.isSetDetection())
        {
            return ObservationSubTypeEnum.DETECTION.toString();
        }
        else if (observation.isSetImageMetadata())
        {
            return ObservationSubTypeEnum.IMAGE_METADATA.toString();
        }
        else if (observation.isSetStatus())
        {
            return ObservationSubTypeEnum.STATUS.toString();
        }
        else if (observation.isSetVideoMetadata())
        {
            return ObservationSubTypeEnum.VIDEO_METADATA.toString();
        }
        else if (observation.isSetWeather())
        {
            return ObservationSubTypeEnum.WEATHER.toString();
        }
        else if (observation.isSetBiological())
        {
            return ObservationSubTypeEnum.BIOLOGICAL.toString();
        }
        else if (observation.isSetCbrneTrigger())
        {
            return ObservationSubTypeEnum.CBRNE_TRIGGER.toString();
        }
        else if (observation.isSetWaterQuality())
        {
            return ObservationSubTypeEnum.WATER_QUALITY.toString();
        }
        else if (observation.isSetChemical())
        {
            return ObservationSubTypeEnum.CHEMICAL.toString();
        }
        else if (observation.isSetPower())
        {
            return ObservationSubTypeEnum.POWER.toString();
        }
        else if (observation.isSetChannelMetadata())
        {
            return ObservationSubTypeEnum.CHANNEL_METADATA.toString();
        }

        return ObservationSubTypeEnum.NONE.toString();
    }
/**
     * Method to find what type the given observation is.
     * 
     * @param observation
     *  the observation to check what type it is
     * @return
     *  the String representation of the {@link ObservationSubTypeEnum} or NONE if no 
     *  type applies.
     */
Method to find what type the given observation is.

@param observation
the observation to check what type it is
@return
the String representation of the  ObservationSubTypeEnum or NONE if no
type applies.
Method to find what type the given observation is . @param observation the observation to check what type it is @return the String representation of the ObservationSubTypeEnum or NONE if no type applies .
private String findObservationSubType(final Observation observation) 
    {
        if (observation.isSetAudioMetadata())
        {
            return ObservationSubTypeEnum.AUDIO_METADATA.toString();
        }
        else if (observation.isSetDetection())
        {
            return ObservationSubTypeEnum.DETECTION.toString();
        }
        else if (observation.isSetImageMetadata())
        {
            return ObservationSubTypeEnum.IMAGE_METADATA.toString();
        }
        else if (observation.isSetStatus())
        {
            return ObservationSubTypeEnum.STATUS.toString();
        }
        else if (observation.isSetVideoMetadata())
        {
            return ObservationSubTypeEnum.VIDEO_METADATA.toString();
        }
        else if (observation.isSetWeather())
        {
            return ObservationSubTypeEnum.WEATHER.toString();
        }
        else if (observation.isSetBiological())
        {
            return ObservationSubTypeEnum.BIOLOGICAL.toString();
        }
        else if (observation.isSetCbrneTrigger())
        {
            return ObservationSubTypeEnum.CBRNE_TRIGGER.toString();
        }
        else if (observation.isSetWaterQuality())
        {
            return ObservationSubTypeEnum.WATER_QUALITY.toString();
        }
        else if (observation.isSetChemical())
        {
            return ObservationSubTypeEnum.CHEMICAL.toString();
        }
        else if (observation.isSetPower())
        {
            return ObservationSubTypeEnum.POWER.toString();
        }
        else if (observation.isSetChannelMetadata())
        {
            return ObservationSubTypeEnum.CHANNEL_METADATA.toString();
        }
        return ObservationSubTypeEnum.NONE.toString();
    }
private String findObservationSubType ( final Observation observation ) { if ( observation . isSetAudioMetadata ( ) ) { return ObservationSubTypeEnum . AUDIO_METADATA . toString ( ) ; } else if ( observation . isSetDetection ( ) ) { return ObservationSubTypeEnum . DETECTION . toString ( ) ; } else if ( observation . isSetImageMetadata ( ) ) { return ObservationSubTypeEnum . IMAGE_METADATA . toString ( ) ; } else if ( observation . isSetStatus ( ) ) { return ObservationSubTypeEnum . STATUS . toString ( ) ; } else if ( observation . isSetVideoMetadata ( ) ) { return ObservationSubTypeEnum . VIDEO_METADATA . toString ( ) ; } else if ( observation . isSetWeather ( ) ) { return ObservationSubTypeEnum . WEATHER . toString ( ) ; } else if ( observation . isSetBiological ( ) ) { return ObservationSubTypeEnum . BIOLOGICAL . toString ( ) ; } else if ( observation . isSetCbrneTrigger ( ) ) { return ObservationSubTypeEnum . CBRNE_TRIGGER . toString ( ) ; } else if ( observation . isSetWaterQuality ( ) ) { return ObservationSubTypeEnum . WATER_QUALITY . toString ( ) ; } else if ( observation . isSetChemical ( ) ) { return ObservationSubTypeEnum . CHEMICAL . toString ( ) ; } else if ( observation . isSetPower ( ) ) { return ObservationSubTypeEnum . POWER . toString ( ) ; } else if ( observation . isSetChannelMetadata ( ) ) { return ObservationSubTypeEnum . CHANNEL_METADATA . toString ( ) ; } return ObservationSubTypeEnum . NONE . toString ( ) ; }
Method to find what type the given observation is.
Method to find what type the given observation is .
// NOCHECKSTYLE: Complexity required to check // each sub-type