|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<java.lang.String,MethodSpec>
faa.tg.util.MethodMap
public class MethodMap
MethodMap is a Map structure meant specifically to hold fieldNames and their MethodSpecs. This will be used by delimwritables to specify their fields, methods, and units.See the source: MethodMap.java
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
static java.lang.String |
DATALINE_PREFIX_PROP
The property key for accessing the data line prefix. |
static java.lang.String |
DELIM_PROP
The property key for accessing the field delimiter. |
static java.lang.String |
HEADER_PREFIX_PROP
The property key for accessing the header prefix. |
private MethodSpec |
nameSpec
Convenience method allowing easy access to a MethodSpec that returns getName(), if that method specification was added to this MethodMap. |
(package private) static long |
serialVersionUID
|
private MethodSpecSelectable[] |
typeList
This field allows the owner of this MethodMap to provide a selection set of the ListSelectable fields: this value remains null unless setTypeList() is called specifying an array of MethodSpecSelectable objects containing the selectable MethodSpec objects from this map. |
| Constructor Summary | |
|---|---|
MethodMap()
Constructs an empty MethodMap. |
|
| Method Summary | |
|---|---|
MethodSpec |
get(java.lang.String key)
Returns the MethodSpec mapped to the specified key. |
java.lang.String |
getData(java.lang.Object evt,
java.util.Properties props,
char delimiter,
StereoMapProjection smp)
Returns the data text of this MethodMap based on the specified event. |
java.lang.String |
getHeader(java.util.Properties props)
Returns the header text of this MethodMap. |
MethodSpec |
getNameSpec()
Returns the MethodSpec for the getName method, if added to this map, or null if it was not added. |
java.lang.String |
getOutputFileName(java.lang.String outputFileTemplate,
DelimWritable evt)
Returns the output filename based on the specified template. |
MethodSpecSelectable[] |
getTypeList()
Returns the selectable values of the MethodMap as a ListSelectable array; this must have been set by setTypeList() if this is to be used. |
MethodSpec |
put(java.lang.String key,
MethodSpec method)
Adds the MethodSpec from the list to the map. |
void |
setTypeList(MethodSpecSelectable[] typeList)
Set the selectable values of the MethodMap as a ListSelectable array. |
| Methods inherited from class java.util.LinkedHashMap |
|---|
clear, containsValue, get, removeEldestEntry |
| Methods inherited from class java.util.HashMap |
|---|
clone, containsKey, entrySet, isEmpty, keySet, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, putAll, remove, size, values |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
public static final java.lang.String DELIM_PROP
public static final java.lang.String HEADER_PREFIX_PROP
public static final java.lang.String DATALINE_PREFIX_PROP
private MethodSpec nameSpec
private MethodSpecSelectable[] typeList
| Constructor Detail |
|---|
public MethodMap()
| Method Detail |
|---|
public MethodSpec getNameSpec()
public MethodSpec get(java.lang.String key)
key - The key (title/description) to get the desired method result.
public MethodSpec put(java.lang.String key,
MethodSpec method)
put in interface java.util.Map<java.lang.String,MethodSpec>put in class java.util.HashMap<java.lang.String,MethodSpec>key - The unique title/description for the method result.method - The MethodSpec that calls the desired method.
public MethodSpecSelectable[] getTypeList()
public void setTypeList(MethodSpecSelectable[] typeList)
public java.lang.String getHeader(java.util.Properties props)
props - Properties that modify the header text.
public java.lang.String getData(java.lang.Object evt,
java.util.Properties props,
char delimiter,
StereoMapProjection smp)
evt - The event to use to get the field data.props - Properties that modify the data text.delimiter - smp - Null, or a stereographic projection if the lat/longs should
be converted to xy-coordinates.
public java.lang.String getOutputFileName(java.lang.String outputFileTemplate,
DelimWritable evt)
Subclasses overriding this method should replace any "*" in the template string with the event's class name.
outputFileTemplate - Base output filename template as a String.evt - The DelimWritable event to be written to the output file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||