org.eclipse.emf.codegen.merge.properties
Class PropertyMerger

java.lang.Object
  extended byorg.eclipse.emf.codegen.merge.properties.PropertyMerger
Direct Known Subclasses:
PropertyMerger, PropertyMerger.PlatformRunnable

public class PropertyMerger
extends Object

This implements the method run(java.lang.Object), which is called just like main during headless workbench invocation.


Nested Class Summary
static class PropertyMerger.PlatformRunnable
           
 
Field Summary
protected static Pattern nlPattern
           
protected static Pattern propertyLine
           
protected  String sourceProperties
           
protected  Map sourceToTargetMap
           
protected  String targetProperties
           
protected  Map targetToSourceMap
           
 
Constructor Summary
PropertyMerger()
          This creates an empty instances, when used as a runnable.
 
Method Summary
 String createPropertiesForInputStream(InputStream inputStream)
           
 String createPropertiesForURI(String uri)
          Create a JDOM from a URI.
 String getSourceProperties()
           
 Map getSourceToTargetMap()
           
 String getTargetProperties()
           
 void merge()
           
 Map parse(String properties)
           
 Object run(Object object)
          This is called with the command line arguments of a headless workbench invocation.
 void setSourceProperties(String sourceProperties)
           
 void setTargetProperties(String targetProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceProperties

protected String sourceProperties

targetProperties

protected String targetProperties

sourceToTargetMap

protected Map sourceToTargetMap

targetToSourceMap

protected Map targetToSourceMap

nlPattern

protected static Pattern nlPattern

propertyLine

protected static Pattern propertyLine
Constructor Detail

PropertyMerger

public PropertyMerger()
This creates an empty instances, when used as a runnable.

Method Detail

getSourceProperties

public String getSourceProperties()

setSourceProperties

public void setSourceProperties(String sourceProperties)

getTargetProperties

public String getTargetProperties()

setTargetProperties

public void setTargetProperties(String targetProperties)

getSourceToTargetMap

public Map getSourceToTargetMap()

createPropertiesForURI

public String createPropertiesForURI(String uri)
Create a JDOM from a URI.


createPropertiesForInputStream

public String createPropertiesForInputStream(InputStream inputStream)

merge

public void merge()

parse

public Map parse(String properties)

run

public Object run(Object object)
This is called with the command line arguments of a headless workbench invocation.


Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.