Diagram
, Link
, Namespace
, Parameters
, Parameters.Parameter
, Reference
, Type
, TypeMember
public abstract class UMLNode extends Object
UML nodes are capable of rendering themselves to IndentingPrintWriter
.
Modifier | Constructor | Description |
---|---|---|
protected |
UMLNode(UMLNode parent) |
Modifier and Type | Method | Description |
---|---|---|
void |
addChild(UMLNode child) |
|
protected <U extends UMLNode> |
findParent(Class<U> nodeType) |
|
List<UMLNode> |
getChildren() |
|
<T extends UMLNode> |
getChildren(Class<T> type) |
Returns all children that are an instance of a particular type.
|
protected Configuration |
getConfiguration() |
|
UMLNode |
getParent() |
|
void |
removeChildren(Predicate<? super UMLNode> condition) |
|
void |
setParent(UMLNode parent) |
|
String |
toString() |
Renders the entire content of this renderer and returns it as a String value.
|
protected <IPW extends IndentingPrintWriter> |
writeChildrenTo(IPW output) |
Helper method to write all children to the specified output.
|
protected abstract <IPW extends IndentingPrintWriter> |
writeTo(IPW output) |
Renders this object to the given indenting
output . |
protected UMLNode(UMLNode parent)
public UMLNode getParent()
public void setParent(UMLNode parent)
public <T extends UMLNode> List<T> getChildren(Class<T> type)
T
- The type of children to obtain.type
- The type of UMLNode
to return (required, non-null).public void addChild(UMLNode child)
protected Configuration getConfiguration()
protected abstract <IPW extends IndentingPrintWriter> IPW writeTo(IPW output)
output
.IPW
- The subclass of indenting print writer being written to.output
- The output to render this object to.protected <IPW extends IndentingPrintWriter> IPW writeChildrenTo(IPW output)
IPW
- The subclass of indenting print writer being written to.output
- The output to write the children to.Copyright © 2016–2020 Talsma ICT. All rights reserved.