Methods
append
- append(attribute: Attribute): Attributes
-
- append(attributes: any[]): Attributes
-
asMap
- asMap(): object
-
Returns object
contains
- contains(name: string): boolean
-
Returns boolean
equals
- equals(other: any): boolean
-
Returns boolean
get
- get(name: string): null | Attribute
-
- get(...pathParts: string[]): null | Attribute
-
Parameters
-
Rest
...pathParts: string[]
getAll
- getAll(name: string): any[]
-
Returns any[]
getMandatory
- getMandatory(...pathParts: string[]): Attribute
-
Parameters
-
Rest
...pathParts: string[]
getMandatoryAttribute
- getMandatoryAttribute(name: string): Attribute
-
getMandatoryValue
- getMandatoryValue(name: string, type: any): JsonType
-
- getMandatoryValue(name: string, type: any, strategy: any): JsonType
-
Parameters
-
name: string
-
type: any
-
strategy: any
getOptionalValue
- getOptionalValue(name: string): JsonType
-
- getOptionalValue(name: string, type: any): JsonType
-
- getOptionalValue(name: string, type: any, strategy: any): JsonType
-
Parameters
-
name: string
-
type: any
-
strategy: any
getUniqueValuesOfType
- getUniqueValuesOfType(type: any, attributeKey: string): JsonType[]
-
Parameters
-
type: any
-
attributeKey: string
- getUniqueValuesOfType(type: any, attributeKey: string, strategy: any): JsonType[]
-
Parameters
-
type: any
-
attributeKey: string
-
strategy: any
getValuesOfType
- getValuesOfType(type: any, attributeKey: string): JsonType[]
-
Parameters
-
type: any
-
attributeKey: string
- getValuesOfType(type: any, attributeKey: string, strategy: any): JsonType[]
-
Parameters
-
type: any
-
attributeKey: string
-
strategy: any
hashCode
- hashCode(): number
-
Returns number
isEmpty
- isEmpty(): boolean
-
Returns boolean
iterator
- iterator(): any
-
Returns any
keys
- keys(): any[]
-
Returns any[]
removeAttributes
- removeAttributes(exclusionNames: any[]): Attributes
-
retainAttributes
- retainAttributes(inclusionNames: any[]): Attributes
-
size
- size(): number
-
Returns number
stream
- stream(): any
-
Returns any
toMap
- toMap(): object
-
Returns object
toMapWithoutMetadata
- toMapWithoutMetadata(): object
-
Returns object
toString
- toString(): string
-
Returns string
with
- with(attributes: any[]): Attributes
-
- with(attribute: Attribute): Attributes
-
Object whose values are Attributes.