@Deprecated public class

InternalAttributeSupport

extends Object
implements AttributeSupport
java.lang.Object
   ↳ com.atlassian.stash.content.InternalAttributeSupport
Known Direct Subclasses

This class is deprecated.
in 3.4 for removal in 4.0. Use SimplePropertySupport and the properties API instead.

Summary

Nested Classes
class InternalAttributeSupport.AbstractAttributeBuilder<B extends AbstractAttributeBuilder<B>>  
class InternalAttributeSupport.Builder  
Protected Constructors
InternalAttributeSupport(AbstractAttributeBuilder<?> builder)
InternalAttributeSupport(AttributeMap attributes)
Public Methods
@Nonnull Set<String> getAttributeValues(String name)
Return the attribute values for attribute name, or an empty set if the specified attribute has no values.
@Nonnull AttributeMap getAttributes()
A map of attributes that have been associated with the object.
void setAttributes(AttributeMap attributes)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.stash.content.AttributeSupport

Protected Constructors

protected InternalAttributeSupport (AbstractAttributeBuilder<?> builder)

Parameters
builder a builder containing an AttributeMap.Builder

protected InternalAttributeSupport (AttributeMap attributes)

Public Methods

@Nonnull public Set<String> getAttributeValues (String name)

Return the attribute values for attribute name, or an empty set if the specified attribute has no values. This is a convenience wrapper for getAttributes().get(name), which will return null for attributes with no values.

Parameters
name the attribute name
Returns
  • the set of attribute values, which may be empty but never null

@Nonnull public AttributeMap getAttributes ()

A map of attributes that have been associated with the object.

While the returned attributes are guaranteed to be non-null, they may be empty.

Returns
  • the attribute map, which may be empty but never null

public void setAttributes (AttributeMap attributes)