org.modeshape.sequencer.teiid
Class CndFromEcore
java.lang.Object
org.modeshape.sequencer.teiid.CndFromEcore
public class CndFromEcore
- extends Object
Utility class to generate a CND file from an ECore model.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CndFromEcore
public CndFromEcore()
main
public static void main(String[] args)
getEcoreFileNames
public List<String> getEcoreFileNames()
- Get the names of the Ecore files that are to be processed into node types.
- Returns:
- the Ecore file names
setEcoreFileNames
public void setEcoreFileNames(List<String> ecoreFileNames)
- Parameters:
ecoreFileNames
- Sets ecoreFileNames to the specified value.
setEcoreFileNames
public void setEcoreFileNames(String... ecoreFileNames)
- Parameters:
ecoreFileNames
- Sets ecoreFileNames to the specified value.
getCndFileName
public String getCndFileName()
- Returns:
- cndFileName
setCndFileName
public void setCndFileName(String cndFileName)
- Parameters:
cndFileName
- Sets cndFileName to the specified value.
isDebug
public boolean isDebug()
- Returns:
- debug
setDebug
public void setDebug(boolean debug)
- Parameters:
debug
- Sets debug to the specified value.
generatesMixins
public boolean generatesMixins()
- Returns:
- mixins
setGeneratesMixins
public void setGeneratesMixins(boolean mixins)
- Parameters:
mixins
- Sets mixins to the specified value.
generateShortNames
public boolean generateShortNames()
- Returns:
- shortNames
setGeneratesShortNames
public void setGeneratesShortNames(boolean shortNames)
- Parameters:
shortNames
- Sets shortNames to the specified value.
isValid
public boolean isValid()
getProblems
public Problems getProblems()
- Returns:
- problems
execute
public void execute()
write
protected void write(StringBuilder writer,
NamespaceRegistry.Namespace namespace)
getHeader
protected String getHeader()
debug
protected void debug(I18n msg,
Object... params)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.