|
Java example source code file (SCDBasedBindingSet.java)
The SCDBasedBindingSet.java Java example source code/* * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * 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. */ package com.sun.tools.internal.xjc.reader.internalizer; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; import javax.xml.bind.UnmarshallerHandler; import javax.xml.validation.ValidatorHandler; import com.sun.istack.internal.NotNull; import com.sun.istack.internal.SAXParseException2; import com.sun.tools.internal.xjc.ErrorReceiver; import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIDeclaration; import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BindInfo; import com.sun.tools.internal.xjc.util.ForkContentHandler; import com.sun.tools.internal.xjc.util.DOMUtils; import com.sun.xml.internal.xsom.SCD; import com.sun.xml.internal.xsom.XSAnnotation; import com.sun.xml.internal.xsom.XSComponent; import com.sun.xml.internal.xsom.XSSchemaSet; import org.w3c.dom.Element; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; /** * Set of binding nodes that have target nodes specified via SCD. * * This is parsed during {@link Internalizer} works on the tree, * but applying this has to wait for {@link XSSchemaSet} to be parsed. * * @author Kohsuke Kawaguchi * @see SCD */ public final class SCDBasedBindingSet { /** * Represents the target schema component of the * customization identified by SCD. * * @author Kohsuke Kawaguchi */ final class Target { /** * SCDs can be specified via multiple steps, like: * * <xmp> * <bindings scd="foo/bar"> * <bindings scd="zot/xyz"> * </xmp> * * This field and {@link #nextSibling} form a single-linked list that * represent the children that shall be evaluated within this target. * Think of it as {@code List<Target>}. */ private Target firstChild; private final Target nextSibling; /** * Compiled SCD. */ private final @NotNull SCD scd; /** * The element on which SCD was found. */ private final @NotNull Element src; /** * Bindings that apply to this SCD. */ private final List<Element> bindings = new ArrayList Other Java examples (source code examples)Here is a short list of links related to this Java SCDBasedBindingSet.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.