| java.lang.Object org.cougaar.community.CommunityUtils
CommunityUtils | public class CommunityUtils (Code) | | Static Community helper methods.
|
attrsToString | public static String attrsToString(Attributes attrs)(Code) | | Creates a string representation of an Attribute set.
|
cloneAttributes | public static Attributes cloneAttributes(Attributes attrs)(Code) | | Clone attributes.
Parameters: attrs - Attributes Original copy Attributes Clone of attributes |
cloneEntities | public static Map cloneEntities(Collection entities)(Code) | | Clone Entities.
Parameters: entities - Map Original copy Map Clone of Entities |
entityNames | public static String entityNames(Collection members)(Code) | | Converts a collection of entities to a compact string representation of names
|
getAttributeModificationItems | public static ModificationItem[] getAttributeModificationItems(Attributes oldAttrs, Attributes newAttrs)(Code) | | Create an attribute ModificationArray based on the differences between
2 attribute sets.
Parameters: oldAttrs - Attributes Parameters: newAttrs - Attributes ModificationItem[] |
getEntityNames | public static Collection getEntityNames(Collection entities)(Code) | | Return a collection of entity names.
Parameters: entities - Collection Entities Collection Collection of names |
hasAttribute | public static boolean hasAttribute(Attributes attrs, String id, String value)(Code) | | Check for existence of attribute id and value in attribute set.
Parameters: attrs - Attributes Parameters: id - String Parameters: value - String boolean |
setAttribute | public static void setAttribute(Attributes attrs, String id, String value)(Code) | | Add new attribute id/value to attribute set,
Parameters: attrs - Attributes Parameters: id - String Parameters: value - String |
|
|