public class TNode extends ContentType
Node of the transformationUnit's graph.
| Constructor and Description |
|---|
TNode()
Creates a new TNode.
|
TNode(ContentType contentType)
Instantiates a TNode from a content type.
|
TNode(String mimeType,
List<Parameter> contentTypeParameters)
Creates a new TNode.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEdge(TEdge edge)
Adds a new edge to this node.
|
boolean |
equals(Object obj) |
ArrayList<TEdge> |
getEdges()
Returns the edges of this node to other nodes of the graph.
|
boolean |
hasEdges()
Returns true if there are edges from this node to another one.
|
int |
sizeOfEdges()
Returns the amount of the edges of this node.
|
addContentTypeParameters, clone, fromDOM, fromXML, gensupport, gensupport, getContentTypeParameters, getMimeType, hashCode, setContentTypeParameters, setMimeType, support, support, supportAndFillUnbound, toDOM, toStringpublic TNode()
public TNode(ContentType contentType)
contentType - The content type of the TNode.public ArrayList<TEdge> getEdges()
public boolean addEdge(TEdge edge)
edge - The edge to be added.public boolean hasEdges()
public int sizeOfEdges()
public boolean equals(Object obj)
equals in class ContentTypeobj - The object to be checked.ContentType.equals(java.lang.Object)Copyright © 2014. All Rights Reserved.