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

Java IdentityConstraint类代码示例

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

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



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

示例1: ValueStoreBase

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
/** Constructs a value store for the specified identity constraint. */
protected ValueStoreBase(IdentityConstraint identityConstraint) {
    fIdentityConstraint = identityConstraint;
    fFieldCount = fIdentityConstraint.getFieldCount();
    fFields = new Field[fFieldCount];
    fLocalValues = new Object[fFieldCount];
    fLocalValueTypes = new short[fFieldCount];
    fLocalItemValueTypes = new ShortList[fFieldCount];
    for (int i = 0; i < fFieldCount; i++) {
        fFields[i] = fIdentityConstraint.getFieldAt(i);
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:XMLSchemaValidator.java


示例2: endElement

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
/** endElement():  merges contents of fGlobalIDConstraintMap with the
 * top of fGlobalMapStack into fGlobalIDConstraintMap.
 */
public void endElement() {
    if (fGlobalMapStack.isEmpty()) {
        return; // must be an invalid doc!
    }
    Map<IdentityConstraint, ValueStoreBase> oldMap = fGlobalMapStack.pop();
    // return if there is no element
    if (oldMap == null) {
        return;
    }

    for (Map.Entry<IdentityConstraint, ValueStoreBase> entry : oldMap.entrySet()) {
        IdentityConstraint id = entry.getKey();
        ValueStoreBase oldVal = entry.getValue();
        if (oldVal != null) {
            ValueStoreBase currVal = fGlobalIDConstraintMap.get(id);
            if (currVal == null) {
                fGlobalIDConstraintMap.put(id, oldVal);
            }
            else if (currVal != oldVal) {
                currVal.append(oldVal);
            }
        }
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:28,代码来源:XMLSchemaValidator.java


示例3: addIDConstraintDecl

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
void addIDConstraintDecl(IdentityConstraint decl) {
    final String namespace = decl.getNamespace();
    final String declKey = (namespace == null || namespace.length() == 0)
        ? "," + decl.getIdentityConstraintName() : namespace + "," + decl.getIdentityConstraintName();

    if (fGlobalIDConstraintDecls.get(declKey) == null) {
        fGlobalIDConstraintDecls.put(declKey, decl);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:XSDHandler.java


示例4: startValueScopeFor

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
/**
 * Start the value scope for the specified identity constraint. This
 * method is called when the selector matches in order to initialize
 * the value store.
 *
 * @param identityConstraint The identity constraint.
 */
public void startValueScopeFor(IdentityConstraint identityConstraint, int initialDepth) {

    ValueStoreBase valueStore =
        fValueStoreCache.getValueStoreFor(identityConstraint, initialDepth);
    valueStore.startValueScope();

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:XMLSchemaValidator.java


示例5: endValueScopeFor

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
/**
 * Ends the value scope for the specified identity constraint.
 *
 * @param identityConstraint The identity constraint.
 */
public void endValueScopeFor(IdentityConstraint identityConstraint, int initialDepth) {

    ValueStoreBase valueStore =
        fValueStoreCache.getValueStoreFor(identityConstraint, initialDepth);
    valueStore.endValueScope();

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:XMLSchemaValidator.java


示例6: activateSelectorFor

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
private void activateSelectorFor(IdentityConstraint ic) {
    Selector selector = ic.getSelector();
    FieldActivator activator = this;
    if (selector == null)
        return;
    XPathMatcher matcher = selector.createMatcher(activator, fElementDepth);
    fMatcherStack.addMatcher(matcher);
    matcher.startDocumentFragment();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:XMLSchemaValidator.java


示例7: endElement

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
/** endElement():  merges contents of fGlobalIDConstraintMap with the
 * top of fGlobalMapStack into fGlobalIDConstraintMap.
 */
public void endElement() {
    if (fGlobalMapStack.isEmpty()) {
        return; // must be an invalid doc!
    }
    Hashtable oldMap = (Hashtable) fGlobalMapStack.pop();
    // return if there is no element
    if (oldMap == null) {
        return;
    }

    Iterator entries = oldMap.entrySet().iterator();
    while (entries.hasNext()) {
        Map.Entry entry = (Map.Entry) entries.next();
        IdentityConstraint id = (IdentityConstraint) entry.getKey();
        ValueStoreBase oldVal = (ValueStoreBase) entry.getValue();
        if (oldVal != null) {
            ValueStoreBase currVal = (ValueStoreBase) fGlobalIDConstraintMap.get(id);
            if (currVal == null) {
                fGlobalIDConstraintMap.put(id, oldVal);
            }
            else if (currVal != oldVal) {
                currVal.append(oldVal);
            }
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:XMLSchemaValidator.java


示例8: transplant

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
public void transplant(IdentityConstraint id, int initialDepth) {
    fLocalId.fDepth = initialDepth;
    fLocalId.fId = id;
    ValueStoreBase newVals =
        (ValueStoreBase) fIdentityConstraint2ValueStoreMap.get(fLocalId);
    if (id.getCategory() == IdentityConstraint.IC_KEYREF)
        return;
    ValueStoreBase currVals = (ValueStoreBase) fGlobalIDConstraintMap.get(id);
    if (currVals != null) {
        currVals.append(newVals);
        fGlobalIDConstraintMap.put(id, currVals);
    } else
        fGlobalIDConstraintMap.put(id, newVals);

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:XMLSchemaValidator.java


示例9: getIDConstraints

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
public IdentityConstraint[] getIDConstraints() {
    if (fIDCPos == 0) {
        return null;
    }
    if (fIDCPos < fIDConstraints.length) {
        fIDConstraints = resize(fIDConstraints, fIDCPos);
    }
    return fIDConstraints;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:XSElementDecl.java


示例10: startElement

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
public void startElement() {
    // only clone the map when there are elements
    if (fGlobalIDConstraintMap.size() > 0)
        fGlobalMapStack.push((Map<IdentityConstraint, ValueStoreBase>)
                ((HashMap)fGlobalIDConstraintMap).clone());
    else
        fGlobalMapStack.push(null);
    fGlobalIDConstraintMap.clear();
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:10,代码来源:XMLSchemaValidator.java


示例11: transplant

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
public void transplant(IdentityConstraint id, int initialDepth) {
    fLocalId.fDepth = initialDepth;
    fLocalId.fId = id;
    ValueStoreBase newVals = fIdentityConstraint2ValueStoreMap.get(fLocalId);
    if (id.getCategory() == IdentityConstraint.IC_KEYREF)
        return;
    ValueStoreBase currVals = fGlobalIDConstraintMap.get(id);
    if (currVals != null) {
        currVals.append(newVals);
        fGlobalIDConstraintMap.put(id, currVals);
    } else
        fGlobalIDConstraintMap.put(id, newVals);

}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:15,代码来源:XMLSchemaValidator.java


示例12: startElement

import com.sun.org.apache.xerces.internal.impl.xs.identity.IdentityConstraint; //导入依赖的package包/类
public void startElement() {
    // only clone the hashtable when there are elements
    if (fGlobalIDConstraintMap.size() > 0)
        fGlobalMapStack.push((Map<IdentityConstraint, ValueStoreBase>)
                ((HashMap)fGlobalIDConstraintMap).clone());
    else
        fGlobalMapStack.push(null);
    fGlobalIDConstraintMap.clear();
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:10,代码来源:XMLSchemaValidator.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java XSAttributeDecl类代码示例发布时间:2022-05-23
下一篇:
Java HiddenServiceManager类代码示例发布时间: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