--- /dev/null Fri Jan 22 12:23:47 2016 +++ new/test/jdk/javadoc/doclet/testHtmlTag/pkg3/A.java Fri Jan 22 12:23:47 2016 @@ -0,0 +1,156 @@ +/* + * Copyright (c) 2015, 2016, 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 pkg3; + +import java.io.Serializable; + +public class A { + /** + *

+ * Factory that creates new javax.xml.datatype + * Objects that map XML to/from Java Objects.

+ * + *

+ * A new instance of the DatatypeFactory is created through the + * {@link #newInstance()} method that uses the following implementation + * resolution mechanisms to determine an implementation:

+ *
    + *
  1. + * If the system property specified by {@link #DATATYPEFACTORY_PROPERTY}, + * "javax.xml.datatype.DatatypeFactory", exists, a class with + * the name of the property value is instantiated. Any Exception thrown + * during the instantiation process is wrapped as a + * {@link IllegalStateException}. + *
  2. + *
  3. + * If the file ${JAVA_HOME}/lib/jaxp.properties exists, it is loaded in a + * {@link java.util.Properties} Object. The + * Properties Object is then queried for the + * property as documented in the prior step and processed as documented in + * the prior step. + *
  4. + *
  5. + * Uses the service-provider loading facilities, defined by the + * {@link java.util.ServiceLoader} class, to attempt to locate and load an + * implementation of the service using the {@linkplain + * java.util.ServiceLoader#load(java.lang.Class) default loading mechanism}: + * the service-provider loading facility will use the {@linkplain + * java.lang.Thread#getContextClassLoader() current thread's context class loader} + * to attempt to load the service. If the context class loader is null, the {@linkplain + * ClassLoader#getSystemClassLoader() system class loader} will be used. + *
    + * In case of {@link java.util.ServiceConfigurationError service configuration error} a + * {@link javax.xml.datatype.DatatypeConfigurationException} will be thrown. + *
  6. + *
  7. + * The final mechanism is to attempt to instantiate the Class + * specified by {@link #DATATYPEFACTORY_IMPLEMENTATION_CLASS}. Any Exception + * thrown during the instantiation process is wrapped as a + * {@link IllegalStateException}. + *
  8. + *
+ */ + public static class DatatypeFactory { + /** + * some def. + */ + public static String DATATYPEFACTORY_IMPLEMENTATION_CLASS = "NOTHING"; + + /** + * some def. + */ + public static String DATATYPEFACTORY_PROPERTY = "NOTHING"; + + /** + *

Obtain a new instance of a DatatypeFactory.

+ * + *

The implementation resolution mechanisms are defined in this + * Class's documentation.

+ * + * @return New instance of a DatatypeFactory + * + * @throws Exception If the implementation is not + * available or cannot be instantiated. + * + * @see #newInstance(String factoryClassName, ClassLoader classLoader) + */ + public static DatatypeFactory newInstance() throws Exception { + return null; + } + + /** + *

Obtain a new instance of a DatatypeFactory.

+ * + *

The implementation resolution mechanisms are defined in this + * Class's documentation.

+ * + * @param factoryClassName fe + * @param classLoader fi + * @return fo + * @throws Exception If the implementation is not + * available or cannot be instantiated. + */ + public static DatatypeFactory newInstance(String factoryClassName, ClassLoader classLoader) throws Exception { + return null; + } + } + + /** + * An activation descriptor contains the information necessary to activate + * an object: + * + *

+ * A descriptor registered with the activation system can be used to + * recreate/activate the object specified by the descriptor. The + * MarshalledObject in the object's descriptor is passed as the + * second argument to the remote object's constructor for object to use + * during reinitialization/activation. + */ + public class ActivationDesc implements Serializable {} + + /** + * The identifier for a registered activation group serves several purposes: + *

+ * + * The ActivationGroupID is returned from the call to + * ActivationSystem.registerGroup and is used to identify the + * group within the activation system. This group id is passed as one of the + * arguments to the activation group's special constructor when an + * activation group is created/recreated. + */ + public class ActivationGroupID implements java.io.Serializable {} + +}