Package org.openquark.gems.client

Examples of org.openquark.gems.client.StatusMessageDisplayer$MessageType


  @Override
  protected void applyRuleResultRecord(RuleResultType data, RuleResultRecord record) {
    data.setResult(mapRuleResult(record.getResult()));

        for (Message message : record.getMessages()) {
            MessageType node = data.addNewMessage();

            String context = message.getContext();
            if (context == null) {
              node.setStringValue(message.getText());
            } else {
              node.setStringValue(new StringBuilder()
                .append(context)
                .append(": ")
                .append(message.getText()).toString());
            }
            node.setSeverity(mapMessageSeverity(message.getSeverity()));
        }
  }
View Full Code Here


  @Override
  protected void applyRuleResultRecord(RuleResultType data, RuleResultRecord record) {
    data.setResult(mapRuleResult(record.getResult()));

        for (Message message : record.getMessages()) {
            MessageType node = data.addNewMessage();

            String context = message.getContext();
            if (context == null) {
              node.setStringValue(message.getText());
            } else {
              node.setStringValue(new StringBuilder()
                .append(context)
                .append(": ")
                .append(message.getText()).toString());
            }
            node.setSeverity(mapMessageSeverity(message.getSeverity()));
        }
  }
View Full Code Here

    public PrimitiveEncoderMetadataSet()
    {
        boolean streamed = false;
        // TEXT based - Classes Based
        MessageType msgType = MessageType.TEXT;
        register(Boolean.class,BooleanEncoder.class,msgType,streamed);
        register(Byte.class,ByteEncoder.class,msgType,streamed);
        register(Character.class,CharacterEncoder.class,msgType,streamed);
        register(Double.class,DoubleEncoder.class,msgType,streamed);
        register(Float.class,FloatEncoder.class,msgType,streamed);
View Full Code Here

    public PrimitiveDecoderMetadataSet()
    {
        boolean streamed = false;
        // TEXT based - Classes Based
        MessageType msgType = MessageType.TEXT;
        register(Boolean.class,BooleanDecoder.class,msgType,streamed);
        register(Byte.class,ByteDecoder.class,msgType,streamed);
        register(Character.class,CharacterDecoder.class,msgType,streamed);
        register(Double.class,DoubleDecoder.class,msgType,streamed);
        register(Float.class,FloatDecoder.class,msgType,streamed);
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.StatusMessageDisplayer$MessageType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.