class staticbo.shared. PropertyFlag
Source: shared/
Represents the eligible attributes of a property definition.
Method
new PropertyFlag()
Creates a new object containing the property flag set.
- Extends
- bo.system.Enumeration
Properties
read-only$name
string
The name of the enumeration. The default value is the name of the constructor.
- Inherited from
- bo.system.Enumeration#$name
constant read-onlykey
The model property is a key element of the model.
- Default value
constant read-onlynone
None of the property flags.
- Default value
constant read-onlynotOnCto
The value of the model property will not be used on the client transfer object. Equivalent with PropertyFlag.onDtoOnly.
- Default value
constant read-onlynotOnDto
The value of the model property will not be used on the data transfer object. Equivalent with PropertyFlag.onCtoOnly.
- Default value
constant read-onlyonCtoOnly
The value of the model property will be used on the client transfer object only. Equivalent with PropertyFlag.notOnDto.
- Default value
constant read-onlyonDtoOnly
The value of the model property will be used on the data transfer object only. Equivalent with PropertyFlag.notOnCto.
- Default value
constant read-onlyparentKey
The model property is a key element of the parent model.
- Default value
constant read-onlyreadOnly
The model property cannot be set.
- Default value
Method
hasValue(name) → boolean
Determines if the enumeration has an item with the given name.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
name |
|
|
The name of the enumeration item. |
- Inherited from
- bo.system.Enumeration#hasValue
- Returns
-
True if the name is an enumeration item, otherwise false.