org.expasy.jpl.commons.collection.graph
Class GraphExporter.Builder<V,E>

java.lang.Object
  extended by org.expasy.jpl.commons.collection.graph.GraphExporter.Builder<V,E>
All Implemented Interfaces:
InstanceBuilder<GraphExporter<V,E>>
Enclosing class:
GraphExporter<V,E>

public static class GraphExporter.Builder<V,E>
extends Object
implements InstanceBuilder<GraphExporter<V,E>>


Constructor Summary
GraphExporter.Builder()
           
 
Method Summary
 GraphExporter<V,E> build()
          Build an instance of T-type object.
 GraphExporter.Builder<V,E> edgeValueTransformer(org.apache.commons.collections15.Transformer<E,String> transformer)
           
 GraphExporter.Builder<V,E> predicate(org.apache.commons.collections15.Predicate<V> predicate)
           
 GraphExporter.Builder<V,E> printStream(PrintStream ps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphExporter.Builder

public GraphExporter.Builder()
Method Detail

printStream

public GraphExporter.Builder<V,E> printStream(PrintStream ps)

predicate

public GraphExporter.Builder<V,E> predicate(org.apache.commons.collections15.Predicate<V> predicate)

edgeValueTransformer

public GraphExporter.Builder<V,E> edgeValueTransformer(org.apache.commons.collections15.Transformer<E,String> transformer)

build

public GraphExporter<V,E> build()
                         throws BuilderException
Description copied from interface: InstanceBuilder
Build an instance of T-type object.

Specified by:
build in interface InstanceBuilder<GraphExporter<V,E>>
Returns:
an instance of T.
Throws:
BuilderException - - if conditions to build T are not satisfied.


Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.