Show / Hide Table of Contents

Class XmiArtificialIdAttribute

Denotes an artificially introduced XMI Id attribute

Inheritance
object
XmiArtificialIdAttribute
Implements
IPropertySerializationInfo
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Serialization.Xmi
Assembly: NMF.Serialization.dll
Syntax
public class XmiArtificialIdAttribute : IPropertySerializationInfo

Constructors

| Edit this page View Source

XmiArtificialIdAttribute()

Creates a new instance

Declaration
protected XmiArtificialIdAttribute()

Properties

| Edit this page View Source

ElementName

The element name that should be serialized

Declaration
public string ElementName { get; }
Property Value
Type Description
string
| Edit this page View Source

IdentificationMode

Gets the identification mode of the property

Declaration
public XmlIdentificationMode IdentificationMode { get; }
Property Value
Type Description
XmlIdentificationMode
| Edit this page View Source

Instance

Denotes the default instance

Declaration
public static XmiArtificialIdAttribute Instance { get; }
Property Value
Type Description
XmiArtificialIdAttribute
| Edit this page View Source

IsIdentifier

True, if the property is an identifier, otherwise False

Declaration
public bool IsIdentifier { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsReadOnly

True, if the property is read-only, otherwise False

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsStringConvertible

True, if the value of this property allows roundtrip-serialization to string

Declaration
public bool IsStringConvertible { get; }
Property Value
Type Description
bool
| Edit this page View Source

Namespace

The namespace to which the element should be serialized or null

Declaration
public string Namespace { get; }
Property Value
Type Description
string
| Edit this page View Source

NamespacePrefix

The namespace prefix that should be used for serialization or null

Declaration
public string NamespacePrefix { get; }
Property Value
Type Description
string
| Edit this page View Source

Opposite

Gets the opposite property or null

Declaration
public IPropertySerializationInfo Opposite { get; }
Property Value
Type Description
IPropertySerializationInfo
| Edit this page View Source

PropertyMinType

Gets the minimum type system type of the property

Declaration
public Type PropertyMinType { get; }
Property Value
Type Description
Type
| Edit this page View Source

RequiresInitialization

True, if the property requires initialization, otherwise False

Declaration
public bool RequiresInitialization { get; }
Property Value
Type Description
bool
| Edit this page View Source

ShallCreateInstance

Determines whether the instance should be created explicitly

Declaration
public bool ShallCreateInstance { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

AddToCollection(object, object, XmlSerializationContext)

Adds the given object to the collection

Declaration
public void AddToCollection(object input, object item, XmlSerializationContext context)
Parameters
Type Name Description
object input

The context object

object item

The item that should be added

XmlSerializationContext context

The deserialization context

| Edit this page View Source

ConvertFromString(string)

Deserializes the provided text

Declaration
public object ConvertFromString(string text)
Parameters
Type Name Description
string text

the text

Returns
Type Description
object

The deserialized value

| Edit this page View Source

ConvertToString(object)

Converts the provided object to a string

Declaration
public string ConvertToString(object input)
Parameters
Type Name Description
object input

The object to convert

Returns
Type Description
string

A string representation

| Edit this page View Source

GetValue(object, XmlSerializationContext)

Gets the value of this property for the given input object

Declaration
public object GetValue(object input, XmlSerializationContext context)
Parameters
Type Name Description
object input

The context object

XmlSerializationContext context

The serialization context

Returns
Type Description
object
| Edit this page View Source

Initialize(object, XmlSerializationContext)

Initializes the property for the given element

Declaration
public void Initialize(object input, XmlSerializationContext context)
Parameters
Type Name Description
object input

The object instance for which the property should be initialized

XmlSerializationContext context

The deserialization context

| Edit this page View Source

SetValue(object, object, XmlSerializationContext)

Sets the value for the property

Declaration
public void SetValue(object input, object value, XmlSerializationContext context)
Parameters
Type Name Description
object input

The context object

object value

The value of the property

XmlSerializationContext context

The deserialization context

| Edit this page View Source

ShouldSerializeValue(object, object)

Determines whether the provided value should be serialized

Declaration
public virtual bool ShouldSerializeValue(object obj, object value)
Parameters
Type Name Description
object obj

The context object

object value

The value in question

Returns
Type Description
bool

True, if the value should be serialized, otherwise False

Implements

IPropertySerializationInfo
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX