public class PropertiesServices
System services for the properties files.
Constructor Summary | |
---|---|
PropertiesServices(fr.obeo.acceleo.gen.template.scripts.SpecificScript script)
Constructor. |
Method Summary | |
---|---|
fr.obeo.acceleo.gen.template.eval.ENode |
getBestProperty(fr.obeo.acceleo.gen.template.eval.ENode current,
java.lang.String key)
Gets the best value for the key in all the property files. |
fr.obeo.acceleo.gen.template.eval.ENode |
getProperty(fr.obeo.acceleo.gen.template.eval.ENode current,
java.lang.String key)
Gets the value for the key in all the property files. |
fr.obeo.acceleo.gen.template.eval.ENode |
getProperty(fr.obeo.acceleo.gen.template.eval.ENode current,
java.lang.String name,
java.lang.String key)
Gets the property for the key and the property file (without extension). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesServices(fr.obeo.acceleo.gen.template.scripts.SpecificScript script)
script
- is the scriptMethod Detail |
---|
public fr.obeo.acceleo.gen.template.eval.ENode getBestProperty(fr.obeo.acceleo.gen.template.eval.ENode current, java.lang.String key) throws org.eclipse.core.runtime.CoreException, java.io.IOException
Sample : key == "aa.bb.cc.dd"
It returns getProperty("aa.bb.cc.dd") || getProperty("aa.bb.cc") || getProperty("aa.bb") || getProperty("aa").
current
- is the current nodekey
- is the key
org.eclipse.core.runtime.CoreException
java.io.IOException
public fr.obeo.acceleo.gen.template.eval.ENode getProperty(fr.obeo.acceleo.gen.template.eval.ENode current, java.lang.String key) throws org.eclipse.core.runtime.CoreException, java.io.IOException
current
- is the current nodekey
- is the key
org.eclipse.core.runtime.CoreException
java.io.IOException
public fr.obeo.acceleo.gen.template.eval.ENode getProperty(fr.obeo.acceleo.gen.template.eval.ENode current, java.lang.String name, java.lang.String key) throws org.eclipse.core.runtime.CoreException, java.io.IOException
current
- is the current nodename
- is the name of the property file (without ".properties" extension)key
- is the key
org.eclipse.core.runtime.CoreException
java.io.IOException