|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hammurapi.config.util.ConfigUtil
public class ConfigUtil
Helper class.
| Constructor Summary | |
|---|---|
ConfigUtil()
|
|
| Method Summary | |
|---|---|
static void |
addScalarProperty(PropertySource target,
String name,
Object property,
boolean runtime)
Adds scalar property with type of property type and value of property.toString(). |
static void |
addScalarProperty(PropertySource target,
String name,
String type,
String value,
boolean runtime)
Adds scalar (type, value) property. |
static void |
pump(Factory source,
Factory dest)
Moves references/copy artifacts from one object to another. |
static void |
pump(Named source,
Named dest)
Moves references/copy artifacts from one object to another. |
static void |
pump(NamedObjectDefinition source,
NamedObjectDefinition dest)
Moves references/copy artifacts from one object to another. |
static void |
pump(ObjectDefinition source,
ObjectDefinition dest)
Moves references/copy artifacts from one object to another. |
static void |
pump(PropertySource source,
PropertySource dest)
Moves references/copy artifacts from one object to another. |
static void |
save(org.eclipse.emf.ecore.EObject obj,
File file)
Saves EObject to file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigUtil()
| Method Detail |
|---|
public static void pump(Factory source,
Factory dest)
source - dest -
public static void pump(PropertySource source,
PropertySource dest)
source - dest -
public static void pump(ObjectDefinition source,
ObjectDefinition dest)
source - dest -
public static void pump(Named source,
Named dest)
source - dest -
public static void pump(NamedObjectDefinition source,
NamedObjectDefinition dest)
source - dest -
public static void addScalarProperty(PropertySource target,
String name,
String type,
String value,
boolean runtime)
target - name - type - value - runtime -
public static void addScalarProperty(PropertySource target,
String name,
Object property,
boolean runtime)
target - name - property - runtime -
public static void save(org.eclipse.emf.ecore.EObject obj,
File file)
throws IOException
obj - Object to save.file - Output file.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||