public class AnnotationRenamer extends AbstractAnnotation
AnnotationRenamer remaps the keys of an
 Annotation to new keys specified by a
 TagMapper. This will rename properties, but not alter their
 values.
 For writing light-weigth adaptors to project one type of
 Annotation to another using a TagMapper.EMPTY_ANNOTATION, PROPERTY| Constructor and Description | 
|---|
AnnotationRenamer(Annotation wrapped,
                 PropertyChanger mapper)
Creates a new  
AnnotationRenamer using the
 specified TagMapper to remap its keys. | 
| Modifier and Type | Method and Description | 
|---|---|
PropertyChanger | 
getMapper()
getMapper returns the TagMapper being
 used to remap the Annotation. | 
Map | 
getProperties()
getProperties returns the mapped contents of the
 underlying Annotation as a Map. | 
Annotation | 
getWrapped()
getWrapped returns the Annotation
 being remapped. | 
boolean | 
propertiesAllocated()
propertiesAllocated Javadoc FIXME - this overrides
 a protected method and I'm not sure why (KJ). | 
asMap, containsProperty, equals, getProperty, hashCode, keys, removeProperty, setProperty, toStringaddChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic AnnotationRenamer(Annotation wrapped, PropertyChanger mapper)
AnnotationRenamer using the
 specified TagMapper to remap its keys.wrapped - an Annotation.mapper - a TagMapper.public Annotation getWrapped()
getWrapped returns the Annotation
 being remapped.Annotation.public PropertyChanger getMapper()
getMapper returns the TagMapper being
 used to remap the Annotation.TagMapper.public Map getProperties()
getProperties returns the mapped contents of the
 underlying Annotation as a Map.getProperties in class AbstractAnnotationMap.public boolean propertiesAllocated()
propertiesAllocated Javadoc FIXME - this overrides
 a protected method and I'm not sure why (KJ).propertiesAllocated in class AbstractAnnotationboolean.Copyright © 2020 BioJava. All rights reserved.