Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttributeCollection

internal

Hierarchy

  • AttributeCollection

Index

Constructors

constructor

Properties

Private __attributes

__attributes: Hash<string, Array<Attribute>>
internal

Methods

addAttribute

  • addAttribute(attribute: Attribute): void
  • Parameters

    • attribute: Attribute

    Returns void

getTypeString

  • getTypeString(): string
  • Returns string

remove

  • remove(attribute: Attribute): boolean
  • remove(attributeType: AttributeType): boolean
  • Parameters

    • attribute: Attribute

    Returns boolean

  • Parameters

    • attributeType: AttributeType

    Returns boolean

replaceAttribute

  • replaceAttribute(attribute: Attribute): void
  • Parameters

    • attribute: Attribute

    Returns void

toArray

  • toArray(): Attribute[]
  • Returns Attribute[]

tryGetAttribute

  • tryGetAttribute(type: AttributeType, attribute: Holder<Attribute>): boolean
  • Parameters

    • type: AttributeType
    • attribute: Holder<Attribute>

    Returns boolean

tryGetAttributes

  • tryGetAttributes(type: AttributeType, attributes: Holder<Attribute[]>): boolean
  • Parameters

    • type: AttributeType
    • attributes: Holder<Attribute[]>

    Returns boolean