本文整理了Java中org.codehaus.modello.model.Model.getMetadata()
方法的一些代码示例,展示了Model.getMetadata()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.getMetadata()
方法的具体详情如下:
包路径:org.codehaus.modello.model.Model
类名称:Model
方法名:getMetadata
暂无
代码示例来源:origin: org.codehaus.modello/modello-core
public ModelMetadata getMetadata( String key )
{
return getMetadata( ModelMetadata.class, key );
}
代码示例来源:origin: org.codehaus.modello/modello-plugin-java
protected void suppressAllWarnings( Model objectModel, JStructure structure )
{
JavaModelMetadata javaModelMetadata = (JavaModelMetadata) objectModel.getMetadata( JavaModelMetadata.ID );
if ( useJava5 && javaModelMetadata.isSuppressAllWarnings() )
{
structure.appendAnnotation( "@SuppressWarnings( \"all\" )" );
}
}
代码示例来源:origin: org.codehaus.modello/modello-plugin-xsd
public static String getTargetNamespace( Model model, Version version, String namespace )
{
XsdModelMetadata xsdModelMetadata = (XsdModelMetadata) model.getMetadata( XsdModelMetadata.ID );
String targetNamespace;
if ( xsdModelMetadata.getTargetNamespace() == null )
{
// xsd.target-namespace not set, using namespace
targetNamespace = namespace;
}
else
{
targetNamespace = xsdModelMetadata.getTargetNamespace( version );
}
return targetNamespace;
}
代码示例来源:origin: org.codehaus.modello/modello-plugin-xsd
public static String getNamespace( Model model, Version version )
throws ModelloException
{
XmlModelMetadata xmlModelMetadata = (XmlModelMetadata) model.getMetadata( XmlModelMetadata.ID );
XsdModelMetadata xsdModelMetadata = (XsdModelMetadata) model.getMetadata( XsdModelMetadata.ID );
String namespace;
if ( StringUtils.isNotEmpty( xsdModelMetadata.getNamespace() ) )
{
namespace = xsdModelMetadata.getNamespace( version );
}
else
{
// xsd.namespace is not set, try using xml.namespace
if ( StringUtils.isEmpty( xmlModelMetadata.getNamespace() ) )
{
throw new ModelloException( "Cannot generate xsd without xmlns specification:"
+ " <model xml.namespace='...'> or <model xsd.namespace='...'>" );
}
namespace = xmlModelMetadata.getNamespace( version );
}
return namespace;
}
代码示例来源:origin: org.codehaus.modello/modello-plugin-jpox
JPoxModelMetadata modelMetadata = (JPoxModelMetadata) modelClass.getModel().getMetadata( JPoxModelMetadata.ID );
代码示例来源:origin: org.codehaus.modello/modello-plugin-jpox
JPoxModelMetadata modelMetadata = (JPoxModelMetadata) modelClass.getModel().getMetadata( JPoxModelMetadata.ID );
代码示例来源:origin: org.apache.archiva.redback.components.modello/modello-plugin-jpox
JPoxModelMetadata modelMetadata = (JPoxModelMetadata) modelClass.getModel().getMetadata( JPoxModelMetadata.ID );
代码示例来源:origin: org.apache.archiva.redback.components.modello/modello-plugin-jpox
JPoxModelMetadata modelMetadata = (JPoxModelMetadata) modelClass.getModel().getMetadata( JPoxModelMetadata.ID );
代码示例来源:origin: org.codehaus.modello/modello-plugin-jpox
JPoxModelMetadata modelMetadata = (JPoxModelMetadata) modelClass.getModel().getMetadata( JPoxModelMetadata.ID );
代码示例来源:origin: org.apache.archiva.redback.components.modello/modello-plugin-jpox
JPoxModelMetadata modelMetadata = (JPoxModelMetadata) modelClass.getModel().getMetadata( JPoxModelMetadata.ID );
代码示例来源:origin: org.codehaus.modello/modello-plugin-jpox
JPoxModelMetadata metadata = (JPoxModelMetadata) model.getMetadata( JPoxModelMetadata.ID );
File packageJdo = null;
代码示例来源:origin: org.apache.archiva.redback.components.modello/modello-plugin-jpox
JPoxModelMetadata metadata = (JPoxModelMetadata) model.getMetadata( JPoxModelMetadata.ID );
File packageJdo = null;
代码示例来源:origin: org.codehaus.modello/modello-plugin-xdoc
XmlModelMetadata xmlModelMetadata = (XmlModelMetadata) modelClass.getModel().getMetadata( XmlModelMetadata.ID );
代码示例来源:origin: org.codehaus.modello/modello-plugin-stax
XmlModelMetadata xmlModelMetadata = (XmlModelMetadata) objectModel.getMetadata( XmlModelMetadata.ID );
代码示例来源:origin: org.codehaus.modello/modello-plugin-dom4j
sc.indent();
XmlModelMetadata xmlModelMetadata = (XmlModelMetadata) modelClass.getModel().getMetadata( XmlModelMetadata.ID );
代码示例来源:origin: org.codehaus.modello/modello-plugin-stax
XmlModelMetadata xmlModelMetadata = (XmlModelMetadata) modelClass.getModel().getMetadata( XmlModelMetadata.ID );
代码示例来源:origin: org.codehaus.modello/modello-plugin-xpp3
XmlModelMetadata xmlModelMetadata = (XmlModelMetadata) modelClass.getModel().getMetadata( XmlModelMetadata.ID );
代码示例来源:origin: org.codehaus.modello/modello-plugin-sax
XmlModelMetadata xmlModelMetadata = (XmlModelMetadata) modelClass.getModel().getMetadata( XmlModelMetadata.ID );
内容来源于网络,如有侵权,请联系作者删除!