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

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

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

Model.getVersionDefinition介绍

暂无

代码示例

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

public boolean isModelVersionField()
  {
    Model model = modelClass.getModel();
    VersionDefinition versionDefinition = model.getVersionDefinition();

    return ( versionDefinition != null ) && versionDefinition.isFieldType()
      && ( versionDefinition.getValue().equals( getName() ) || versionDefinition.getValue().equals( alias ) );
  }
}

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

public void generate( Model model, Properties parameters )
  throws ModelloException
{
  initialize( model, parameters );
  requiresDomSupport = false;
  try
  {
    generateStaxReader();
    VersionDefinition versionDefinition = model.getVersionDefinition();
    if ( versionDefinition != null )
    {
      String versions = parameters.getProperty( ModelloParameterConstants.ALL_VERSIONS );
      if ( versions != null )
      {
        generateStaxReaderDelegate( Arrays.asList( versions.split( "," ) ) );
      }
    }
  }
  catch ( IOException ex )
  {
    throw new ModelloException( "Exception while generating StAX Reader.", ex );
  }
}

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

private void writeDetermineVersionMethod( JClass jClass, Model objectModel )
  throws ModelloException
  VersionDefinition versionDefinition = objectModel.getVersionDefinition();

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

basicConverterClass.addInterface( conversionInterface );
VersionDefinition versionDefinition = objectModel.getVersionDefinition();

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

sc.add( "}" );
VersionDefinition versionDefinition = objectModel.getVersionDefinition();
if ( versionDefinition != null && versionDefinition.isNamespaceType() )

相关文章