Gephi Toolkit Javadoc

org.gephi.ranking.spi
Interface TransformerBuilder


public interface TransformerBuilder

Transformer builder, creating Transformer instances.

Implementors should add the @ServiceProvider annotation to be registered by the system.

Author:
Mathieu Bastian
See Also:
Transformer

Method Summary
 Transformer buildTransformer()
          Build a new transformer instance.
 java.lang.String getName()
          Returns the name of the transformer built by this builder.
 boolean isTransformerForElement(java.lang.String elementType)
          Returns true if this builder is creating transformers working with elementType.
 

Method Detail

buildTransformer

Transformer buildTransformer()
Build a new transformer instance.

Returns:
a new transformer

isTransformerForElement

boolean isTransformerForElement(java.lang.String elementType)
Returns true if this builder is creating transformers working with elementType. Element types can be Ranking.NODE_ELEMENT or Ranking.EDGE_ELEMENT and defines the type of element rankings and transformers can manipulate.

Parameters:
elementType - the type of element
Returns:
true if the transformer can be used on elementType, false otherwise.

getName

java.lang.String getName()
Returns the name of the transformer built by this builder. Default names are defined in the Transformer interface.

Returns:
the name of the transformer

Gephi Toolkit Javadoc