org.codehaus.modello.plugins.xml.metadata.XmlAssociationMetadata类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(111)

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

XmlAssociationMetadata介绍

暂无

代码示例

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

wrappedItems = xmlAssociationMetadata.isWrappedItems();
sb.append( "<" ).append( fieldTagName ).append( ">\n" );
if ( xmlAssociationMetadata.isMapExplode() )

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

/**
 * Resolve XML tag name for an item in an association with many multiplicity.
 *
 * @param fieldTagName the XML tag name of the field containing the association
 * @param xmlAssociationMetadata the XML metadata of the association
 * @return the XML tag name for items
 */
static String resolveTagName( String fieldTagName, XmlAssociationMetadata xmlAssociationMetadata )
{
  String tagName;
  if ( ( xmlAssociationMetadata == null ) || ( xmlAssociationMetadata.getTagName() == null ) )
  {
    tagName = AbstractModelloGenerator.singular( fieldTagName );
  }
  else
  {
    // tag name is overridden by xml.tagName attribute
    tagName = xmlAssociationMetadata.getTagName();
  }
  return tagName;
}

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

public AssociationMetadata getAssociationMetadata( ModelAssociation association, Map<String, String> data )
  {
    XmlAssociationMetadata metadata = new XmlAssociationMetadata();

    metadata.setTagName( getString( data, XML_TAG_NAME ) );

    metadata.setItemsStyle( getString( data, XML_ITEMS_STYLE ) );

    metadata.setMapStyle( getString( data, XML_MAP_STYLE ) );

    metadata.setReference( getBoolean( data, XML_REFERENCE, false ) );

    return metadata;
  }
}

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

boolean wrappedItems = xmlAssociationMetadata.isWrappedItems();
if ( xmlAssociationMetadata.isMapExplode() )
  sc.add( "// " + xmlAssociationMetadata.getMapStyle() + " mode." );

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

if ( xmlAssociationMetadata.isMapExplode() )
  sc.add( "}" );
  sc.add( "// " + xmlAssociationMetadata.getMapStyle() + " mode." );

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

(XmlAssociationMetadata) association.getAssociationMetadata( XmlAssociationMetadata.ID );
if ( xmlAssociationMetadata.isWrappedItems() )

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

sc.indent();
if ( xmlAssociationMetadata.isMapExplode() )
sc.add( "final String value = String.valueOf( entry.getValue() );" );
if ( xmlAssociationMetadata.isMapExplode() )
sc.add( "}" );
if ( xmlAssociationMetadata.isMapExplode() )

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

boolean wrappedItems = xmlAssociationMetadata.isWrappedItems();
  sc.indent();
  if ( xmlAssociationMetadata.isMapExplode() )
    sc.add( "// " + xmlAssociationMetadata.getMapStyle() + " mode." );

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

if ( toClass != null )
  if ( xmlAssociationMetadata.isWrappedItems() )

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

if ( manyAssociation && xmlAssociationMetadata.isWrappedItems() )
  if ( xmlAssociationMetadata.isMapExplode() )

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

boolean wrappedItems = xmlAssociationMetadata.isWrappedItems();
sc.indent();
if ( xmlAssociationMetadata.isMapExplode() )
  sc.add( "//" + xmlAssociationMetadata.getMapStyle() + " mode." );

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

if ( xmlAssociationMetadata.getTagName() != null )
  tagName = xmlAssociationMetadata.getTagName();

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

String toType = association.getTo();
boolean wrappedItems = xmlAssociationMetadata.isWrappedItems();
  if ( xmlAssociationMetadata.isMapExplode() )

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

String toType = association.getTo();
boolean wrappedItems = xmlAssociationMetadata.isWrappedItems();
  if ( xmlAssociationMetadata.isMapExplode() )

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

String toType = association.getTo();
boolean wrappedItems = xmlAssociationMetadata.isWrappedItems();
  if ( xmlAssociationMetadata.isMapExplode() )

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

String toType = association.getTo();
boolean wrappedItems = xmlAssociationMetadata.isWrappedItems();
  if ( xmlAssociationMetadata.isMapExplode() )

相关文章