org.eclipse.xtend.typesystem.xsd
Class XMLMixedContentFormatter

java.lang.Object
  extended by org.eclipse.xtend.typesystem.xsd.XMLMixedContentFormatter

public class XMLMixedContentFormatter
extends java.lang.Object


Field Summary
protected  boolean formatComments
           
protected  java.lang.String indetationString
           
protected  int indetationWidth
           
protected  java.lang.String lineSeparator
           
protected  int maxLineWidth
           
protected static org.eclipse.emf.ecore.EStructuralFeature XML_COMMENT
           
protected static org.eclipse.emf.ecore.EStructuralFeature XML_TEXT
           
 
Constructor Summary
XMLMixedContentFormatter()
           
 
Method Summary
protected  boolean beautifyFeatuerMapTextEntries(int prefix, org.eclipse.emf.ecore.util.FeatureMap map)
           
protected  void beautifyFeatureMap(int prefix, org.eclipse.emf.ecore.util.FeatureMap map)
           
protected  void beautifyFeatureMapComments(int prefix, org.eclipse.emf.ecore.util.FeatureMap map)
           
protected  boolean beautifyFeatureMapIndent(int prefix, org.eclipse.emf.ecore.util.FeatureMap map)
           
 void beautifyMixedContent(int prefix, org.eclipse.emf.ecore.EObject obj)
           
protected  java.lang.String beautifyString(java.lang.String str)
           
 java.lang.String getIndetationString()
           
 int getIndetationWidth()
           
protected  int getInWidth()
           
 int getMaxLineWidth()
           
protected  java.lang.String getPrefix(int level)
           
protected  void insertBefore(org.eclipse.emf.ecore.util.FeatureMap map, org.eclipse.emf.ecore.util.FeatureMap.Entry ent, java.lang.String str)
           
 boolean isFormatComments()
           
protected  boolean needsWrap(int prefix, java.lang.String str)
           
protected  boolean processFeature(org.eclipse.emf.ecore.EStructuralFeature feat)
           
 void setFormatComments(boolean formatComments)
           
 void setIndetationString(java.lang.String indetationString)
           
 void setIndetationWidth(int indetationWidth)
           
 void setLineSeparator(java.lang.String lineSeparator)
           
 void setMaxLineWidth(int maxLineWidth)
           
protected  java.lang.String trimLeft(java.lang.Object val)
           
protected  java.lang.String trimRight(java.lang.Object val)
           
protected  java.lang.String wordWrap(int prefix, java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_COMMENT

protected static final org.eclipse.emf.ecore.EStructuralFeature XML_COMMENT

XML_TEXT

protected static final org.eclipse.emf.ecore.EStructuralFeature XML_TEXT

formatComments

protected boolean formatComments

indetationString

protected java.lang.String indetationString

indetationWidth

protected int indetationWidth

maxLineWidth

protected int maxLineWidth

lineSeparator

protected java.lang.String lineSeparator
Constructor Detail

XMLMixedContentFormatter

public XMLMixedContentFormatter()
Method Detail

beautifyFeatuerMapTextEntries

protected boolean beautifyFeatuerMapTextEntries(int prefix,
                                                org.eclipse.emf.ecore.util.FeatureMap map)

beautifyFeatureMap

protected void beautifyFeatureMap(int prefix,
                                  org.eclipse.emf.ecore.util.FeatureMap map)

beautifyFeatureMapComments

protected void beautifyFeatureMapComments(int prefix,
                                          org.eclipse.emf.ecore.util.FeatureMap map)

beautifyFeatureMapIndent

protected boolean beautifyFeatureMapIndent(int prefix,
                                           org.eclipse.emf.ecore.util.FeatureMap map)

beautifyMixedContent

public void beautifyMixedContent(int prefix,
                                 org.eclipse.emf.ecore.EObject obj)

beautifyString

protected java.lang.String beautifyString(java.lang.String str)

getIndetationString

public java.lang.String getIndetationString()

getIndetationWidth

public int getIndetationWidth()

getInWidth

protected int getInWidth()

getMaxLineWidth

public int getMaxLineWidth()

getPrefix

protected java.lang.String getPrefix(int level)

insertBefore

protected void insertBefore(org.eclipse.emf.ecore.util.FeatureMap map,
                            org.eclipse.emf.ecore.util.FeatureMap.Entry ent,
                            java.lang.String str)

isFormatComments

public boolean isFormatComments()

needsWrap

protected boolean needsWrap(int prefix,
                            java.lang.String str)

processFeature

protected boolean processFeature(org.eclipse.emf.ecore.EStructuralFeature feat)

setFormatComments

public void setFormatComments(boolean formatComments)

setIndetationString

public void setIndetationString(java.lang.String indetationString)

setIndetationWidth

public void setIndetationWidth(int indetationWidth)

setMaxLineWidth

public void setMaxLineWidth(int maxLineWidth)

setLineSeparator

public void setLineSeparator(java.lang.String lineSeparator)

trimRight

protected java.lang.String trimRight(java.lang.Object val)

trimLeft

protected java.lang.String trimLeft(java.lang.Object val)

wordWrap

protected java.lang.String wordWrap(int prefix,
                                    java.lang.String str)