本文整理汇总了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;未经允许,请勿转载。 |
请发表评论