C# Класс ServiceClientGenerator.Shape

Shapes are used to model structures and member types. If they are a structure the shape defines what members it has and what shape those members are. It also defines which of those members are required. If it is not a structure then it is used to specify the type of the member and its properties.
Наследование: BaseModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Equals ( object obj ) : bool

Checks if an object is a Shape and has the same name as this shape

GetHashCode ( ) : int

The hashcode of the shape is the hashcode of the name

GetPrimitiveType ( ) : string
Shape ( ServiceModel model, string name, JsonData data ) : Json.LitJson

Creates a shape with a reference to the model it's a part of, its name, and the json data of the shape pulled from the model. Shapes are used to model structures and member types. If they are a structure the shape defines what members it has and what shape those members are. It also defines which of those members are required. If it is not a structure then it is used to specify the type of the member and its properties.

ToString ( ) : string

String representation of the shape found by the name

Приватные методы

Метод Описание
LookupListShapeName ( bool allowSubstitution ) : string

Returns the name of a shape declared to be used by a list type, optionally allowing for substitution.

Описание методов

Equals() публичный Метод

Checks if an object is a Shape and has the same name as this shape
public Equals ( object obj ) : bool
obj object The object to compare to
Результат bool

GetHashCode() публичный Метод

The hashcode of the shape is the hashcode of the name
public GetHashCode ( ) : int
Результат int

GetPrimitiveType() публичный Метод

public GetPrimitiveType ( ) : string
Результат string

Shape() публичный Метод

Creates a shape with a reference to the model it's a part of, its name, and the json data of the shape pulled from the model. Shapes are used to model structures and member types. If they are a structure the shape defines what members it has and what shape those members are. It also defines which of those members are required. If it is not a structure then it is used to specify the type of the member and its properties.
public Shape ( ServiceModel model, string name, JsonData data ) : Json.LitJson
model ServiceModel The model that contains the shape
name string The name of the shape
data JsonData The json object of the shape, pulled form the model json
Результат Json.LitJson

ToString() публичный Метод

String representation of the shape found by the name
public ToString ( ) : string
Результат string