C# Class iTextSharp.xmp.options.XmpOptions

The base class for a collection of 32 flag bits. Individual flags are defined as enum value bit masks. Inheriting classes add convenience accessor methods. @since 24.01.2006
Afficher le fichier Open project: nonorganic/dssnet

Méthodes publiques

Méthode Description
Clear ( ) : void

Resets the options.

ContainsAllOptions ( uint optionBits ) : bool
ContainsOneOf ( uint optionBits ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsExactly ( uint optionBits ) : bool
SetOption ( uint optionBits, bool value ) : void
ToString ( ) : string
XmpOptions ( uint options ) : System.Collections

Constructor with the options bit mask.

Méthodes protégées

Méthode Description
AssertConsistency ( uint options ) : void

The inheriting option class can do additional checks on the options. Note: For performance reasons this method is only called when setting bitmasks directly. When get- and set-methods are used, this method must be called manually, normally only when the Options-object has been created from a client (it has to be made public therefore).

DefineOptionName ( uint option ) : string

To be implemeted by inheritants.

GetOption ( uint optionBit ) : bool
XmpOptions ( ) : System.Collections

The default constructor.

Private Methods

Méthode Description
AssertOptionsValid ( uint options ) : void

Checks options before they are set. First it is checked if only defined options are used, second the additional AssertConsistency(uint)-method is called.

GetOptionName ( uint option ) : string

Looks up or asks the inherited class for the name of an option bit. Its save that there is only one valid option handed into the method.

ProcureOptionNames ( ) : IDictionary

Method Details

AssertConsistency() protected méthode

The inheriting option class can do additional checks on the options. Note: For performance reasons this method is only called when setting bitmasks directly. When get- and set-methods are used, this method must be called manually, normally only when the Options-object has been created from a client (it has to be made public therefore).
Thrown if the options are not consistent.
protected AssertConsistency ( uint options ) : void
options uint the bitmask to check.
Résultat void

Clear() public méthode

Resets the options.
public Clear ( ) : void
Résultat void

ContainsAllOptions() public méthode

public ContainsAllOptions ( uint optionBits ) : bool
optionBits uint an option bitmask
Résultat bool

ContainsOneOf() public méthode

public ContainsOneOf ( uint optionBits ) : bool
optionBits uint an option bitmask
Résultat bool

DefineOptionName() protected abstract méthode

To be implemeted by inheritants.
protected abstract DefineOptionName ( uint option ) : string
option uint a single, valid option bit.
Résultat string

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetOption() protected méthode

protected GetOption ( uint optionBit ) : bool
optionBit uint the binary bit or bits that are requested
Résultat bool

IsExactly() public méthode

public IsExactly ( uint optionBits ) : bool
optionBits uint an option bitmask
Résultat bool

SetOption() public méthode

public SetOption ( uint optionBits, bool value ) : void
optionBits uint the binary bit or bits that shall be set to the given value
value bool the boolean value to set
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

XmpOptions() protected méthode

The default constructor.
protected XmpOptions ( ) : System.Collections
Résultat System.Collections

XmpOptions() public méthode

Constructor with the options bit mask.
If the options are not correct
public XmpOptions ( uint options ) : System.Collections
options uint the options bit mask
Résultat System.Collections