mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/SharedMessageUtils.java
public static FactoryObjectInfo createFactoryObjectInfoMessage(final String pid, 
            final UUID uuid, final FactoryDescriptor factory)
    {
        Preconditions.checkNotNull(uuid);
        Preconditions.checkNotNull(factory);
        
        final FactoryObjectInfo.Builder builder = FactoryObjectInfo.newBuilder();
        
        if (pid != null)
        {
            builder.setPid(pid);
        }
        
        builder.setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid)).setProductType(factory.getProductType());
            
        return builder.build();
    }
/**
     * Creates a {@link FactoryObjectInfo} message from the given pid, uuid, and class name.
     * @param pid
     *  the pid of the factory object (may be null).
     * @param uuid
     *  the uuid of the factory object.
     * @param factory
     *  the factory that created the factory object.
     * @return
     *  the message representing the factory object.
     */
Creates a  FactoryObjectInfo message from the given pid, uuid, and class name.
@param pid
the pid of the factory object (may be null).
@param uuid
the uuid of the factory object.
Creates a FactoryObjectInfo message from the given pid uuid and class name . @param pid the pid of the factory object ( may be null ) . @param uuid the uuid of the factory object .
public static FactoryObjectInfo createFactoryObjectInfoMessage(final String pid, 
            final UUID uuid, final FactoryDescriptor factory)
    {
        Preconditions.checkNotNull(uuid);
        Preconditions.checkNotNull(factory);
        final FactoryObjectInfo.Builder builder = FactoryObjectInfo.newBuilder();
        if (pid != null)
        {
            builder.setPid(pid);
        }
        builder.setUuid(SharedMessageUtils.convertUUIDToProtoUUID(uuid)).setProductType(factory.getProductType());
        return builder.build();
    }
public static FactoryObjectInfo createFactoryObjectInfoMessage ( final String pid , final UUID uuid , final FactoryDescriptor factory ) { Preconditions . checkNotNull ( uuid ) ; Preconditions . checkNotNull ( factory ) ; final FactoryObjectInfo . Builder builder = FactoryObjectInfo . newBuilder ( ) ; if ( pid != null ) { builder . setPid ( pid ) ; } builder . setUuid ( SharedMessageUtils . convertUUIDToProtoUUID ( uuid ) ) . setProductType ( factory . getProductType ( ) ) ; return builder . build ( ) ; }
Creates a {@link FactoryObjectInfo} message from the given pid, uuid, and class name.
Creates a { @link FactoryObjectInfo } message from the given pid uuid and class name .