public class MapDataTypeActionLookup extends java.lang.Object implements Immutable
Essentially, it scans through a list of patterns, matching them against a given datatype, and returns any actions it finds.
Copyright 2012 Partner Software, Inc.
| Constructor and Description |
|---|
MapDataTypeActionLookup()
Creates an empty MapDataTypeActionLookup.
|
MapDataTypeActionLookup(VfsFile csvFile)
Creates a new MapDataTypeActionLookup from the passed
VfsFile. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
actionsForItem(MapDataItem item) |
java.lang.String |
toString() |
public MapDataTypeActionLookup()
throws java.io.IOException
java.io.IOExceptionpublic MapDataTypeActionLookup(VfsFile csvFile) throws java.io.IOException
VfsFile.
csvFile is parsed as a csv. Constructor expects the following fields:
mapSet, dataType, action containing regex for the mapSet and dataType
matches and the action to fire.csvFile - - VfsFile containing regex and link information.java.io.IOException - if a problem occurs while reading file.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<java.lang.String> actionsForItem(MapDataItem item)