Tabnine Logo
org.codehaus.modello
Code IndexAdd Tabnine to your IDE (free)

How to use org.codehaus.modello

Best Java code snippets using org.codehaus.modello (Showing top 20 results out of 315)

origin: org.codehaus.modello/modello-core

public Model translate( Reader reader, String inputType, Properties parameters )
  throws ModelloException
{
  throw new ModelloRuntimeException( "Not implemented." );
}
origin: org.codehaus.modello/modello-test

protected Properties getModelloParameters( String version )
{
  Properties parameters = getModelloParameters( version, true );
  return parameters;
}
origin: org.codehaus.modello/modello-test

protected void compileGeneratedSources( boolean useJava5 )
  throws IOException, CompilerException
{
  compileGeneratedSources( getName(), useJava5 );
}
origin: org.codehaus.modello/modello-plugin-xsd

public void generate( Model model, Properties parameters )
  throws ModelloException
{
  initialize( model, parameters );
  try
  {
    generateXsd( parameters );
  }
  catch ( IOException ex )
  {
    throw new ModelloException( "Exception while generating xsd.", ex );
  }
}
origin: org.codehaus.modello/modello-plugin-dom4j

public void generate( Model model, Properties parameters )
  throws ModelloException
{
  initialize( model, parameters );
  requiresDomSupport = false;
  try
  {
    generateDom4jWriter();
  }
  catch ( IOException ex )
  {
    throw new ModelloException( "Exception while generating Dom4j Writer.", ex );
  }
}
origin: org.codehaus.modello/modello-plugin-xpp3

public void generate( Model model, Properties parameters )
  throws ModelloException
{
  initialize( model, parameters );
  requiresDomSupport = false;
  try
  {
    generateXpp3Writer();
  }
  catch ( IOException ex )
  {
    throw new ModelloException( "Exception while generating XPP3 Writer.", ex );
  }
}
origin: org.codehaus.modello/modello-core

public MetadataPlugin getMetadataPlugin( String metadataId )
{
  MetadataPlugin metadata = getPlugin( metadataId );
  if ( metadata == null )
  {
    throw new ModelloRuntimeException( "No such metadata plugin: '" + metadataId + "'." );
  }
  return metadata;
}
origin: org.codehaus.modello/modello-core

public ModelloGenerator getGeneratorPlugin( String generatorId )
{
  ModelloGenerator generator = getPlugin( generatorId );
  if ( generator == null )
  {
    throw new ModelloRuntimeException( "No such generator plugin: '" + generatorId + "'." );
  }
  return generator;
}
origin: org.codehaus.modello/modello-core

public static void main( String[] args )
  throws Exception
{
  Modello modello = new Modello();
  parseArgumentsFromCommandLine( args );
  modello.generate( ReaderFactory.newXmlReader( modelFile ), outputType, parameters );
}
origin: org.codehaus.modello/modello-test

protected void setUp()
  throws Exception
{
  super.setUp();
  FileUtils.deleteDirectory( getOutputClasses() );
  assertTrue( getOutputClasses().mkdirs() );
}
origin: org.codehaus.modello/modello-test

protected File getOutputDirectory()
{
  return getTestFile( "target/generator-results/" + getName() );
}
origin: org.codehaus.modello/modello-test

protected void addDependency( String groupId, String artifactId )
{
  File dependencyFile = getDependencyFile( groupId, artifactId );
  dependencies.add( dependencyFile );
  addClassPathFile( dependencyFile );
}
origin: org.codehaus.modello/modello-test

protected void compileGeneratedSources( String verifierId )
  throws IOException, CompilerException
{
  compileGeneratedSources( verifierId, true );
}
origin: org.codehaus.modello/modello-test

protected File getOutputDirectory()
{
  return new File( super.getOutputDirectory(), "sources" );
}
origin: org.codehaus.modello/modello-core

public void saveModel( Model model, Writer writer )
  throws ModelloException
{
  throw new ModelloRuntimeException( "Not implemented." );
}
origin: org.codehaus.modello/modello-test

protected void compileGeneratedSources()
  throws IOException, CompilerException
{
  compileGeneratedSources( getName() );
}
origin: org.codehaus.modello/modello-plugin-java

/**
 * Decreases the indent level by 1
 **/
public void unindent()
{
  if ( currentIndent == 0 )
  {
    throw new ModelloRuntimeException( "Cannot unindent: current indent is 0." );
  }
  currentIndent -= indentSize;
} //-- unindent
origin: org.codehaus.modello/modello-core

public ModelField getField( String type, VersionRange versionRange )
{
  throw new ModelloRuntimeException( "There are no field '" + type + "' in an interface." );
}
origin: org.codehaus.modello/modello-core

protected String getParameter( Properties parameters, String name )
{
  String value = parameters.getProperty( name );
  if ( value == null )
  {
    throw new ModelloRuntimeException( "Missing parameter '" + name + "'." );
  }
  return value;
}
origin: org.codehaus.modello/modello-core

public T getPlugin( String name )
{
  T plugin = plugins.get( name );
  if ( plugin == null )
  {
    throw new ModelloRuntimeException( "No such plugin: " + name );
  }
  return plugin;
}
org.codehaus.modello

Most used classes

  • Model
  • ModelClass
  • ModelloException
  • ModelField
  • ModelAssociation
  • XmlAssociationMetadata,
  • XmlFieldMetadata,
  • Version,
  • JClass,
  • JMethod,
  • JParameter,
  • JSourceWriter,
  • JField,
  • JModifiers,
  • ModelClassMetadata,
  • XmlModelMetadata,
  • AbstractModelloGenerator,
  • JConstructor,
  • JType
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now