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 java.lang.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()
java.util.Collection<CollectionAttribute>
getAttributes()
getAttributesAttributeGroupType
getGroupType()
getGroupTypeprotected java.lang.String
getIfType()
java.lang.String
getName()
getNameCollectionResource
getResource()
getResourceboolean
shouldPersist(ServiceParameters params)
shouldPersistjava.lang.String
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
-
getName
public java.lang.String getName()
getName
- Returns:
- a
String
object.
-
getResource
public CollectionResource getResource()
getResource
- Returns:
- a
CollectionResource
object.
-
getAttributes
public java.util.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 java.lang.String getIfType()
-
getGroupType
public AttributeGroupType getGroupType()
getGroupType
- Returns:
- a
org.opennms.netmgt.collectd.AttributeGroupType
object.
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
-