gpt4 book ai didi

com.sun.xml.xsom.XSAttContainer.iterateAttGroups()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 18:15:05 25 4
gpt4 key购买 nike

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

XSAttContainer.iterateAttGroups介绍

[英]Iterates all AttGroups which are directly referenced from this component.
[中]

代码示例

代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

public void attContainer(XSAttContainer cont) {
  // inline
  Iterator itr = cont.iterateDeclaredAttributeUses();
  while(itr.hasNext())
    builder.ying((XSAttributeUse)itr.next(),cont);
  itr = cont.iterateAttGroups();
  while(itr.hasNext())
    builder.ying((XSAttGroupDecl)itr.next(),cont);
  XSWildcard w = cont.getAttributeWildcard();
  if(w!=null)
    builder.ying(w,cont);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

public void attContainer(XSAttContainer cont) {
  // inline
  Iterator itr = cont.iterateDeclaredAttributeUses();
  while(itr.hasNext())
    builder.ying((XSAttributeUse)itr.next(),cont);
  itr = cont.iterateAttGroups();
  while(itr.hasNext())
    builder.ying((XSAttGroupDecl)itr.next(),cont);
  XSWildcard w = cont.getAttributeWildcard();
  if(w!=null)
    builder.ying(w,cont);
}

代码示例来源:origin: org.glassfish.metro/webservices-tools

public void attContainer(XSAttContainer cont) {
  // inline
  Iterator itr = cont.iterateDeclaredAttributeUses();
  while(itr.hasNext())
    builder.ying((XSAttributeUse)itr.next(),cont);
  itr = cont.iterateAttGroups();
  while(itr.hasNext())
    builder.ying((XSAttGroupDecl)itr.next(),cont);
  XSWildcard w = cont.getAttributeWildcard();
  if(w!=null)
    builder.ying(w,cont);
}

代码示例来源:origin: apache/servicemix-bundles

public void attContainer(XSAttContainer cont) {
  // inline
  Iterator itr = cont.iterateDeclaredAttributeUses();
  while(itr.hasNext())
    builder.ying((XSAttributeUse)itr.next(),cont);
  itr = cont.iterateAttGroups();
  while(itr.hasNext())
    builder.ying((XSAttGroupDecl)itr.next(),cont);
  XSWildcard w = cont.getAttributeWildcard();
  if(w!=null)
    builder.ying(w,cont);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

private void attContainer( XSAttContainer cont ) {
  for( Iterator itr = cont.iterateAttGroups(); itr.hasNext(); )
    ((XSAttGroupDecl)itr.next()).visit(this);
    
  for( Iterator itr = cont.iterateDeclaredAttributeUses(); itr.hasNext(); )
    ((XSAttributeUse)itr.next()).visit(this);
  
  XSWildcard wc = cont.getAttributeWildcard();
  if(wc!=null)        wc.visit(this);
}

代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

private void attContainer( XSAttContainer cont ) {
  for( Iterator itr = cont.iterateAttGroups(); itr.hasNext(); )
    ((XSAttGroupDecl)itr.next()).visit(this);
    
  for( Iterator itr = cont.iterateDeclaredAttributeUses(); itr.hasNext(); )
    ((XSAttributeUse)itr.next()).visit(this);
  
  XSWildcard wc = cont.getAttributeWildcard();
  if(wc!=null)        wc.visit(this);
}

代码示例来源:origin: org.glassfish.metro/webservices-tools

private void attContainer( XSAttContainer cont ) {
  for( Iterator itr = cont.iterateAttGroups(); itr.hasNext(); )
    ((XSAttGroupDecl)itr.next()).visit(this);
    
  for( Iterator itr = cont.iterateDeclaredAttributeUses(); itr.hasNext(); )
    ((XSAttributeUse)itr.next()).visit(this);
  
  XSWildcard wc = cont.getAttributeWildcard();
  if(wc!=null)        wc.visit(this);
}

代码示例来源:origin: sun-jaxb/jaxb-xjc

private void attContainer( XSAttContainer cont ) {
  for( Iterator itr = cont.iterateAttGroups(); itr.hasNext(); )
    ((XSAttGroupDecl)itr.next()).visit(this);
    
  for( Iterator itr = cont.iterateDeclaredAttributeUses(); itr.hasNext(); )
    ((XSAttributeUse)itr.next()).visit(this);
  
  XSWildcard wc = cont.getAttributeWildcard();
  if(wc!=null)        wc.visit(this);
}

代码示例来源:origin: sun-jaxb/jaxb-xjc

public void attContainer(XSAttContainer cont) {
  // inline
  Iterator itr = cont.iterateDeclaredAttributeUses();
  while(itr.hasNext())
    builder.ying((XSAttributeUse)itr.next(),cont);
  itr = cont.iterateAttGroups();
  while(itr.hasNext())
    builder.ying((XSAttGroupDecl)itr.next(),cont);
  XSWildcard w = cont.getAttributeWildcard();
  if(w!=null)
    builder.ying(w,cont);
}

代码示例来源:origin: apache/servicemix-bundles

private void attContainer( XSAttContainer cont ) {
  for( Iterator itr = cont.iterateAttGroups(); itr.hasNext(); )
    ((XSAttGroupDecl)itr.next()).visit(this);
    
  for( Iterator itr = cont.iterateDeclaredAttributeUses(); itr.hasNext(); )
    ((XSAttributeUse)itr.next()).visit(this);
  
  XSWildcard wc = cont.getAttributeWildcard();
  if(wc!=null)        wc.visit(this);
}

代码示例来源:origin: net.mdatools/modelant.uml13.reverse

/**
 * Describes type as a collection of attributes into umlClass
 * @param type
 * @param umlClass
 */
private void processAttributeContainer(XSAttContainer type, Classifier umlClass) {
 Attribute attribute;
 Iterator<? extends XSAttributeUse> declaredAttributeUsesIterator;
 XSAttributeUse attributeUse;
 Iterator<? extends XSAttGroupDecl> groupsIterator;
 XSAttGroupDecl group;
 // process the directly declared attributes
 declaredAttributeUsesIterator = type.iterateDeclaredAttributeUses();
 while ( declaredAttributeUsesIterator.hasNext() ) {
  attributeUse = declaredAttributeUsesIterator.next();
  attribute = createAttribute( attributeUse.getDecl(), umlClass );
  // collect the comments for the type when it is an attributes group, because
  // it is in-lined
  if ( !(type instanceof XSComplexType) ) {
   assignDocumentation( attribute, type );
  }
 }
 // add the attributes used in referred groups
 groupsIterator = type.iterateAttGroups();
 while ( groupsIterator.hasNext() ) {
  group = groupsIterator.next();
  processAttributeContainer( group, umlClass );
 }
 // type.getAttributeWildcard();
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com