Energy Core Library
Energy.Enumeration Namespace Reference

Enumerations

enum  BooleanStyle {
  BooleanStyle.B, BooleanStyle.X, BooleanStyle.V, BooleanStyle.Y,
  BooleanStyle.T, BooleanStyle.YesNo, BooleanStyle.TrueFalse, BooleanStyle.Bit = B,
  BooleanStyle.YN = Y, BooleanStyle.TF = T
}
 Style of representing boolean values. More...
 
enum  CharacterCasing { CharacterCasing.None, CharacterCasing.Lower, CharacterCasing.Upper }
 Character casing More...
 
enum  FormatType {
  FormatType.Text, FormatType.Number, FormatType.Date, FormatType.Time,
  FormatType.Stamp
}
 Value representation format More...
 
enum  FormMode { FormMode.New, FormMode.Edit, FormMode.View }
 Form mode (New/Edit/View) More...
 
enum  GrammaticalGender {
  GrammaticalGender.Masculine, GrammaticalGender.Feminine, GrammaticalGender.Neuter, GrammaticalGender.M = Masculine,
  GrammaticalGender.F = Feminine, GrammaticalGender.N = Neuter
}
 Basic grammatical gender type in masculine–feminine–neuter system More...
 
enum  InputOutput { InputOutput.None = 0, InputOutput.Input = 1, InputOutput.Output = 2, InputOutput.Both = Input | Output }
 
enum  LocateBehaviour { LocateBehaviour.Directories, LocateBehaviour.Extensions, LocateBehaviour.Default = Directories }
 Style of representing boolean values More...
 
enum  LogLevel {
  LogLevel.Default = Message, LogLevel.None = 0, LogLevel.Stop = 1, LogLevel.Alert = 2,
  LogLevel.Error = 3, LogLevel.Warning = 4, LogLevel.Message = 5, LogLevel.Information = 6,
  LogLevel.Verbose = 7, LogLevel.Trace = 8, LogLevel.Bug = 9, LogLevel.Critical = Stop,
  LogLevel.Fatal = Alert, LogLevel.OMG = Alert, LogLevel.LOL = Verbose, LogLevel.WTF = Error,
  LogLevel.VIP = Warning, LogLevel.NVM = Trace
}
 Style of representing severity level of log messages More...
 
enum  MatchMode {
  MatchMode.None, MatchMode.Same, MatchMode.Simple, MatchMode.Wild,
  MatchMode.Regex
}
 Matching style More...
 
enum  MatchStyle { MatchStyle.Any, MatchStyle.All, MatchStyle.One, MatchStyle.Not }
 Matching style More...
 
enum  RoundingMethod {
  RoundingMethod.Standard = HalfUp, RoundingMethod.None = Floor, RoundingMethod.Floor = 0, RoundingMethod.Ceil = 0,
  RoundingMethod.HalfUp = 4, RoundingMethod.HalfDown = 5, RoundingMethod.ToEven = 2, RoundingMethod.ToOdd = 3
}
 Style of representing boolean values. More...
 
enum  SortOrder { SortOrder.None = 0, SortOrder.Ascending = 1, SortOrder.Descending = 2 }
 Three state type of sort order (None/Ascending/Descending). More...
 
enum  SqlDialect {
  SqlDialect.ANSI, SqlDialect.SQLSERVER, SqlDialect.MYSQL, SqlDialect.POSTGRESQL,
  SqlDialect.ORACLE, SqlDialect.FIREBIRD, SqlDialect.SQLITE
}
 SQL dialect More...
 
enum  TextAlign { TextAlign.Left, TextAlign.Right, TextAlign.Center, TextAlign.Justify }
 Style of representing boolean values More...
 

Enumeration Type Documentation

◆ BooleanStyle

Style of representing boolean values.

Enumerator

0/1

X for true

V for true

Y/N

T/F

YesNo 

Yes/No

Localised

TrueFalse 

True/False

Localised

Bit 

0/1

Localised

YN 

Y/N

Localised

TF 

T/F

Localised

◆ CharacterCasing

