本文整理了Java中org.codehaus.modello.plugins.xml.metadata.XmlFieldMetadata.isAttribute()
方法的一些代码示例,展示了XmlFieldMetadata.isAttribute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlFieldMetadata.isAttribute()
方法的具体详情如下:
包路径:org.codehaus.modello.plugins.xml.metadata.XmlFieldMetadata
类名称:XmlFieldMetadata
方法名:isAttribute
暂无
代码示例来源:origin: org.codehaus.modello/modello-plugin-xml
/**
* Gets all fields that are not marked as XML attribute.
*
* @param modelFields The collection of model fields from which to extract the XML attributes, must not be
* <code>null</code>.
* @return The list of XML attributes fields, can be empty but never <code>null</code>.
*/
static List<ModelField> getXmlAttributeFields( List<ModelField> modelFields )
{
List<ModelField> xmlAttributeFields = new ArrayList<ModelField>();
for ( ModelField field : modelFields )
{
XmlFieldMetadata xmlFieldMetadata = (XmlFieldMetadata) field.getMetadata( XmlFieldMetadata.ID );
if ( xmlFieldMetadata.isAttribute() )
{
xmlAttributeFields.add( field );
}
}
return xmlAttributeFields;
}
代码示例来源:origin: org.codehaus.modello/modello-plugin-dom4j
if ( xmlFieldMetadata.isAttribute() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-stax
if ( xmlFieldMetadata.isAttribute() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-xpp3
if ( xmlFieldMetadata.isAttribute() )
代码示例来源: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-jdom
if ( xmlFieldMetadata.isAttribute() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-xpp3
if ( xmlFieldMetadata.isAttribute() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-dom4j
if ( xmlFieldMetadata.isAttribute() )
if ( !xmlFieldMetadata.isAttribute() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-xpp3
if ( !xmlFieldMetadata.isAttribute() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-stax
if ( !xmlFieldMetadata.isAttribute() && !xmlFieldMetadata.isTransient() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-dom4j
if ( xmlFieldMetadata.isAttribute() )
if ( !xmlFieldMetadata.isAttribute() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-xpp3
if ( xmlFieldMetadata.isAttribute() )
if ( xmlFieldMetadata.isAttribute() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-stax
if ( xmlFieldMetadata.isAttribute() )
if ( xmlFieldMetadata.isAttribute() )
代码示例来源:origin: org.codehaus.modello/modello-plugin-sax
if ( xmlFieldMetadata.isAttribute() )
if ( xmlFieldMetadata.isAttribute() )
内容来源于网络,如有侵权,请联系作者删除!