• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java XSWildcard类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.xml.internal.xsom.XSWildcard的典型用法代码示例。如果您正苦于以下问题:Java XSWildcard类的具体用法?Java XSWildcard怎么用?Java XSWildcard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XSWildcard类属于com.sun.xml.internal.xsom包,在下文中一共展示了XSWildcard类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:SchemaTreeTraverser.java


示例2: dumpComplexTypeAttribute

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
private void dumpComplexTypeAttribute( XSComplexType type ) {
    Iterator itr;

    itr = type.iterateAttGroups();
    while(itr.hasNext())
        dumpRef( (XSAttGroupDecl)itr.next() );

    itr = type.iterateDeclaredAttributeUses();
    while(itr.hasNext())
        attributeUse( (XSAttributeUse)itr.next() );

    XSWildcard awc = type.getAttributeWildcard();
    if(awc!=null)
        wildcard("anyAttribute",awc,"");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:SchemaWriter.java


示例3: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
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));
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:SchemaWriter.java


示例4: getAttributeWildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public XSWildcard getAttributeWildcard() {
    WildcardImpl complete = localAttWildcard;

    Iterator itr = iterateAttGroups();
    while( itr.hasNext() ) {
        WildcardImpl w = (WildcardImpl)((XSAttGroupDecl)itr.next()).getAttributeWildcard();

        if(w==null)     continue;

        if(complete==null)
            complete = w;
        else
            // TODO: the spec says it's intersection,
            // but I think it has to be union.
            complete = complete.union(ownerDocument,w);
    }

    if( getDerivationMethod()==RESTRICTION )    return complete;

    WildcardImpl base=null;
    XSType baseType = getBaseType();
    if(baseType.asComplexType()!=null)
        base = (WildcardImpl)baseType.asComplexType().getAttributeWildcard();

    if(complete==null)  return base;
    if(base==null)      return complete;

    return complete.union(ownerDocument,base);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:ComplexTypeImpl.java


示例5: attContainer

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:BindGreen.java


示例6: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public void wildcard(XSWildcard xsWildcard) {
    // TODO: implement this method later
    // I guess we might allow this to be mapped to a generic element property ---
    // not sure exactly how do we do it.
    TODO.checkSpec();
    throw new UnsupportedOperationException();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:BindRed.java


示例7: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
/**
 * We can only have one {@link XmlAnyElement} property,
 * so all the wildcards need to be treated as one node.
 */
public Expression wildcard(XSWildcard wc) {
    if(wildcard==null)
        wildcard = new GWildcardElement();
    wildcard.merge(wc);
    wildcard.particles.add(current);
    return wildcard;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:ExpressionBuilder.java


示例8: attContainer

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:UnusedCustomizationChecker.java


示例9: getMode

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
private static WildcardMode getMode(XSWildcard wildcard) {
    switch(wildcard.getMode()) {
    case XSWildcard.LAX:
        return WildcardMode.LAX;
    case XSWildcard.STRTICT:
        return WildcardMode.STRICT;
    case XSWildcard.SKIP:
        return WildcardMode.SKIP;
    default:
        throw new IllegalStateException();
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:RawTypeSetBuilder.java


示例10: merge

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public void merge(XSWildcard wc) {
    switch(wc.getMode()) {
    case XSWildcard.LAX:
    case XSWildcard.SKIP:
        strict = false;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:GWildcardElement.java


示例11: union

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public NameClass union(XSWildcard.Union wc) {
    NameClass nc = null;
    for (Iterator itr = wc.iterateNamespaces(); itr.hasNext();) {
        String ns = (String) itr.next();

        if(nc==null)    nc = new NsNameClass(ns);
        else
            nc = new ChoiceNameClass(nc,new NsNameClass(ns));
    }

    // there should be at least one.
    assert nc!=null;

    return nc;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:16,代码来源:WildcardNameClassBuilder.java


示例12: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
/**
 * @see com.sun.xml.internal.xsom.visitor.XSTermFunction#wildcard(com.sun.xml.internal.xsom.XSWildcard)
 */
public Boolean wildcard(XSWildcard wc) {
    return Boolean.FALSE;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:XSFinder.java


示例13: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public T wildcard(XSWildcard wc) {
    return core.wildcard(wc);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:XSFunctionFilter.java


示例14: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public CClassInfo wildcard(XSWildcard wc) {
    return never();
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:4,代码来源:DefaultClassBinder.java


示例15: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public Iterator<T> wildcard(XSWildcard wc) {
    return empty();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:AbstractAxisImpl.java


示例16: complexType

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public Iterator<XSWildcard> complexType(XSComplexType type) {
    return singleton(type.getAttributeWildcard());
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:Axis.java


示例17: attGroupDecl

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public Iterator<XSWildcard> attGroupDecl(XSAttGroupDecl decl) {
    return singleton(decl.getAttributeWildcard());
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:Axis.java


示例18: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public void wildcard(XSWildcard xsWildcard) {
    // TODO: implement this method later
    throw new UnsupportedOperationException();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:BindGreen.java


示例19: wildcard

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
@Override
public Boolean wildcard(XSWildcard xsWildcard) {
    // attribute wildcards always maps to a property.
    // element wildcards should have been processed with particle binders
    return true;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:BGMBuilder.java


示例20: build

import com.sun.xml.internal.xsom.XSWildcard; //导入依赖的package包/类
public static NameClass build( XSWildcard wc ) {
    return wc.apply(theInstance);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:WildcardNameClassBuilder.java



注:本文中的com.sun.xml.internal.xsom.XSWildcard类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ConnectedComponent类代码示例发布时间:2022-05-23
下一篇:
Java CzechStemFilter类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap