Class AbstractStyle

java.lang.Object
com.structurizr.view.AbstractStyle
All Implemented Interfaces:
PropertyHolder
Direct Known Subclasses:
ElementStyle, RelationshipStyle

public abstract class AbstractStyle extends Object implements PropertyHolder
  • Constructor Details

    • AbstractStyle

      public AbstractStyle()
  • Method Details

    • getProperties

      public Map<String,String> getProperties()
      Gets the collection of name-value property pairs associated with this workspace, as a Map.
      Specified by:
      getProperties in interface PropertyHolder
      Returns:
      a Map (String, String) (empty if there are no properties)
    • addProperty

      public void addProperty(String name, String value)
      Adds a name-value pair property to this workspace.
      Specified by:
      addProperty in interface PropertyHolder
      Parameters:
      name - the name of the property
      value - the value of the property