org.eclipse.emf.codegen.merge.java
Class JControlModel

java.lang.Object
  extended byorg.eclipse.emf.codegen.merge.java.PrefixHandler
      extended byorg.eclipse.emf.codegen.merge.java.JControlModel
Direct Known Subclasses:
JControlModel

public class JControlModel
extends org.eclipse.emf.codegen.merge.java.PrefixHandler

A control model that provides dictionaries and rules to drive a merge process.


Nested Class Summary
static class JControlModel.DictionaryPattern
           
static class JControlModel.Feature
           
static class JControlModel.PullRule
           
static class JControlModel.SortRule
          The sort rule is used to ensure that the order of the attributes as declared on the source is respected (in theory this rule could be used to sort any member, but JMerger only applies it to attributes).
static class JControlModel.SweepRule
          A sweep rule removes elements from the target if they are NOT available in the source.
 
Field Summary
protected  Pattern blockPattern
           
protected  String classPrefix
           
protected  List dictionaryPatterns
           
protected  FacadeHelper facadeHelper
           
protected  String indent
           
protected  boolean indentIsSet
           
protected  Pattern noImportPattern
           
protected  List pullRules
           
protected  String redirect
           
protected  List sortRules
           
protected  boolean standardBraceStyle
           
protected  boolean standardBraceStyleIsSet
           
protected  List sweepRules
           
 
Constructor Summary
JControlModel()
           
 
Method Summary
 boolean canMerge()
           
static Class classForClassName(String classPrefix, String className)
           
 String computeClassName(String className)
           
 boolean convertToStandardBraceStyle()
           
protected  JControlModel.DictionaryPattern createDictionaryPattern(String classPrefix, Element elementChild)
           
protected  JControlModel.PullRule createPullRule(String classPrefix, Element elementChild)
           
protected  JControlModel.SortRule createSortRule(String classPrefix, Element elementChild)
           
protected  JControlModel.SweepRule createSweepRule(String classPrefix, Element elementChild)
           
 Pattern getBlockPattern()
           
 String getClassPrefix()
           
 List getDictionaryPatterns()
           
 FacadeHelper getFacadeHelper()
           
 String getLeadingTabReplacement()
           
 Pattern getNoImportPattern()
           
 List getPullRules()
           
 String getRedirect()
           
 List getSortRules()
           
 List getSweepRules()
           
protected  void initialize(Element element)
           
 void initialize(FacadeHelper facadeHelper, String uri)
           
protected  void initialize(String uri)
           
protected  void setClassPrefix(String classPrefix)
           
 void setConvertToStandardBraceStyle(boolean standardBraceStyle)
           
protected  void setFacadeHelper(FacadeHelper facadeHelper)
           
 void setLeadingTabReplacement(String indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

facadeHelper

protected FacadeHelper facadeHelper

dictionaryPatterns

protected List dictionaryPatterns

pullRules

protected List pullRules

sweepRules

protected List sweepRules

sortRules

protected List sortRules

blockPattern

protected Pattern blockPattern

noImportPattern

protected Pattern noImportPattern

redirect

protected String redirect

indentIsSet

protected boolean indentIsSet

indent

protected String indent

standardBraceStyleIsSet

protected boolean standardBraceStyleIsSet

standardBraceStyle

protected boolean standardBraceStyle

classPrefix

protected String classPrefix
Constructor Detail

JControlModel

public JControlModel()
Method Detail

classForClassName

public static Class classForClassName(String classPrefix,
                                      String className)

setFacadeHelper

protected void setFacadeHelper(FacadeHelper facadeHelper)

getFacadeHelper

public FacadeHelper getFacadeHelper()

convertToStandardBraceStyle

public boolean convertToStandardBraceStyle()

setConvertToStandardBraceStyle

public void setConvertToStandardBraceStyle(boolean standardBraceStyle)

getLeadingTabReplacement

public String getLeadingTabReplacement()

setLeadingTabReplacement

public void setLeadingTabReplacement(String indent)

getRedirect

public String getRedirect()

getBlockPattern

public Pattern getBlockPattern()

getNoImportPattern

public Pattern getNoImportPattern()

getDictionaryPatterns

public List getDictionaryPatterns()

getPullRules

public List getPullRules()

getSweepRules

public List getSweepRules()

getSortRules

public List getSortRules()

canMerge

public boolean canMerge()

initialize

public void initialize(FacadeHelper facadeHelper,
                       String uri)

initialize

protected void initialize(String uri)

initialize

protected void initialize(Element element)

createDictionaryPattern

protected JControlModel.DictionaryPattern createDictionaryPattern(String classPrefix,
                                                                  Element elementChild)

createPullRule

protected JControlModel.PullRule createPullRule(String classPrefix,
                                                Element elementChild)

createSweepRule

protected JControlModel.SweepRule createSweepRule(String classPrefix,
                                                  Element elementChild)

createSortRule

protected JControlModel.SortRule createSortRule(String classPrefix,
                                                Element elementChild)

setClassPrefix

protected void setClassPrefix(String classPrefix)

getClassPrefix

public String getClassPrefix()

computeClassName

public String computeClassName(String className)

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