org.gcube.datatransformation.datatransformationlibrary.model.graph
Class NodesCollection

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.model.graph.NodesCollection

public class NodesCollection
extends Object

Author:
Dimitris Katris, NKUA

Contains nodes which have the same mimetype.


Constructor Summary
NodesCollection()
           
 
Method Summary
 TNode add(ContentType contentType)
          Adds a content type to this node collection.
protected  void clear()
           
 boolean exists(ContentType contentType)
          Checks if the content type exists in this node collection.
 TNode get(ContentType contentType)
          Returns the node of a content type if it exists in the collection.
 ArrayList<TNodeWithUnbound> getAnySupportedByWithUnbound(ContentType contentType)
          Returns nodes which are supported by the content type.
 ArrayList<TNode> getAnyThatSupport(ContentType contentType)
          Returns nodes that have generic support with the contentType.
 ArrayList<TNodeWithUnbound> getAnyThatSupportWithUnbound(ContentType contentType)
          Returns nodes that have exact support with the content type filled with unbound parameters.
 TNode getExactlySupported(ContentType contentType)
          Returns nodes that have exact support with the content type.
 ArrayList<TNodeWithUnbound> getExactlySupportedWithUnbound(ContentType contentType)
          Returns nodes that have exact support with the content type filled with unbound parameters.
 ArrayList<TNodeWithUnbound> getGenericallySupported(ContentType contentType)
          Returns nodes which are generically supported by the content type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodesCollection

public NodesCollection()
Method Detail

add

public TNode add(ContentType contentType)
Adds a content type to this node collection.

Parameters:
contentType - The content type of this node.
Returns:
The node of the graph.

exists

public boolean exists(ContentType contentType)
Checks if the content type exists in this node collection.

Parameters:
contentType - The content type to be checked.
Returns:
true if the content type already exists in the collection.

get

public TNode get(ContentType contentType)
Returns the node of a content type if it exists in the collection.

Parameters:
contentType - The content type parameters.
Returns:
The node of the collection.

getExactlySupportedWithUnbound

public ArrayList<TNodeWithUnbound> getExactlySupportedWithUnbound(ContentType contentType)
Returns nodes that have exact support with the content type filled with unbound parameters.

Parameters:
contentType - The content type.
Returns:
The nodes that have exact support with the content type.

getExactlySupported

public TNode getExactlySupported(ContentType contentType)
Returns nodes that have exact support with the content type.

Parameters:
contentType - The content type.
Returns:
The nodes that have exact support with the content type.

getAnyThatSupportWithUnbound

public ArrayList<TNodeWithUnbound> getAnyThatSupportWithUnbound(ContentType contentType)
Returns nodes that have exact support with the content type filled with unbound parameters.

Parameters:
contentType - The content type.
Returns:
The nodes that have generic support with the content type.

getAnyThatSupport

public ArrayList<TNode> getAnyThatSupport(ContentType contentType)
Returns nodes that have generic support with the contentType.

Parameters:
contentType - The ContentType to be checked.
Returns:
The nodes that have generic support with the content type.

getAnySupportedByWithUnbound

public ArrayList<TNodeWithUnbound> getAnySupportedByWithUnbound(ContentType contentType)
Returns nodes which are supported by the content type.

Parameters:
contentType - The content type.
Returns:
The nodes which are supported by the content type.

getGenericallySupported

public ArrayList<TNodeWithUnbound> getGenericallySupported(ContentType contentType)
Returns nodes which are generically supported by the content type.

Parameters:
contentType - The content type.
Returns:
The nodes which are generically supported by the content type.

clear

protected void clear()


Copyright © 2013. All Rights Reserved.