C# 클래스 NVelocity.Runtime.Resource.Resource

This class represent a general text resource that may have been retrieved from any number of possible sources.
파일 보기 프로젝트 열기: rasmus-toftdahl-olesen/NVelocity 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
data Object
encoding String
lastModified long
modificationCheckInterval long
name String
nextCheck long
resourceLoader ResourceLoader
runtimeServices IRuntimeServices

공개 메소드들

메소드 설명
IsSourceModified ( ) : bool
Process ( ) : bool

Perform any subsequent processing that might need to be done by a resource. In the case of a template the actual parsing of the input stream needs to be performed.

RequiresChecking ( ) : bool

Set the modification check interval.

Is it time to check to see if the resource source has been updated?

Touch ( ) : void

'Touch' this template and thereby resetting the nextCheck field.

메소드 상세

IsSourceModified() 공개 메소드

public IsSourceModified ( ) : bool
리턴 bool

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

Perform any subsequent processing that might need to be done by a resource. In the case of a template the actual parsing of the input stream needs to be performed.
public abstract Process ( ) : bool
리턴 bool

RequiresChecking() 공개 메소드

Set the modification check interval. Is it time to check to see if the resource source has been updated?
public RequiresChecking ( ) : bool
리턴 bool

Touch() 공개 메소드

'Touch' this template and thereby resetting the nextCheck field.
public Touch ( ) : void
리턴 void

프로퍼티 상세

data 보호되어 있는 프로퍼티

Resource might require ancillary storage of some kind
protected Object data
리턴 Object

encoding 보호되어 있는 프로퍼티

Character encoding of this resource
protected String encoding
리턴 String

lastModified 보호되어 있는 프로퍼티

The file modification time (in milliseconds) for the cached template.
protected long lastModified
리턴 long

modificationCheckInterval 보호되어 있는 프로퍼티

How often the file modification time is checked (in milliseconds).
protected long modificationCheckInterval
리턴 long

name 보호되어 있는 프로퍼티

Name of the resource
protected String name
리턴 String

nextCheck 보호되어 있는 프로퍼티

The next time the file modification time will be checked (in milliseconds).
protected long nextCheck
리턴 long

resourceLoader 보호되어 있는 프로퍼티

The template loader that initially loaded the input stream for this template, and knows how to check the source of the input stream for modification.
protected ResourceLoader resourceLoader
리턴 ResourceLoader

runtimeServices 보호되어 있는 프로퍼티

protected IRuntimeServices runtimeServices
리턴 IRuntimeServices