gpt4 book ai didi

com.sun.xml.xsom.XSWildcard类的使用及代码示例

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

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

XSWildcard介绍

[英]Wildcard schema component (used for both attribute wildcard and element wildcard.) XSWildcard interface can always be downcasted to either Any, Other, or Union.
[中]通配符架构组件(用于属性通配符和元素通配符。)XSWildcard接口始终可以降级为任意、其他或联合。

代码示例

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

public static NameClass build( XSWildcard wc ) {
  return wc.apply(theInstance);
}

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

public void merge(XSWildcard wc) {
  switch(wc.getMode()) {
  case XSWildcard.LAX:
  case XSWildcard.SKIP:
    strict = false;
  }
}

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

public XSComponent wildcard(XSWildcard wc) { return wc.getOwnerSchema(); }
public XSComponent modelGroupDecl(XSModelGroupDecl decl) { return decl.getOwnerSchema(); }

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

private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
  final String proessContents;
  switch(wc.getMode()) {
  case XSWildcard.LAX:
    proessContents = " processContents='lax'";break;
  case XSWildcard.STRTICT:
    proessContents = "";break;
  case XSWildcard.SKIP:
    proessContents = " processContents='skip'";break;
  default:
    throw new AssertionError();
  }
  println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}

代码示例来源:origin: yeshodhan/android-jaxb

/**
 * Creates node for wild card with additional attributes.
 *
 * @param wc        Wild card.
 * @param extraAtts Additional attributes.
 */
private void wildcard(XSWildcard wc, String extraAtts) {
  // TODO
  SchemaTreeNode newNode = new SchemaTreeNode(MessageFormat.format(
      "Any ", new Object[]{extraAtts}), wc.getLocator());
  currNode.add(newNode);
}

代码示例来源: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: com.sun.xsom/xsom

private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
  final String proessContents;
  switch(wc.getMode()) {
  case XSWildcard.LAX:
    proessContents = " processContents='lax'";break;
  case XSWildcard.STRTICT:
    proessContents = "";break;
  case XSWildcard.SKIP:
    proessContents = " processContents='skip'";break;
  default:
    throw new AssertionError();
  }
  println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}

代码示例来源:origin: com.sun.xsom/xsom

/**
 * Creates node for wild card with additional attributes.
 *
 * @param wc        Wild card.
 * @param extraAtts Additional attributes.
 */
private void wildcard(XSWildcard wc, String extraAtts) {
  // TODO
  SchemaTreeNode newNode = new SchemaTreeNode(MessageFormat.format(
      "Any ", new Object[]{extraAtts}), wc.getLocator());
  currNode.add(newNode);
}

代码示例来源: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 wildcard( String tagName, XSWildcard wc, String extraAtts ) {
  final String proessContents;
  switch(wc.getMode()) {
  case XSWildcard.LAX:
    proessContents = " processContents='lax'";break;
  case XSWildcard.STRTICT:
    proessContents = "";break;
  case XSWildcard.SKIP:
    proessContents = " processContents='skip'";break;
  default:
    throw new AssertionError();
  }
  println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}

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

public void merge(XSWildcard wc) {
  switch(wc.getMode()) {
  case XSWildcard.LAX:
  case XSWildcard.SKIP:
    strict = false;
  }
}

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

public static NameClass build( XSWildcard wc ) {
  return wc.apply(theInstance);
}

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

/**
 * Creates node for wild card with additional attributes.
 *
 * @param wc        Wild card.
 * @param extraAtts Additional attributes.
 */
private void wildcard(XSWildcard wc, String extraAtts) {
  // TODO
  SchemaTreeNode newNode = new SchemaTreeNode(MessageFormat.format(
      "Any ", new Object[]{extraAtts}), wc.getLocator());
  currNode.add(newNode);
}

代码示例来源: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: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

public XSComponent wildcard(XSWildcard wc) { return wc.getOwnerSchema(); }
public XSComponent modelGroupDecl(XSModelGroupDecl decl) { return decl.getOwnerSchema(); }

代码示例来源:origin: yeshodhan/android-jaxb

private void wildcard( String tagName, XSWildcard wc, String extraAtts ) {
  final String proessContents;
  switch(wc.getMode()) {
  case XSWildcard.LAX:
    proessContents = " processContents='lax'";break;
  case XSWildcard.STRTICT:
    proessContents = "";break;
  case XSWildcard.SKIP:
    proessContents = " processContents='skip'";break;
  default:
    throw new AssertionError();
  }
  println(MessageFormat.format("<{0}{1}{2}{3}/>",tagName, proessContents, wc.apply(WILDCARD_NS), extraAtts));
}

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

public void merge(XSWildcard wc) {
  switch(wc.getMode()) {
  case XSWildcard.LAX:
  case XSWildcard.SKIP:
    strict = false;
  }
}

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

public static NameClass build( XSWildcard wc ) {
  return wc.apply(theInstance);
}

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

/**
 * Creates node for wild card with additional attributes.
 *
 * @param wc        Wild card.
 * @param extraAtts Additional attributes.
 */
private void wildcard(XSWildcard wc, String extraAtts) {
  // TODO
  SchemaTreeNode newNode = new SchemaTreeNode(MessageFormat.format(
      "Any ", new Object[]{extraAtts}), wc.getLocator());
  currNode.add(newNode);
}

代码示例来源: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);
}

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