Class AliasOptions
Options for XMPSchemaRegistryImpl#registerAlias.
public sealed class AliasOptions : Options
- Inheritance
-
AliasOptions
- Inherited Members
Constructors
AliasOptions()
public AliasOptions()
- See Also
-
Options()
AliasOptions(int)
public AliasOptions(int options)
Parameters
options
intthe options to init with
Fields
PROP_ARRAY
The actual is an unordered array, the alias is to the first element of the array.
public const int PROP_ARRAY = 512
Field Value
PROP_ARRAY_ALTERNATE
The actual is an alternate array, the alias is to the first element of the array.
public const int PROP_ARRAY_ALTERNATE = 2048
Field Value
PROP_ARRAY_ALT_TEXT
The actual is an alternate text array, the alias is to the 'x-default' element of the array.
public const int PROP_ARRAY_ALT_TEXT = 4096
Field Value
PROP_ARRAY_ORDERED
The actual is an ordered array, the alias is to the first element of the array.
public const int PROP_ARRAY_ORDERED = 1024
Field Value
PROP_DIRECT
This is a direct mapping.
public const int PROP_DIRECT = 0
Field Value
Remarks
This is a direct mapping. The actual data type does not matter.
Methods
DefineOptionName(int)
protected override string DefineOptionName(int option)
Parameters
option
int
Returns
- See Also
GetValidOptions()
protected override int GetValidOptions()
Returns
- See Also
IsArray()
public bool IsArray()
Returns
- bool
Returns the option.
IsArrayAltText()
public bool IsArrayAltText()
Returns
- bool
Returns the option.
IsArrayAlternate()
public bool IsArrayAlternate()
Returns
- bool
Returns the option.
IsArrayOrdered()
public bool IsArrayOrdered()
Returns
- bool
Returns the option.
IsSimple()
public bool IsSimple()
Returns
- bool
Returns if the alias is of the simple form.
SetArray(bool)
public AliasOptions SetArray(bool value)
Parameters
value
boolthe value to set
Returns
- AliasOptions
Returns the instance to call more set-methods.
SetArrayAltText(bool)
public AliasOptions SetArrayAltText(bool value)
Parameters
value
boolthe value to set
Returns
- AliasOptions
Returns the instance to call more set-methods.
SetArrayAlternate(bool)
public AliasOptions SetArrayAlternate(bool value)
Parameters
value
boolthe value to set
Returns
- AliasOptions
Returns the instance to call more set-methods.
SetArrayOrdered(bool)
public AliasOptions SetArrayOrdered(bool value)
Parameters
value
boolthe value to set
Returns
- AliasOptions
Returns the instance to call more set-methods.
ToPropertyOptions()
public PropertyOptions ToPropertyOptions()
Returns
- PropertyOptions
returns a PropertyOptions s object