C# 클래스 HandCoded.Finance.DateRoll

Instances of the DateRoll class carry out financial date adjustments. A DateRoll instance will apply a particular adjustment rule to a given Date using a business day Calendar to skip non-working days.
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FOLLOWING DateRoll
MODFOLLOWING DateRoll
MODPRECEDING DateRoll
NONE DateRoll
PRECEDING DateRoll
WEEKEND DateRoll

공개 메소드들

메소드 설명
Adjust ( Calendar calendar, Date date ) : Date

Adjusts a Date which falls on a holiday within the indicated Calendar to an appropriate business day.

ForName ( string name ) : DateRoll

Attempts to locate a DateRoll instance with the given name.

보호된 메소드들

메소드 설명
DateRoll ( string name ) : System

Constructs a DateRoll instance and adds it to the extent set indexed by its symbolic name.

비공개 메소드들

메소드 설명
Following ( Calendar calendar, Date date ) : Date

Adjusts a Date to the next business day if it falls on a holiday.

ModFollowing ( Calendar calendar, Date date ) : Date

Adjusts a Date to the next business day if it falls on a holiday unless that would move the date into the next month in which case it is rolled to a preceding date.

ModPreceding ( Calendar calendar, Date date ) : Date

Adjusts a Date to the previous business day if it falls on a holiday unless that would move the date into the previous month in which case it is rolled to a following date.

None ( Calendar calendar, Date date ) : Date

A dummy adjustment that performs no change to the date.

Preceding ( Calendar calendar, Date date ) : Date

Adjusts a Date to the preceding business day if it falls on a holiday.

Weekend ( Calendar calendar, Date date ) : Date

Adjusts dates which fall on a Saturday to the preceding Friday, and those falling on a Sunday to the following Monday. This convention is used by some national holidays, for example Christmas Day in the USA.

메소드 상세

Adjust() 공개 추상적인 메소드

Adjusts a Date which falls on a holiday within the indicated Calendar to an appropriate business day.
public abstract Adjust ( Calendar calendar, Date date ) : Date
calendar Calendar The to be used.
date Date The to adjust.
리턴 Date

DateRoll() 보호된 메소드

Constructs a DateRoll instance and adds it to the extent set indexed by its symbolic name.
protected DateRoll ( string name ) : System
name string The symbolic name for this instance.
리턴 System

ForName() 공개 정적인 메소드

Attempts to locate a DateRoll instance with the given name.
public static ForName ( string name ) : DateRoll
name string The required DateRoll name.
리턴 DateRoll

프로퍼티 상세

FOLLOWING 공개적으로 정적으로 프로퍼티

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance FOLLOWING
리턴 DateRoll

MODFOLLOWING 공개적으로 정적으로 프로퍼티

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance MODFOLLOWING
리턴 DateRoll

MODPRECEDING 공개적으로 정적으로 프로퍼티

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance MODPRECEDING
리턴 DateRoll

NONE 공개적으로 정적으로 프로퍼티

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance NONE
리턴 DateRoll

PRECEDING 공개적으로 정적으로 프로퍼티

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance PRECEDING
리턴 DateRoll

WEEKEND 공개적으로 정적으로 프로퍼티

A DateRoll that performs no adjustment.
public static DateRoll,HandCoded.Finance WEEKEND
리턴 DateRoll