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 voidaddAttribute(CollectionAttribute attr)addAttributeCollection<CollectionAttribute>getAttributes()getAttributesAttributeGroupTypegetGroupType()getGroupTypeStringgetName()getNameCollectionResourcegetResource()getResourcebooleanshouldPersist(ServiceParameters params)shouldPersistStringtoString()toStringvoidvisit(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:
getNamein classAttributeGroup- Returns:
- a
Stringobject.
-
getResource
public CollectionResource getResource()
getResource
- Overrides:
getResourcein classAttributeGroup- Returns:
- a
CollectionResourceobject.
-
getAttributes
public Collection<CollectionAttribute> getAttributes()
getAttributes
- Overrides:
getAttributesin classAttributeGroup- Returns:
- a
Collectionobject.
-
addAttribute
public void addAttribute(CollectionAttribute attr)
addAttribute
- Overrides:
addAttributein classAttributeGroup- Parameters:
attr- aCollectionAttributeobject.
-
visit
public void visit(CollectionSetVisitor visitor)
visit
- Specified by:
visitin interfaceCollectionVisitable- Overrides:
visitin classAttributeGroup- Parameters:
visitor- aCollectionSetVisitorobject.
-
shouldPersist
public boolean shouldPersist(ServiceParameters params)
shouldPersist
- Specified by:
shouldPersistin interfacePersistable- Overrides:
shouldPersistin classAttributeGroup- Parameters:
params- aServiceParametersobject.- Returns:
- a boolean.
-
getGroupType
public AttributeGroupType getGroupType()
getGroupType
- Overrides:
getGroupTypein classAttributeGroup- Returns:
- a
org.opennms.netmgt.collectd.AttributeGroupTypeobject.
-
toString
public String toString()
toString
- Overrides:
toStringin classAttributeGroup- Returns:
- a
Stringobject.
-
-