Package com.structurizr.documentation
Class Decision
java.lang.Object
com.structurizr.documentation.DocumentationContent
com.structurizr.documentation.Decision
Represents a single (architecture) decision, as described at http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Represents a link between two decisions. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a link between this decision and another.boolean
getDate()
Gets the date of this decision.getId()
Gets the ID of this decision.getLinks()
Gets the set of links from this decision.Gets the status of this decision.getTitle()
Gets the title.int
hashCode()
boolean
Determines whether a decision already has a link to another decisionvoid
void
void
Methods inherited from class com.structurizr.documentation.DocumentationContent
getContent, getElementId, getFormat, setContent, setFormat
-
Constructor Details
-
Decision
-
-
Method Details
-
getId
Gets the ID of this decision.- Returns:
- the ID, as a String
-
getTitle
Gets the title.- Returns:
- the title, as a String
-
setTitle
-
getDate
Gets the date of this decision.- Returns:
- a Date object
-
setDate
-
getStatus
Gets the status of this decision.- Returns:
- the status, as a String
-
setStatus
-
getLinks
Gets the set of links from this decision.- Returns:
- a Set of Link objects
-
addLink
Adds a link between this decision and another.- Parameters:
decision
- the Decision to link totype
- the "type" of the link (e.g. "superseded by")
-
hasLinkTo
Determines whether a decision already has a link to another decision- Parameters:
decision
- the Decision to check against- Returns:
- true if a link exists, false otherwise
-
equals
-
hashCode
public int hashCode()
-