|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
A property utility class for the texen text/code generator Usually this class is only used from a Velocity context.
Constructor Summary | |
---|---|
PropertiesUtil() Initializes a new instance of the PropertiesUtil class. |
Method Summary | |
---|---|
Commons.Collections.ExtendedProperties |
load(string propertiesFile) Load properties from either a file in the templatePath if there is one or the classPath. |
Commons.Collections.ExtendedProperties |
loadFromClassPath(string propertiesFile) Load a properties file from the classpath |
Commons.Collections.ExtendedProperties |
loadFromTemplatePath(string propertiesFile) Load a properties file from the templatePath defined in the generator. As the templatePath can contains multiple paths, it will cycle through them to find the file. The first file that can be successfully loaded is considered. (kind of like the java classpath), it is done to clone the Velocity process of loading templates. |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Constructor Detail |
---|
public PropertiesUtil()
Initializes a new instance of the PropertiesUtil class.
Method Detail |
---|
public Commons.Collections.ExtendedProperties load(string propertiesFile)
Load properties from either a file in the templatePath if there is one or the classPath.
Parameters:
propertiesFile
- the properties file to load through
either the templatePath or the classpath.
protected internal Commons.Collections.ExtendedProperties loadFromClassPath(string propertiesFile)
Load a properties file from the classpath
Parameters:
propertiesFile
- the properties file to load.protected internal Commons.Collections.ExtendedProperties loadFromTemplatePath(string propertiesFile)
Load a properties file from the templatePath defined in the generator. As the templatePath can contains multiple paths, it will cycle through them to find the file. The first file that can be successfully loaded is considered. (kind of like the java classpath), it is done to clone the Velocity process of loading templates.
Parameters:
propertiesFile
- the properties file to load. It must be
a relative pathname.
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |