C# 클래스 SimpleFramework.Xml.Core.Entry

파일 보기 프로젝트 열기: ngallagher/simplexml 1 사용 예제들

공개 메소드들

메소드 설명
Entry ( ) : SimpleFramework.Xml.Core
Entry ( String id, String text ) : SimpleFramework.Xml.Core
Entry ( Contact contact, ElementMap label ) : SimpleFramework.Xml.Strategy

Constructor for the Entry object. This takes the element map annotation that provides configuration as to how the map is serialized and deserialized from the XML document. The entry object provides a convenient means to access the XML schema configuration using defaults where necessary.

GetKey ( Context context ) : Converter

This is used to get the key converter for the entry. This knows whether the key type is a primitive or composite object and will provide the appropriate converter implementation. This allows the root composite map converter to concern itself with only the details of the surrounding entry object.

GetValue ( Context context ) : Converter

This is used to get the value converter for the entry. This knows whether the value type is a primitive or composite object and will provide the appropriate converter implementation. This allows the root composite map converter to concern itself with only the details of the surrounding entry object.

IsAttribute ( ) : bool

Represents whether the key value is to be an attribute or an element. This allows the key to be embedded within the entry XML element allowing for a more compact representation. Only primitive key objects can be represented as an attribute. For example a java.util.Date or a string could be represented as an attribute key for the generated XML.

IsInline ( ) : bool

Represents whether the value is to be written as an inline text value within the element. This is only possible if the key has been specified as an attribute. Also, the value can only be inline if there is no wrapping value XML element specified.

메소드 상세

Entry() 공개 메소드

public Entry ( ) : SimpleFramework.Xml.Core
리턴 SimpleFramework.Xml.Core

Entry() 공개 메소드

public Entry ( String id, String text ) : SimpleFramework.Xml.Core
id String
text String
리턴 SimpleFramework.Xml.Core

Entry() 공개 메소드

Constructor for the Entry object. This takes the element map annotation that provides configuration as to how the map is serialized and deserialized from the XML document. The entry object provides a convenient means to access the XML schema configuration using defaults where necessary.
public Entry ( Contact contact, ElementMap label ) : SimpleFramework.Xml.Strategy
contact Contact /// this is the point of contact to the map object ///
label SimpleFramework.Xml.ElementMap /// the annotation the map method or field uses ///
리턴 SimpleFramework.Xml.Strategy

GetKey() 공개 메소드

This is used to get the key converter for the entry. This knows whether the key type is a primitive or composite object and will provide the appropriate converter implementation. This allows the root composite map converter to concern itself with only the details of the surrounding entry object.
public GetKey ( Context context ) : Converter
context Context /// this is the root context for the serialization ///
리턴 Converter

GetValue() 공개 메소드

This is used to get the value converter for the entry. This knows whether the value type is a primitive or composite object and will provide the appropriate converter implementation. This allows the root composite map converter to concern itself with only the details of the surrounding entry object.
public GetValue ( Context context ) : Converter
context Context /// this is the root context for the serialization ///
리턴 Converter

IsAttribute() 공개 메소드

Represents whether the key value is to be an attribute or an element. This allows the key to be embedded within the entry XML element allowing for a more compact representation. Only primitive key objects can be represented as an attribute. For example a java.util.Date or a string could be represented as an attribute key for the generated XML.
public IsAttribute ( ) : bool
리턴 bool

IsInline() 공개 메소드

Represents whether the value is to be written as an inline text value within the element. This is only possible if the key has been specified as an attribute. Also, the value can only be inline if there is no wrapping value XML element specified.
public IsInline ( ) : bool
리턴 bool