Class AttributeGroupWrapper
- java.lang.Object
-
- org.opennms.netmgt.collection.api.AttributeGroup
-
- org.opennms.netmgt.collection.support.AttributeGroupWrapper
-
- All Implemented Interfaces:
CollectionVisitable
,Persistable
public class AttributeGroupWrapper extends AttributeGroup
Delegates the visit calls to the wrapped attribut group. Allows individual functions to be intercepted.- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description AttributeGroupWrapper(AttributeGroup wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(CollectionAttribute attr)
addAttributeCollection<CollectionAttribute>
getAttributes()
getAttributesAttributeGroupType
getGroupType()
getGroupTypeString
getName()
getNameCollectionResource
getResource()
getResourceboolean
shouldPersist(ServiceParameters params)
shouldPersistString
toString()
toStringvoid
visit(CollectionSetVisitor visitor)
visit-
Methods inherited from class org.opennms.netmgt.collection.api.AttributeGroup
doShouldPersist, getIfType
-
-
-
-
Constructor Detail
-
AttributeGroupWrapper
public AttributeGroupWrapper(AttributeGroup wrapped)
-
-
Method Detail
-
getName
public String getName()
getName
- Overrides:
getName
in classAttributeGroup
- Returns:
- a
String
object.
-
getResource
public CollectionResource getResource()
getResource
- Overrides:
getResource
in classAttributeGroup
- Returns:
- a
CollectionResource
object.
-
getAttributes
public Collection<CollectionAttribute> getAttributes()
getAttributes
- Overrides:
getAttributes
in classAttributeGroup
- Returns:
- a
Collection
object.
-
addAttribute
public void addAttribute(CollectionAttribute attr)
addAttribute
- Overrides:
addAttribute
in classAttributeGroup
- Parameters:
attr
- aCollectionAttribute
object.
-
visit
public void visit(CollectionSetVisitor visitor)
visit
- Specified by:
visit
in interfaceCollectionVisitable
- Overrides:
visit
in classAttributeGroup
- Parameters:
visitor
- aCollectionSetVisitor
object.
-
shouldPersist
public boolean shouldPersist(ServiceParameters params)
shouldPersist
- Specified by:
shouldPersist
in interfacePersistable
- Overrides:
shouldPersist
in classAttributeGroup
- Parameters:
params
- aServiceParameters
object.- Returns:
- a boolean.
-
getGroupType
public AttributeGroupType getGroupType()
getGroupType
- Overrides:
getGroupType
in classAttributeGroup
- Returns:
- a
org.opennms.netmgt.collectd.AttributeGroupType
object.
-
toString
public String toString()
toString
- Overrides:
toString
in classAttributeGroup
- Returns:
- a
String
object.
-
-