public class MockPluginAttribute extends MockPluginElement<PluginAttribute> implements PluginAttribute
Constructor and Description |
---|
MockPluginAttribute()
No-arguments constructor.
|
MockPluginAttribute(java.lang.String id,
java.lang.String aValue) |
Modifier and Type | Method and Description |
---|---|
MockPluginAttribute |
addSubAttribute(PluginAttribute attribute) |
PluginAttribute |
getSubAttribute(java.lang.String id) |
java.util.Collection<PluginAttribute> |
getSubAttributes() |
java.util.Collection<PluginAttribute> |
getSubAttributes(java.lang.String id) |
PluginAttribute |
getSuperAttribute() |
java.lang.String |
getValue() |
MockPluginAttribute |
setSuperAttribute(PluginAttribute attribute) |
MockPluginAttribute |
setValue(java.lang.String attributeValue) |
getDeclaringPluginDescriptor, getDeclaringPluginFragment, getDocsPath, getDocumentation, setDeclaringPluginDescriptor, setDeclaringPluginFragment, setDocsPath, setDocumentation
getId, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaringPluginDescriptor, getDeclaringPluginFragment
getDocsPath, getDocumentation
public MockPluginAttribute()
public MockPluginAttribute(java.lang.String id, java.lang.String aValue)
id
- attribute IDaValue
- attribute valuepublic PluginAttribute getSubAttribute(java.lang.String id)
getSubAttribute
in interface PluginAttribute
id
- ID of sub-attribute to look forPluginAttribute.getSubAttribute(
java.lang.String)
public java.util.Collection<PluginAttribute> getSubAttributes()
getSubAttributes
in interface PluginAttribute
PluginAttribute.getSubAttributes()
public java.util.Collection<PluginAttribute> getSubAttributes(java.lang.String id)
getSubAttributes
in interface PluginAttribute
id
- ID of sub-attribute to look forPluginAttribute.getSubAttributes(
java.lang.String)
public MockPluginAttribute addSubAttribute(PluginAttribute attribute)
attribute
- sub-attribute to addpublic PluginAttribute getSuperAttribute()
getSuperAttribute
in interface PluginAttribute
null
if
this is top level attributePluginAttribute.getSuperAttribute()
public MockPluginAttribute setSuperAttribute(PluginAttribute attribute)
attribute
- the super attribute to setpublic java.lang.String getValue()
getValue
in interface PluginAttribute
PluginAttribute.getValue()
public MockPluginAttribute setValue(java.lang.String attributeValue)
attributeValue
- the attribute value to setCopyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.