/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* this file is generated by RelaxNGCC */
protected final NGCCRuntimeEx $runtime;
private int $_ngcc_current_state;
return($runtime);
}
public identityConstraint(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
$_ngcc_current_state = 18;
}
}
}
}
else
else
}
public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
int $ai;
switch($_ngcc_current_state) {
case 1:
{
$_ngcc_current_state = 3;
}
else {
}
}
break;
case 17:
{
if((($ai = $runtime.getAttributeIndex("","name"))>=0 && (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("selector"))))) {
}
else {
}
}
break;
case 6:
{
}
else {
}
}
break;
case 16:
{
}
else {
}
}
break;
case 3:
{
}
else {
}
}
break;
case 7:
{
$_ngcc_current_state = 6;
}
else {
}
}
break;
case 10:
{
}
else {
$_ngcc_current_state = 8;
}
}
break;
case 0:
{
}
break;
case 8:
{
NGCCHandler h = new annotation(this, super._source, $runtime, 244, null,AnnotationContext.IDENTITY_CONSTRAINT);
}
else {
$_ngcc_current_state = 7;
}
}
break;
case 18:
{
if(((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) {
action2();
$_ngcc_current_state = 17;
}
else {
}
}
break;
case 4:
{
$_ngcc_current_state = 3;
}
else {
}
}
break;
default:
{
}
break;
}
}
int $ai;
switch($_ngcc_current_state) {
case 1:
{
if(((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) {
$_ngcc_current_state = 0;
}
else {
}
}
break;
case 17:
{
}
else {
}
}
break;
case 6:
{
if((($ai = $runtime.getAttributeIndex("","xpath"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("selector")))) {
}
else {
}
}
break;
case 16:
{
}
else {
}
}
break;
case 3:
{
if((($ai = $runtime.getAttributeIndex("","xpath"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("field")))) {
}
else {
}
}
break;
case 10:
{
}
else {
$_ngcc_current_state = 8;
}
}
break;
case 5:
{
$_ngcc_current_state = 4;
}
else {
}
}
break;
case 0:
{
}
break;
case 2:
{
$_ngcc_current_state = 1;
}
else {
}
}
break;
case 8:
{
$_ngcc_current_state = 7;
}
break;
default:
{
}
break;
}
}
int $ai;
switch($_ngcc_current_state) {
case 17:
{
}
else {
}
}
break;
case 6:
{
}
else {
}
}
break;
case 16:
{
$_ngcc_current_state = 15;
}
else {
}
}
break;
case 3:
{
}
else {
}
}
break;
case 10:
{
$_ngcc_current_state = 12;
}
else {
$_ngcc_current_state = 8;
}
}
break;
case 0:
{
}
break;
case 8:
{
$_ngcc_current_state = 7;
}
break;
default:
{
}
break;
}
}
int $ai;
switch($_ngcc_current_state) {
case 14:
{
$_ngcc_current_state = 10;
}
else {
}
}
break;
case 11:
{
$_ngcc_current_state = 8;
}
else {
}
}
break;
case 10:
{
$_ngcc_current_state = 8;
}
break;
case 0:
{
}
break;
case 8:
{
$_ngcc_current_state = 7;
}
break;
default:
{
}
break;
}
}
int $ai;
switch($_ngcc_current_state) {
case 17:
{
spawnChildFromText(h, $value);
}
}
break;
case 6:
{
spawnChildFromText(h, $value);
}
}
break;
case 16:
{
}
}
break;
case 3:
{
spawnChildFromText(h, $value);
}
}
break;
case 15:
{
$_ngcc_current_state = 14;
}
break;
case 10:
{
}
else {
$_ngcc_current_state = 8;
}
}
break;
case 0:
{
}
break;
case 12:
{
spawnChildFromText(h, $value);
}
break;
case 8:
{
$_ngcc_current_state = 7;
}
break;
}
}
public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
switch($__cookie__) {
case 241:
{
$_ngcc_current_state = 5;
}
break;
case 237:
{
action0();
$_ngcc_current_state = 2;
}
break;
case 244:
{
$_ngcc_current_state = 7;
}
break;
case 247:
{
action1();
$_ngcc_current_state = 11;
}
break;
case 254:
{
$_ngcc_current_state = 16;
}
break;
}
}
public boolean accepted() {
return(($_ngcc_current_state == 0));
}
private short category;
}
}