C# Класс NVelocity.Runtime.Resource.Resource

This class represent a general text resource that may have been retrieved from any number of possible sources.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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