Class: UniqueAttribute

gpf.attributes. UniqueAttribute


new UniqueAttribute()

Attribute to restrict the use of an attribute to only once It throws gpf.Error.UniqueAttributeUsedTwice if the target attribute is used more than once at any level.

Usage restriction

Since:
  • 0.2.8

Extends

Methods


getClassConstructor()

GET accessor for

Class constructore the attribute was set on

Since:
  • 0.2.8
Inherited From:
Returns:

Class constructore the attribute was set on

Type
function | undefined

getMemberName()

GET accessor for

Class member name the attribute was set on (or undefined if at class level)

Since:
  • 0.2.8
Inherited From:
Returns:

Class member name the attribute was set on (or undefined if at class level)

Type
String | undefined