public class Reference extends UMLNode
The following reference types are currently supported:
"--|>"
"..|>"
"+--"
Modifier and Type | Class | Description |
---|---|---|
static class |
Reference.Side |
Modifier and Type | Field | Description |
---|---|---|
Reference.Side |
from |
|
Collection<String> |
notes |
|
Reference.Side |
to |
|
String |
type |
Constructor | Description |
---|---|
Reference(Reference.Side from,
String type,
Reference.Side to,
String... notes) |
Modifier and Type | Method | Description |
---|---|---|
Reference |
addNote(String note) |
|
Reference |
canonical() |
|
boolean |
contains(TypeName typeName) |
Returns whether or not this reference contains the requested type.
|
boolean |
equals(Object other) |
|
int |
hashCode() |
|
boolean |
isSelfReference() |
|
<IPW extends IndentingPrintWriter> |
writeTo(IPW output) |
Renders this object to the given indenting
output . |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChild, findParent, getChildren, getChildren, getConfiguration, getParent, removeChildren, setParent, toString, writeChildrenTo
public final Reference.Side from
public final Reference.Side to
public final String type
public final Collection<String> notes
public Reference(Reference.Side from, String type, Reference.Side to, String... notes)
public boolean isSelfReference()
public Reference canonical()
public <IPW extends IndentingPrintWriter> IPW writeTo(IPW output)
UMLNode
output
.public boolean contains(TypeName typeName)
typeName
- The name of a type to check.from
or to
matches typeName
.Copyright © 2016–2020 Talsma ICT. All rights reserved.