Package org.java.plugin.tools.mocks
Class MockPluginAttribute
java.lang.Object
org.java.plugin.tools.mocks.MockIdentity
org.java.plugin.tools.mocks.MockPluginElement<PluginAttribute>
org.java.plugin.tools.mocks.MockPluginAttribute
- All Implemented Interfaces:
Documentable<PluginAttribute>
,Identity
,PluginAttribute
,PluginElement<PluginAttribute>
public class MockPluginAttribute
extends MockPluginElement<PluginAttribute>
implements PluginAttribute
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubAttribute
(PluginAttribute attribute) getValue()
setSuperAttribute
(PluginAttribute attribute) Methods inherited from class org.java.plugin.tools.mocks.MockPluginElement
getDeclaringPluginDescriptor, getDeclaringPluginFragment, getDocsPath, getDocumentation, setDeclaringPluginDescriptor, setDeclaringPluginFragment, setDocsPath, setDocumentation
Methods inherited from class org.java.plugin.tools.mocks.MockIdentity
getId, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentation
Methods inherited from interface org.java.plugin.registry.PluginElement
getDeclaringPluginDescriptor, getDeclaringPluginFragment
-
Constructor Details
-
MockPluginAttribute
public MockPluginAttribute()No-arguments constructor. -
MockPluginAttribute
- Parameters:
id
- attribute IDaValue
- attribute value
-
-
Method Details
-
getSubAttribute
- Specified by:
getSubAttribute
in interfacePluginAttribute
- Parameters:
id
- ID of sub-attribute to look for- Returns:
- sub-attribute with given ID
- See Also:
-
getSubAttributes
- Specified by:
getSubAttributes
in interfacePluginAttribute
- Returns:
- collection of all sub-attributes of this attribute
- See Also:
-
getSubAttributes
- Specified by:
getSubAttributes
in interfacePluginAttribute
- Parameters:
id
- ID of sub-attribute to look for- Returns:
- collection of all sub-attributes with given ID
- See Also:
-
addSubAttribute
- Parameters:
attribute
- sub-attribute to add- Returns:
- this instance
-
getSuperAttribute
- Specified by:
getSuperAttribute
in interfacePluginAttribute
- Returns:
- attribute, of which this one is child or
null
if this is top level attribute - See Also:
-
setSuperAttribute
- Parameters:
attribute
- the super attribute to set- Returns:
- this instance
-
getValue
- Specified by:
getValue
in interfacePluginAttribute
- Returns:
- attribute value as it is specified in manifest
- See Also:
-
setValue
- Parameters:
attributeValue
- the attribute value to set- Returns:
- this instance
-