jade.jademx.util
Class AclMsgCmpTest.AclMsgCmpForTest

java.lang.Object
  extended by jade.jademx.util.AclMsgCmp
      extended by jade.jademx.util.AclMsgCmpTest.AclMsgCmpForTest
Enclosing class:
AclMsgCmpTest

private class AclMsgCmpTest.AclMsgCmpForTest
extends jade.jademx.util.AclMsgCmp

a private class so can test protected AclMsgCmp methods.


Nested Class Summary
 class AclMsgCmpTest.AclMsgCmpForTest.VariableForTest
          make inner class visible for testing
 
Nested classes/interfaces inherited from class jade.jademx.util.AclMsgCmp
jade.jademx.util.AclMsgCmp.Variable
 
Field Summary
 
Fields inherited from class jade.jademx.util.AclMsgCmp
AID_MAP, CONSISTENT_MAP, CONVERSATION_ID_MAP, RANDOM_MAP, REPLY_ID_MAP
 
Constructor Summary
private AclMsgCmpTest.AclMsgCmpForTest()
           
 
Method Summary
 java.lang.String filterEmbeddedAddresses(java.lang.String originalContent)
          given an ACLMessage content string, removed embedded AID addresses.
 boolean hasAtPos(char[] s, int pos, char[] sub)
          see whether given substring is at given position in given string to test is protected instead of private only for testing purposes.
 java.util.List strToVarStrList(java.lang.String s, java.util.Properties props)
           
 
Methods inherited from class jade.jademx.util.AclMsgCmp
, compare, compare, compareAidSet, compareContent, compareConversationId, compareEncoding, compareEnvelope, compareInReplyTo, compareLanguage, compareOntology, comparePerformative, compareProtocol, compareReceiver, compareReplyBy, compareReplyTo, compareReplyWith, compareSender, compareUserProperties, globalizeContentAgentIds, isCmpContent, isCmpConversationId, isCmpEncoding, isCmpEnvelope, isCmpInReplyTo, isCmpLanguage, isCmpOntology, isCmpPerformative, isCmpProtocol, isCmpReceiver, isCmpReplyBy, isCmpReplyTo, isCmpReplyWith, isCmpSender, isCmpUserProperties, isIgnoreContentAIDAddresses, isNewlinesNormalized, setCmpContent, setCmpConversationId, setCmpEncoding, setCmpEnvelope, setCmpInReplyTo, setCmpLanguage, setCmpOntology, setCmpPerformative, setCmpProtocol, setCmpReceiver, setCmpReplyBy, setCmpReplyTo, setCmpReplyWith, setCmpSender, setCmpUserProperties, setIgnoreContentAIDAddresses, setNewlinesNormalized, stringToMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AclMsgCmpTest.AclMsgCmpForTest

private AclMsgCmpTest.AclMsgCmpForTest()
Method Detail

strToVarStrList

public java.util.List strToVarStrList(java.lang.String s,
                                      java.util.Properties props)
Overrides:
strToVarStrList in class jade.jademx.util.AclMsgCmp
Parameters:
s - string to convert
props - mapping from variable string names to variable groups
Returns:
List of String and Variable objects representing input string

hasAtPos

public boolean hasAtPos(char[] s,
                        int pos,
                        char[] sub)
see whether given substring is at given position in given string to test is protected instead of private only for testing purposes.

Overrides:
hasAtPos in class jade.jademx.util.AclMsgCmp
Parameters:
s - string to see whether has embedded substring
pos - position in s to check for embedded substring
sub - substring to look for
Returns:
whether substring is embedded in string at position

filterEmbeddedAddresses

public java.lang.String filterEmbeddedAddresses(java.lang.String originalContent)
given an ACLMessage content string, removed embedded AID addresses. is protected instead of private only for testing purposes.

Overrides:
filterEmbeddedAddresses in class jade.jademx.util.AclMsgCmp
Parameters:
originalContent - content string that want to filter
Returns:
filtered version of input


Copyright © 2005-2006 Caboodle Networks, Inc.
LGPL license