C# 클래스 SimpleFramework.Xml.Stream.CamelCaseBuilder

The CamelCaseBuilder is used to represent an XML style that can be applied to a serialized object. A style can be used to modify the element and attribute names for the generated document. This styles can be used to generate camel case XML. <ExampleElement> <ChildElement exampleAttribute='example'> <InnerElement>example</InnerElement> </ChildElement> </ExampleElement> Above the camel case XML elements and attributes can be generated from a style implementation. Styles enable the same objects to be serialized in different ways, generating different styles of XML without having to modify the class schema for that object.
상속: Style
파일 보기 프로젝트 열기: ngallagher/simplexml

공개 메소드들

메소드 설명
CamelCaseBuilder ( bool element, bool attribute ) : System

Constructor for the CamelCaseBuilder object. This is used to create a style that will create camel case XML attributes and elements allowing a consistent format for generated XML. Both the attribute an elements are configurable.

GetAttribute ( String name ) : String

This is used to generate the XML attribute representation of the specified name. Attribute names should ensure to keep the uniqueness of the name such that two different names will be styled in to two different strings.

GetElement ( String name ) : String

This is used to generate the XML element representation of the specified name. Element names should ensure to keep the uniqueness of the name such that two different names will be styled in to two different strings.

메소드 상세

CamelCaseBuilder() 공개 메소드

Constructor for the CamelCaseBuilder object. This is used to create a style that will create camel case XML attributes and elements allowing a consistent format for generated XML. Both the attribute an elements are configurable.
public CamelCaseBuilder ( bool element, bool attribute ) : System
element bool /// If true the element will start as upper case. ///
attribute bool /// If true the attribute starts as upper case. ///
리턴 System

GetAttribute() 공개 메소드

This is used to generate the XML attribute representation of the specified name. Attribute names should ensure to keep the uniqueness of the name such that two different names will be styled in to two different strings.
public GetAttribute ( String name ) : String
name String /// This is the attribute name that is to be styled. ///
리턴 String

GetElement() 공개 메소드

This is used to generate the XML element representation of the specified name. Element names should ensure to keep the uniqueness of the name such that two different names will be styled in to two different strings.
public GetElement ( String name ) : String
name String /// This is the element name that is to be styled. ///
리턴 String