AS
- S
- V
- D
- L
- public class GenericLoadParseQueryXML<AS extends AbstractSpimData<S>,S extends AbstractSequenceDescription<V,D,L>,V extends BasicViewSetup,D extends BasicViewDescription<V>,L extends BasicImgLoader,X extends XmlIoAbstractSpimData<S,AS>> extends Object
Constructor and Description |
---|
GenericLoadParseQueryXML(X io)
Constructor for the class needs an appropriate IO module
|
Modifier and Type | Method and Description |
---|---|
void |
addButton(String buttonText,
ActionListener listener) |
protected void |
addListeners(GenericDialog gd,
TextField tf,
Label label1,
Label label2) |
protected static String[] |
buildEntityList(String attributeName,
List<? extends Entity> entityList,
boolean addTitle) |
protected static String[] |
buildTimepointList(List<TimePoint> tpList,
boolean addTitle) |
protected String |
createUniqueName() |
String |
getClusterExtension() |
Comparator<String> |
getComparator() |
AS |
getData() |
GenericDialog |
getGenericDialog() |
X |
getIO() |
List<TimePoint> |
getTimePointsToProcess() |
ArrayList<V> |
getViewSetupsToProcess() |
String |
getXMLFileName() |
protected static String[] |
makeChoiceList(String attribute) |
protected AS |
parseXML(String xmlFilename) |
protected <E extends Entity> |
query(int choice,
String attribute,
List<E> allEntities,
List<E> entitiesToProcess) |
protected boolean |
queryDetails() |
static int |
queryIndividualEntry(String name,
String[] list,
int defaultSelection)
Querys a single element from the list
|
static boolean[] |
queryMultipleEntries(String name,
String[] list,
boolean[] defaultSelection)
Querys a multiple element from the list
|
static boolean[] |
queryPattern(String name,
String[] list,
String[] defaultSelectionArray)
Querys a pattern of element from the list
|
boolean |
queryXML() |
boolean |
queryXML(List<String> specifyAttributes) |
boolean |
queryXML(String query) |
boolean |
queryXML(String query,
List<String> specifyAttributes) |
boolean |
queryXML(String additionalTitle,
String query,
List<String> specifyAttributes)
Asks the user for a valid XML (real time parsing)
|
void |
setComparator(Comparator<String> comparator)
Sets the comparator used to sort the Attributes in a specific order for display, can be null
Note that Timepoint (XmlKeys.TIMEPOINTS_TIMEPOINT_TAG) is always the last entry no matter what as it is special
|
void |
setReturnFalse(boolean value) |
protected boolean |
tryParsing(String xmlfile,
boolean parseAllTypes) |
public static String defaultXMLfilename
public static boolean debugRandomClusterHash
protected static String goodMsg1
protected static String warningMsg1
protected static String errorMsg1
protected static String neutralMsg1
protected static String noMsg2
protected static String[] attributeChoiceList
public static final String[] clusterOptions1
public static int defaultClusterOption1
public static HashMap<String,boolean[]> defaultAttributeSelectedEntities
protected final X extends XmlIoAbstractSpimData<S,AS> io
protected Comparator<String> comparator
protected String message1
protected String message2
protected Color color
protected AS extends AbstractSpimData<S> data
protected String xmlfilename
protected String clusterExt
protected String buttonText
protected ActionListener listener
protected GenericDialog gd
protected boolean returnfalse
public GenericLoadParseQueryXML(X io)
io
- public X getIO()
public AS getData()
public String getXMLFileName()
public List<TimePoint> getTimePointsToProcess()
public ArrayList<V> getViewSetupsToProcess()
public void setComparator(Comparator<String> comparator)
comparator
- public Comparator<String> getComparator()
public boolean queryXML()
public boolean queryXML(String query)
public void addButton(String buttonText, ActionListener listener)
public GenericDialog getGenericDialog()
public void setReturnFalse(boolean value)
public boolean queryXML(String additionalTitle, String query, List<String> specifyAttributes)
specifyAttributes
- - set of attributes the user should be asked if he/she wants to select a subset of thempublic String getClusterExtension()
protected String createUniqueName()
public static int queryIndividualEntry(String name, String[] list, int defaultSelection)
name
- - type of elements (e.g. "Timepoint")list
- - list of available elementsdefaultSelection
- - default selectionpublic static boolean[] queryMultipleEntries(String name, String[] list, boolean[] defaultSelection)
name
- - type of elements (e.g. "Timepoints")list
- - list of available elementsdefaultSelection
- - default selectionpublic static boolean[] queryPattern(String name, String[] list, String[] defaultSelectionArray)
name
- - type of elements (e.g. "Timepoints")list
- - list of available elementsdefaultSelectionArray
- - default selection (array of size 1 to be able to return it)protected <E extends Entity> boolean query(int choice, String attribute, List<E> allEntities, List<E> entitiesToProcess)
protected boolean queryDetails()
protected static String[] buildTimepointList(List<TimePoint> tpList, boolean addTitle)
protected static String[] buildEntityList(String attributeName, List<? extends Entity> entityList, boolean addTitle)
protected boolean tryParsing(String xmlfile, boolean parseAllTypes)
protected AS parseXML(String xmlFilename) throws SpimDataException
SpimDataException
protected void addListeners(GenericDialog gd, TextField tf, Label label1, Label label2)
Copyright © 2015–2021 Fiji. All rights reserved.