org.codehaus.modello.model.Model.getName()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(166)

本文整理了Java中org.codehaus.modello.model.Model.getName()方法的一些代码示例,展示了Model.getName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.getName()方法的具体详情如下:
包路径:org.codehaus.modello.model.Model
类名称:Model
方法名:getName

Model.getName介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.modello/modello-plugin-xml

protected String getFileName( String suffix )
{
  String name = getModel().getName();
  return name + suffix;
}

代码示例来源:origin: org.codehaus.modello/modello-plugin-store

File interfaceFile = new File( packageFile, model.getName() + "Store.java" );
File exceptionFile = new File( packageFile, model.getName() + "StoreException.java" );

代码示例来源:origin: org.apache.archiva.redback.components.modello/modello-plugin-store

File interfaceFile = new File( packageFile, model.getName() + "Store.java" );
File exceptionFile = new File( packageFile, model.getName() + "StoreException.java" );

代码示例来源:origin: org.codehaus.modello/modello-plugin-xdoc

writeTextElement( w, "title", objectModel.getName() );
w.addAttribute( "name", objectModel.getName() );

代码示例来源:origin: org.apache.archiva.redback.components.modello/modello-plugin-jpox

public void generate( Model model, Properties parameters )
    throws ModelloException
  {
    initialize( model, parameters );

    // Initialize the Velocity context

    Context context = makeStubVelocityContext( model, getGeneratedVersion() );

    context.put( "storeClassMetadataId", StoreClassMetadata.ID );

    context.put( "storeFieldMetadataId", StoreFieldMetadata.ID );

    // Generate a ModelloMetadata class for storing model information in the database
    String packageName = model.getDefaultPackageName( isPackageWithVersion(), getGeneratedVersion() );

    String className = model.getName() + "ModelloMetadata";
    writeClass( "org/apache/archiva/redback/components/modello/jpox/templates/ModelloMetadata.java.vm", getOutputDirectory(),
          packageName, className, context );
  }
}

代码示例来源:origin: org.codehaus.modello/modello-plugin-jpox

private void writeModelloMetadataClass( XMLWriter writer ) throws ModelloException
{
  writer.startElement( "class" );
  writer.addAttribute( "name", getModel().getName() + "ModelloMetadata" );
  writer.addAttribute( "detachable", String.valueOf( true ) );
  writer.startElement( "field" );
  writer.addAttribute( "name", "modelVersion" );
  writer.addAttribute( "null-value", "default" );
  writer.startElement( "column" );
  writer.addAttribute( "default-value", getGeneratedVersion().toString() );
  writer.endElement(); // column
  writer.endElement(); // field
  writer.endElement(); // class
}

代码示例来源:origin: org.apache.archiva.redback.components.modello/modello-plugin-jpox

private void writeModelloMetadataClass( XMLWriter writer ) throws ModelloException
{
  writer.startElement( "class" );
  writer.addAttribute( "name", getModel().getName() + "ModelloMetadata" );
  writer.addAttribute( "detachable", String.valueOf( true ) );
  writer.startElement( "field" );
  writer.addAttribute( "name", "modelVersion" );
  writer.addAttribute( "null-value", "default" );
  writer.startElement( "column" );
  writer.addAttribute( "default-value", getGeneratedVersion().toString() );
  writer.endElement(); // column
  writer.endElement(); // field
  writer.endElement(); // class
}

代码示例来源:origin: org.codehaus.modello/modello-plugin-jpox

public void generate( Model model, Properties parameters )
    throws ModelloException
  {
    initialize( model, parameters );

    // Initialize the Velocity context

    Context context = makeStubVelocityContext( model, getGeneratedVersion() );

    context.put( "storeClassMetadataId", StoreClassMetadata.ID );

    context.put( "storeFieldMetadataId", StoreFieldMetadata.ID );

    // Generate a ModelloMetadata class for storing model information in the database
    String packageName = model.getDefaultPackageName( isPackageWithVersion(), getGeneratedVersion() );

    String className = model.getName() + "ModelloMetadata";
    writeClass( "org/codehaus/modello/plugin/jpox/templates/ModelloMetadata.java.vm", getOutputDirectory(),
          packageName, className, context );
  }
}

代码示例来源:origin: org.codehaus.modello/modello-plugin-jpox

public void generate( Model model, Properties parameters )
    throws ModelloException
  {
    initialize( model, parameters );

    // Initialize the Velocity context

    Context context = makeStubVelocityContext( model, getGeneratedVersion() );

    context.put( "storeClassMetadataId", StoreClassMetadata.ID );

    context.put( "storeFieldMetadataId", StoreFieldMetadata.ID );

    // Generate a ModelloMetadata class for storing model information in the database
    String packageName = model.getDefaultPackageName( isPackageWithVersion(), getGeneratedVersion() );

    // Generate the JPoxStore
    String className = model.getName() + "JPoxStore";

    writeClass( "org/codehaus/modello/plugin/jpox/templates/JPoxStore.java.vm", getOutputDirectory(), packageName,
          className, context );
  }
}

代码示例来源:origin: org.apache.archiva.redback.components.modello/modello-plugin-jpox

public void generate( Model model, Properties parameters )
    throws ModelloException
  {
    initialize( model, parameters );

    // Initialize the Velocity context

    Context context = makeStubVelocityContext( model, getGeneratedVersion() );

    context.put( "storeClassMetadataId", StoreClassMetadata.ID );

    context.put( "storeFieldMetadataId", StoreFieldMetadata.ID );

    // Generate a ModelloMetadata class for storing model information in the database
    String packageName = model.getDefaultPackageName( isPackageWithVersion(), getGeneratedVersion() );

    // Generate the JPoxStore
    String className = model.getName() + "JPoxStore";

    writeClass( "org/apache/archiva/redback/components/modello/jpox/templates/JPoxStore.java.vm", getOutputDirectory(), packageName,
          className, context );
  }
}

代码示例来源:origin: org.codehaus.modello/modello-plugin-plexus-registry

protected void generate( Model model, Properties parameters, String outputType )
    throws ModelloException
  {
    initialize( model, parameters );

    // Initialize the Velocity context

    String packageName;
    if ( isPackageWithVersion() )
    {
      packageName = model.getDefaultPackageName( true, getGeneratedVersion() );
    }
    else
    {
      packageName = model.getDefaultPackageName( false, null );
    }

    packageName += ".io.registry";

    Context context = makeStubVelocityContext( model, getGeneratedVersion(), packageName );

    // Generate the reader
    String className = model.getName() + outputType;

    writeClass( "org/codehaus/modello/plugin/registry/" + outputType + ".java.vm", getOutputDirectory(),
          packageName, className, context );
  }
}

代码示例来源:origin: org.codehaus.modello/modello-plugin-converters

private static void writeConvertMethod( JClass converterClass, Model objectModel, String basePackage,
                    List<Version> allVersions, Version v, ModelClass rootClass )
  String modelName = objectModel.getName();
  String rootClassName = rootClass.getName();

相关文章