C# 클래스 SenseNet.ContentRepository.Field

Field represent an atomic data of a Content
A Field represents an atomic data type from the perspective of the system. It usually handles Fields usually handles a single ContentHandler property. It is also capable of handling of multiple ContentHandler properties (see the WhoAndWhen Field for an example). It may also consist of values computed from the handled ContentHandler propery(s) or even represent data independent of these properties. In the communication bus this atomic data type is resembled as a transfer object: ContentHandler<--properties--> Field <--transfer object--> FieldControl (Content, ContenView) The Field constructs a transfer object from ContentHandler properties and passes it up to the FieldControl. At the same time this tranfer object is disassembled to ContentHandler properties when passing its data down to the ContentHandler. The Field class is responsible for invoking data validation (data validation itself is done by the FieldSetting property). The class Field can be resembled as bridge between ContentHandlerproperties and ContentView (or any other ways of data output/input). The Field class is also one of the most important system extension points (among with ContentHandler). By defining a new Field class a system-wide usable atomic data type is defined. This kind of extension is usually done when having a need of a more complex or different type than ones already defined in the system.
상속: IIndexableField
파일 보기 프로젝트 열기: maxpavlov/FlexNet 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Create Field
DoValidate bool
Export void
Export2 void
GetExportName string
GetInnerXml string
Import void
Import void
ParseImportName string
Save void
SetDefaultValue void
Validate bool

공개 메소드들

메소드 설명
GetData ( ) : object

Returns object data which is a transfer object.

GetIndexFieldInfos ( string &textExtract ) : IEnumerable
GetValidationMessage ( ) : string
HasValue ( ) : bool
Parse ( string value ) : bool
SetData ( object value ) : void

Sets object data which is a transfer object.

WriteXml ( XmlWriter writer ) : void

보호된 메소드들

메소드 설명
ConvertFrom ( object value ) : object[]

Creates ContentHandler properties from the transfer object.

ConvertTo ( object handlerValues ) : object

Creates a transfer object from ContentHandler properties

ExportData ( XmlWriter writer, ExportContext context ) : void
ExportData2 ( XmlWriter writer, ExportContext context ) : void
ExportNotImplementedException ( ) : Exception
ExportNotImplementedException ( object notImplementedValue ) : Exception
Field ( ) : System
GetHandlerSlot ( int slotIndex ) : Type

Gets the type of the slot.

A slot type may represent numeros CLR types in compile time. In runtime, however a single type from the previously defined enumeration is assigned to this slot. This function returns this type in runtime.

GetXmlData ( ) : string
ImportData ( XmlNode fieldNode ) : void

For Powershell provider

ImportData ( XmlNode fieldNode, ImportContext context ) : void

For old-way-import

InvalidImportDataException ( string message ) : Exception
InvalidImportDataException ( string message, Exception innerException ) : Exception
OnSaveCompleted ( ) : void
ParseValue ( string value ) : bool
ReadProperties ( ) : object
ReadProperty ( string propertyName ) : object
WriteProperties ( object value ) : void
WriteProperty ( string propertyName, object value ) : void
WriteXmlData ( XmlWriter writer ) : void

비공개 메소드들

메소드 설명
Create ( Content content, FieldSetting fieldSetting ) : Field
DoValidate ( ) : bool
Export ( XmlWriter writer, ExportContext context ) : void
Export2 ( XmlWriter writer, ExportContext context ) : void
GetExportName ( string fieldName, FieldSubType &subType ) : string
GetInnerXml ( ) : string
Import ( XmlNode fieldNode ) : void

For Powershell provider

Import ( XmlNode fieldNode, ImportContext context ) : void

For old-way-import

ParseImportName ( string importName, FieldSubType subType ) : string
Save ( bool validOnly ) : void
SetDefaultValue ( ) : void
Validate ( ) : bool

메소드 상세

ConvertFrom() 보호된 메소드

Creates ContentHandler properties from the transfer object.
protected ConvertFrom ( object value ) : object[]
value object
리턴 object[]

ConvertTo() 보호된 메소드

Creates a transfer object from ContentHandler properties
protected ConvertTo ( object handlerValues ) : object
handlerValues object
리턴 object

ExportData() 보호된 메소드

protected ExportData ( XmlWriter writer, ExportContext context ) : void
writer System.Xml.XmlWriter
context ExportContext
리턴 void

ExportData2() 보호된 메소드

protected ExportData2 ( XmlWriter writer, ExportContext context ) : void
writer System.Xml.XmlWriter
context ExportContext
리턴 void

ExportNotImplementedException() 보호된 메소드

protected ExportNotImplementedException ( ) : Exception
리턴 System.Exception

ExportNotImplementedException() 보호된 메소드

protected ExportNotImplementedException ( object notImplementedValue ) : Exception
notImplementedValue object
리턴 System.Exception

Field() 보호된 메소드

protected Field ( ) : System
리턴 System

GetData() 공개 메소드

Returns object data which is a transfer object.
public GetData ( ) : object
리턴 object

GetHandlerSlot() 보호된 메소드

Gets the type of the slot.
A slot type may represent numeros CLR types in compile time. In runtime, however a single type from the previously defined enumeration is assigned to this slot. This function returns this type in runtime.
protected GetHandlerSlot ( int slotIndex ) : Type
slotIndex int Index of the slot of which the type is needed
리턴 System.Type

GetIndexFieldInfos() 공개 메소드

public GetIndexFieldInfos ( string &textExtract ) : IEnumerable
textExtract string
리턴 IEnumerable

GetValidationMessage() 공개 메소드

public GetValidationMessage ( ) : string
리턴 string

GetXmlData() 보호된 메소드

protected GetXmlData ( ) : string
리턴 string

HasValue() 공개 메소드

public HasValue ( ) : bool
리턴 bool

ImportData() 보호된 메소드

For Powershell provider
protected ImportData ( XmlNode fieldNode ) : void
fieldNode System.Xml.XmlNode
리턴 void

ImportData() 보호된 추상적인 메소드

For old-way-import
protected abstract ImportData ( XmlNode fieldNode, ImportContext context ) : void
fieldNode System.Xml.XmlNode
context ImportContext
리턴 void

InvalidImportDataException() 보호된 메소드

protected InvalidImportDataException ( string message ) : Exception
message string
리턴 System.Exception

InvalidImportDataException() 보호된 메소드

protected InvalidImportDataException ( string message, Exception innerException ) : Exception
message string
innerException System.Exception
리턴 System.Exception

OnSaveCompleted() 보호된 메소드

protected OnSaveCompleted ( ) : void
리턴 void

Parse() 공개 메소드

public Parse ( string value ) : bool
value string
리턴 bool

ParseValue() 보호된 메소드

protected ParseValue ( string value ) : bool
value string
리턴 bool

ReadProperties() 보호된 메소드

protected ReadProperties ( ) : object
리턴 object

ReadProperty() 보호된 메소드

protected ReadProperty ( string propertyName ) : object
propertyName string
리턴 object

SetData() 공개 메소드

Sets object data which is a transfer object.
public SetData ( object value ) : void
value object
리턴 void

WriteProperties() 보호된 메소드

protected WriteProperties ( object value ) : void
value object
리턴 void

WriteProperty() 보호된 메소드

protected WriteProperty ( string propertyName, object value ) : void
propertyName string
value object
리턴 void

WriteXml() 공개 메소드

public WriteXml ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
리턴 void

WriteXmlData() 보호된 메소드

protected WriteXmlData ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
리턴 void