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 void
addAttribute(CollectionAttribute attr)
addAttributeprotected boolean
doShouldPersist()
Collection<CollectionAttribute>
getAttributes()
getAttributesAttributeGroupType
getGroupType()
getGroupTypeprotected String
getIfType()
String
getName()
getNameCollectionResource
getResource()
getResourceboolean
shouldPersist(ServiceParameters params)
shouldPersistString
toString()
toStringvoid
visit(CollectionSetVisitor visitor)
visit
-
-
-
Constructor Detail
-
AttributeGroup
public AttributeGroup(CollectionResource resource, AttributeGroupType groupType)
Constructor for AttributeGroup.
- Parameters:
resource
- aCollectionResource
object.groupType
- aorg.opennms.netmgt.collectd.AttributeGroupType
object.
-
-
Method Detail
-
getResource
public CollectionResource getResource()
getResource
- Returns:
- a
CollectionResource
object.
-
getAttributes
public Collection<CollectionAttribute> getAttributes()
getAttributes
- Returns:
- a
Collection
object.
-
addAttribute
public void addAttribute(CollectionAttribute attr)
addAttribute
- Parameters:
attr
- aCollectionAttribute
object.
-
visit
public void visit(CollectionSetVisitor visitor)
visit
- Specified by:
visit
in interfaceCollectionVisitable
- Parameters:
visitor
- aCollectionSetVisitor
object.
-
shouldPersist
public boolean shouldPersist(ServiceParameters params)
shouldPersist
- Specified by:
shouldPersist
in interfacePersistable
- Parameters:
params
- aServiceParameters
object.- Returns:
- a boolean.
-
doShouldPersist
protected boolean doShouldPersist()
-
getIfType
protected String getIfType()
-
getGroupType
public AttributeGroupType getGroupType()
getGroupType
- Returns:
- a
org.opennms.netmgt.collectd.AttributeGroupType
object.
-
-