C# 클래스 Catel.Data.PropertyDataManager

Property data manager.
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

공개 메소드들

메소드 설명
GetCatelTypeInfo ( Type type ) : CatelTypeInfo

Gets the property data type information.

GetPropertyData ( Type type, string name ) : PropertyData

Gets the property data.

IsPropertyNameMappedToXmlAttribute ( Type type, string propertyName ) : bool

Determines whether the specified property is mapped to an XML attribute.

IsPropertyNameMappedToXmlElement ( Type type, string propertyName ) : bool

Determines whether the specified property is mapped to an XML element.

IsPropertyRegistered ( Type type, string name ) : bool

Returns whether a specific property is registered.

IsXmlAttributeNameMappedToProperty ( Type type, string xmlName ) : bool

Determines whether the specified XML attribute is mapped to a property name.

IsXmlElementNameMappedToProperty ( Type type, string xmlName ) : bool

Determines whether the specified XML element is mapped to a property name.

MapPropertyNameToXmlAttributeName ( Type type, string propertyName ) : string

Maps the name of the property name to an XML attribute name.

MapPropertyNameToXmlElementName ( Type type, string propertyName ) : string

Maps the name of the property name to an XML element name.

MapXmlAttributeNameToPropertyName ( Type type, string xmlName ) : string

Maps the name of the XML attribute to a property name.

MapXmlElementNameToPropertyName ( Type type, string xmlName ) : string

Maps the name of the XML element to a property name.

RegisterProperties ( Type type ) : CatelTypeInfo

Registers all the properties for the specified type. This method can only be called once per type. The PropertyDataManager caches whether it has already registered the properties once.

RegisterProperty ( Type type, string name, PropertyData propertyData ) : void

Registers a property for a specific type.

UnregisterProperty ( Type type, string name ) : void

Unregisters a property for a specific type.

비공개 메소드들

메소드 설명
PropertyDataManager ( ) : System

Initializes static members of the PropertyDataManager class.

메소드 상세

GetCatelTypeInfo() 공개 메소드

Gets the property data type information.
The is null.
public GetCatelTypeInfo ( Type type ) : CatelTypeInfo
type System.Type The type.
리턴 CatelTypeInfo

GetPropertyData() 공개 메소드

Gets the property data.
The is null. The is null or whitespace. Thrown when the property is not registered.
public GetPropertyData ( Type type, string name ) : PropertyData
type System.Type The type for which to get the property data.
name string The name of the property.
리턴 PropertyData

IsPropertyNameMappedToXmlAttribute() 공개 메소드

Determines whether the specified property is mapped to an XML attribute.
The is null. The is null or whitespace.
public IsPropertyNameMappedToXmlAttribute ( Type type, string propertyName ) : bool
type System.Type The type.
propertyName string Name of the property.
리턴 bool

IsPropertyNameMappedToXmlElement() 공개 메소드

Determines whether the specified property is mapped to an XML element.
The is null. The is null or whitespace.
public IsPropertyNameMappedToXmlElement ( Type type, string propertyName ) : bool
type System.Type The type.
propertyName string Name of the property.
리턴 bool

IsPropertyRegistered() 공개 메소드

Returns whether a specific property is registered.
The is null. The is null or whitespace.
public IsPropertyRegistered ( Type type, string name ) : bool
type System.Type The type for which to check whether the property is registered.
name string The name of the property.
리턴 bool

IsXmlAttributeNameMappedToProperty() 공개 메소드

Determines whether the specified XML attribute is mapped to a property name.
The is null. The is null or whitespace.
public IsXmlAttributeNameMappedToProperty ( Type type, string xmlName ) : bool
type System.Type The type.
xmlName string Name of the XML.
리턴 bool

IsXmlElementNameMappedToProperty() 공개 메소드

Determines whether the specified XML element is mapped to a property name.
The is null. The is null or whitespace.
public IsXmlElementNameMappedToProperty ( Type type, string xmlName ) : bool
type System.Type The type.
xmlName string Name of the XML.
리턴 bool

MapPropertyNameToXmlAttributeName() 공개 메소드

Maps the name of the property name to an XML attribute name.
public MapPropertyNameToXmlAttributeName ( Type type, string propertyName ) : string
type System.Type The type for which to make the xml name.
propertyName string Name of the property.
리턴 string

MapPropertyNameToXmlElementName() 공개 메소드

Maps the name of the property name to an XML element name.
public MapPropertyNameToXmlElementName ( Type type, string propertyName ) : string
type System.Type The type for which to make the xml name.
propertyName string Name of the property.
리턴 string

MapXmlAttributeNameToPropertyName() 공개 메소드

Maps the name of the XML attribute to a property name.
The is null. The is null or whitespace.
public MapXmlAttributeNameToPropertyName ( Type type, string xmlName ) : string
type System.Type The type for which to make the xml name.
xmlName string Name of the XML attribute.
리턴 string

MapXmlElementNameToPropertyName() 공개 메소드

Maps the name of the XML element to a property name.
The is null. The is null or whitespace.
public MapXmlElementNameToPropertyName ( Type type, string xmlName ) : string
type System.Type The type for which to make the xml name.
xmlName string Name of the XML element.
리턴 string

RegisterProperties() 공개 메소드

Registers all the properties for the specified type. This method can only be called once per type. The PropertyDataManager caches whether it has already registered the properties once.
The is null. The properties are not declared correctly.
public RegisterProperties ( Type type ) : CatelTypeInfo
type System.Type The type to register the properties for.
리턴 CatelTypeInfo

RegisterProperty() 공개 메소드

Registers a property for a specific type.
The is null. The is null or whitespace. The is null. A property with the same name is already registered.
public RegisterProperty ( Type type, string name, PropertyData propertyData ) : void
type System.Type The type for which to register the property.
name string The name of the property.
propertyData PropertyData The property data.
리턴 void

UnregisterProperty() 공개 메소드

Unregisters a property for a specific type.
The is null. The is null or whitespace.
public UnregisterProperty ( Type type, string name ) : void
type System.Type The type for which to register the property.
name string The name of the property.
리턴 void