当前位置: 首页>>代码示例>>Java>>正文


Java XSIdentityConstraint类代码示例

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


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

示例1: iterateIdentityConstraints

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public Iterator<XSIdentityConstraint> iterateIdentityConstraints() {
    return new Iterators.Map<XSIdentityConstraint,XSSchema>(iterateSchema()) {
        protected Iterator<XSIdentityConstraint> apply(XSSchema u) {
            return u.getIdentityConstraints().values().iterator();
        }
    };
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:SchemaSetImpl.java

示例2: ElementDecl

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public ElementDecl( PatcherManager reader, SchemaDocumentImpl owner,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl fa,
    String _tns, String _name, boolean _anonymous,

    XmlString _defv, XmlString _fixedv,
    boolean _nillable, boolean _abstract, Boolean _form,
    Ref.Type _type, Ref.Element _substHead,
    int _substDisallowed, int _substExcluded,
    List<IdentityConstraintImpl> idConstraints) {

    super(owner,_annon,_loc,fa,_tns,_name,_anonymous);

    this.defaultValue = _defv;
    this.fixedValue = _fixedv;
    this.nillable = _nillable;
    this._abstract = _abstract;
    this.form = _form;
    this.type = _type;
    this.substHead = _substHead;
    this.substDisallowed = _substDisallowed;
    this.substExcluded = _substExcluded;
    this.idConstraints = Collections.unmodifiableList((List<? extends XSIdentityConstraint>)idConstraints);

    for (IdentityConstraintImpl idc : idConstraints)
        idc.setParent(this);

    if(type==null)
        throw new IllegalArgumentException();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:ElementDecl.java

示例3: elementDecl

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public void elementDecl(XSElementDecl decl) {
    if(check(decl)) {
        decl.getType().visit(this);
        for( XSIdentityConstraint id : decl.getIdentityConstraints() )
            id.visit(this);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:UnusedCustomizationChecker.java

示例4: identityConstraint

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public void identityConstraint(XSIdentityConstraint id) {
    if(check(id)) {
        id.getSelector().visit(this);
        for( XSXPath xp : id.getFields() )
            xp.visit(this);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:UnusedCustomizationChecker.java

示例5: getReferencedKey

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
@Override
public XSIdentityConstraint getReferencedKey() {
    if(category==KEYREF)
        return refer.get();
    else
        throw new IllegalStateException("not a keyref");
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:8,代码来源:IdentityConstraintImpl.java

示例6: ElementDecl

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public ElementDecl( PatcherManager reader, SchemaDocumentImpl owner,
    AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl fa,
    String _tns, String _name, boolean _anonymous,

    XmlString _defv, XmlString _fixedv,
    boolean _nillable, boolean _abstract, Boolean _form,
    Ref.Type _type, Ref.Element _substHead,
    int _substDisallowed, int _substExcluded,
    List<IdentityConstraintImpl> idConstraints) {

    super(owner,_annon,_loc,fa,_tns,_name,_anonymous);

    this.defaultValue = _defv;
    this.fixedValue = _fixedv;
    this.nillable = _nillable;
    this._abstract = _abstract;
    this.form = _form;
    this.type = _type;
    this.substHead = _substHead;
    this.substDisallowed = _substDisallowed;
    this.substExcluded = _substExcluded;
    this.idConstraints = (List<XSIdentityConstraint>) Collections.unmodifiableList((List<? extends XSIdentityConstraint>)idConstraints);

    for (IdentityConstraintImpl idc : idConstraints)
        idc.setParent(this);

    if(type==null)
        throw new IllegalArgumentException();
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:30,代码来源:ElementDecl.java

示例7: identityConstraint

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public Boolean identityConstraint(XSIdentityConstraint decl) {
    return Boolean.FALSE;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:XSFinder.java

示例8: identityConstraint

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

示例9: identityConstraint

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public String identityConstraint(XSIdentityConstraint decl) {
    return localize("idConstraint");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:NameGetter.java

示例10: identityConstraint

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public String identityConstraint(XSIdentityConstraint decl) {
    return decl.getName()+" "+nameGetter.identityConstraint(decl);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ComponentNameFunction.java

示例11: getIdentityConstraint

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public XSIdentityConstraint getIdentityConstraint(String ns, String localName) {
    XSSchema schema = getSchema(ns);
    if(schema==null)    return null;

    return schema.getIdentityConstraint(localName);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:SchemaSetImpl.java

示例12: setParent

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public void setParent(XSIdentityConstraint parent) {
    this.parent = parent;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:XPathImpl.java

示例13: getParent

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

示例14: getReferencedKey

import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public XSIdentityConstraint getReferencedKey() {
    if(category==KEYREF)
        return refer.get();
    else
        throw new IllegalStateException("not a keyref");
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:IdentityConstraintImpl.java

示例15: get

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


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