Class AttributeGroup
- java.lang.Object
 - 
- org.opennms.netmgt.collection.api.AttributeGroup
 
 
- 
- All Implemented Interfaces:
 CollectionVisitable,Persistable
- Direct Known Subclasses:
 AliasedGroup,AttributeGroupWrapper,SnmpAttributeGroup
public class AttributeGroup extends Object implements CollectionVisitable, Persistable
AttributeGroup class.
- Version:
 - $Id: $
 - Author:
 - ranger
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AttributeGroup(CollectionResource resource, AttributeGroupType groupType)Constructor for AttributeGroup. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(CollectionAttribute attr)addAttributeprotected booleandoShouldPersist()Collection<CollectionAttribute>getAttributes()getAttributesAttributeGroupTypegetGroupType()getGroupTypeprotected StringgetIfType()StringgetName()getNameCollectionResourcegetResource()getResourcebooleanshouldPersist(ServiceParameters params)shouldPersistStringtoString()toStringvoidvisit(CollectionSetVisitor visitor)visit 
 - 
 
- 
- 
Constructor Detail
- 
AttributeGroup
public AttributeGroup(CollectionResource resource, AttributeGroupType groupType)
Constructor for AttributeGroup.
- Parameters:
 resource- aCollectionResourceobject.groupType- aorg.opennms.netmgt.collectd.AttributeGroupTypeobject.
 
 - 
 
- 
Method Detail
- 
getResource
public CollectionResource getResource()
getResource
- Returns:
 - a 
CollectionResourceobject. 
 
- 
getAttributes
public Collection<CollectionAttribute> getAttributes()
getAttributes
- Returns:
 - a 
Collectionobject. 
 
- 
addAttribute
public void addAttribute(CollectionAttribute attr)
addAttribute
- Parameters:
 attr- aCollectionAttributeobject.
 
- 
visit
public void visit(CollectionSetVisitor visitor)
visit
- Specified by:
 visitin interfaceCollectionVisitable- Parameters:
 visitor- aCollectionSetVisitorobject.
 
- 
shouldPersist
public boolean shouldPersist(ServiceParameters params)
shouldPersist
- Specified by:
 shouldPersistin interfacePersistable- Parameters:
 params- aServiceParametersobject.- Returns:
 - a boolean.
 
 
- 
doShouldPersist
protected boolean doShouldPersist()
 
- 
getIfType
protected String getIfType()
 
- 
getGroupType
public AttributeGroupType getGroupType()
getGroupType
- Returns:
 - a 
org.opennms.netmgt.collectd.AttributeGroupTypeobject. 
 
 - 
 
 -