Klasse Block

Alle implementierten Schnittstellen:
Serializable

public class Block extends TCSResource<Block> implements Serializable
An aggregation of resources with distinct usage rules depending on the block's type.
Siehe auch:
  • Konstruktordetails

    • Block

      public Block(String name)
      Creates an empty block.
      Parameter:
      name - This block's name.
  • Methodendetails

    • withProperty

      public Block withProperty(String key, String value)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given property integrated.
      Angegeben von:
      withProperty in Klasse TCSObject<Block>
      Parameter:
      key - The key of the property to be changed.
      value - The new value of the property, or null, if the property is to be removed.
      Gibt zurück:
      A copy of this object, with the given property integrated.
    • withProperties

      public Block withProperties(Map<String,String> properties)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given properties.
      Angegeben von:
      withProperties in Klasse TCSObject<Block>
      Parameter:
      properties - The properties.
      Gibt zurück:
      A copy of this object, with the given properties.
    • withHistoryEntry

      public TCSObject<Block> withHistoryEntry(ObjectHistory.Entry entry)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given history entry integrated.
      Angegeben von:
      withHistoryEntry in Klasse TCSObject<Block>
      Parameter:
      entry - The history entry to be integrated.
      Gibt zurück:
      A copy of this object, with the given history entry integrated.
    • withHistory

      public TCSObject<Block> withHistory(ObjectHistory history)
      Beschreibung aus Klasse kopiert: TCSObject
      Creates a copy of this object, with the given history.
      Angegeben von:
      withHistory in Klasse TCSObject<Block>
      Parameter:
      history - The history.
      Gibt zurück:
      A copy of this object, with the given history.
    • getType

      public Block.Type getType()
      Retruns the type of this block.
      Gibt zurück:
      The type of this block.
    • withType

      public Block withType(Block.Type type)
      Creates a copy of this object, with the given type.
      Parameter:
      type - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • getMembers

      public Set<TCSResourceReference<?>> getMembers()
      Returns an unmodifiable set of all members of this block.
      Gibt zurück:
      An unmodifiable set of all members of this block.
    • withMembers

      public Block withMembers(Set<TCSResourceReference<?>> members)
      Creates a copy of this object, with the given members.
      Parameter:
      members - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.
    • getLayout

      public Block.Layout getLayout()
      Returns the information regarding the grahical representation of this block.
      Gibt zurück:
      The information regarding the grahical representation of this block.
    • withLayout

      public Block withLayout(Block.Layout layout)
      Creates a copy of this object, with the given layout.
      Parameter:
      layout - The value to be set in the copy.
      Gibt zurück:
      A copy of this object, differing in the given value.