org.biojava.bio
Class BeanAsAnnotation
java.lang.Object
org.biojava.utils.AbstractChangeable
org.biojava.bio.AbstractAnnotation
org.biojava.bio.BeanAsAnnotation
- All Implemented Interfaces:
- Annotation, Changeable, java.io.Serializable
- public class BeanAsAnnotation
- extends AbstractAnnotation
Create an Annotation with properties matching those of a JavaBean instance.
Note: this class is experimental and only partialy implemented.
- Since:
- 1.3
- Author:
- Matthew Pocock
- See Also:
- Serialized Form
Constructor Summary |
BeanAsAnnotation(java.lang.Object bean)
Create a new BeanAsAnnotation for a bean. |
Method Summary |
protected java.util.Map |
getProperties()
Implement this to return the Map delegate. |
protected boolean |
propertiesAllocated()
A convenience method to see if we have allocated the properties
Map. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BeanAsAnnotation
public BeanAsAnnotation(java.lang.Object bean)
throws java.beans.IntrospectionException
- Create a new BeanAsAnnotation for a bean.
- Parameters:
bean
- the JavaBean to view
getProperties
protected final java.util.Map getProperties()
- Description copied from class:
AbstractAnnotation
- Implement this to return the Map delegate.
From code in the 1.2 version of AbstractAnnotation
- Specified by:
getProperties
in class AbstractAnnotation
propertiesAllocated
protected final boolean propertiesAllocated()
- Description copied from class:
AbstractAnnotation
- A convenience method to see if we have allocated the properties
Map.
- Specified by:
propertiesAllocated
in class AbstractAnnotation
- Returns:
- true if the properties have been allocated, false otherwise