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 voidaddAttribute(CollectionAttribute attr)addAttributeprotected booleandoShouldPersist()java.util.Collection<CollectionAttribute>getAttributes()getAttributesAttributeGroupTypegetGroupType()getGroupTypeprotected java.lang.StringgetIfType()java.lang.StringgetName()getNameCollectionResourcegetResource()getResourcebooleanshouldPersist(ServiceParameters params)shouldPersistjava.lang.StringtoString()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
-
getName
public java.lang.String getName()
getName
- Returns:
- a
Stringobject.
-
getResource
public CollectionResource getResource()
getResource
- Returns:
- a
CollectionResourceobject.
-
getAttributes
public java.util.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 java.lang.String getIfType()
-
getGroupType
public AttributeGroupType getGroupType()
getGroupType
- Returns:
- a
org.opennms.netmgt.collectd.AttributeGroupTypeobject.
-
toString
public java.lang.String toString()
toString
- Overrides:
toStringin classjava.lang.Object- Returns:
- a
Stringobject.
-
-