C# Класс Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributeInfoBuilder

Simplifies the process of building 'AttributeInfo' objects.
This class is responsible for providing a default implementation of ConnectorAttributeInfo. AttributeInfoBuilder bld = new AttributeInfoBuilder("email"); bld.setRequired(true); AttributeInfo info = bld.build();
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Build ( ) : ConnectorAttributeInfo

Builds an ConnectorAttributeInfo object based on the properties set.

Build ( String name ) : ConnectorAttributeInfo

Convenience method to create an AttributeInfo.

Equivalent to AttributeInfoBuilder.build(name,type)

Build ( String name, Type type ) : ConnectorAttributeInfo

Convenience method to create an AttributeInfo.

Equivalent to AttributeInfoBuilder.build(name,type,null)

Build ( String name, Type type, ConnectorAttributeInfo flags ) : ConnectorAttributeInfo

Convenience method to create an AttributeInfo.

Equivalent to new AttributeInfoBuilder(name,type).setFlags(flags).build()

ConnectorAttributeInfoBuilder ( ) : System

Creates an builder with all the defaults set.

The name must be set before the 'build' method is called otherwise an IllegalStateException is thrown.

 Name: <not set> Readable: true Writeable: true Required: false Type: string MultiValue: false 
ConnectorAttributeInfoBuilder ( String name ) : System

Creates an builder with all the defaults set.

The name must be set before the 'build' method is called otherwise an IllegalStateException is thrown.

 Name: <not set> Readable: true Writeable: true Required: false Type: string MultiValue: false 
ConnectorAttributeInfoBuilder ( String name, Type type ) : System

Creates an builder with all the defaults set.

The name must be set before the 'build' method is called otherwise an IllegalStateException is thrown.

 Name: <not set> Readable: true Writeable: true Required: false Type: string MultiValue: false 
Define ( string name ) : ConnectorAttributeInfoBuilder

Convenience method to create a new AttributeInfoBuilder. Equivalent to: new AttributeInfoBuilder(name, String.class)

Since 1.4

Define ( string name, Type type ) : ConnectorAttributeInfoBuilder

Convenience method to create a new AttributeInfoBuilder. Equivalent to: new AttributeInfoBuilder(name, type)

Since 1.4

SetCreatable ( bool value ) : ConnectorAttributeInfoBuilder

Determines if the attribute is writable.

SetMultiValued ( bool value ) : ConnectorAttributeInfoBuilder

Determines if this attribute supports multivalue.

SetName ( string name ) : ConnectorAttributeInfoBuilder

Sets the unique name of the ConnectorAttributeInfo object.

SetReadable ( bool value ) : ConnectorAttributeInfoBuilder

Determines if the attribute is readable.

SetRequired ( bool value ) : ConnectorAttributeInfoBuilder

Determines if this attribute is required.

SetReturnedByDefault ( bool value ) : ConnectorAttributeInfoBuilder
SetUpdateable ( bool value ) : ConnectorAttributeInfoBuilder

Determines if this attribute writable during update.

SetValueType ( Type type ) : ConnectorAttributeInfoBuilder

Please see FrameworkUtil.CheckAttributeType(Type) for the definitive list of supported types.

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

Метод Описание
SetFlag ( ConnectorAttributeInfo flag, bool value ) : void

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

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

Builds an ConnectorAttributeInfo object based on the properties set.
public Build ( ) : ConnectorAttributeInfo
Результат ConnectorAttributeInfo

Build() публичный статический Метод

Convenience method to create an AttributeInfo.
Equivalent to AttributeInfoBuilder.build(name,type)
public static Build ( String name ) : ConnectorAttributeInfo
name String The name of the attribute
Результат ConnectorAttributeInfo

Build() публичный статический Метод

Convenience method to create an AttributeInfo.
Equivalent to AttributeInfoBuilder.build(name,type,null)
public static Build ( String name, Type type ) : ConnectorAttributeInfo
name String The name of the attribute
type System.Type The type of the attribute
Результат ConnectorAttributeInfo

Build() публичный статический Метод

Convenience method to create an AttributeInfo.
Equivalent to new AttributeInfoBuilder(name,type).setFlags(flags).build()
public static Build ( String name, Type type, ConnectorAttributeInfo flags ) : ConnectorAttributeInfo
name String The name of the attribute
type System.Type The type of the attribute
flags ConnectorAttributeInfo The flags for the attribute. Null means clear all flags
Результат ConnectorAttributeInfo

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

Creates an builder with all the defaults set.
The name must be set before the 'build' method is called otherwise an IllegalStateException is thrown.
 Name: <not set> Readable: true Writeable: true Required: false Type: string MultiValue: false 
public ConnectorAttributeInfoBuilder ( ) : System
Результат System

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

Creates an builder with all the defaults set.
The name must be set before the 'build' method is called otherwise an IllegalStateException is thrown.
 Name: <not set> Readable: true Writeable: true Required: false Type: string MultiValue: false 
public ConnectorAttributeInfoBuilder ( String name ) : System
name String
Результат System

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

Creates an builder with all the defaults set.
The name must be set before the 'build' method is called otherwise an IllegalStateException is thrown.
 Name: <not set> Readable: true Writeable: true Required: false Type: string MultiValue: false 
public ConnectorAttributeInfoBuilder ( String name, Type type ) : System
name String
type System.Type
Результат System

Define() публичный статический Метод

Convenience method to create a new AttributeInfoBuilder. Equivalent to: new AttributeInfoBuilder(name, String.class)
Since 1.4
public static Define ( string name ) : ConnectorAttributeInfoBuilder
name string /// The name of the attribute
Результат ConnectorAttributeInfoBuilder

Define() публичный статический Метод

Convenience method to create a new AttributeInfoBuilder. Equivalent to: new AttributeInfoBuilder(name, type)
Since 1.4
public static Define ( string name, Type type ) : ConnectorAttributeInfoBuilder
name string /// The name of the attribute
type System.Type /// The type of the attribute
Результат ConnectorAttributeInfoBuilder

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

Determines if the attribute is writable.
public SetCreatable ( bool value ) : ConnectorAttributeInfoBuilder
value bool
Результат ConnectorAttributeInfoBuilder

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

Determines if this attribute supports multivalue.
public SetMultiValued ( bool value ) : ConnectorAttributeInfoBuilder
value bool
Результат ConnectorAttributeInfoBuilder

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

Sets the unique name of the ConnectorAttributeInfo object.
public SetName ( string name ) : ConnectorAttributeInfoBuilder
name string unique name of the object.
Результат ConnectorAttributeInfoBuilder

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

Determines if the attribute is readable.
public SetReadable ( bool value ) : ConnectorAttributeInfoBuilder
value bool
Результат ConnectorAttributeInfoBuilder

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

Determines if this attribute is required.
public SetRequired ( bool value ) : ConnectorAttributeInfoBuilder
value bool
Результат ConnectorAttributeInfoBuilder

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

public SetReturnedByDefault ( bool value ) : ConnectorAttributeInfoBuilder
value bool
Результат ConnectorAttributeInfoBuilder

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

Determines if this attribute writable during update.
public SetUpdateable ( bool value ) : ConnectorAttributeInfoBuilder
value bool
Результат ConnectorAttributeInfoBuilder

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

Please see FrameworkUtil.CheckAttributeType(Type) for the definitive list of supported types.
if the Class is not a supported type.
public SetValueType ( Type type ) : ConnectorAttributeInfoBuilder
type System.Type type for an 's value.
Результат ConnectorAttributeInfoBuilder