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
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a link between two decisions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a link between this decision and another.booleangetDate()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.inthashCode()booleanDetermines whether a decision already has a link to another decisionvoidvoidMethods inherited from class com.structurizr.documentation.DocumentationContent
getContent, getElementId, getFormat, getTitle, setContent, setFormat, setTitle
-
Constructor Details
-
Decision
-
-
Method Details
-
getId
Gets the ID of this decision.- Returns:
- the ID, as a String
-
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()
-