uk.co.mullsoft.jean
Class ETVFilter

java.lang.Object
  extended by uk.co.mullsoft.jean.ETVFilter

public class ETVFilter
extends java.lang.Object


Constructor Summary
ETVFilter(JEANAPI api, java.lang.String transformerName, NodeType type, java.lang.String[] attributeNames, AttributeType[] attributeTypes)
           
 
Method Summary
 org.w3c.dom.Document getDocument()
          convert an InputSpecification array into an XML document
static ETVFilter getETVFilter(org.w3c.dom.Document doc)
           
static ETVFilter getETVFilter(JEANAPI api)
          construct an ETVFilter by input from the user, asking first for a name of a transformer and the node type to be filtered.
static ETVFilter getETVFilter(JEANAPI api, java.lang.String transformerName)
          load a pre-existing ETVFilter for the given transformer name
 NodeType getNodeType()
           
 java.lang.String getTransformerName()
           
static void main(java.lang.String[] args)
           
static void setComparator(java.lang.String applicationName, java.lang.String transformerName, java.util.Comparator comparator)
           
static void setGetAttribute(java.lang.String applicationName, java.lang.String transformerName, java.lang.String attributeName)
           
static void setGetAttribute(java.lang.String applicationName, java.lang.String transformerName, java.lang.String attributeName, java.lang.String msg)
           
 void setSimple(boolean simple)
           
 void showDialog(PredicateListener plistener, Node[] nodes)
           
 boolean sort(Node[] nodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ETVFilter

public ETVFilter(JEANAPI api,
                 java.lang.String transformerName,
                 NodeType type,
                 java.lang.String[] attributeNames,
                 AttributeType[] attributeTypes)
Method Detail

setComparator

public static void setComparator(java.lang.String applicationName,
                                 java.lang.String transformerName,
                                 java.util.Comparator comparator)

setGetAttribute

public static void setGetAttribute(java.lang.String applicationName,
                                   java.lang.String transformerName,
                                   java.lang.String attributeName)

setGetAttribute

public static void setGetAttribute(java.lang.String applicationName,
                                   java.lang.String transformerName,
                                   java.lang.String attributeName,
                                   java.lang.String msg)

main

public static void main(java.lang.String[] args)

getETVFilter

public static ETVFilter getETVFilter(JEANAPI api,
                                     java.lang.String transformerName)
load a pre-existing ETVFilter for the given transformer name


getETVFilter

public static ETVFilter getETVFilter(JEANAPI api)
construct an ETVFilter by input from the user, asking first for a name of a transformer and the node type to be filtered. Then the user is presented with a list of attributes for that type from which he selects those that he wants in the filter


getETVFilter

public static ETVFilter getETVFilter(org.w3c.dom.Document doc)

showDialog

public void showDialog(PredicateListener plistener,
                       Node[] nodes)

getDocument

public org.w3c.dom.Document getDocument()
convert an InputSpecification array into an XML document

Parameters:
specs - an InputSpecification array
Returns:
the XML document representing the InputSpecification array

getNodeType

public NodeType getNodeType()

getTransformerName

public java.lang.String getTransformerName()

sort

public boolean sort(Node[] nodes)

setSimple

public void setSimple(boolean simple)