< prev index next >
src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDUniqueOrKeyTraverser.java
Print this page
*** 1,8 ****
/*
! * reserved comment block
! * DO NOT REMOVE OR ALTER!
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
--- 1,8 ----
/*
! * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
! * @LastModified: Nov 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*** 59,69 ****
//return this array back to pool
fAttrChecker.returnAttrArray(attrValues, schemaDoc);
return;
}
! UniqueOrKey uniqueOrKey = null;
if(DOMUtil.getLocalName(uElem).equals(SchemaSymbols.ELT_UNIQUE)) {
uniqueOrKey = new UniqueOrKey(schemaDoc.fTargetNamespace, uName, element.fName, IdentityConstraint.IC_UNIQUE);
} else {
uniqueOrKey = new UniqueOrKey(schemaDoc.fTargetNamespace, uName, element.fName, IdentityConstraint.IC_KEY);
}
--- 59,69 ----
//return this array back to pool
fAttrChecker.returnAttrArray(attrValues, schemaDoc);
return;
}
! UniqueOrKey uniqueOrKey;
if(DOMUtil.getLocalName(uElem).equals(SchemaSymbols.ELT_UNIQUE)) {
uniqueOrKey = new UniqueOrKey(schemaDoc.fTargetNamespace, uName, element.fName, IdentityConstraint.IC_UNIQUE);
} else {
uniqueOrKey = new UniqueOrKey(schemaDoc.fTargetNamespace, uName, element.fName, IdentityConstraint.IC_KEY);
}
*** 87,97 ****
// handle duplicates
if (fSchemaHandler.fTolerateDuplicates) {
if (idc != null) {
if (idc instanceof UniqueOrKey) {
! uniqueOrKey = (UniqueOrKey) uniqueOrKey;
}
}
fSchemaHandler.addIDConstraintDecl(uniqueOrKey);
}
}
--- 87,97 ----
// handle duplicates
if (fSchemaHandler.fTolerateDuplicates) {
if (idc != null) {
if (idc instanceof UniqueOrKey) {
! uniqueOrKey = (UniqueOrKey)idc;
}
}
fSchemaHandler.addIDConstraintDecl(uniqueOrKey);
}
}
< prev index next >