EnumMapper interface
A mapper describing an enum value.
- Extends
Properties
type | The type descriptor of the |
Inherited Properties
constraints | Constraints to test the current value against |
default |
Default value when one is not explicitly provided |
is |
Whether or not the current property is a constant |
nullable | Whether or not the current property allows mull as a value |
read |
Whether or not the current property is readonly |
required | Whether or not the current property is required |
serialized |
The name to use when serializing |
xml |
Name for the xml elements when serializing an array |
xml |
Determines if the current property should be serialized as an attribute of the parent xml element |
xml |
Determines if the current property should be serialized as the inner content of the xml element |
xml |
Whether or not the current property should have a wrapping XML element |
xml |
Name for the xml element |
xml |
Xml element namespace |
xml |
Xml element namespace prefix |
Property Details
type
Inherited Property Details
constraints
Constraints to test the current value against
constraints?: MapperConstraints
Property Value
Inherited From BaseMapper.constraints
defaultValue
Default value when one is not explicitly provided
defaultValue?: any
Property Value
any
Inherited From BaseMapper.defaultValue
isConstant
Whether or not the current property is a constant
isConstant?: boolean
Property Value
boolean
Inherited From BaseMapper.isConstant
nullable
Whether or not the current property allows mull as a value
nullable?: boolean
Property Value
boolean
Inherited From BaseMapper.nullable
readOnly
Whether or not the current property is readonly
readOnly?: boolean
Property Value
boolean
Inherited From BaseMapper.readOnly
required
Whether or not the current property is required
required?: boolean
Property Value
boolean
Inherited From BaseMapper.required
serializedName
The name to use when serializing
serializedName?: string
Property Value
string
Inherited From BaseMapper.serializedName
xmlElementName
Name for the xml elements when serializing an array
xmlElementName?: string
Property Value
string
Inherited From BaseMapper.xmlElementName
xmlIsAttribute
Determines if the current property should be serialized as an attribute of the parent xml element
xmlIsAttribute?: boolean
Property Value
boolean
Inherited From BaseMapper.xmlIsAttribute
xmlIsMsText
Determines if the current property should be serialized as the inner content of the xml element
xmlIsMsText?: boolean
Property Value
boolean
Inherited From BaseMapper.xmlIsMsText
xmlIsWrapped
Whether or not the current property should have a wrapping XML element
xmlIsWrapped?: boolean
Property Value
boolean
Inherited From BaseMapper.xmlIsWrapped
xmlName
xmlNamespace
Xml element namespace
xmlNamespace?: string
Property Value
string
Inherited From BaseMapper.xmlNamespace
xmlNamespacePrefix
Xml element namespace prefix
xmlNamespacePrefix?: string
Property Value
string
Inherited From BaseMapper.xmlNamespacePrefix