本文整理了Java中org.codehaus.modello.plugins.xml.metadata.XmlFieldMetadata.isTransient()
方法的一些代码示例,展示了XmlFieldMetadata.isTransient()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlFieldMetadata.isTransient()
方法的具体详情如下:
包路径:org.codehaus.modello.plugins.xml.metadata.XmlFieldMetadata
类名称:XmlFieldMetadata
方法名:isTransient
暂无
代码示例来源:origin: org.codehaus.modello/modello-plugin-xml
if ( xmlFieldMetadata.isTransient() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-stax
/**
* Add code to parse fields of a model class that are XML attributes.
*
* @param modelClass the model class
* @param uncapClassName
* @param sc the source code to add to
* @throws ModelloException
*/
private void writeAttributes( ModelClass modelClass, String uncapClassName, JSourceCode sc )
throws ModelloException
{
for ( ModelField field : modelClass.getAllFields( getGeneratedVersion(), true ) )
{
XmlFieldMetadata xmlFieldMetadata = (XmlFieldMetadata) field.getMetadata( XmlFieldMetadata.ID );
if ( xmlFieldMetadata.isAttribute() && !xmlFieldMetadata.isTransient() )
{
writePrimitiveField( field, field.getType(), uncapClassName, "set" + capitalise( field.getName() ),
sc );
}
}
}
代码示例来源:origin: org.codehaus.modello/modello-plugin-stax
if ( !xmlFieldMetadata.isAttribute() && !xmlFieldMetadata.isTransient() )
内容来源于网络,如有侵权,请联系作者删除!