Character casing

Enumerator
None 

Not specified, as is

Lower 

Lower

Upper 

Upper

◆ FormatType

Value representation format

Enumerator
Text 

Format as text

Number 

Format as number

Date 

Format as date

Time 

Format as time

Stamp 

Format as timestamp

◆ FormMode

Form mode (New/Edit/View)

Enumerator
New 

New element

Edit 

Existing element

View 

View element (read only)

◆ GrammaticalGender

Basic grammatical gender type in masculine–feminine–neuter system

Enumerator
Masculine 

Masculine

Feminine 

Feminine

Neuter 

Neuter

Short form of Masculine

Short form of Feminine

Short form of Neuter

◆ InputOutput

Enumerator
None 

None

Input 

Input

Output 

Output

Both 

Both

◆ LocateBehaviour

Style of representing boolean values

Enumerator
Directories 

Search in any directory for every possible filename extension

Extensions 

Search for every possible filename extension in any of directory

Default 

Default behaviour

◆ LogLevel

Style of representing severity level of log messages

Log level is also a number 0-9 which represents severity of messages. Lower numbers are more important and higher less and default is 5.

Three levels may be found useful oftenly:

Energy.Enumeration.LogLevel.Message which is default Energy.Enumeration.LogLevel.Error for normal errors Energy.Enumeration.LogLevel.Verbose for verbose messages

Enumerator
Default 

Default severity level

None 

Uknown severity level / Not used

Stop 

Stop / Critical

Alert 

Alert / Fatal

Error 

Error

Warning 

Warning

Message 

Message / Default

Information 

Information

Verbose 

Verbose

Be more verbose. This level may include program execution details for advanced monitoring.

Trace 

Trace

Additional messages for tracing program execution.

Bug 

Bug

Maximum possible level intended for diagnostic messages. For debugging purposes.

Critical 

Critical / Stop

Fatal 

Fatal / Alert

OMG 

Very important severity

LOL 

Less important message severity

WTF 

Warning about something should not happened

VIP 

Very important message

NVM 

Additional commentary

◆ MatchMode

Matching style

Enumerator
None 

Default value for not matching at all

Same 

Values must be same in their text representation

Simple 

Match simple way. Value must be equal to filtered, start or end with to be matched.

Wild 

Match using shell style wildcards (*?)

Regex 

Match using regular expressions

◆ MatchStyle

Matching style

Enumerator
Any 

At least one element has to be resolved

All 

All elements must be resolved

One 

Only one element needs to be resolved

Not 

Every element must not be resolved

◆ RoundingMethod

Style of representing boolean values.

Enumerator
Standard 

Standard method of rounding (HalfUp)

None 

None

Floor 

Round down

Ceil 

Round up

HalfUp 

Half Round Up (the common method of rounding) Example: 7.6 rounds up to 8, 7.5 rounds up to 8, 7.4 rounds down to 7.

HalfDown 

X for true

ToEven 

Round to Even (Banker's Rounding) Example: 7.5 rounds up to 8 (because 8 is an even number) but 6.5 rounds down to 6 (because 6 is an even number).

ToOdd 

Round to Odd. Example: 7.5 rounds down to 7 (because 7 is an odd number) but 6.5 rounds up to 7 (because 7 is an odd number).

◆ SortOrder

Three state type of sort order (None/Ascending/Descending).

Enumerator
None 

X for true

Ascending 

V for true

Descending 

0/1

◆ SqlDialect

SQL dialect

Enumerator
ANSI 

ANSI SQL-92 standard. Probably will not work with Microsoft SQL Server.

SQLSERVER 

Transact-SQL (T-SQL) for Microsoft SQL Server (2008 and later)

MYSQL 

MySQL

POSTGRESQL 

PostgreSQL (PL/pgSQL)

ORACLE 

Oracle (PL/SQL)

FIREBIRD 

Firebird

SQLITE 

SQLite

◆ TextAlign

Style of representing boolean values

Enumerator
Left 

Align left

Right 

Align right

Center 

Align center

Justify 

Fill with justified text