mil.dod.th.ose.shell/src/mil/dod/th/ose/shell/ObservationCommands.java
@Descriptor("Exports the observation with specified UUID as an XML file to the exports folder.")
    public void exportObsByUuid(final CommandSession commandSession, 
            @Descriptor("String that represents the UUID of the observation to be exported.")
            final String obsUuidStr)
    {
        if (obsUuidStr == null)
        {
            commandSession.getConsole().println("Please specify a UUID.");
            return;
        }
        final UUID obsUuid = UUID.fromString(obsUuidStr);
        final Observation obsToExport = m_ObsStore.find(obsUuid);
        if (obsToExport == null)
        {
            commandSession.getConsole().format("No observation with UUID [%s] could be found.%n", obsUuid);
            return;
        }
        
        if (convertAndWrite(obsToExport))
        {
            commandSession.getConsole().format(EXPORT_SUCCESSFUL, obsUuid);
        }
    }
/**
     * Exports the observation with the specified UUID to an XML file.
     * 
     * @param commandSession
     *      Command session used to access the console.
     * @param obsUuidStr
     *      String which represents the UUID of the observation to be exported.
     */
Exports the observation with the specified UUID to an XML file.

@param commandSession
Command session used to access the console.
@param obsUuidStr
String which represents the UUID of the observation to be exported.
Exports the observation with the specified UUID to an XML file . @param commandSession Command session used to access the console . @param obsUuidStr String which represents the UUID of the observation to be exported .
@Descriptor("Exports the observation with specified UUID as an XML file to the exports folder.")
    public void exportObsByUuid(final CommandSession commandSession, 
            @Descriptor("String that represents the UUID of the observation to be exported.")
            final String obsUuidStr)
    {
        if (obsUuidStr == null)
        {
            commandSession.getConsole().println("Please specify a UUID.");
            return;
        }
        final UUID obsUuid = UUID.fromString(obsUuidStr);
        final Observation obsToExport = m_ObsStore.find(obsUuid);
        if (obsToExport == null)
        {
            commandSession.getConsole().format("No observation with UUID [%s] could be found.%n", obsUuid);
            return;
        }
        if (convertAndWrite(obsToExport))
        {
            commandSession.getConsole().format(EXPORT_SUCCESSFUL, obsUuid);
        }
    }
@ Descriptor ( "Exports the observation with specified UUID as an XML file to the exports folder." ) public void exportObsByUuid ( final CommandSession commandSession , @ Descriptor ( "String that represents the UUID of the observation to be exported." ) final String obsUuidStr ) { if ( obsUuidStr == null ) { commandSession . getConsole ( ) . println ( "Please specify a UUID." ) ; return ; } final UUID obsUuid = UUID . fromString ( obsUuidStr ) ; final Observation obsToExport = m_ObsStore . find ( obsUuid ) ; if ( obsToExport == null ) { commandSession . getConsole ( ) . format ( "No observation with UUID [%s] could be found.%n" , obsUuid ) ; return ; } if ( convertAndWrite ( obsToExport ) ) { commandSession . getConsole ( ) . format ( EXPORT_SUCCESSFUL , obsUuid ) ; } }
Exports the observation with the specified UUID to an XML file.
Exports the observation with the specified UUID to an XML file .