Package com.structurizr.view
Class AbstractStyle
java.lang.Object
com.structurizr.view.AbstractStyle
- All Implemented Interfaces:
PropertyHolder
- Direct Known Subclasses:
ElementStyle
,RelationshipStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String name, String value) Adds a name-value pair property to this workspace.Gets the collection of name-value property pairs associated with this workspace, as a Map.
-
Constructor Details
-
AbstractStyle
public AbstractStyle()
-
-
Method Details
-
getProperties
Gets the collection of name-value property pairs associated with this workspace, as a Map.- Specified by:
getProperties
in interfacePropertyHolder
- Returns:
- a Map (String, String) (empty if there are no properties)
-
addProperty
Adds a name-value pair property to this workspace.- Specified by:
addProperty
in interfacePropertyHolder
- Parameters:
name
- the name of the propertyvalue
- the value of the property
-