public class AttributeGroup extends Object implements CollectionVisitable, Persistable
AttributeGroup class.
| Constructor and Description |
|---|
AttributeGroup(CollectionResource resource,
AttributeGroupType groupType)
Constructor for AttributeGroup.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(CollectionAttribute attr)
addAttribute
|
protected boolean |
doShouldPersist() |
Collection<CollectionAttribute> |
getAttributes()
getAttributes
|
AttributeGroupType |
getGroupType()
getGroupType
|
protected String |
getIfType() |
String |
getName()
getName
|
CollectionResource |
getResource()
getResource
|
boolean |
shouldPersist(ServiceParameters params)
shouldPersist
|
String |
toString()
toString
|
void |
visit(CollectionSetVisitor visitor)
visit
|
public AttributeGroup(CollectionResource resource, AttributeGroupType groupType)
Constructor for AttributeGroup.
resource - a CollectionResource object.groupType - a org.opennms.netmgt.collectd.AttributeGroupType object.public CollectionResource getResource()
getResource
CollectionResource object.public Collection<CollectionAttribute> getAttributes()
getAttributes
Collection object.public void addAttribute(CollectionAttribute attr)
addAttribute
attr - a CollectionAttribute object.public void visit(CollectionSetVisitor visitor)
visit
visit in interface CollectionVisitablevisitor - a CollectionSetVisitor object.public boolean shouldPersist(ServiceParameters params)
shouldPersist
shouldPersist in interface Persistableparams - a ServiceParameters object.protected boolean doShouldPersist()
protected String getIfType()
public AttributeGroupType getGroupType()
getGroupType
org.opennms.netmgt.collectd.AttributeGroupType object.Copyright © 2018. All rights reserved.