From 742b5e8d1c90c08fa0303d35d7849d51497a191f Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Sat, 10 Jun 2017 16:01:29 +0800 Subject: [PATCH 01/83] 8181906: AArch64: port bugfix for 7009641 to AArch64 Allocation in the code cache returns NULL instead of failing the entire VM Reviewed-by: aph --- hotspot/src/cpu/aarch64/vm/vtableStubs_aarch64.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hotspot/src/cpu/aarch64/vm/vtableStubs_aarch64.cpp b/hotspot/src/cpu/aarch64/vm/vtableStubs_aarch64.cpp index 223f1810a6f..9301f687169 100644 --- a/hotspot/src/cpu/aarch64/vm/vtableStubs_aarch64.cpp +++ b/hotspot/src/cpu/aarch64/vm/vtableStubs_aarch64.cpp @@ -51,6 +51,11 @@ extern "C" void bad_compiled_vtable_index(JavaThread* thread, VtableStub* VtableStubs::create_vtable_stub(int vtable_index) { const int aarch64_code_length = VtableStub::pd_code_size_limit(true); VtableStub* s = new(aarch64_code_length) VtableStub(true, vtable_index); + // Can be NULL if there is no free space in the code cache. + if (s == NULL) { + return NULL; + } + ResourceMark rm; CodeBuffer cb(s->entry_point(), aarch64_code_length); MacroAssembler* masm = new MacroAssembler(&cb); From 7311151cd6f078912ce171bcfa2c18e297650993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rickard=20B=C3=A4ckman?= Date: Fri, 2 Jun 2017 11:26:36 +0200 Subject: [PATCH 02/83] 8180197: Failing assert: id must be initialized Reviewed-by: kvn, kbarrett --- hotspot/src/share/vm/compiler/compileBroker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/compiler/compileBroker.cpp b/hotspot/src/share/vm/compiler/compileBroker.cpp index 62433c1c088..df101a0a571 100644 --- a/hotspot/src/share/vm/compiler/compileBroker.cpp +++ b/hotspot/src/share/vm/compiler/compileBroker.cpp @@ -1557,7 +1557,7 @@ void CompileBroker::compiler_thread_loop() { // First thread to get here will initialize the compiler interface - if (!ciObjectFactory::is_initialized()) { + { ASSERT_IN_VM; MutexLocker only_one (CompileThread_lock, thread); if (!ciObjectFactory::is_initialized()) { From a1ea4289182e2031f5deeee83190be619863dc53 Mon Sep 17 00:00:00 2001 From: Dean Long Date: Tue, 13 Jun 2017 10:27:42 -0700 Subject: [PATCH 03/83] 8181757: NonNMethod heap in segmented CodeCache is not scanned in some cases 8171365: nsk/jvmti/scenarios/events/EM04/em04t001: many errors for missed events Reviewed-by: thartmann, kvn --- hotspot/src/share/vm/code/codeCache.cpp | 32 +++++++++++++++---------- hotspot/src/share/vm/code/codeCache.hpp | 6 +++++ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/hotspot/src/share/vm/code/codeCache.cpp b/hotspot/src/share/vm/code/codeCache.cpp index 549535b7aa0..3765d129b3b 100644 --- a/hotspot/src/share/vm/code/codeCache.cpp +++ b/hotspot/src/share/vm/code/codeCache.cpp @@ -130,6 +130,7 @@ class CodeBlob_sizes { // Iterate over all CodeHeaps #define FOR_ALL_HEAPS(heap) for (GrowableArrayIterator heap = _heaps->begin(); heap != _heaps->end(); ++heap) #define FOR_ALL_NMETHOD_HEAPS(heap) for (GrowableArrayIterator heap = _nmethod_heaps->begin(); heap != _nmethod_heaps->end(); ++heap) +#define FOR_ALL_ALLOCABLE_HEAPS(heap) for (GrowableArrayIterator heap = _allocable_heaps->begin(); heap != _allocable_heaps->end(); ++heap) // Iterate over all CodeBlobs (cb) on the given CodeHeap #define FOR_ALL_BLOBS(cb, heap) for (CodeBlob* cb = first_blob(heap); cb != NULL; cb = next_blob(heap, cb)) @@ -140,10 +141,11 @@ int CodeCache::_number_of_nmethods_with_dependencies = 0; bool CodeCache::_needs_cache_clean = false; nmethod* CodeCache::_scavenge_root_nmethods = NULL; -// Initialize array of CodeHeaps +// Initialize arrays of CodeHeap subsets GrowableArray* CodeCache::_heaps = new(ResourceObj::C_HEAP, mtCode) GrowableArray (CodeBlobType::All, true); GrowableArray* CodeCache::_compiled_heaps = new(ResourceObj::C_HEAP, mtCode) GrowableArray (CodeBlobType::All, true); GrowableArray* CodeCache::_nmethod_heaps = new(ResourceObj::C_HEAP, mtCode) GrowableArray (CodeBlobType::All, true); +GrowableArray* CodeCache::_allocable_heaps = new(ResourceObj::C_HEAP, mtCode) GrowableArray (CodeBlobType::All, true); void CodeCache::check_heap_sizes(size_t non_nmethod_size, size_t profiled_size, size_t non_profiled_size, size_t cache_size, bool all_set) { size_t total_size = non_nmethod_size + profiled_size + non_profiled_size; @@ -338,6 +340,7 @@ ReservedCodeSpace CodeCache::reserve_heap_memory(size_t size) { return rs; } +// Heaps available for allocation bool CodeCache::heap_available(int code_blob_type) { if (!SegmentedCodeCache) { // No segmentation: use a single code heap @@ -391,6 +394,9 @@ void CodeCache::add_heap(CodeHeap* heap) { if (code_blob_type_accepts_nmethod(type)) { _nmethod_heaps->insert_sorted(heap); } + if (code_blob_type_accepts_allocable(type)) { + _allocable_heaps->insert_sorted(heap); + } } void CodeCache::add_heap(ReservedSpace rs, const char* name, int code_blob_type) { @@ -620,7 +626,7 @@ nmethod* CodeCache::find_nmethod(void* start) { void CodeCache::blobs_do(void f(CodeBlob* nm)) { assert_locked_or_safepoint(CodeCache_lock); - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_HEAPS(heap) { FOR_ALL_BLOBS(cb, *heap) { f(cb); } @@ -663,7 +669,7 @@ void CodeCache::do_unloading(BoolObjectClosure* is_alive, bool unloading_occurre void CodeCache::blobs_do(CodeBlobClosure* f) { assert_locked_or_safepoint(CodeCache_lock); - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { FOR_ALL_BLOBS(cb, *heap) { if (cb->is_alive()) { f->do_code_blob(cb); @@ -960,7 +966,7 @@ address CodeCache::high_bound(int code_blob_type) { size_t CodeCache::capacity() { size_t cap = 0; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { cap += (*heap)->capacity(); } return cap; @@ -973,7 +979,7 @@ size_t CodeCache::unallocated_capacity(int code_blob_type) { size_t CodeCache::unallocated_capacity() { size_t unallocated_cap = 0; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { unallocated_cap += (*heap)->unallocated_capacity(); } return unallocated_cap; @@ -981,7 +987,7 @@ size_t CodeCache::unallocated_capacity() { size_t CodeCache::max_capacity() { size_t max_cap = 0; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { max_cap += (*heap)->max_capacity(); } return max_cap; @@ -1007,7 +1013,7 @@ double CodeCache::reverse_free_ratio(int code_blob_type) { size_t CodeCache::bytes_allocated_in_freelists() { size_t allocated_bytes = 0; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { allocated_bytes += (*heap)->allocated_in_freelist(); } return allocated_bytes; @@ -1015,7 +1021,7 @@ size_t CodeCache::bytes_allocated_in_freelists() { int CodeCache::allocated_segments() { int number_of_segments = 0; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { number_of_segments += (*heap)->allocated_segments(); } return number_of_segments; @@ -1023,7 +1029,7 @@ int CodeCache::allocated_segments() { size_t CodeCache::freelists_length() { size_t length = 0; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { length += (*heap)->freelist_length(); } return length; @@ -1354,7 +1360,7 @@ void CodeCache::report_codemem_full(int code_blob_type, bool print) { void CodeCache::print_memory_overhead() { size_t wasted_bytes = 0; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { CodeHeap* curr_heap = *heap; for (CodeBlob* cb = (CodeBlob*)curr_heap->first(); cb != NULL; cb = (CodeBlob*)curr_heap->next(cb)) { HeapBlock* heap_block = ((HeapBlock*)cb) - 1; @@ -1400,7 +1406,7 @@ void CodeCache::print_internals() { ResourceMark rm; int i = 0; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { if ((_nmethod_heaps->length() >= 1) && Verbose) { tty->print_cr("-- %s --", (*heap)->name()); } @@ -1497,7 +1503,7 @@ void CodeCache::print() { CodeBlob_sizes live; CodeBlob_sizes dead; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { FOR_ALL_BLOBS(cb, *heap) { if (!cb->is_alive()) { dead.add(cb); @@ -1523,7 +1529,7 @@ void CodeCache::print() { int number_of_blobs = 0; int number_of_oop_maps = 0; int map_size = 0; - FOR_ALL_NMETHOD_HEAPS(heap) { + FOR_ALL_ALLOCABLE_HEAPS(heap) { FOR_ALL_BLOBS(cb, *heap) { if (cb->is_alive()) { number_of_blobs++; diff --git a/hotspot/src/share/vm/code/codeCache.hpp b/hotspot/src/share/vm/code/codeCache.hpp index 469ac0af329..e3b506b9a6a 100644 --- a/hotspot/src/share/vm/code/codeCache.hpp +++ b/hotspot/src/share/vm/code/codeCache.hpp @@ -85,6 +85,7 @@ class CodeCache : AllStatic { static GrowableArray* _heaps; static GrowableArray* _compiled_heaps; static GrowableArray* _nmethod_heaps; + static GrowableArray* _allocable_heaps; static address _low_bound; // Lower bound of CodeHeap addresses static address _high_bound; // Upper bound of CodeHeap addresses @@ -237,6 +238,11 @@ class CodeCache : AllStatic { return type == CodeBlobType::All || type <= CodeBlobType::MethodProfiled; } + static bool code_blob_type_accepts_allocable(int type) { + return type <= CodeBlobType::All; + } + + // Returns the CodeBlobType for the given compilation level static int get_code_blob_type(int comp_level) { if (comp_level == CompLevel_none || From a8c2c0eadd6cdbe9853558200a0c1dd3bc4a9833 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Tue, 13 Jun 2017 10:44:11 -0700 Subject: [PATCH 04/83] 8182029: Make the top-level docs index.html to a HTML-level redirect to the API overview page Reviewed-by: alanb, erikj, ihse --- make/Docs.gmk | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/make/Docs.gmk b/make/Docs.gmk index d75398272d0..1e5a582a794 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -168,11 +168,6 @@ JDK_LONG_NAME := Standard Edition Development Kit (JDK™) $(VERSION_SPECIFI JAVASE_SHORT_NAME := SE $(VERSION_SPECIFICATION) JAVASE_LONG_NAME := Standard Edition $(VERSION_SPECIFICATION) -################################################################################ -# Index page text titles/snippets - -JDK_INDEX_TITLE := $(JAVA_PLATFORM), $(JDK_LONG_NAME) Specification $(DRAFT_MARKER_TITLE) - ################################################################################ # Functions @@ -208,7 +203,6 @@ define create_overview_file # ifneq ($$($1_GROUPS),) $1_OVERVIEW_TEXT += \ -

For an overview of the full specification, grouped by usage, see the $$(JAVA_PLATFORM), $$($1_LONG_NAME) Specification.

\
\ # $1_OVERVIEW_TEXT += $$(foreach g, $$($1_GROUPS), \ @@ -442,15 +436,17 @@ $(eval $(call SetupApiDocsGeneration, JAVASE_API, \ ################################################################################ JDK_INDEX_HTML := $(DOCS_OUTPUTDIR)/index.html -JDK_INDEX_TOOLS_DIR := $(TOOLS_CLASSES_DIR)/build/tools/docs -$(JDK_INDEX_HTML): $(BUILD_JIGSAW_TOOLS) \ - $(JDK_INDEX_TOOLS_DIR)/docs-bundle-page.html \ - $(JDK_INDEX_TOOLS_DIR)/docs-module-groups.properties - $(call LogInfo, Generating docs bundle index page) - $(MKDIR) -p $(@D) - $(TOOL_GEN_DOCS_BUNDLE_PAGE) --title '$(JDK_INDEX_TITLE)' \ - --output $@ +JDK_INDEX_CONTENT := \ + \ + \ + \ + \ + \ + + +$(JDK_INDEX_HTML): + $(ECHO) '$(JDK_INDEX_CONTENT)' > $@ JDK_INDEX_TARGETS := $(JDK_INDEX_HTML) From 17081a1945173809d089c9232a361aff56cb7025 Mon Sep 17 00:00:00 2001 From: Serguei Spitsyn Date: Tue, 13 Jun 2017 16:19:49 -0700 Subject: [PATCH 05/83] 8178054: [TESTBUG] Need test for JVM TI IsModifiableModule Add new test hotspot/test/serviceability/jvmti/GetNamedModule Reviewed-by: alanb, iignatyev --- hotspot/make/test/JtregNative.gmk | 2 + .../MyPackage/GetNamedModuleTest.java | 3 +- .../MyPackage/IsModifiableModuleTest.java | 57 +++++ .../libIsModifiableModuleTest.c | 215 ++++++++++++++++++ 4 files changed, 276 insertions(+), 1 deletion(-) create mode 100644 hotspot/test/serviceability/jvmti/IsModifiableModule/MyPackage/IsModifiableModuleTest.java create mode 100644 hotspot/test/serviceability/jvmti/IsModifiableModule/libIsModifiableModuleTest.c diff --git a/hotspot/make/test/JtregNative.gmk b/hotspot/make/test/JtregNative.gmk index 42eb76af57e..19faa10ad3d 100644 --- a/hotspot/make/test/JtregNative.gmk +++ b/hotspot/make/test/JtregNative.gmk @@ -56,6 +56,7 @@ BUILD_HOTSPOT_JTREG_NATIVE_SRC := \ $(HOTSPOT_TOPDIR)/test/compiler/floatingpoint/ \ $(HOTSPOT_TOPDIR)/test/compiler/calls \ $(HOTSPOT_TOPDIR)/test/serviceability/jvmti/GetNamedModule \ + $(HOTSPOT_TOPDIR)/test/serviceability/jvmti/IsModifiableModule \ $(HOTSPOT_TOPDIR)/test/serviceability/jvmti/AddModuleReads \ $(HOTSPOT_TOPDIR)/test/serviceability/jvmti/AddModuleExportsAndOpens \ $(HOTSPOT_TOPDIR)/test/serviceability/jvmti/AddModuleUsesAndProvides \ @@ -85,6 +86,7 @@ ifeq ($(TOOLCHAIN_TYPE), solstudio) BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_liboverflow := -lc BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_libSimpleClassFileLoadHook := -lc BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_libGetNamedModuleTest := -lc + BUILD_HOTSPOT_JTREG_LIBRARIES_LIBS_libIsModifiableModuleTest := -lc BUILD_HOTSPOT_JTREG_LIBRARIES_LDFLAGS_libAddModuleReadsTest := -lc BUILD_HOTSPOT_JTREG_LIBRARIES_LDFLAGS_libAddModuleExportsAndOpensTest := -lc BUILD_HOTSPOT_JTREG_LIBRARIES_LDFLAGS_libAddModuleUsesAndProvidesTest := -lc diff --git a/hotspot/test/serviceability/jvmti/GetNamedModule/MyPackage/GetNamedModuleTest.java b/hotspot/test/serviceability/jvmti/GetNamedModule/MyPackage/GetNamedModuleTest.java index 80fab0a2ee5..6004b449263 100644 --- a/hotspot/test/serviceability/jvmti/GetNamedModule/MyPackage/GetNamedModuleTest.java +++ b/hotspot/test/serviceability/jvmti/GetNamedModule/MyPackage/GetNamedModuleTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -26,6 +26,7 @@ package MyPackage; /** * @test * @summary Verifies the JVMTI GetNamedModule API + * @modules jdk.jdi * @compile GetNamedModuleTest.java * @run main/othervm/native -agentlib:GetNamedModuleTest MyPackage.GetNamedModuleTest */ diff --git a/hotspot/test/serviceability/jvmti/IsModifiableModule/MyPackage/IsModifiableModuleTest.java b/hotspot/test/serviceability/jvmti/IsModifiableModule/MyPackage/IsModifiableModuleTest.java new file mode 100644 index 00000000000..376d9264851 --- /dev/null +++ b/hotspot/test/serviceability/jvmti/IsModifiableModule/MyPackage/IsModifiableModuleTest.java @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2017, 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. + * + * 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 MyPackage; + +/** + * @test + * @summary Verifies the JVMTI IsModifiableModule API + * @modules jdk.jdi + * @compile IsModifiableModuleTest.java + * @run main/othervm/native -agentlib:IsModifiableModuleTest MyPackage.IsModifiableModuleTest + */ + +import java.io.PrintStream; + +public class IsModifiableModuleTest { + + static { + try { + System.loadLibrary("IsModifiableModuleTest"); + } catch (UnsatisfiedLinkError ule) { + System.err.println("Could not load IsModifiableModuleTest library"); + System.err.println("java.library.path: " + + System.getProperty("java.library.path")); + throw ule; + } + } + + native static int check(); + + public static void main(String args[]) { + int status = check(); + if (status != 0) { + throw new RuntimeException("Non-zero status returned from the agent: " + status); + } + } +} diff --git a/hotspot/test/serviceability/jvmti/IsModifiableModule/libIsModifiableModuleTest.c b/hotspot/test/serviceability/jvmti/IsModifiableModule/libIsModifiableModuleTest.c new file mode 100644 index 00000000000..2e35e0d5aca --- /dev/null +++ b/hotspot/test/serviceability/jvmti/IsModifiableModule/libIsModifiableModuleTest.c @@ -0,0 +1,215 @@ +/* + * Copyright (c) 2017, 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. + * + * 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. + */ + +#include +#include +#include "jvmti.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef JNI_ENV_ARG + +#ifdef __cplusplus +#define JNI_ENV_ARG(x, y) y +#define JNI_ENV_PTR(x) x +#else +#define JNI_ENV_ARG(x,y) x, y +#define JNI_ENV_PTR(x) (*x) +#endif + +#endif + +#define TranslateError(err) "JVMTI error" + +#define PASSED 0 +#define FAILED 2 + +static const char *EXC_CNAME = "java/lang/AssertionError"; + +static jvmtiEnv *jvmti = NULL; +static jint result = PASSED; +static jboolean printdump = JNI_FALSE; + +static jint Agent_Initialize(JavaVM *jvm, char *options, void *reserved); + +JNIEXPORT +jint JNICALL Agent_OnLoad(JavaVM *jvm, char *options, void *reserved) { + return Agent_Initialize(jvm, options, reserved); +} + +JNIEXPORT +jint JNICALL Agent_OnAttach(JavaVM *jvm, char *options, void *reserved) { + return Agent_Initialize(jvm, options, reserved); +} + +JNIEXPORT +jint JNICALL JNI_OnLoad(JavaVM *jvm, void *reserved) { + return JNI_VERSION_1_8; +} + +static +jint Agent_Initialize(JavaVM *jvm, char *options, void *reserved) { + jint res; + + if (options != NULL && strcmp(options, "printdump") == 0) { + printdump = JNI_TRUE; + } + + res = JNI_ENV_PTR(jvm)->GetEnv(JNI_ENV_ARG(jvm, (void **) &jvmti), + JVMTI_VERSION_9); + if (res != JNI_OK || jvmti == NULL) { + printf(" Error: wrong result of a valid call to GetEnv!\n"); + return JNI_ERR; + } + + return JNI_OK; +} + +static +jclass find_class(JNIEnv *env, const char* cname) { + jclass cls = JNI_ENV_PTR(env)->FindClass(JNI_ENV_ARG(env, cname)); + + if (cls == NULL) { + printf("find_class: Error: FindClass(env, \"%s\") returned NULL\n", cname); + } + return cls; +} + +static +jint throw_exc(JNIEnv *env, char *msg) { + jclass exc_class = find_class(env, EXC_CNAME); + + if (exc_class == NULL) { + printf("throw_exc: Error in find_class(env, \"%s\")\n", EXC_CNAME); + return -1; + } + return JNI_ENV_PTR(env)->ThrowNew(JNI_ENV_ARG(env, exc_class), msg); +} + +static jobject get_module_by_class_name(JNIEnv *env, const char* cname) { + jobject module = NULL; + jclass cls = find_class(env, cname); + + printf(">>> getting module by class name: \"%s\"\n", cname); + if (cls == NULL) { + printf("get_module_by_class_name: Error in find_class(env, \"%s\")\n", cname); + return NULL; + } + module = JNI_ENV_PTR(env)->GetModule(JNI_ENV_ARG(env, cls)); + if (module == NULL) { + printf("get_module_by_class_name: Error in GetModule for class \"%s\"\n", cname); + } + return module; +} + +static +jint check_is_modifiable_error_codes(jobject module, jobject not_a_module) { + jvmtiError err = JVMTI_ERROR_NONE; + jboolean is_modifiable = JNI_FALSE; + + printf(">>> passing a bad module argument to JVMTI IsModifiableModule\n"); + err = (*jvmti)->IsModifiableModule(jvmti, not_a_module, &is_modifiable); + if (err != JVMTI_ERROR_INVALID_MODULE) { + printf(" Error #EC0: Did not get expected INVALID_MODULE error code from" + " IsModifiableModule: %s (%d)\n", TranslateError(err), err); + return FAILED; + } + printf(">>> passing NULL module argument to JVMTI IsModifiableModule\n"); + err = (*jvmti)->IsModifiableModule(jvmti, NULL, &is_modifiable); + if (err != JVMTI_ERROR_NULL_POINTER) { + printf(" Error #EC1: Did not get expected NULL_POINTER error code from" + " IsModifiableModule: %s (%d)\n", TranslateError(err), err); + return FAILED; + } + printf(">>> passing NULL status pointer to JVMTI IsModifiableModule\n"); + err = (*jvmti)->IsModifiableModule(jvmti, module, NULL); + if (err != JVMTI_ERROR_NULL_POINTER) { + printf(" Error #EC2: Did not get expected NULL_POINTER error code from" + " IsModifiableModule: %s (%d)\n", TranslateError(err), err); + return FAILED; + } + return PASSED; +} + +static +jint check_is_modifiable(jobject module) { + jvmtiError err = JVMTI_ERROR_NONE; + jboolean is_modifiable = JNI_FALSE; + + printf(">>> checking module %p is modifiable\n", module); + err = (*jvmti)->IsModifiableModule(jvmti, module, &is_modifiable); + if (err != JVMTI_ERROR_NONE) { + printf(" Error in IsModifiableModule for module %p: %s (%d)\n", + module, TranslateError(err), err); + return FAILED; + } + if (is_modifiable == JNI_FALSE) { + printf(" unexpected non-modifiable status for module: %p\n", module); + return FAILED; + } + return PASSED; +} + +JNIEXPORT jint JNICALL +Java_MyPackage_IsModifiableModuleTest_check(JNIEnv *env, jclass cls) { + jobject module = NULL; + + if (jvmti == NULL) { + throw_exc(env, "JVMTI client was not properly loaded!\n"); + return FAILED; + } + + printf("\n*** Testing IsModifiableModule ***\n\n"); + + if (check_is_modifiable_error_codes(module, cls) == FAILED) { + throw_exc(env, "check #MM0: failed to return expected error code from " + "a bad call to JVMTI IsModifiableModule"); + return FAILED; + } + + module = get_module_by_class_name(env, "java/lang/Class"); + if (check_is_modifiable(module) == FAILED) { + throw_exc(env, "check #MM1: failed to return modifiable module status"); + return FAILED; + } + + module = get_module_by_class_name(env, "com/sun/jdi/VirtualMachine"); + if (check_is_modifiable(module) == FAILED) { + throw_exc(env, "check #MM2: failed to return modifiable module status"); + return FAILED; + } + + module = get_module_by_class_name(env, "MyPackage/IsModifiableModuleTest"); + if (check_is_modifiable(module) == FAILED) { + throw_exc(env, "check #MM3: failed to return modifiable module status"); + return FAILED; + } + + return PASSED; +} + +#ifdef __cplusplus +} +#endif From 807e7e9268bd6e426ca35ea1086f2304389bf116 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Thu, 15 Jun 2017 11:54:26 -0700 Subject: [PATCH 06/83] 8182032: Make java.compiler upgradeable Reviewed-by: alanb, erikj --- make/CreateJmods.gmk | 5 ++--- make/common/Modules.gmk | 25 ++++++++----------------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/make/CreateJmods.gmk b/make/CreateJmods.gmk index 2a27e3629a6..299198b9008 100644 --- a/make/CreateJmods.gmk +++ b/make/CreateJmods.gmk @@ -81,7 +81,6 @@ endif LEGAL_NOTICES := \ $(SUPPORT_OUTPUTDIR)/modules_legal/java.base \ - $(wildcard $(SUPPORT_OUTPUTDIR)/modules_legal/$(MODULE)) \ $(call FindModuleLegalDirs, $(MODULE)) \ # @@ -106,10 +105,10 @@ ifeq ($(MODULE), java.base) DEPS += $(patsubst %, $(JMODS_DIR)/%.jmod, \ $(filter-out java.base $(ALL_UPGRADEABLE_MODULES), $(call FindAllModules))) - EXCLUDE_PATTERN := $(strip $(subst $(SPACE),|,$(strip $(ALL_UPGRADEABLE_MODULES)))) + EXCLUDE_PATTERN := $(strip $(subst $(SPACE),$$|,$(strip $(ALL_UPGRADEABLE_MODULES)))) JMOD_FLAGS += --module-path $(JMODS_DIR) \ - --hash-modules '^(?!$(EXCLUDE_PATTERN))' + --hash-modules '^(?!$(EXCLUDE_PATTERN)$$)' endif endif endif diff --git a/make/common/Modules.gmk b/make/common/Modules.gmk index de979bc3b83..9bbcf6c8f51 100644 --- a/make/common/Modules.gmk +++ b/make/common/Modules.gmk @@ -72,8 +72,11 @@ BOOT_MODULES += \ jdk.naming.rmi \ # +# Modules that directly or indirectly requiring upgradeable modules +# should carefully be considered if it should be upgradeable or not. UPGRADEABLE_MODULES += \ java.activation \ + java.compiler \ java.corba \ java.transaction \ java.xml.bind \ @@ -82,10 +85,9 @@ UPGRADEABLE_MODULES += \ jdk.internal.vm.compiler \ # -# Modules explicitly declared as not being upgradeable even though they require -# an upgradeable module. -NON_UPGRADEABLE_MODULES += \ - jdk.aot \ +UPGRADEABLE_TOOL_MODULES += \ + jdk.xml.bind \ + jdk.xml.ws \ # AGGREGATOR_MODULES += \ @@ -99,7 +101,6 @@ PLATFORM_MODULES += \ # PLATFORM_MODULES += \ - java.compiler \ java.scripting \ java.security.jgss \ java.smartcardio \ @@ -175,13 +176,10 @@ DOCS_MODULES += \ jdk.policytool \ jdk.rmic \ jdk.scripting.nashorn \ - jdk.scripting.nashorn.shell \ jdk.sctp \ jdk.security.auth \ jdk.security.jgss \ - jdk.xml.bind \ jdk.xml.dom \ - jdk.xml.ws \ jdk.zipfs \ # @@ -384,15 +382,8 @@ FindTransitiveIndirectDepsForModules = \ # Upgradeable modules are those that are either defined as upgradeable or that # require an upradeable module. FindAllUpgradeableModules = \ - $(filter-out $(MODULES_FILTER) $(NON_UPGRADEABLE_MODULES), \ - $(sort $(UPGRADEABLE_MODULES) $(foreach m, \ - $(filter-out $(UPGRADEABLE_MODULES), $(call FindAllModules)), \ - $(if $(filter $(UPGRADEABLE_MODULES), \ - $(call FindTransitiveDepsForModule, $m)), \ - $m \ - ) \ - )) \ - ) + $(sort $(filter-out $(MODULES_FILTER), $(UPGRADEABLE_MODULES) $(UPGRADEABLE_TOOL_MODULES))) + ################################################################################ From 9c609d97c24c312cfd9ebcc581b10dec7610ee4f Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Thu, 15 Jun 2017 12:40:23 -0700 Subject: [PATCH 07/83] 8182111: Package summary is missing in jdk.xml.dom module Reviewed-by: mchung --- .../classes/org/w3c/dom/css/package-info.java | 38 ++++++++++++++++ .../org/w3c/dom/html/package-info.java | 39 +++++++++++++++++ .../org/w3c/dom/stylesheets/package-info.java | 38 ++++++++++++++++ .../org/w3c/dom/xpath/package-info.java | 43 +++++++++++++++++++ 4 files changed, 158 insertions(+) create mode 100644 jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/css/package-info.java create mode 100644 jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/html/package-info.java create mode 100644 jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/stylesheets/package-info.java create mode 100644 jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/xpath/package-info.java diff --git a/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/css/package-info.java b/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/css/package-info.java new file mode 100644 index 00000000000..ae2acd8116b --- /dev/null +++ b/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/css/package-info.java @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2017, 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. + */ + +/** + * Provides interfaces for DOM Level 2 Style Specification. Refer to the + * + * Document Object Model (DOM) Level 2 Style Specification, + * the CSS and stylesheets modules define the Document Object Model Level 2 Style + * Sheets and Cascading Style Sheets (CSS) that allow programs and scripts to + * dynamically access and update the content of style sheets documents. + * + * + * @since 1.4 + */ + +package org.w3c.dom.css; diff --git a/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/html/package-info.java b/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/html/package-info.java new file mode 100644 index 00000000000..3cc7ddd9a0a --- /dev/null +++ b/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/html/package-info.java @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2017, 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. + */ + +/** + * Provides interfaces for DOM Level 2 HTML Specification. Refer to the + * + * Document Object Model (DOM) Level 2 Specification, + * the HTML module extends the Core API to describe objects and methods specific + * to HTML documents that comply with + * + * HTML 4.0 Specification. + * + * + * @since 1.4 + */ + +package org.w3c.dom.html; diff --git a/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/stylesheets/package-info.java b/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/stylesheets/package-info.java new file mode 100644 index 00000000000..d4c8037c5c9 --- /dev/null +++ b/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/stylesheets/package-info.java @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2017, 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. + */ + +/** + * Provides interfaces for DOM Level 2 Style Specification. Refer to the + * + * Document Object Model (DOM) Level 2 Style Specification, + * the CSS and stylesheets modules define the Document Object Model Level 2 Style + * Sheets and Cascading Style Sheets (CSS) that allow programs and scripts to + * dynamically access and update the content of style sheets documents. + * + * + * @since 1.4 + */ + +package org.w3c.dom.stylesheets; diff --git a/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/xpath/package-info.java b/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/xpath/package-info.java new file mode 100644 index 00000000000..ed8004e226a --- /dev/null +++ b/jaxp/src/jdk.xml.dom/share/classes/org/w3c/dom/xpath/package-info.java @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2017, 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. + */ + +/** + * Provides interfaces for DOM Level 3 XPath Specification. The XPath module + * provides simple functionalities to access a DOM tree using + * XPath 1.0. + *

+ * The interfaces and classes in this package came from + * Document Object Model (DOM) Level 3 XPath Specification, + * Working Draft 20 August 2002. Refer to + * + * Document Object Model (DOM) Level 3 XPath Specification, Version 1.0, + * W3C Working Group Note 26 February 2004 except that the values of + * {@link XPathException#INVALID_EXPRESSION_ERR} and {@link XPathException#TYPE_ERR} + * are 1 and 2 respectively (instead of 51 and 52). + * + * @since 1.4 + */ + +package org.w3c.dom.xpath; From 6214a77ce1f1fd814b5508415537078e4fd6d462 Mon Sep 17 00:00:00 2001 From: Jonathan Gibbons Date: Thu, 15 Jun 2017 14:45:30 -0700 Subject: [PATCH 08/83] 8181825: Add tool and services information to module summary Reviewed-by: mchung, rfield --- .../classes/com/sun/tools/javac/Main.java | 6 +- .../com/sun/tools/javac/package-info.java | 31 +++++++++ .../share/classes/module-info.java | 63 +++++++++++++++++-- .../share/classes/module-info.java | 36 +++++++++-- .../jdk.jdeps/share/classes/module-info.java | 37 +++++++++-- .../jdk.jshell/share/classes/module-info.java | 19 ++++-- 6 files changed, 168 insertions(+), 24 deletions(-) create mode 100644 langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/package-info.java diff --git a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/Main.java b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/Main.java index 6d35e1dded8..91b242684ec 100644 --- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/Main.java +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2017, 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 @@ -28,8 +28,10 @@ package com.sun.tools.javac; import java.io.PrintWriter; /** - * The programmatic interface for the Java Programming Language + * A legacy programmatic interface for the Java Programming Language * compiler, javac. + * See the {@code jdk.compiler} + * module for details on replacement APIs. */ public class Main { diff --git a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/package-info.java b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/package-info.java new file mode 100644 index 00000000000..125c1915b92 --- /dev/null +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/package-info.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2015, 2017, 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. + */ + +/** + * This package provides a legacy entry point for the javac tool. + * See the {@code jdk.compiler} + * module for details on replacement APIs. + */ +package com.sun.tools.javac; diff --git a/langtools/src/jdk.compiler/share/classes/module-info.java b/langtools/src/jdk.compiler/share/classes/module-info.java index b777cecc682..5bfb4310e68 100644 --- a/langtools/src/jdk.compiler/share/classes/module-info.java +++ b/langtools/src/jdk.compiler/share/classes/module-info.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -23,12 +23,63 @@ * questions. */ -/** Defines the implementation of the - * {@link javax.tools.ToolProvider#getSystemJavaCompiler system Java compiler} - * and its command line equivalent, javac, as well as javah. +/** + * Defines the implementation of the + * {@link javax.tools.ToolProvider#getSystemJavaCompiler system Java compiler} + * and its command line equivalent, {@index javac javac tool}, + * as well as {@index javah javah tool}. * - * @moduleGraph - * @since 9 + *

javac

+ * + *

+ * This module provides the equivalent of command-line access to javac + * via the {@link java.util.spi.ToolProvider ToolProvider} and + * {@link javax.tools.Tool} service provider interfaces (SPIs), + * and more flexible access via the {@link javax.tools.JavaCompiler JavaCompiler} + * SPI.

+ * + *

Instances of the tools can be obtained by calling + * {@link java.util.spi.ToolProvider#findFirst ToolProvider.findFirst} + * or the {@link java.util.ServiceLoader service loader} with the name + * {@code "javac"}. + * + *

+ * In addition, instances of {@link javax.tools.JavaCompiler.CompilationTask} + * obtained from {@linkplain javax.tools.JavaCompiler JavaCompiler} can be + * downcast to {@link com.sun.source.util.JavacTask JavacTask} for access to + * lower level aspects of javac, such as the + * {@link com.sun.source.tree Abstract Syntax Tree} (AST).

+ * + *

This module uses the {@link java.nio.file.spi.FileSystemProvider + * FileSystemProvider} API to locate file system providers. In particular, + * this means that a jar file system provider, such as that in the + * {@code jdk.zipfs} module, must be available if the compiler is to be able + * to read JAR files. + * + *

javah

+ * + *

+ * javah only exists as a command line tool, and does not provide any + * direct API. As of JDK 9, it has been deprecated. + * Use the {@code -h} option in javac instead.

+ * + *
+ *
Tool Guides: + *
{@extLink javac_tool_reference javac}, + * {@extLink javah_tool_reference javah} + *
+ * + * @provides java.util.spi.ToolProvider + * @provides com.sun.tools.javac.platform.PlatformProvider + * @provides javax.tools.JavaCompiler + * @provides javax.tools.Tool + * + * @uses javax.annotation.processing.Processor + * @uses com.sun.source.util.Plugin + * @uses com.sun.tools.javac.platform.PlatformProvider + * + * @moduleGraph + * @since 9 */ module jdk.compiler { requires transitive java.compiler; diff --git a/langtools/src/jdk.javadoc/share/classes/module-info.java b/langtools/src/jdk.javadoc/share/classes/module-info.java index 5499c7127d1..a5de5c4e036 100644 --- a/langtools/src/jdk.javadoc/share/classes/module-info.java +++ b/langtools/src/jdk.javadoc/share/classes/module-info.java @@ -23,15 +23,39 @@ * questions. */ -/** Defines the implementation of the - * {@link javax.tools.ToolProvider#getSystemDocumentationTool system documentation tool} - * and its command line equivalent, javadoc. +/** + * Defines the implementation of the + * {@link javax.tools.ToolProvider#getSystemDocumentationTool system documentation tool} + * and its command line equivalent, {@index javadoc javadoc tool}. * - * @see + *

javadoc

+ * + *

+ * This module provides the equivalent of command-line access to javadoc + * via the {@link java.util.spi.ToolProvider ToolProvider} and + * {@link javax.tools.Tool} service provider interfaces (SPIs), + * and more flexible access via the {@link javax.tools.DocumentationTool DocumentationTool} + * SPI.

+ * + *

Instances of the tools can be obtained by calling + * {@link java.util.spi.ToolProvider#findFirst ToolProvider.findFirst} + * or the {@link java.util.ServiceLoader service loader} with the name + * {@code "javadoc"}. + * + *

+ *
Tool Guides: + *
{@extLink javadoc_tool_reference javadoc} + *
+ * + * @provides java.util.spi.ToolProvider + * @provides javax.tools.DocumentationTool + * @provides javax.tools.Tool + * + * @see
* Documentation Comment Specification for the Standard Doclet * - * @moduleGraph - * @since 9 + * @moduleGraph + * @since 9 */ module jdk.javadoc { requires transitive java.compiler; diff --git a/langtools/src/jdk.jdeps/share/classes/module-info.java b/langtools/src/jdk.jdeps/share/classes/module-info.java index a7708265097..69f8e11cdb2 100644 --- a/langtools/src/jdk.jdeps/share/classes/module-info.java +++ b/langtools/src/jdk.jdeps/share/classes/module-info.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -23,11 +23,38 @@ * questions. */ -/** Defines tools for analysing dependencies in Java libraries and programs, including - * the jdeps and javap tools. +/** + * Defines tools for analysing dependencies in Java libraries and programs, + * including the {@index jdeps jdeps tool}, + * {@index javap javap tool} and + * {@index jdeprscan jdeprscan tool} tools. * - * @moduleGraph - * @since 9 + *

+ * This module provides the equivalent of command-line access to the + * javap and jdeps tools via the + * {@link java.util.spi.ToolProvider ToolProvider} service provider + * interface (SPI)

+ * + *

Instances of the tools can be obtained by calling + * {@link java.util.spi.ToolProvider#findFirst ToolProvider.findFirst} + * or the {@link java.util.ServiceLoader service loader} with the name + * {@code "javap"} or {@code "jdeps"} as appropriate. + * + *

+ * jdeprscan only exists as a command line tool, and does not provide + * any direct API. + * + *

+ *
Tool Guides: + *
{@extLink javap_tool_reference javap}, + * {@extLink jdeprscan_tool_reference jdeprscan}, + * {@extLink jdeps_tool_reference jdeps} + *
+ * + * @provides java.util.spi.ToolProvider + * + * @moduleGraph + * @since 9 */ module jdk.jdeps { requires java.base; diff --git a/langtools/src/jdk.jshell/share/classes/module-info.java b/langtools/src/jdk.jshell/share/classes/module-info.java index 8cf9bb038c3..e7d55d5838f 100644 --- a/langtools/src/jdk.jshell/share/classes/module-info.java +++ b/langtools/src/jdk.jshell/share/classes/module-info.java @@ -25,10 +25,10 @@ /** * This module provides support for - * Java™ Programming Language 'snippet' evaluating tools, such as - * Read-Eval-Print Loops (REPLs). + * Java Programming Language 'snippet' evaluating tools, such as + * Read-Eval-Print Loops (REPLs), including the {@index jshell jshell tool} tool. * Separate packages support building tools, configuring the execution of tools, - * and programmatically launching the existing Java™ shell tool. + * and programmatically launching the existing Java shell tool. *

* The {@link jdk.jshell} is the package for creating 'snippet' evaluating tools. * Generally, this is only package that would be needed for creating tools. @@ -42,8 +42,8 @@ * implementations. *

*

- * The {@link jdk.jshell.tool} supports programmatically launching the - * "jshell tool". + * The {@link jdk.jshell.tool} package supports programmatically launching the + * jshell tool. *

*

* The {@link jdk.jshell.execution} package contains implementations of the @@ -52,6 +52,15 @@ * definitions. *

* + *
+ *
Tool Guides: + *
{@extLink jshell_tool_reference jshell} + *
+ * + * @provides javax.tools.Tool + * @provides jdk.jshell.spi.ExecutionControlProvider + * @uses jdk.jshell.spi.ExecutionControlProvider + * * @moduleGraph * @since 9 */ From fee5ec656a8e834f697bc09a0f4dd0075b223c12 Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Fri, 16 Jun 2017 11:41:25 +0200 Subject: [PATCH 09/83] 8179556: Add specs copyright file Reviewed-by: erikj --- make/Docs.gmk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make/Docs.gmk b/make/Docs.gmk index 1e5a582a794..0abf9e1de5d 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -63,7 +63,7 @@ MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) \ # URLs JAVADOC_BASE_URL := http://www.oracle.com/pls/topic/lookup?ctx=javase9&id=homepage BUG_SUBMIT_URL := http://bugreport.java.com/bugreport/ -COPYRIGHT_URL := {@docroot}/../legal/cpyr.html +COPYRIGHT_URL := {@docroot}/../legal/copyright.html LICENSE_URL := http://www.oracle.com/technetwork/java/javase/terms/license/java9speclicense.html REDISTRIBUTION_URL := http://www.oracle.com/technetwork/java/redist-137594.html @@ -448,7 +448,7 @@ JDK_INDEX_CONTENT := \ $(JDK_INDEX_HTML): $(ECHO) '$(JDK_INDEX_CONTENT)' > $@ -JDK_INDEX_TARGETS := $(JDK_INDEX_HTML) +JDK_INDEX_TARGETS += $(JDK_INDEX_HTML) # Copy the global resources GLOBAL_SPECS_RESOURCES_DIR := $(JDK_TOPDIR)/make/data/docs-resources/ From d45f906ec449c62a6cd8fcbbaaf60df4195a3a9a Mon Sep 17 00:00:00 2001 From: Alan Bateman Date: Fri, 16 Jun 2017 09:20:15 -0700 Subject: [PATCH 10/83] 8181087: Module system implementation refresh (6/2017) Reviewed-by: sspitsyn, hseigel --- test/lib/sun/hotspot/WhiteBox.java | 1 - 1 file changed, 1 deletion(-) diff --git a/test/lib/sun/hotspot/WhiteBox.java b/test/lib/sun/hotspot/WhiteBox.java index 5a2b5078d4f..b04735febc1 100644 --- a/test/lib/sun/hotspot/WhiteBox.java +++ b/test/lib/sun/hotspot/WhiteBox.java @@ -453,7 +453,6 @@ public class WhiteBox { Object[] packages); public native void AddModuleExports(Object from_module, String pkg, Object to_module); public native void AddReadsModule(Object from_module, Object source_module); - public native void AddModulePackage(Object module, String pkg); public native void AddModuleExportsToAllUnnamed(Object module, String pkg); public native void AddModuleExportsToAll(Object module, String pkg); public native Object GetModuleByPackageName(Object ldr, String pkg); From 2f378477c4045f36afda121d196d706672bab721 Mon Sep 17 00:00:00 2001 From: Alan Bateman Date: Fri, 16 Jun 2017 09:20:23 -0700 Subject: [PATCH 11/83] 8181087: Module system implementation refresh (6/2017) Reviewed-by: sspitsyn, hseigel --- hotspot/make/symbols/symbols-unix | 1 - hotspot/src/share/vm/classfile/modules.cpp | 68 -------- hotspot/src/share/vm/classfile/modules.hpp | 8 - hotspot/src/share/vm/prims/jvm.cpp | 5 - hotspot/src/share/vm/prims/jvm.h | 10 +- hotspot/src/share/vm/prims/whitebox.cpp | 13 +- hotspot/src/share/vm/runtime/arguments.cpp | 4 +- .../runtime/modules/JVMAddModulePackage.java | 154 ------------------ .../test/runtime/modules/ModuleHelper.java | 6 - .../java.base/java/lang/ModuleHelper.java | 7 - 10 files changed, 4 insertions(+), 272 deletions(-) delete mode 100644 hotspot/test/runtime/modules/JVMAddModulePackage.java diff --git a/hotspot/make/symbols/symbols-unix b/hotspot/make/symbols/symbols-unix index 11add06efac..7828c830b4b 100644 --- a/hotspot/make/symbols/symbols-unix +++ b/hotspot/make/symbols/symbols-unix @@ -188,7 +188,6 @@ JVM_Yield JVM_AddModuleExports JVM_AddModuleExportsToAll JVM_AddModuleExportsToAllUnnamed -JVM_AddModulePackage JVM_AddReadsModule JVM_DefineModule JVM_SetBootLoaderUnnamedModule diff --git a/hotspot/src/share/vm/classfile/modules.cpp b/hotspot/src/share/vm/classfile/modules.cpp index 7328aec06fb..614986d164b 100644 --- a/hotspot/src/share/vm/classfile/modules.cpp +++ b/hotspot/src/share/vm/classfile/modules.cpp @@ -722,74 +722,6 @@ jobject Modules::get_module(Symbol* package_name, Handle h_loader, TRAPS) { return NULL; } -void Modules::add_module_package(jobject module, const char* package_name, TRAPS) { - ResourceMark rm(THREAD); - - if (module == NULL) { - THROW_MSG(vmSymbols::java_lang_NullPointerException(), - "module is null"); - } - if (package_name == NULL) { - THROW_MSG(vmSymbols::java_lang_NullPointerException(), - "package is null"); - } - ModuleEntry* module_entry = get_module_entry(module, CHECK); - if (module_entry == NULL) { - THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), - "module is invalid"); - } - if (!module_entry->is_named()) { - THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), - "module cannot be an unnamed module"); - } - if (!verify_package_name(package_name)) { - THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), - err_msg("Invalid package name: %s", package_name)); - } - - ClassLoaderData *loader_data = module_entry->loader_data(); - - // Only modules defined to either the boot or platform class loader, can define a "java/" package. - if (!loader_data->is_the_null_class_loader_data() && - !loader_data->is_platform_class_loader_data() && - (strncmp(package_name, JAVAPKG, JAVAPKG_LEN) == 0 && - (package_name[JAVAPKG_LEN] == '/' || package_name[JAVAPKG_LEN] == '\0'))) { - const char* class_loader_name = SystemDictionary::loader_name(loader_data); - size_t pkg_len = strlen(package_name); - char* pkg_name = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, pkg_len); - strncpy(pkg_name, package_name, pkg_len); - StringUtils::replace_no_expand(pkg_name, "/", "."); - const char* msg_text1 = "Class loader (instance of): "; - const char* msg_text2 = " tried to define prohibited package name: "; - size_t len = strlen(msg_text1) + strlen(class_loader_name) + strlen(msg_text2) + pkg_len + 1; - char* message = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, len); - jio_snprintf(message, len, "%s%s%s%s", msg_text1, class_loader_name, msg_text2, pkg_name); - THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), message); - } - - log_debug(module)("add_module_package(): Adding package %s to module %s", - package_name, module_entry->name()->as_C_string()); - - TempNewSymbol pkg_symbol = SymbolTable::new_symbol(package_name, CHECK); - PackageEntryTable* package_table = loader_data->packages(); - assert(package_table != NULL, "Missing package_table"); - - PackageEntry* existing_pkg = NULL; - { - MutexLocker ml(Module_lock, THREAD); - - // Check that the package does not exist in the class loader's package table. - existing_pkg = package_table->lookup_only(pkg_symbol); - if (existing_pkg == NULL) { - PackageEntry* pkg = package_table->locked_create_entry_or_null(pkg_symbol, module_entry); - assert(pkg != NULL, "Unable to create a module's package entry"); - } - } - if (existing_pkg != NULL) { - throw_dup_pkg_exception(module_entry->name()->as_C_string(), existing_pkg, CHECK); - } -} - // Export package in module to all unnamed modules. void Modules::add_module_exports_to_all_unnamed(jobject module, const char* package_name, TRAPS) { if (module == NULL) { diff --git a/hotspot/src/share/vm/classfile/modules.hpp b/hotspot/src/share/vm/classfile/modules.hpp index 4dc752c95a4..ae9781c313e 100644 --- a/hotspot/src/share/vm/classfile/modules.hpp +++ b/hotspot/src/share/vm/classfile/modules.hpp @@ -113,14 +113,6 @@ public: // Returns NULL if package is invalid or not defined by loader. static jobject get_module(Symbol* package_name, Handle h_loader, TRAPS); - // This adds package to module. - // It throws IllegalArgumentException if: - // * Module is bad - // * Module is unnamed - // * Package is not syntactically correct - // * Package is already defined for module's class loader. - static void add_module_package(jobject module, const char* package, TRAPS); - // Marks the specified package as exported to all unnamed modules. // If either module or package is null then NullPointerException is thrown. // If module or package is bad, or module is unnamed, or package is not in diff --git a/hotspot/src/share/vm/prims/jvm.cpp b/hotspot/src/share/vm/prims/jvm.cpp index 71b0ea3e2e2..675506918cf 100644 --- a/hotspot/src/share/vm/prims/jvm.cpp +++ b/hotspot/src/share/vm/prims/jvm.cpp @@ -1039,11 +1039,6 @@ JVM_ENTRY (void, JVM_AddReadsModule(JNIEnv *env, jobject from_module, jobject so Modules::add_reads_module(from_module, source_module, CHECK); JVM_END -JVM_ENTRY (void, JVM_AddModulePackage(JNIEnv *env, jobject module, const char* package)) - JVMWrapper("JVM_AddModulePackage"); - Modules::add_module_package(module, package, CHECK); -JVM_END - // Reflection support ////////////////////////////////////////////////////////////////////////////// JVM_ENTRY(jstring, JVM_GetClassName(JNIEnv *env, jclass cls)) diff --git a/hotspot/src/share/vm/prims/jvm.h b/hotspot/src/share/vm/prims/jvm.h index e105c97766d..b25724a1c7d 100644 --- a/hotspot/src/share/vm/prims/jvm.h +++ b/hotspot/src/share/vm/prims/jvm.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -466,14 +466,6 @@ JVM_AddModuleExportsToAll(JNIEnv *env, jobject from_module, const char* package) JNIEXPORT void JNICALL JVM_AddReadsModule(JNIEnv *env, jobject from_module, jobject source_module); -/* - * Add a package to a module. - * module: module that will contain the package - * package: package to add to the module - */ -JNIEXPORT void JNICALL -JVM_AddModulePackage(JNIEnv* env, jobject module, const char* package); - /* * Reflection support functions */ diff --git a/hotspot/src/share/vm/prims/whitebox.cpp b/hotspot/src/share/vm/prims/whitebox.cpp index 513dfc8b985..952aa5fa47c 100644 --- a/hotspot/src/share/vm/prims/whitebox.cpp +++ b/hotspot/src/share/vm/prims/whitebox.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2017, 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 @@ -1457,15 +1457,6 @@ WB_ENTRY(void, WB_AddReadsModule(JNIEnv* env, jobject o, jobject from_module, jo Modules::add_reads_module(from_module, source_module, CHECK); WB_END -WB_ENTRY(void, WB_AddModulePackage(JNIEnv* env, jobject o, jclass module, jstring package)) - ResourceMark rm(THREAD); - char* package_name = NULL; - if (package != NULL) { - package_name = java_lang_String::as_utf8_string(JNIHandles::resolve_non_null(package)); - } - Modules::add_module_package(module, package_name, CHECK); -WB_END - WB_ENTRY(jobject, WB_GetModuleByPackageName(JNIEnv* env, jobject o, jobject loader, jstring package)) ResourceMark rm(THREAD); char* package_name = NULL; @@ -1910,8 +1901,6 @@ static JNINativeMethod methods[] = { (void*)&WB_AddModuleExports }, {CC"AddReadsModule", CC"(Ljava/lang/Object;Ljava/lang/Object;)V", (void*)&WB_AddReadsModule }, - {CC"AddModulePackage", CC"(Ljava/lang/Object;Ljava/lang/String;)V", - (void*)&WB_AddModulePackage }, {CC"GetModuleByPackageName", CC"(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;", (void*)&WB_GetModuleByPackageName }, {CC"AddModuleExportsToAllUnnamed", CC"(Ljava/lang/Object;Ljava/lang/String;)V", diff --git a/hotspot/src/share/vm/runtime/arguments.cpp b/hotspot/src/share/vm/runtime/arguments.cpp index dbbe55489e7..92f18dd42ef 100644 --- a/hotspot/src/share/vm/runtime/arguments.cpp +++ b/hotspot/src/share/vm/runtime/arguments.cpp @@ -2937,8 +2937,8 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, bool* patch_m if (res != JNI_OK) { return res; } - } else if (match_option(option, "--permit-illegal-access")) { - if (!create_property("jdk.module.permitIllegalAccess", "true", ExternalProperty)) { + } else if (match_option(option, "--illegal-access=", &tail)) { + if (!create_property("jdk.module.illegalAccess", tail, ExternalProperty)) { return JNI_ENOMEM; } // -agentlib and -agentpath diff --git a/hotspot/test/runtime/modules/JVMAddModulePackage.java b/hotspot/test/runtime/modules/JVMAddModulePackage.java deleted file mode 100644 index dc2237f39e3..00000000000 --- a/hotspot/test/runtime/modules/JVMAddModulePackage.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright (c) 2016, 2017, 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. - * - * 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. - */ - -/* - * @test - * @modules java.base/jdk.internal.misc - * @library /test/lib .. - * @build sun.hotspot.WhiteBox - * @compile/module=java.base java/lang/ModuleHelper.java - * @run main ClassFileInstaller sun.hotspot.WhiteBox - * sun.hotspot.WhiteBox$WhiteBoxPermission - * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI JVMAddModulePackage - */ - -import static jdk.test.lib.Asserts.*; -import java.sql.Time; - -public class JVMAddModulePackage { - - public static void main(String args[]) throws Throwable { - MyClassLoader cl1 = new MyClassLoader(); - MyClassLoader cl3 = new MyClassLoader(); - Object module_one, module_two, module_three; - boolean result; - - module_one = ModuleHelper.ModuleObject("module_one", cl1, new String[] { "mypackage" }); - assertNotNull(module_one, "Module should not be null"); - ModuleHelper.DefineModule(module_one, "9.0", "module_one/here", new String[] { "mypackage" }); - module_two = ModuleHelper.ModuleObject("module_two", cl1, new String[] { "yourpackage" }); - assertNotNull(module_two, "Module should not be null"); - ModuleHelper.DefineModule(module_two, "9.0", "module_two/here", new String[] { "yourpackage" }); - module_three = ModuleHelper.ModuleObject("module_three", cl3, new String[] { "apackage/num3" }); - assertNotNull(module_three, "Module should not be null"); - ModuleHelper.DefineModule(module_three, "9.0", "module_three/here", new String[] { "apackage/num3" }); - - // Simple call - ModuleHelper.AddModulePackage(module_one, "new_package"); - - // Add a package and export it - ModuleHelper.AddModulePackage(module_one, "apackage/num3"); - ModuleHelper.AddModuleExportsToAll(module_one, "apackage/num3"); - - // Null module argument, expect an NPE - try { - ModuleHelper.AddModulePackage(null, "new_package"); - throw new RuntimeException("Failed to get the expected NPE"); - } catch(NullPointerException e) { - // Expected - } - - // Bad module argument, expect an IAE - try { - ModuleHelper.AddModulePackage(cl1, "new_package"); - throw new RuntimeException("Failed to get the expected IAE"); - } catch(IllegalArgumentException e) { - // Expected - } - - // Null package argument, expect an NPE - try { - ModuleHelper.AddModulePackage(module_one, null); - throw new RuntimeException("Failed to get the expected NPE"); - } catch(NullPointerException e) { - // Expected - } - - // Existing package, expect an ISE - try { - ModuleHelper.AddModulePackage(module_one, "yourpackage"); - throw new RuntimeException("Failed to get the expected ISE"); - } catch(IllegalStateException e) { - // Expected - } - - // Invalid package name, expect an IAE - try { - ModuleHelper.AddModulePackage(module_one, "your.apackage"); - throw new RuntimeException("Failed to get the expected IAE"); - } catch(IllegalArgumentException e) { - // Expected - } - - // Invalid package name, expect an IAE - try { - ModuleHelper.AddModulePackage(module_one, ";your/apackage"); - throw new RuntimeException("Failed to get the expected IAE"); - } catch(IllegalArgumentException e) { - // Expected - } - - // Invalid package name, expect an IAE - try { - ModuleHelper.AddModulePackage(module_one, "7[743"); - throw new RuntimeException("Failed to get the expected IAE"); - } catch(IllegalArgumentException e) { - // Expected - } - - // Empty package name, expect an IAE - try { - ModuleHelper.AddModulePackage(module_one, ""); - throw new RuntimeException("Failed to get the expected IAE"); - } catch(IllegalArgumentException e) { - // Expected - } - - // Add package named "java" to an module defined to a class loader other than the boot or platform loader. - try { - // module_one is defined to a MyClassLoader class loader. - ModuleHelper.AddModulePackage(module_one, "java/foo"); - throw new RuntimeException("Failed to get the expected IAE"); - } catch(IllegalArgumentException e) { - if (!e.getMessage().contains("prohibited package name")) { - throw new RuntimeException("Failed to get expected IAE message for prohibited package name: " + e.getMessage()); - } - } - - // Package "javabar" should be ok - ModuleHelper.AddModulePackage(module_one, "javabar"); - - // Package named "java" defined to the boot class loader, should be ok - Object module_javabase = module_one.getClass().getModule(); - ModuleHelper.AddModulePackage(module_javabase, "java/foo"); - - // Package named "java" defined to the platform class loader, should be ok - // The module java.sql is defined to the platform class loader. - java.sql.Time jst = new java.sql.Time(45000); // milliseconds - Object module_javasql = jst.getClass().getModule(); - ModuleHelper.AddModulePackage(module_javasql, "java/foo"); - } - - static class MyClassLoader extends ClassLoader { } -} - diff --git a/hotspot/test/runtime/modules/ModuleHelper.java b/hotspot/test/runtime/modules/ModuleHelper.java index e4db0f53a18..584eb3e3c88 100644 --- a/hotspot/test/runtime/modules/ModuleHelper.java +++ b/hotspot/test/runtime/modules/ModuleHelper.java @@ -49,12 +49,6 @@ public class ModuleHelper { java.lang.ModuleHelper.addReadsNoSync((Module)from, (Module)to); } - public static void AddModulePackage(Object m, String pkg) throws Throwable { - WhiteBox wb = WhiteBox.getWhiteBox(); - wb.AddModulePackage(m, pkg); - java.lang.ModuleHelper.addPackageNoSync((Module)m, pkg); - } - public static Module GetModuleByPackageName(Object ldr, String pkg) throws Throwable { WhiteBox wb = WhiteBox.getWhiteBox(); return (Module)wb.GetModuleByPackageName(ldr, pkg); diff --git a/hotspot/test/runtime/modules/java.base/java/lang/ModuleHelper.java b/hotspot/test/runtime/modules/java.base/java/lang/ModuleHelper.java index 6aef814acf2..f310a26f22f 100644 --- a/hotspot/test/runtime/modules/java.base/java/lang/ModuleHelper.java +++ b/hotspot/test/runtime/modules/java.base/java/lang/ModuleHelper.java @@ -63,11 +63,4 @@ public final class ModuleHelper { } } - /** - * Adds a package to a module without notifying the VM. - */ - public static void addPackageNoSync(Module m, String pkg) { - m.implAddPackageNoSync(pkg); - } - } From 6dc7b171069e3d018e58a641c39fd04b134cb9f7 Mon Sep 17 00:00:00 2001 From: Alan Bateman Date: Fri, 16 Jun 2017 09:21:38 -0700 Subject: [PATCH 12/83] 8181087: Module system implementation refresh (6/2017) Co-authored-by: Jan Lahoda Reviewed-by: jjg --- .../com/sun/tools/javac/comp/Modules.java | 9 +- .../com/sun/tools/javac/file/Locations.java | 37 ++++ .../tools/javac/resources/compiler.properties | 4 + .../jdk.jdeps/share/classes/module-info.java | 4 +- .../PackageClashFromRequiresInUnnamed.java | 25 +++ .../modulepath/lib1x/exported/Api1.java | 27 +++ .../modulepath/lib1x/module-info.java | 26 +++ .../modulepath/lib2x/exported/Api2.java | 27 +++ .../modulepath/lib2x/module-info.java | 26 +++ .../tools/javac/modules/AutomaticModules.java | 204 ++++++++++++++++++ .../javac/modules/PackageConflictTest.java | 55 ++++- 11 files changed, 438 insertions(+), 6 deletions(-) create mode 100644 langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/PackageClashFromRequiresInUnnamed.java create mode 100644 langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib1x/exported/Api1.java create mode 100644 langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib1x/module-info.java create mode 100644 langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib2x/exported/Api2.java create mode 100644 langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib2x/module-info.java diff --git a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java index 9b5da2bd856..32ef920cce6 100644 --- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java @@ -1574,8 +1574,13 @@ public class Modules extends JCTree.Visitor { : null; DiagnosticPosition pos = env != null ? env.tree.pos() : null; try { - log.error(pos, Errors.PackageClashFromRequires(msym, packageName, - previousModule, exportsFrom)); + if (msym.isUnnamed()) { + log.error(pos, Errors.PackageClashFromRequiresInUnnamed(packageName, + previousModule, exportsFrom)); + } else { + log.error(pos, Errors.PackageClashFromRequires(msym, packageName, + previousModule, exportsFrom)); + } } finally { if (env != null) log.useSource(origSource); diff --git a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java index a41caff182c..b46541911d4 100644 --- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java @@ -29,6 +29,7 @@ import java.io.Closeable; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; +import java.io.InputStream; import java.io.UncheckedIOException; import java.net.URI; import java.net.URL; @@ -65,6 +66,8 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; import java.util.stream.Stream; +import java.util.jar.Attributes; +import java.util.jar.Manifest; import javax.lang.model.SourceVersion; import javax.tools.JavaFileManager; @@ -1341,6 +1344,24 @@ public class Locations { String moduleName = readModuleName(moduleInfoClass); return new Pair<>(moduleName, p); } + Path mf = fs.getPath("META-INF/MANIFEST.MF"); + if (Files.exists(mf)) { + try (InputStream in = Files.newInputStream(mf)) { + Manifest man = new Manifest(in); + Attributes attrs = man.getMainAttributes(); + if (attrs != null) { + String moduleName = attrs.getValue(new Attributes.Name("Automatic-Module-Name")); + if (moduleName != null) { + if (isModuleName(moduleName)) { + return new Pair<>(moduleName, p); + } else { + log.error(Errors.LocnCantGetModuleNameForJar(p)); + return null; + } + } + } + } + } } catch (ModuleNameReader.BadClassFile e) { log.error(Errors.LocnBadModuleInfo(p)); return null; @@ -1428,6 +1449,22 @@ public class Locations { } } + //from jdk.internal.module.Checks: + /** + * Returns {@code true} if the given name is a legal module name. + */ + private boolean isModuleName(String name) { + int next; + int off = 0; + while ((next = name.indexOf('.', off)) != -1) { + String id = name.substring(off, next); + if (!SourceVersion.isName(id)) + return false; + off = next+1; + } + String last = name.substring(off); + return SourceVersion.isName(last); + } } private class ModuleSourcePathLocationHandler extends BasicLocationHandler { diff --git a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties index 7833fb21616..f7c6e90baa5 100644 --- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties @@ -2990,6 +2990,10 @@ compiler.err.package.in.other.module=\ compiler.err.package.clash.from.requires=\ module {0} reads package {1} from both {2} and {3} +# 0: name, 1: symbol, 2: symbol +compiler.err.package.clash.from.requires.in.unnamed=\ + the unnamed module reads package {0} from both {1} and {2} + # 0: string compiler.err.module.not.found.in.module.source.path=\ module {0} not found in module source path diff --git a/langtools/src/jdk.jdeps/share/classes/module-info.java b/langtools/src/jdk.jdeps/share/classes/module-info.java index a7708265097..9adb47ea15b 100644 --- a/langtools/src/jdk.jdeps/share/classes/module-info.java +++ b/langtools/src/jdk.jdeps/share/classes/module-info.java @@ -30,11 +30,9 @@ * @since 9 */ module jdk.jdeps { - requires java.base; requires java.compiler; requires jdk.compiler; - exports com.sun.tools.classfile to - jdk.jlink; + exports com.sun.tools.classfile to jdk.jlink; provides java.util.spi.ToolProvider with com.sun.tools.javap.Main.JavapToolProvider, diff --git a/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/PackageClashFromRequiresInUnnamed.java b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/PackageClashFromRequiresInUnnamed.java new file mode 100644 index 00000000000..cd884531da2 --- /dev/null +++ b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/PackageClashFromRequiresInUnnamed.java @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2017, 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. + * + * 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. + */ + +// key: compiler.err.package.clash.from.requires.in.unnamed +// options: --add-modules ALL-MODULE-PATH diff --git a/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib1x/exported/Api1.java b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib1x/exported/Api1.java new file mode 100644 index 00000000000..2fc345375bb --- /dev/null +++ b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib1x/exported/Api1.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2017, 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. + * + * 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 exported; + +public class Api1 { +} diff --git a/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib1x/module-info.java b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib1x/module-info.java new file mode 100644 index 00000000000..74f347f7c5d --- /dev/null +++ b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib1x/module-info.java @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017, 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. + * + * 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. + */ + +module lib1x { + exports exported; +} diff --git a/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib2x/exported/Api2.java b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib2x/exported/Api2.java new file mode 100644 index 00000000000..921ebb0ad41 --- /dev/null +++ b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib2x/exported/Api2.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2017, 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. + * + * 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 exported; + +public class Api2 { +} diff --git a/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib2x/module-info.java b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib2x/module-info.java new file mode 100644 index 00000000000..de0d460802a --- /dev/null +++ b/langtools/test/tools/javac/diags/examples/PackageClashFromRequiresInUnnamed/modulepath/lib2x/module-info.java @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017, 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. + * + * 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. + */ + +module lib2x { + exports exported; +} diff --git a/langtools/test/tools/javac/modules/AutomaticModules.java b/langtools/test/tools/javac/modules/AutomaticModules.java index 75b03739437..f08d6be8543 100644 --- a/langtools/test/tools/javac/modules/AutomaticModules.java +++ b/langtools/test/tools/javac/modules/AutomaticModules.java @@ -34,14 +34,18 @@ * @run main AutomaticModules */ +import java.io.File; import java.nio.file.Files; import java.nio.file.Path; import java.util.Arrays; import java.util.List; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; import toolbox.JarTask; import toolbox.JavacTask; import toolbox.Task; +import toolbox.Task.Mode; public class AutomaticModules extends ModuleTestBase { @@ -614,4 +618,204 @@ public class AutomaticModules extends ModuleTestBase { } } + @Test + public void testAutomaticModuleNameCorrect(Path base) throws Exception { + Path modulePath = base.resolve("module-path"); + + Files.createDirectories(modulePath); + + Path automaticSrc = base.resolve("automaticSrc"); + tb.writeJavaFiles(automaticSrc, "package api; public class Api {}"); + Path automaticClasses = base.resolve("automaticClasses"); + tb.createDirectories(automaticClasses); + + String automaticLog = new JavacTask(tb) + .outdir(automaticClasses) + .files(findJavaFiles(automaticSrc)) + .run() + .writeAll() + .getOutput(Task.OutputKind.DIRECT); + + if (!automaticLog.isEmpty()) + throw new Exception("expected output not found: " + automaticLog); + + Path automaticJar = modulePath.resolve("automatic-1.0.jar"); + + new JarTask(tb, automaticJar) + .baseDir(automaticClasses) + .files("api/Api.class") + .manifest("Automatic-Module-Name: custom.module.name\n\n") + .run(); + + Path src = base.resolve("src"); + + tb.writeJavaFiles(src, + "module m { requires custom.module.name; }", + "package impl; public class Impl { api.Api a; }"); + + Path classes = base.resolve("classes"); + + Files.createDirectories(classes); + + new JavacTask(tb) + .options("--module-path", modulePath.toString(), + "-XDrawDiagnostics") + .outdir(classes) + .files(findJavaFiles(src)) + .run(Task.Expect.SUCCESS) + .writeAll() + .getOutputLines(Task.OutputKind.DIRECT); + + tb.writeJavaFiles(src, + "module m { requires automatic; }"); + + List log = new JavacTask(tb) + .options("--module-path", modulePath.toString(), + "-XDrawDiagnostics") + .outdir(classes) + .files(findJavaFiles(src)) + .run(Task.Expect.FAIL) + .writeAll() + .getOutputLines(Task.OutputKind.DIRECT); + + List expected = + Arrays.asList("module-info.java:1:21: compiler.err.module.not.found: automatic", + "1 error"); + + if (!expected.equals(log)) { + throw new Exception("expected output not found: " + log); + } + } + + @Test + public void testAutomaticModuleNameIncorrect(Path base) throws Exception { + for (String name : new String[] {"", "999", "foo.class", "foo._"}) { + if (Files.isDirectory(base)) { + tb.cleanDirectory(base); + } + Path modulePath = base.resolve("module-path"); + + Files.createDirectories(modulePath); + + Path automaticSrc = base.resolve("automaticSrc"); + tb.writeJavaFiles(automaticSrc, "package api; public class Api {}"); + Path automaticClasses = base.resolve("automaticClasses"); + tb.createDirectories(automaticClasses); + + String automaticLog = new JavacTask(tb) + .outdir(automaticClasses) + .files(findJavaFiles(automaticSrc)) + .run() + .writeAll() + .getOutput(Task.OutputKind.DIRECT); + + if (!automaticLog.isEmpty()) + throw new Exception("expected output not found: " + automaticLog); + + Path automaticJar = modulePath.resolve("automatic-1.0.jar"); + + new JarTask(tb, automaticJar) + .baseDir(automaticClasses) + .files("api/Api.class") + .manifest("Automatic-Module-Name: " + name + "\n\n") + .run(); + + Path src = base.resolve("src"); + + tb.writeJavaFiles(src, + "package impl; public class Impl { api.Api a; }"); + + Path classes = base.resolve("classes"); + + Files.createDirectories(classes); + + List log = new JavacTask(tb, Mode.CMDLINE) + .options("--module-path", modulePath.toString(), + "--add-modules", "ALL-MODULE-PATH", + "-XDrawDiagnostics") + .outdir(classes) + .files(findJavaFiles(src)) + .run(Task.Expect.FAIL) + .writeAll() + .getOutputLines(Task.OutputKind.DIRECT); + + List expected = + Arrays.asList("- compiler.err.locn.cant.get.module.name.for.jar: " + + "testAutomaticModuleNameIncorrect/module-path/automatic-1.0.jar".replace("/", File.separator), + "1 error"); + + if (!expected.equals(log)) { + throw new Exception("expected output not found: " + log); + } + } + } + + @Test + public void testAutomaticModuleNameBroken(Path base) throws Exception { + Path modulePath = base.resolve("module-path"); + + Files.createDirectories(modulePath); + + Path automaticSrc = base.resolve("automaticSrc"); + tb.writeJavaFiles(automaticSrc, "package api; public class Api {}"); + Path automaticClasses = base.resolve("automaticClasses"); + tb.createDirectories(automaticClasses); + + String automaticLog = new JavacTask(tb) + .outdir(automaticClasses) + .files(findJavaFiles(automaticSrc)) + .run() + .writeAll() + .getOutput(Task.OutputKind.DIRECT); + + if (!automaticLog.isEmpty()) + throw new Exception("expected output not found: " + automaticLog); + + Path automaticJar = modulePath.resolve("automatic-1.0.jar"); + + try (ZipOutputStream out = new ZipOutputStream(Files.newOutputStream(automaticJar))) { + out.putNextEntry(new ZipEntry("api/Api.class")); + Files.copy(automaticClasses.resolve("api").resolve("Api.class"), out); + } + + Path src = base.resolve("src"); + + tb.writeJavaFiles(src, + "module m { requires automatic; }", + "package impl; public class Impl { api.Api a; }"); + + Path classes = base.resolve("classes"); + + Files.createDirectories(classes); + + new JavacTask(tb) + .options("--module-path", modulePath.toString(), + "-XDrawDiagnostics") + .outdir(classes) + .files(findJavaFiles(src)) + .run(Task.Expect.SUCCESS) + .writeAll() + .getOutputLines(Task.OutputKind.DIRECT); + + tb.writeJavaFiles(src, + "module m { requires custom.module.name; }"); + + List log = new JavacTask(tb) + .options("--module-path", modulePath.toString(), + "-XDrawDiagnostics") + .outdir(classes) + .files(findJavaFiles(src)) + .run(Task.Expect.FAIL) + .writeAll() + .getOutputLines(Task.OutputKind.DIRECT); + + List expected = + Arrays.asList("module-info.java:1:34: compiler.err.module.not.found: custom.module.name", + "1 error"); + + if (!expected.equals(log)) { + throw new Exception("expected output not found: " + log); + } + } + } diff --git a/langtools/test/tools/javac/modules/PackageConflictTest.java b/langtools/test/tools/javac/modules/PackageConflictTest.java index dda964f8731..1b6e94c441a 100644 --- a/langtools/test/tools/javac/modules/PackageConflictTest.java +++ b/langtools/test/tools/javac/modules/PackageConflictTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -277,4 +277,57 @@ public class PackageConflictTest extends ModuleTestBase { throw new Exception("expected output not found"); } } + + @Test + public void testConflictInDependenciesInUnnamed(Path base) throws Exception { + Path msp = base.resolve("module-path-source"); + Path m1 = msp.resolve("m1x"); + Path m2 = msp.resolve("m2x"); + tb.writeJavaFiles(m1, + "module m1x { exports test; }", + "package test; public class A { }"); + tb.writeJavaFiles(m2, + "module m2x { exports test; }", + "package test; public class B { }"); + Path mp = base.resolve("module-path"); + Files.createDirectories(mp); + + new JavacTask(tb) + .options("--module-source-path", msp.toString()) + .outdir(mp) + .files(findJavaFiles(msp)) + .run() + .writeAll(); + + Path src = base.resolve("src"); + + tb.writeJavaFiles(src, + "package impl; public class Impl { }"); + + Path out = base.resolve("out"); + Files.createDirectories(out); + + List log = new JavacTask(tb) + .options("-XDrawDiagnostic", + "--module-path", mp.toString(), + "--add-modules", "ALL-MODULE-PATH") + .outdir(out) + .files(findJavaFiles(src)) + .run(Task.Expect.FAIL) + .writeAll() + .getOutputLines(Task.OutputKind.DIRECT); + + List expected1 = + Arrays.asList("error: the unnamed module reads package test from both m1x and m2x", + "1 error"); + + List expected2 = + Arrays.asList("error: the unnamed module reads package test from both m2x and m1x", + "1 error"); + + if (!expected1.equals(log) && !expected2.equals(log)) { + throw new AssertionError("Unexpected output: " + log); + } + } + } From a7a368b2f9245d5da0bdaa1d2ccc3b6d46ec57a9 Mon Sep 17 00:00:00 2001 From: Doug Simon Date: Fri, 16 Jun 2017 12:18:46 -0700 Subject: [PATCH 13/83] 8182310: [AOT][JVMCI] Get host class of VM anonymous class Add missing JVMCI functionality Reviewed-by: dlong, kvn --- .../src/jdk/vm/ci/hotspot/CompilerToVM.java | 5 +++++ .../HotSpotResolvedObjectTypeImpl.java | 8 +++++++ .../hotspot/HotSpotResolvedPrimitiveType.java | 5 +++++ .../src/jdk/vm/ci/meta/ResolvedJavaType.java | 7 ++++++ .../src/share/vm/jvmci/jvmciCompilerToVM.cpp | 8 +++++++ .../ci/runtime/test/TestResolvedJavaType.java | 22 +++++++++++++++++++ 6 files changed, 55 insertions(+) diff --git a/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java b/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java index a5c0c7c3b62..450c1dfc4dd 100644 --- a/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java +++ b/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java @@ -644,4 +644,9 @@ final class CompilerToVM { * {@link Long} */ native Object getFlagValue(String name); + + /** + * Gets the host class for {@code type}. + */ + native HotSpotResolvedObjectTypeImpl getHostClass(HotSpotResolvedObjectTypeImpl type); } diff --git a/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java b/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java index a6d3428cccf..3b424770ca1 100644 --- a/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java +++ b/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java @@ -411,6 +411,14 @@ final class HotSpotResolvedObjectTypeImpl extends HotSpotResolvedJavaType implem return false; } + @Override + public ResolvedJavaType getHostClass() { + if (isArray()) { + return null; + } + return compilerToVM().getHostClass(this); + } + @Override public boolean isJavaLangObject() { return javaClass.equals(Object.class); diff --git a/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedPrimitiveType.java b/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedPrimitiveType.java index 9c32e8d0894..784c9aa184e 100644 --- a/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedPrimitiveType.java +++ b/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedPrimitiveType.java @@ -153,6 +153,11 @@ public final class HotSpotResolvedPrimitiveType extends HotSpotResolvedJavaType return other.equals(this); } + @Override + public ResolvedJavaType getHostClass() { + return null; + } + @Override public JavaKind getJavaKind() { return kind; diff --git a/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java b/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java index 891e7943de3..593d4f36eb9 100644 --- a/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java +++ b/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java @@ -104,6 +104,13 @@ public interface ResolvedJavaType extends JavaType, ModifiersProvider, Annotated */ boolean isAssignableFrom(ResolvedJavaType other); + /** + * Returns the {@link ResolvedJavaType} object representing the host class of this VM anonymous + * class (as opposed to the unrelated concept specified by {@link Class#isAnonymousClass()}) or + * {@code null} if this object does not represent a VM anonymous class. + */ + ResolvedJavaType getHostClass(); + /** * Returns true if this type is exactly the type {@link java.lang.Object}. */ diff --git a/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp b/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp index 6f02a6ce79e..1e554a3f4b6 100644 --- a/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp +++ b/hotspot/src/share/vm/jvmci/jvmciCompilerToVM.cpp @@ -1687,6 +1687,13 @@ C2V_VMENTRY(jlong, getFingerprint, (JNIEnv*, jobject, jlong metaspace_klass)) } C2V_END +C2V_VMENTRY(jobject, getHostClass, (JNIEnv*, jobject, jobject jvmci_type)) + InstanceKlass* k = InstanceKlass::cast(CompilerToVM::asKlass(jvmci_type)); + InstanceKlass* host = k->host_klass(); + oop result = CompilerToVM::get_jvmci_type(host, CHECK_NULL); + return JNIHandles::make_local(THREAD, result); +C2V_END + C2V_VMENTRY(int, interpreterFrameSize, (JNIEnv*, jobject, jobject bytecode_frame_handle)) if (bytecode_frame_handle == NULL) { THROW_0(vmSymbols::java_lang_NullPointerException()); @@ -1817,6 +1824,7 @@ JNINativeMethod CompilerToVM::methods[] = { {CC "flushDebugOutput", CC "()V", FN_PTR(flushDebugOutput)}, {CC "methodDataProfileDataSize", CC "(JI)I", FN_PTR(methodDataProfileDataSize)}, {CC "getFingerprint", CC "(J)J", FN_PTR(getFingerprint)}, + {CC "getHostClass", CC "(" HS_RESOLVED_KLASS ")" HS_RESOLVED_KLASS, FN_PTR(getHostClass)}, {CC "interpreterFrameSize", CC "(" BYTECODE_FRAME ")I", FN_PTR(interpreterFrameSize)}, {CC "compileToBytecode", CC "(" OBJECT ")V", FN_PTR(compileToBytecode)}, {CC "getFlagValue", CC "(" STRING ")" OBJECT, FN_PTR(getFlagValue)}, diff --git a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java index b732aca979a..516e793749c 100644 --- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java +++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java @@ -54,6 +54,7 @@ import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.Arrays; import java.util.Collections; +import java.util.function.Supplier; import java.util.HashMap; import java.util.HashSet; import java.util.Map; @@ -142,6 +143,27 @@ public class TestResolvedJavaType extends TypeUniverse { } } + @Test + public void getHostClassTest() { + for (Class c : classes) { + ResolvedJavaType type = metaAccess.lookupJavaType(c); + ResolvedJavaType host = type.getHostClass(); + assertNull(host); + } + + class LocalClass {} + Cloneable clone = new Cloneable() {}; + assertNull(metaAccess.lookupJavaType(LocalClass.class).getHostClass()); + assertNull(metaAccess.lookupJavaType(clone.getClass()).getHostClass()); + + Supplier lambda = () -> () -> System.out.println("run"); + ResolvedJavaType lambdaType = metaAccess.lookupJavaType(lambda.getClass()); + ResolvedJavaType nestedLambdaType = metaAccess.lookupJavaType(lambda.get().getClass()); + assertNotNull(lambdaType.getHostClass()); + assertNotNull(nestedLambdaType.getHostClass()); + assertEquals(lambdaType.getHostClass(), nestedLambdaType.getHostClass()); + } + @Test public void getModifiersTest() { for (Class c : classes) { From 6534a8605046bdfa765ce05c88dccf621b113151 Mon Sep 17 00:00:00 2001 From: Mark Sheppard Date: Fri, 16 Jun 2017 20:37:39 +0100 Subject: [PATCH 14/83] 8181836: BadKindHelper.html and BoundsHelper.html contains broken link in the javadoc Reviewed-by: chegar --- .../java.corba/share/classes/org/omg/CORBA/BoundsHelper.java | 4 ++-- .../classes/org/omg/CORBA/ORBPackage/InvalidNameHelper.java | 4 ++-- .../classes/org/omg/CORBA/TypeCodePackage/BadKindHelper.java | 4 ++-- .../classes/org/omg/CORBA/TypeCodePackage/BoundsHelper.java | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/corba/src/java.corba/share/classes/org/omg/CORBA/BoundsHelper.java b/corba/src/java.corba/share/classes/org/omg/CORBA/BoundsHelper.java index 52f2128c51e..0d5d6cc9533 100644 --- a/corba/src/java.corba/share/classes/org/omg/CORBA/BoundsHelper.java +++ b/corba/src/java.corba/share/classes/org/omg/CORBA/BoundsHelper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -29,7 +29,7 @@ package org.omg.CORBA; /** * This Helper class is used to facilitate the marshalling of {@code Bounds}. * For more information on Helper files, see - * + * * "Generated Files: Helper Files". */ diff --git a/corba/src/java.corba/share/classes/org/omg/CORBA/ORBPackage/InvalidNameHelper.java b/corba/src/java.corba/share/classes/org/omg/CORBA/ORBPackage/InvalidNameHelper.java index 150f6374e80..afb6dac4e54 100644 --- a/corba/src/java.corba/share/classes/org/omg/CORBA/ORBPackage/InvalidNameHelper.java +++ b/corba/src/java.corba/share/classes/org/omg/CORBA/ORBPackage/InvalidNameHelper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -30,7 +30,7 @@ package org.omg.CORBA.ORBPackage; * This Helper class is used to facilitate the marshalling of * {@code ORBPackage/InvalidName}. * For more information on Helper files, see - * + * * "Generated Files: Helper Files". */ diff --git a/corba/src/java.corba/share/classes/org/omg/CORBA/TypeCodePackage/BadKindHelper.java b/corba/src/java.corba/share/classes/org/omg/CORBA/TypeCodePackage/BadKindHelper.java index 3db1ad89f54..b9c17569949 100644 --- a/corba/src/java.corba/share/classes/org/omg/CORBA/TypeCodePackage/BadKindHelper.java +++ b/corba/src/java.corba/share/classes/org/omg/CORBA/TypeCodePackage/BadKindHelper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -30,7 +30,7 @@ package org.omg.CORBA.TypeCodePackage; * This Helper class is used to facilitate the marshalling of * {@code TypeCodePackage/BadKind}. * For more information on Helper files, see - * + * * "Generated Files: Helper Files". */ diff --git a/corba/src/java.corba/share/classes/org/omg/CORBA/TypeCodePackage/BoundsHelper.java b/corba/src/java.corba/share/classes/org/omg/CORBA/TypeCodePackage/BoundsHelper.java index 1a9aeb71e2b..5c1c89f029c 100644 --- a/corba/src/java.corba/share/classes/org/omg/CORBA/TypeCodePackage/BoundsHelper.java +++ b/corba/src/java.corba/share/classes/org/omg/CORBA/TypeCodePackage/BoundsHelper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -30,7 +30,7 @@ package org.omg.CORBA.TypeCodePackage; * This Helper class is used to facilitate the marshalling of * {@code TypeCodePackage/Bounds}. * For more information on Helper files, see - * + * * "Generated Files: Helper Files". */ From 2a168d142652d1d99ceaae700f78a1fbf7798b6d Mon Sep 17 00:00:00 2001 From: Poonam Bajaj Date: Fri, 16 Jun 2017 22:10:34 +0000 Subject: [PATCH 15/83] 8178536: OOM ERRORS + SERVICE-THREAD TAKES A PROCESSOR TO 100% Clear the pending OOM exception in SensorInfo::trigger() Reviewed-by: mchung, dcubed --- .../share/vm/services/lowMemoryDetector.cpp | 38 +++++++++++++++---- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/hotspot/src/share/vm/services/lowMemoryDetector.cpp b/hotspot/src/share/vm/services/lowMemoryDetector.cpp index 33e1f45957b..f7553f562cc 100644 --- a/hotspot/src/share/vm/services/lowMemoryDetector.cpp +++ b/hotspot/src/share/vm/services/lowMemoryDetector.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2017, 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 @@ -296,19 +296,41 @@ void SensorInfo::trigger(int count, TRAPS) { Klass* k = Management::sun_management_Sensor_klass(CHECK); instanceKlassHandle sensorKlass (THREAD, k); Handle sensor_h(THREAD, _sensor_obj); - Handle usage_h = MemoryService::create_MemoryUsage_obj(_usage, CHECK); + + Symbol* trigger_method_signature; JavaValue result(T_VOID); JavaCallArguments args(sensor_h); args.push_int((int) count); - args.push_oop(usage_h); + + Handle usage_h = MemoryService::create_MemoryUsage_obj(_usage, THREAD); + // Call Sensor::trigger(int, MemoryUsage) to send notification to listeners. + // When OOME occurs and fails to allocate MemoryUsage object, call + // Sensor::trigger(int) instead. The pending request will be processed + // but no notification will be sent. + if (HAS_PENDING_EXCEPTION) { + assert((PENDING_EXCEPTION->is_a(SystemDictionary::OutOfMemoryError_klass())), "we expect only an OOME here"); + CLEAR_PENDING_EXCEPTION; + trigger_method_signature = vmSymbols::int_void_signature(); + } else { + trigger_method_signature = vmSymbols::trigger_method_signature(); + args.push_oop(usage_h); + } JavaCalls::call_virtual(&result, - sensorKlass, - vmSymbols::trigger_name(), - vmSymbols::trigger_method_signature(), - &args, - CHECK); + sensorKlass, + vmSymbols::trigger_name(), + trigger_method_signature, + &args, + THREAD); + + if (HAS_PENDING_EXCEPTION) { + // We just clear the OOM pending exception that we might have encountered + // in Java's tiggerAction(), and continue with updating the counters since + // the Java counters have been updated too. + assert((PENDING_EXCEPTION->is_a(SystemDictionary::OutOfMemoryError_klass())), "we expect only an OOME here"); + CLEAR_PENDING_EXCEPTION; + } } { From cd3957ce2e79877c39e2b2a5f6a0b1f6b6253537 Mon Sep 17 00:00:00 2001 From: Jonathan Gibbons Date: Fri, 16 Jun 2017 15:29:16 -0700 Subject: [PATCH 16/83] 8182406: Add missing legal file for jquery Reviewed-by: mchung --- .../src/jdk.javadoc/share/legal/jquery.md | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 langtools/src/jdk.javadoc/share/legal/jquery.md diff --git a/langtools/src/jdk.javadoc/share/legal/jquery.md b/langtools/src/jdk.javadoc/share/legal/jquery.md new file mode 100644 index 00000000000..197afc01a58 --- /dev/null +++ b/langtools/src/jdk.javadoc/share/legal/jquery.md @@ -0,0 +1,73 @@ +## jQuery v1.20.2 + +### jQuery License +
+jQuery v 1.10.2
+Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
+http://jquery.com/
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+******************************************
+
+The jQuery JavaScript Library v1.10.2 also includes Sizzle.js
+
+Sizzle.js includes the following license:
+
+Copyright JS Foundation and other contributors, https://js.foundation/
+
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/jquery/sizzle
+
+The following license applies to all parts of this software except as
+documented below:
+
+====
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+====
+
+All files located in the node_modules and external directories are
+externally maintained libraries used by this software which have their
+own licenses; we recommend you read them, as their terms may differ from
+the terms above.
+
+********************* 
+
+
From e72b5f7d8af1336045cfbca05cb187ccb30aada5 Mon Sep 17 00:00:00 2001 From: Lance Andersen Date: Fri, 16 Jun 2017 19:12:34 -0400 Subject: [PATCH 17/83] 8182405: add legal file for freebxml Reviewed-by: mchung --- .../src/jdk.xml.bind/share/legal/freebxml.md | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 jaxws/src/jdk.xml.bind/share/legal/freebxml.md diff --git a/jaxws/src/jdk.xml.bind/share/legal/freebxml.md b/jaxws/src/jdk.xml.bind/share/legal/freebxml.md new file mode 100644 index 00000000000..1648e61e928 --- /dev/null +++ b/jaxws/src/jdk.xml.bind/share/legal/freebxml.md @@ -0,0 +1,58 @@ +## freebXML v3.1 + +### freebXML License v1.1.5 +
+freebxml: Copyright (c) 2001 freebxml.org. All rights reserved.
+
+The names "The freebXML Registry Project" and "freebxml Software Foundation" must not be 
+used to endorse or promote products derived from this software or be used in a product 
+name without prior written permission. For written permission, 
+please contact ebxmlrr-team@lists.sourceforge.net.
+
+This software consists of voluntary contributions made by many individuals on behalf of 
+the the freebxml Software Foundation. For more information on the freebxml Software 
+Foundation, please see .
+
+This product includes software developed by the Apache Software Foundation 
+(http://www.apache.org/).
+
+The freebxml License, Version 1.1 5
+Copyright (c) 2001 freebxml.org. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are 
+permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of 
+conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, this list 
+of conditions and the following disclaimer in the documentation and/or other materials 
+provided with the distribution.
+
+3. The end-user documentation included with the redistribution, if any, must include the 
+following acknowlegement:
+
+"This product includes software developed by freebxml.org (http://www.freebxml.org/)."
+
+Alternately, this acknowlegement may appear in the software itself, if and wherever 
+such third-party acknowlegements normally appear.
+
+4. The names "The freebXML Registry Project", "freebxml Software Foundation" must not be 
+used to endorse or promote products derived from this software without prior written 
+permission. For written permission, please contact ebxmlrr-team@lists.sourceforge.net.
+
+5. Products derived from this software may not be called "freebxml", "freebXML Registry" 
+nor may freebxml" appear in their names without prior written permission of the 
+freebxml Group.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, 
+BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE freebxml SOFTWARE FOUNDATION OR 
+ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+
+
\ No newline at end of file From bd5e472874e66e514008cd91dee5b7e412ce72f6 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Sat, 17 Jun 2017 11:50:34 -0700 Subject: [PATCH 18/83] 8182416: Clean up module-info.java like move requires transitive adjacent to exports Reviewed-by: alanb --- corba/src/java.corba/share/classes/module-info.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/corba/src/java.corba/share/classes/module-info.java b/corba/src/java.corba/share/classes/module-info.java index 0d3fbe284d3..f20ef16d44d 100644 --- a/corba/src/java.corba/share/classes/module-info.java +++ b/corba/src/java.corba/share/classes/module-info.java @@ -26,18 +26,21 @@ /** * Defines the Java binding of the OMG CORBA APIs, and the RMI-IIOP API. * + *

This module is upgradeble. + * * @moduleGraph * @since 9 */ @Deprecated(since="9", forRemoval=true) module java.corba { - requires transitive java.desktop; - requires transitive java.rmi; requires java.logging; requires java.naming; requires java.transaction; requires jdk.unsupported; + requires transitive java.desktop; + requires transitive java.rmi; + exports javax.activity; exports javax.rmi; exports javax.rmi.CORBA; From d33d6dc145c2a0881f383211e6ba6c216c78d469 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Sat, 17 Jun 2017 11:50:39 -0700 Subject: [PATCH 19/83] 8182416: Clean up module-info.java like move requires transitive adjacent to exports Reviewed-by: alanb --- jaxp/src/java.xml/share/classes/module-info.java | 2 ++ jaxp/src/jdk.xml.dom/share/classes/module-info.java | 1 + 2 files changed, 3 insertions(+) diff --git a/jaxp/src/java.xml/share/classes/module-info.java b/jaxp/src/java.xml/share/classes/module-info.java index 683c524c87f..584b7f11854 100644 --- a/jaxp/src/java.xml/share/classes/module-info.java +++ b/jaxp/src/java.xml/share/classes/module-info.java @@ -67,6 +67,7 @@ module java.xml { exports org.xml.sax; exports org.xml.sax.ext; exports org.xml.sax.helpers; + exports com.sun.org.apache.xml.internal.dtm to java.xml.crypto; exports com.sun.org.apache.xml.internal.utils to @@ -83,6 +84,7 @@ module java.xml { java.xml.crypto; // reflection access from com.sun.xml.internal.ws.api.streaming.XMLStreamWriterFactory exports com.sun.xml.internal.stream.writers to java.xml.ws; + uses javax.xml.datatype.DatatypeFactory; uses javax.xml.parsers.DocumentBuilderFactory; uses javax.xml.parsers.SAXParserFactory; diff --git a/jaxp/src/jdk.xml.dom/share/classes/module-info.java b/jaxp/src/jdk.xml.dom/share/classes/module-info.java index 24b90c723f5..d033c2a76a6 100644 --- a/jaxp/src/jdk.xml.dom/share/classes/module-info.java +++ b/jaxp/src/jdk.xml.dom/share/classes/module-info.java @@ -32,6 +32,7 @@ */ module jdk.xml.dom { requires transitive java.xml; + exports org.w3c.dom.css; exports org.w3c.dom.html; exports org.w3c.dom.stylesheets; From 25f156ee338fb7ab8d29d77dbe11e4fbe319d316 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Sat, 17 Jun 2017 11:50:42 -0700 Subject: [PATCH 20/83] 8182416: Clean up module-info.java like move requires transitive adjacent to exports Reviewed-by: alanb --- .../share/classes/module-info.java | 4 ++-- .../share/classes/module-info.java | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/nashorn/src/jdk.scripting.nashorn.shell/share/classes/module-info.java b/nashorn/src/jdk.scripting.nashorn.shell/share/classes/module-info.java index 94ce60e239f..8f3a13550f4 100644 --- a/nashorn/src/jdk.scripting.nashorn.shell/share/classes/module-info.java +++ b/nashorn/src/jdk.scripting.nashorn.shell/share/classes/module-info.java @@ -38,9 +38,9 @@ * @since 9 */ module jdk.scripting.nashorn.shell { - requires java.desktop; requires java.compiler; - requires jdk.scripting.nashorn; + requires java.desktop; requires jdk.internal.le; + requires jdk.scripting.nashorn; } diff --git a/nashorn/src/jdk.scripting.nashorn/share/classes/module-info.java b/nashorn/src/jdk.scripting.nashorn/share/classes/module-info.java index dbe121fcd94..a73f3a57552 100644 --- a/nashorn/src/jdk.scripting.nashorn/share/classes/module-info.java +++ b/nashorn/src/jdk.scripting.nashorn/share/classes/module-info.java @@ -142,9 +142,10 @@ ScriptEngine nashornEngine = new ScriptEngineManager().getEngineByName("nashorn" */ module jdk.scripting.nashorn { requires java.logging; - requires transitive java.scripting; requires jdk.dynalink; + requires transitive java.scripting; + exports jdk.nashorn.api.scripting; exports jdk.nashorn.api.tree; @@ -155,9 +156,9 @@ module jdk.scripting.nashorn { exports jdk.nashorn.tools to jdk.scripting.nashorn.shell; - provides javax.script.ScriptEngineFactory - with jdk.nashorn.api.scripting.NashornScriptEngineFactory; + provides javax.script.ScriptEngineFactory with + jdk.nashorn.api.scripting.NashornScriptEngineFactory; - provides jdk.dynalink.linker.GuardingDynamicLinkerExporter - with jdk.nashorn.api.linker.NashornLinkerExporter; + provides jdk.dynalink.linker.GuardingDynamicLinkerExporter with + jdk.nashorn.api.linker.NashornLinkerExporter; } From 960807e246238cfd5379817c7a48810bf7c68303 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Sat, 17 Jun 2017 11:50:45 -0700 Subject: [PATCH 21/83] 8182416: Clean up module-info.java like move requires transitive adjacent to exports Reviewed-by: alanb --- .../share/classes/module-info.java | 22 +++++----- .../share/classes/module-info.java | 17 ++++---- .../share/classes/module-info.java | 15 +++---- .../sun/tools/jdeps/ModuleInfoBuilder.java | 41 +++++++++++++++---- .../jdk.jdeps/share/classes/module-info.java | 1 + .../jdk.jshell/share/classes/module-info.java | 23 ++++++----- 6 files changed, 75 insertions(+), 44 deletions(-) diff --git a/langtools/src/java.compiler/share/classes/module-info.java b/langtools/src/java.compiler/share/classes/module-info.java index b7fbef6664d..561e02dbfda 100644 --- a/langtools/src/java.compiler/share/classes/module-info.java +++ b/langtools/src/java.compiler/share/classes/module-info.java @@ -23,16 +23,18 @@ * questions. */ - /** - * Defines the Language Model, Annotation Processing, and Java Compiler APIs. - *

- * These APIs model declarations and types of the Java programming language, - * and define interfaces for tools such as compilers which can be invoked - * from a program. - * - * @moduleGraph - * @since 9 - */ +/** + * Defines the Language Model, Annotation Processing, and Java Compiler APIs. + *

+ * These APIs model declarations and types of the Java programming language, + * and define interfaces for tools such as compilers which can be invoked + * from a program. + *

+ * This module is upgradeble. + * + * @moduleGraph + * @since 9 + */ module java.compiler { exports javax.annotation.processing; exports javax.lang.model; diff --git a/langtools/src/jdk.compiler/share/classes/module-info.java b/langtools/src/jdk.compiler/share/classes/module-info.java index 5bfb4310e68..c2603662e8c 100644 --- a/langtools/src/jdk.compiler/share/classes/module-info.java +++ b/langtools/src/jdk.compiler/share/classes/module-info.java @@ -88,6 +88,7 @@ module jdk.compiler { exports com.sun.source.tree; exports com.sun.source.util; exports com.sun.tools.javac; + exports com.sun.tools.doclint to jdk.javadoc; exports com.sun.tools.javac.api to @@ -127,16 +128,16 @@ module jdk.compiler { uses com.sun.source.util.Plugin; uses com.sun.tools.javac.platform.PlatformProvider; - provides java.util.spi.ToolProvider - with com.sun.tools.javac.main.JavacToolProvider; + provides java.util.spi.ToolProvider with + com.sun.tools.javac.main.JavacToolProvider; - provides com.sun.tools.javac.platform.PlatformProvider - with com.sun.tools.javac.platform.JDKPlatformProvider; + provides com.sun.tools.javac.platform.PlatformProvider with + com.sun.tools.javac.platform.JDKPlatformProvider; - provides javax.tools.JavaCompiler - with com.sun.tools.javac.api.JavacTool; + provides javax.tools.JavaCompiler with + com.sun.tools.javac.api.JavacTool; - provides javax.tools.Tool - with com.sun.tools.javac.api.JavacTool; + provides javax.tools.Tool with + com.sun.tools.javac.api.JavacTool; } diff --git a/langtools/src/jdk.javadoc/share/classes/module-info.java b/langtools/src/jdk.javadoc/share/classes/module-info.java index a5de5c4e036..d4973a4652b 100644 --- a/langtools/src/jdk.javadoc/share/classes/module-info.java +++ b/langtools/src/jdk.javadoc/share/classes/module-info.java @@ -58,9 +58,10 @@ * @since 9 */ module jdk.javadoc { + requires java.xml; + requires transitive java.compiler; requires transitive jdk.compiler; - requires java.xml; exports com.sun.javadoc; exports com.sun.tools.doclets; @@ -69,13 +70,13 @@ module jdk.javadoc { exports jdk.javadoc.doclet; - provides java.util.spi.ToolProvider - with jdk.javadoc.internal.tool.JavadocToolProvider; + provides java.util.spi.ToolProvider with + jdk.javadoc.internal.tool.JavadocToolProvider; - provides javax.tools.DocumentationTool - with jdk.javadoc.internal.api.JavadocTool; + provides javax.tools.DocumentationTool with + jdk.javadoc.internal.api.JavadocTool; - provides javax.tools.Tool - with jdk.javadoc.internal.api.JavadocTool; + provides javax.tools.Tool with + jdk.javadoc.internal.api.JavadocTool; } diff --git a/langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleInfoBuilder.java b/langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleInfoBuilder.java index 1843ea0ffb5..846e1686423 100644 --- a/langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleInfoBuilder.java +++ b/langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/ModuleInfoBuilder.java @@ -203,21 +203,43 @@ public class ModuleInfoBuilder { writer.format("%smodule %s {%n", open ? "open " : "", md.name()); Map modules = configuration.getModules(); - // first print the JDK modules - md.requires().stream() - .filter(req -> !req.name().equals("java.base")) // implicit requires - .sorted(Comparator.comparing(Requires::name)) - .forEach(req -> writer.format(" requires %s;%n", - toString(req.modifiers(), req.name()))); + + // first print requires + Set reqs = md.requires().stream() + .filter(req -> !req.name().equals("java.base") && req.modifiers().isEmpty()) + .collect(Collectors.toSet()); + reqs.stream() + .sorted(Comparator.comparing(Requires::name)) + .forEach(req -> writer.format(" requires %s;%n", + toString(req.modifiers(), req.name()))); + if (!reqs.isEmpty()) { + writer.println(); + } + + // requires transitive + reqs = md.requires().stream() + .filter(req -> !req.name().equals("java.base") && !req.modifiers().isEmpty()) + .collect(Collectors.toSet()); + reqs.stream() + .sorted(Comparator.comparing(Requires::name)) + .forEach(req -> writer.format(" requires %s;%n", + toString(req.modifiers(), req.name()))); + if (!reqs.isEmpty()) { + writer.println(); + } if (!open) { md.exports().stream() .peek(exp -> { if (exp.isQualified()) throw new InternalError(md.name() + " qualified exports: " + exp); - }) + }) .sorted(Comparator.comparing(Exports::source)) .forEach(exp -> writer.format(" exports %s;%n", exp.source())); + + if (!md.exports().isEmpty()) { + writer.println(); + } } md.provides().stream() @@ -228,8 +250,11 @@ public class ModuleInfoBuilder { String.format(" provides %s with%n", p.service().replace('$', '.')), ";"))) - .forEach(writer::println); + .forEach(writer::println); + if (!md.provides().isEmpty()) { + writer.println(); + } writer.println("}"); } diff --git a/langtools/src/jdk.jdeps/share/classes/module-info.java b/langtools/src/jdk.jdeps/share/classes/module-info.java index b874ca7f82e..55e202b9cb0 100644 --- a/langtools/src/jdk.jdeps/share/classes/module-info.java +++ b/langtools/src/jdk.jdeps/share/classes/module-info.java @@ -59,6 +59,7 @@ module jdk.jdeps { requires java.compiler; requires jdk.compiler; + exports com.sun.tools.classfile to jdk.jlink; provides java.util.spi.ToolProvider with diff --git a/langtools/src/jdk.jshell/share/classes/module-info.java b/langtools/src/jdk.jshell/share/classes/module-info.java index e7d55d5838f..3e06d3b7294 100644 --- a/langtools/src/jdk.jshell/share/classes/module-info.java +++ b/langtools/src/jdk.jshell/share/classes/module-info.java @@ -65,27 +65,28 @@ * @since 9 */ module jdk.jshell { - requires transitive java.compiler; - requires transitive jdk.jdi; - requires transitive java.prefs; requires java.logging; requires jdk.compiler; - requires jdk.internal.le; requires jdk.internal.ed; + requires jdk.internal.le; requires jdk.internal.opt; + requires transitive java.compiler; + requires transitive java.prefs; + requires transitive jdk.jdi; + exports jdk.jshell; - exports jdk.jshell.spi; exports jdk.jshell.execution; + exports jdk.jshell.spi; exports jdk.jshell.tool; uses jdk.jshell.spi.ExecutionControlProvider; uses jdk.internal.editor.spi.BuildInEditorProvider; - provides javax.tools.Tool - with jdk.internal.jshell.tool.JShellToolProvider; - provides jdk.jshell.spi.ExecutionControlProvider - with jdk.jshell.execution.JdiExecutionControlProvider, - jdk.jshell.execution.LocalExecutionControlProvider, - jdk.jshell.execution.FailOverExecutionControlProvider; + provides javax.tools.Tool with + jdk.internal.jshell.tool.JShellToolProvider; + provides jdk.jshell.spi.ExecutionControlProvider with + jdk.jshell.execution.JdiExecutionControlProvider, + jdk.jshell.execution.LocalExecutionControlProvider, + jdk.jshell.execution.FailOverExecutionControlProvider; } From bc6e52c2b3e1cb74b61873d0925c812157064064 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Sat, 17 Jun 2017 11:50:50 -0700 Subject: [PATCH 22/83] 8182416: Clean up module-info.java like move requires transitive adjacent to exports Reviewed-by: alanb --- hotspot/src/jdk.aot/share/classes/module-info.java | 9 ++++++++- .../share/classes/module-info.java | 6 ++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hotspot/src/jdk.aot/share/classes/module-info.java b/hotspot/src/jdk.aot/share/classes/module-info.java index 14d11197356..ced0bf61cfd 100644 --- a/hotspot/src/jdk.aot/share/classes/module-info.java +++ b/hotspot/src/jdk.aot/share/classes/module-info.java @@ -23,8 +23,15 @@ * questions. */ +/** + * Defines the Ahead-of-Time (AOT) compiler, {@index jaotc jaotc tool}, + * for compiling Java classes into AOT library. + * + * @moduleGraph + * @since 9 + */ module jdk.aot { - requires jdk.management; requires jdk.internal.vm.ci; requires jdk.internal.vm.compiler; + requires jdk.management; } diff --git a/hotspot/src/jdk.internal.vm.compiler/share/classes/module-info.java b/hotspot/src/jdk.internal.vm.compiler/share/classes/module-info.java index 783eef09fa5..0c96fff59a4 100644 --- a/hotspot/src/jdk.internal.vm.compiler/share/classes/module-info.java +++ b/hotspot/src/jdk.internal.vm.compiler/share/classes/module-info.java @@ -26,11 +26,9 @@ module jdk.internal.vm.compiler { requires java.instrument; requires java.management; - requires jdk.management; requires jdk.internal.vm.ci; - - // sun.misc.Unsafe is used - requires jdk.unsupported; + requires jdk.management; + requires jdk.unsupported; // sun.misc.Unsafe is used uses org.graalvm.compiler.code.DisassemblerProvider; uses org.graalvm.compiler.core.match.MatchStatementSet; From b55b119b302c4ac24230189081489f6983006b1f Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Sat, 17 Jun 2017 11:51:31 -0700 Subject: [PATCH 23/83] 8182416: Clean up module-info.java like move requires transitive adjacent to exports Reviewed-by: alanb --- .../share/classes/module-info.java | 5 ++- .../share/classes/module-info.java | 11 ++++-- .../share/classes/module-info.java | 2 ++ .../share/classes/module-info.java | 34 ++++++++++--------- .../share/classes/module-info.java | 7 ++-- .../jdk.xml.ws/share/classes/module-info.java | 1 + 6 files changed, 37 insertions(+), 23 deletions(-) diff --git a/jaxws/src/java.activation/share/classes/module-info.java b/jaxws/src/java.activation/share/classes/module-info.java index 8132ff67295..22b1512da9a 100644 --- a/jaxws/src/java.activation/share/classes/module-info.java +++ b/jaxws/src/java.activation/share/classes/module-info.java @@ -26,14 +26,17 @@ /** * Defines the JavaBeans Activation Framework (JAF) API. * + *

This module is upgradeble. + * * @moduleGraph * @since 9 */ @Deprecated(since="9", forRemoval=true) module java.activation { - requires transitive java.datatransfer; requires java.logging; + requires transitive java.datatransfer; + exports javax.activation; } diff --git a/jaxws/src/java.xml.bind/share/classes/module-info.java b/jaxws/src/java.xml.bind/share/classes/module-info.java index 61f80413966..e38ab7ab355 100644 --- a/jaxws/src/java.xml.bind/share/classes/module-info.java +++ b/jaxws/src/java.xml.bind/share/classes/module-info.java @@ -26,6 +26,8 @@ /** * Defines the Java Architecture for XML Binding (JAXB) API. * + *

This module is upgradeble. + * * @uses javax.xml.bind.JAXBContextFactory * * @moduleGraph @@ -33,14 +35,13 @@ */ @Deprecated(since="9", forRemoval=true) module java.xml.bind { - requires transitive java.activation; - requires transitive java.xml; requires java.compiler; requires java.desktop; requires java.logging; requires jdk.unsupported; - uses javax.xml.bind.JAXBContextFactory; + requires transitive java.activation; + requires transitive java.xml; exports javax.xml.bind; exports javax.xml.bind.annotation; @@ -48,6 +49,7 @@ module java.xml.bind { exports javax.xml.bind.attachment; exports javax.xml.bind.helpers; exports javax.xml.bind.util; + exports com.sun.istack.internal to java.xml.ws, jdk.xml.bind, @@ -147,4 +149,7 @@ module java.xml.bind { java.xml.ws, jdk.xml.bind, jdk.xml.ws; + + uses javax.xml.bind.JAXBContextFactory; + } diff --git a/jaxws/src/java.xml.ws.annotation/share/classes/module-info.java b/jaxws/src/java.xml.ws.annotation/share/classes/module-info.java index 6a16a31f6f6..768e4339611 100644 --- a/jaxws/src/java.xml.ws.annotation/share/classes/module-info.java +++ b/jaxws/src/java.xml.ws.annotation/share/classes/module-info.java @@ -27,6 +27,8 @@ * Defines a subset of the Common Annotations API to support programs running * on the Java SE Platform. * + *

This module is upgradeble. + * * @moduleGraph * @since 9 */ diff --git a/jaxws/src/java.xml.ws/share/classes/module-info.java b/jaxws/src/java.xml.ws/share/classes/module-info.java index 67ab3d18f0b..a9313c30fb8 100644 --- a/jaxws/src/java.xml.ws/share/classes/module-info.java +++ b/jaxws/src/java.xml.ws/share/classes/module-info.java @@ -27,6 +27,8 @@ * Defines the Java API for XML-Based Web Services (JAX-WS), and * the Web Services Metadata API. * + *

This module is upgradeble. + * * @uses javax.xml.soap.MessageFactory * @uses javax.xml.soap.SAAJMetaFactory * @uses javax.xml.soap.SOAPConnectionFactory @@ -38,21 +40,16 @@ */ @Deprecated(since="9", forRemoval=true) module java.xml.ws { - requires transitive java.activation; - requires transitive java.xml; - requires transitive java.xml.bind; - requires java.xml.ws.annotation; requires java.desktop; requires java.logging; requires java.management; + requires java.xml.ws.annotation; requires jdk.httpserver; requires jdk.unsupported; - uses javax.xml.ws.spi.Provider; - uses javax.xml.soap.MessageFactory; - uses javax.xml.soap.SAAJMetaFactory; - uses javax.xml.soap.SOAPConnectionFactory; - uses javax.xml.soap.SOAPFactory; + requires transitive java.activation; + requires transitive java.xml; + requires transitive java.xml.bind; exports javax.jws; exports javax.jws.soap; @@ -66,8 +63,6 @@ module java.xml.ws { exports javax.xml.ws.spi.http; exports javax.xml.ws.wsaddressing; - opens javax.xml.ws.wsaddressing to java.xml.bind; - exports com.oracle.webservices.internal.api.databinding to jdk.xml.ws; exports com.sun.xml.internal.ws.addressing to @@ -113,6 +108,13 @@ module java.xml.ws { jdk.xml.ws; exports com.sun.xml.internal.ws.wsdl.writer to jdk.xml.ws; + // JAF data handlers + exports com.sun.xml.internal.messaging.saaj.soap to + java.activation; + exports com.sun.xml.internal.ws.encoding to + java.activation; + + opens javax.xml.ws.wsaddressing to java.xml.bind; // XML document content needs to be exported opens com.sun.xml.internal.ws.runtime.config to java.xml.bind; @@ -123,10 +125,10 @@ module java.xml.ws { // classes passed to JAXBContext.newInstance for deep reflection opens com.sun.xml.internal.ws.addressing to java.xml.bind; - // JAF data handlers - exports com.sun.xml.internal.messaging.saaj.soap to - java.activation; - exports com.sun.xml.internal.ws.encoding to - java.activation; + uses javax.xml.ws.spi.Provider; + uses javax.xml.soap.MessageFactory; + uses javax.xml.soap.SAAJMetaFactory; + uses javax.xml.soap.SOAPConnectionFactory; + uses javax.xml.soap.SOAPFactory; } diff --git a/jaxws/src/jdk.xml.bind/share/classes/module-info.java b/jaxws/src/jdk.xml.bind/share/classes/module-info.java index 3f33b76c05f..2fb19012634 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/module-info.java +++ b/jaxws/src/jdk.xml.bind/share/classes/module-info.java @@ -69,15 +69,16 @@ module jdk.xml.bind { jdk.xml.ws; exports com.sun.xml.internal.xsom.parser to jdk.xml.ws; + // com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BindInfo uses JAXBContext + exports com.sun.tools.internal.xjc.generator.bean to + java.xml.bind; // XML document content needs to be exported opens com.sun.tools.internal.xjc.reader.xmlschema.bindinfo to java.xml.bind; - // com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BindInfo uses JAXBContext - exports com.sun.tools.internal.xjc.generator.bean to java.xml.bind; - uses com.sun.tools.internal.xjc.Plugin; + provides com.sun.tools.internal.xjc.Plugin with com.sun.tools.internal.xjc.addon.accessors.PluginImpl, com.sun.tools.internal.xjc.addon.at_generated.PluginImpl, diff --git a/jaxws/src/jdk.xml.ws/share/classes/module-info.java b/jaxws/src/jdk.xml.ws/share/classes/module-info.java index 81a6d04e44f..a9064619f55 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/module-info.java +++ b/jaxws/src/jdk.xml.ws/share/classes/module-info.java @@ -48,6 +48,7 @@ module jdk.xml.ws { requires jdk.xml.bind; uses com.sun.tools.internal.ws.wscompile.Plugin; + provides com.sun.tools.internal.ws.wscompile.Plugin with com.sun.tools.internal.ws.wscompile.plugin.at_generated.PluginImpl; } From 5e00da6b123ebc6c454eb07a3e6550b31696437a Mon Sep 17 00:00:00 2001 From: Aleksei Efimov Date: Sun, 18 Jun 2017 23:07:25 +0100 Subject: [PATCH 24/83] 8176508: Update JAX-WS RI integration to latest version Reviewed-by: lancea, mchung, alanb, iris --- .../classes/javax/activation/CommandInfo.java | 5 +- .../javax/activation/CommandObject.java | 3 +- .../classes/javax/activation/DataHandler.java | 3 +- .../classes/javax/activation/DataSource.java | 4 +- .../javax/activation/MailcapCommandMap.java | 47 +- .../classes/javax/activation/MimeType.java | 4 +- .../activation/MimeTypeParameterList.java | 4 +- .../activation/MimetypesFileTypeMap.java | 49 +- .../bind/marshaller/MinimumEscapeHandler.java | 18 +- .../bind/marshaller/NoEscapeHandler.java | 45 + .../internal/bind/v2/runtime/BridgeImpl.java | 4 +- .../bind/v2/runtime/MarshallerImpl.java | 20 +- .../output/FastInfosetStreamWriterOutput.java | 15 +- .../output/StAXExStreamWriterOutput.java | 5 +- .../runtime/output/XMLStreamWriterOutput.java | 99 +- .../classes/javax/xml/bind/ContextFinder.java | 165 +- .../classes/javax/xml/bind/JAXBContext.java | 68 +- .../javax/xml/bind/JAXBContextFactory.java | 31 +- .../classes/javax/xml/bind/Messages.java | 6 + .../javax/xml/bind/Messages.properties | 8 + .../classes/javax/xml/bind/ModuleUtil.java | 160 + .../classes/javax/xml/bind/Unmarshaller.java | 5 +- .../saaj/client/p2p/HttpSOAPConnection.java | 3 + .../client/p2p/HttpSOAPConnectionFactory.java | 3 +- .../packaging/mime/MessagingException.java | 3 +- .../mime/internet/BMMimeMultipart.java | 211 +- .../mime/internet/InternetHeaders.java | 6 +- .../mime/internet/MimeMultipart.java | 86 +- .../mime/internet/MimePartDataSource.java | 24 +- .../mime/internet/MimePullMultipart.java | 3 +- .../mime/internet/ParameterList.java | 9 +- .../packaging/mime/util/ASCIIUtility.java | 70 +- .../packaging/mime/util/QDecoderStream.java | 3 +- .../packaging/mime/util/QPDecoderStream.java | 6 +- .../packaging/mime/util/QPEncoderStream.java | 7 +- .../packaging/mime/util/UUDecoderStream.java | 6 +- .../saaj/soap/AttachmentPartImpl.java | 34 +- .../saaj/soap/ContextClassloaderLocal.java | 3 +- .../saaj/soap/MessageFactoryImpl.java | 4 +- .../messaging/saaj/soap/MessageImpl.java | 10 +- .../saaj/soap/SAAJMetaFactoryImpl.java | 4 +- .../saaj/soap/SOAPDocumentFragment.java | 234 ++ .../messaging/saaj/soap/SOAPDocumentImpl.java | 138 +- .../messaging/saaj/soap/SOAPFactoryImpl.java | 12 +- .../messaging/saaj/soap/SOAPIOException.java | 9 +- .../messaging/saaj/soap/SOAPPartImpl.java | 98 +- .../saaj/soap/StaxLazySourceBridge.java | 54 +- .../messaging/saaj/soap/StaxReaderBridge.java | 47 +- .../soap/dynamic/SOAPFactoryDynamicImpl.java | 4 +- .../SOAPMessageFactoryDynamicImpl.java | 3 +- .../saaj/soap/impl/BodyElementImpl.java | 8 +- .../messaging/saaj/soap/impl/BodyImpl.java | 35 +- .../messaging/saaj/soap/impl/CDATAImpl.java | 318 +- .../saaj/soap/impl/DetailEntryImpl.java | 7 +- .../messaging/saaj/soap/impl/DetailImpl.java | 19 +- .../saaj/soap/impl/ElementFactory.java | 4 +- .../messaging/saaj/soap/impl/ElementImpl.java | 284 +- .../saaj/soap/impl/EnvelopeImpl.java | 13 + .../saaj/soap/impl/FaultElementImpl.java | 1 + .../saaj/soap/impl/HeaderElementImpl.java | 16 +- .../messaging/saaj/soap/impl/HeaderImpl.java | 45 +- .../saaj/soap/impl/LocalStrings.properties | 6 +- .../saaj/soap/impl/NamedNodeMapImpl.java | 94 + .../saaj/soap/impl/SOAPCommentImpl.java | 303 +- .../saaj/soap/impl/SOAPTextImpl.java | 318 +- .../messaging/saaj/soap/impl/TextImpl.java | 342 ++ .../saaj/soap/ver1_1/Body1_1Impl.java | 6 + .../saaj/soap/ver1_1/BodyElement1_1Impl.java | 9 +- .../saaj/soap/ver1_1/Detail1_1Impl.java | 2 + .../saaj/soap/ver1_1/DetailEntry1_1Impl.java | 9 +- .../saaj/soap/ver1_1/Envelope1_1Impl.java | 2 + .../saaj/soap/ver1_1/Fault1_1Impl.java | 45 +- .../saaj/soap/ver1_1/FaultElement1_1Impl.java | 4 +- .../saaj/soap/ver1_1/Header1_1Impl.java | 6 + .../soap/ver1_1/HeaderElement1_1Impl.java | 17 +- .../saaj/soap/ver1_1/Message1_1Impl.java | 10 +- .../saaj/soap/ver1_1/SOAPFactory1_1Impl.java | 10 +- .../ver1_1/SOAPMessageFactory1_1Impl.java | 5 +- .../saaj/soap/ver1_1/SOAPPart1_1Impl.java | 6 +- .../saaj/soap/ver1_2/Body1_2Impl.java | 16 + .../saaj/soap/ver1_2/BodyElement1_2Impl.java | 8 +- .../saaj/soap/ver1_2/Detail1_2Impl.java | 5 + .../saaj/soap/ver1_2/DetailEntry1_2Impl.java | 8 +- .../saaj/soap/ver1_2/Envelope1_2Impl.java | 8 + .../saaj/soap/ver1_2/Fault1_2Impl.java | 67 +- .../saaj/soap/ver1_2/FaultElement1_2Impl.java | 12 +- .../saaj/soap/ver1_2/Header1_2Impl.java | 10 + .../soap/ver1_2/HeaderElement1_2Impl.java | 17 +- .../saaj/soap/ver1_2/Message1_2Impl.java | 6 +- .../saaj/soap/ver1_2/SOAPFactory1_2Impl.java | 10 +- .../ver1_2/SOAPMessageFactory1_2Impl.java | 5 +- .../saaj/soap/ver1_2/SOAPPart1_2Impl.java | 6 +- .../messaging/saaj/util/ByteInputStream.java | 3 +- .../messaging/saaj/util/JAXMStreamSource.java | 4 +- .../saaj/util/NamespaceContextIterator.java | 5 +- .../saaj/util/RejectDoctypeSaxFilter.java | 11 +- .../messaging/saaj/util/TeeInputStream.java | 11 +- .../util/stax/LazyEnvelopeStaxReader.java | 47 +- .../saaj/util/stax/SaajStaxWriter.java | 6 + .../saaj/util/stax/SaajStaxWriterEx.java | 14 +- .../api/message/saaj/SAAJMessageHeaders.java | 30 +- .../ws/api/server/SDDocumentSource.java | 11 +- .../api/streaming/XMLStreamReaderFactory.java | 5 +- .../api/streaming/XMLStreamWriterFactory.java | 5 +- .../xml/internal/ws/model/RuntimeModeler.java | 2 +- .../privateutil/LocalizationMessages.java | 417 +- .../attach/ContextClassloaderLocal.java | 34 +- .../ContextClassloaderLocalMessages.java | 71 + .../ws/resources/AddressingMessages.java | 655 ++-- .../ws/resources/BindingApiMessages.java | 37 +- .../internal/ws/resources/ClientMessages.java | 501 +-- .../ws/resources/DispatchMessages.java | 363 +- .../ws/resources/EncodingMessages.java | 169 +- .../ws/resources/HandlerMessages.java | 161 +- .../ws/resources/HttpserverMessages.java | 37 +- .../ws/resources/ManagementMessages.java | 185 +- .../ws/resources/ModelerMessages.java | 659 ++-- .../internal/ws/resources/PolicyMessages.java | 477 +-- .../ws/resources/ProviderApiMessages.java | 159 +- .../internal/ws/resources/SenderMessages.java | 109 +- .../internal/ws/resources/ServerMessages.java | 1269 +++--- .../internal/ws/resources/SoapMessages.java | 117 +- .../ws/resources/StreamingMessages.java | 521 +-- .../resources/TubelineassemblyMessages.java | 453 +-- .../internal/ws/resources/UtilMessages.java | 205 +- .../ws/resources/WsdlmodelMessages.java | 45 +- .../ws/resources/WsservletMessages.java | 3419 +++++++++-------- .../ws/resources/XmlmessageMessages.java | 277 +- .../internal/ws/resources/modeler.properties | 6 +- .../ws/resources/modeler_de.properties | 4 +- .../ws/resources/modeler_es.properties | 4 +- .../ws/resources/modeler_fr.properties | 4 +- .../ws/resources/modeler_it.properties | 4 +- .../ws/resources/modeler_ja.properties | 4 +- .../ws/resources/modeler_ko.properties | 4 +- .../ws/resources/modeler_pt_BR.properties | 4 +- .../ws/resources/modeler_zh_CN.properties | 4 +- .../ws/resources/modeler_zh_TW.properties | 4 +- .../ws/util/HandlerAnnotationProcessor.java | 3 +- .../sun/xml/internal/ws/util/MrJarUtil.java | 55 + .../com/sun/xml/internal/ws/util/Pool.java | 12 +- .../ws/util/exception/JAXWSExceptionBase.java | 55 +- .../pipe/AbstractSchemaValidationTube.java | 4 +- .../xml/internal/ws/util/version.properties | 2 +- .../javax/xml/soap/AttachmentPart.java | 9 +- .../share/classes/javax/xml/soap/Detail.java | 10 +- .../classes/javax/xml/soap/MimeHeaders.java | 51 +- .../share/classes/javax/xml/soap/Node.java | 5 +- .../javax/xml/soap/SAAJMetaFactory.java | 6 +- .../classes/javax/xml/soap/SOAPElement.java | 22 +- .../javax/xml/soap/SOAPElementFactory.java | 5 +- .../classes/javax/xml/soap/SOAPException.java | 8 +- .../classes/javax/xml/soap/SOAPFactory.java | 4 +- .../classes/javax/xml/soap/SOAPFault.java | 10 +- .../classes/javax/xml/soap/SOAPHeader.java | 20 +- .../classes/javax/xml/soap/SOAPMessage.java | 14 +- .../classes/javax/xml/soap/SOAPPart.java | 8 +- .../javax/xml/soap/ServiceLoaderUtil.java | 5 +- .../classes/javax/xml/soap/package-info.java | 5 +- .../share/classes/javax/xml/ws/Action.java | 8 +- .../classes/javax/xml/ws/AsyncHandler.java | 3 +- .../classes/javax/xml/ws/BindingProvider.java | 3 +- .../classes/javax/xml/ws/BindingType.java | 13 +- .../share/classes/javax/xml/ws/Dispatch.java | 4 +- .../share/classes/javax/xml/ws/Endpoint.java | 9 +- .../javax/xml/ws/EndpointReference.java | 10 +- .../classes/javax/xml/ws/FaultAction.java | 10 +- .../share/classes/javax/xml/ws/Holder.java | 3 +- .../share/classes/javax/xml/ws/Provider.java | 5 +- .../classes/javax/xml/ws/RequestWrapper.java | 6 +- .../classes/javax/xml/ws/RespectBinding.java | 4 +- .../share/classes/javax/xml/ws/Response.java | 5 +- .../classes/javax/xml/ws/ResponseWrapper.java | 6 +- .../share/classes/javax/xml/ws/Service.java | 50 +- .../classes/javax/xml/ws/ServiceMode.java | 6 +- .../classes/javax/xml/ws/WebEndpoint.java | 4 +- .../javax/xml/ws/WebServiceClient.java | 32 +- .../javax/xml/ws/WebServiceContext.java | 3 +- .../javax/xml/ws/WebServiceFeature.java | 9 +- .../javax/xml/ws/WebServiceProvider.java | 10 +- .../classes/javax/xml/ws/WebServiceRef.java | 26 +- .../classes/javax/xml/ws/WebServiceRefs.java | 4 +- .../classes/javax/xml/ws/handler/Handler.java | 4 +- .../javax/xml/ws/handler/LogicalHandler.java | 3 +- .../javax/xml/ws/handler/MessageContext.java | 14 +- .../javax/xml/ws/handler/package-info.java | 29 + .../classes/javax/xml/ws/handler/package.html | 30 - .../xml/ws/handler/soap/SOAPHandler.java | 3 +- .../xml/ws/handler/soap/package-info.java | 29 + .../javax/xml/ws/handler/soap/package.html | 30 - .../javax/xml/ws/http/package-info.java | 29 + .../classes/javax/xml/ws/http/package.html | 30 - .../classes/javax/xml/ws/soap/Addressing.java | 11 +- .../share/classes/javax/xml/ws/soap/MTOM.java | 6 +- .../javax/xml/ws/soap/package-info.java | 29 + .../classes/javax/xml/ws/soap/package.html | 30 - .../classes/javax/xml/ws/spi/Provider.java | 9 +- .../javax/xml/ws/spi/ServiceDelegate.java | 17 +- .../ws/spi/WebServiceFeatureAnnotation.java | 5 +- .../javax/xml/ws/spi/http/HttpContext.java | 5 +- .../javax/xml/ws/spi/package-info.java | 29 + .../classes/javax/xml/ws/spi/package.html | 30 - .../ws/wsaddressing/W3CEndpointReference.java | 11 +- .../share/classes/module-info.java | 12 +- .../codemodel/internal/JModuleDirective.java | 11 +- .../internal/jxc/MessageBundle.properties | 4 +- .../internal/jxc/MessageBundle_de.properties | 4 +- .../internal/jxc/MessageBundle_es.properties | 4 +- .../internal/jxc/MessageBundle_fr.properties | 4 +- .../internal/jxc/MessageBundle_it.properties | 4 +- .../internal/jxc/MessageBundle_ja.properties | 4 +- .../internal/jxc/MessageBundle_ko.properties | 4 +- .../jxc/MessageBundle_pt_BR.properties | 4 +- .../jxc/MessageBundle_zh_CN.properties | 4 +- .../jxc/MessageBundle_zh_TW.properties | 4 +- .../internal/xjc/MessageBundle.properties | 12 +- .../internal/xjc/MessageBundle_de.properties | 12 +- .../internal/xjc/MessageBundle_es.properties | 12 +- .../internal/xjc/MessageBundle_fr.properties | 12 +- .../internal/xjc/MessageBundle_it.properties | 12 +- .../internal/xjc/MessageBundle_ja.properties | 12 +- .../internal/xjc/MessageBundle_ko.properties | 12 +- .../xjc/MessageBundle_pt_BR.properties | 12 +- .../xjc/MessageBundle_zh_CN.properties | 12 +- .../xjc/MessageBundle_zh_TW.properties | 12 +- .../com/sun/tools/internal/xjc/Options.java | 298 +- .../tools/internal/xjc/api/SpecVersion.java | 18 +- .../xjc/reader/internalizer/DOMForest.java | 4 +- .../ws/processor/ProcessorException.java | 10 +- .../ws/resources/ConfigurationMessages.java | 36 +- .../ws/resources/GeneratorMessages.java | 135 +- .../ws/resources/JavacompilerMessages.java | 35 +- .../internal/ws/resources/ModelMessages.java | 715 ++-- .../ws/resources/ModelerMessages.java | 2789 +++++++------- .../ws/resources/ProcessorMessages.java | 28 +- .../internal/ws/resources/UtilMessages.java | 63 +- .../ws/resources/WebserviceapMessages.java | 1675 ++++---- .../ws/resources/WscompileMessages.java | 1188 +++--- .../internal/ws/resources/WsdlMessages.java | 1655 ++++---- .../ws/resources/newmessages.properties | 6 - .../ws/resources/wscompile.properties | 12 +- .../ws/resources/wscompile_de.properties | 6 +- .../ws/resources/wscompile_es.properties | 6 +- .../ws/resources/wscompile_fr.properties | 6 +- .../ws/resources/wscompile_it.properties | 6 +- .../ws/resources/wscompile_ja.properties | 6 +- .../ws/resources/wscompile_ko.properties | 6 +- .../ws/resources/wscompile_pt_BR.properties | 6 +- .../ws/resources/wscompile_zh_CN.properties | 6 +- .../ws/resources/wscompile_zh_TW.properties | 6 +- .../internal/ws/util/WSDLParseException.java | 10 +- .../sun/tools/internal/ws/version.properties | 2 +- .../ws/wsdl/framework/ParseException.java | 10 +- .../wsdl/framework/ValidationException.java | 10 +- .../internal/ws/wsdl/parser/DOMForest.java | 18 +- 255 files changed, 13112 insertions(+), 11291 deletions(-) create mode 100644 jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/marshaller/NoEscapeHandler.java create mode 100644 jaxws/src/java.xml.bind/share/classes/javax/xml/bind/ModuleUtil.java create mode 100644 jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPDocumentFragment.java create mode 100644 jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/NamedNodeMapImpl.java create mode 100644 jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/TextImpl.java create mode 100644 jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/sourcemodel/attach/ContextClassloaderLocalMessages.java create mode 100644 jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/MrJarUtil.java create mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/package-info.java delete mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/package.html create mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/package-info.java delete mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/package.html create mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/http/package-info.java delete mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/http/package.html create mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/package-info.java delete mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/package.html create mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/package-info.java delete mode 100644 jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/package.html delete mode 100644 jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/newmessages.properties diff --git a/jaxws/src/java.activation/share/classes/javax/activation/CommandInfo.java b/jaxws/src/java.activation/share/classes/javax/activation/CommandInfo.java index b6312e0c253..5e8d3d35dd0 100644 --- a/jaxws/src/java.activation/share/classes/javax/activation/CommandInfo.java +++ b/jaxws/src/java.activation/share/classes/javax/activation/CommandInfo.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -118,6 +118,9 @@ public class CommandInfo { * passed to the command. * @param loader The ClassLoader to be used to instantiate the bean. * @return The bean + * @exception IOException for failures reading data + * @exception ClassNotFoundException if command object class can't + * be found * @see java.beans.Beans#instantiate * @see javax.activation.CommandObject */ diff --git a/jaxws/src/java.activation/share/classes/javax/activation/CommandObject.java b/jaxws/src/java.activation/share/classes/javax/activation/CommandObject.java index 7dda0239819..1ec5849b38b 100644 --- a/jaxws/src/java.activation/share/classes/javax/activation/CommandObject.java +++ b/jaxws/src/java.activation/share/classes/javax/activation/CommandObject.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -48,6 +48,7 @@ public interface CommandObject { * * @param verb The Command Verb this object refers to. * @param dh The DataHandler. + * @exception IOException for failures accessing data */ public void setCommandContext(String verb, DataHandler dh) throws IOException; diff --git a/jaxws/src/java.activation/share/classes/javax/activation/DataHandler.java b/jaxws/src/java.activation/share/classes/javax/activation/DataHandler.java index 27f72484f69..59503997eb4 100644 --- a/jaxws/src/java.activation/share/classes/javax/activation/DataHandler.java +++ b/jaxws/src/java.activation/share/classes/javax/activation/DataHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -326,6 +326,7 @@ public class DataHandler implements Transferable { * Otherwise, {@code null} is returned. * * @return the OutputStream + * @exception IOException for failures creating the OutputStream * * @see javax.activation.DataSource#getOutputStream * @see javax.activation.URLDataSource diff --git a/jaxws/src/java.activation/share/classes/javax/activation/DataSource.java b/jaxws/src/java.activation/share/classes/javax/activation/DataSource.java index 8439eb19787..cee1018d1fd 100644 --- a/jaxws/src/java.activation/share/classes/javax/activation/DataSource.java +++ b/jaxws/src/java.activation/share/classes/javax/activation/DataSource.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -49,6 +49,7 @@ public interface DataSource { * positioned at the beginning of the data. * * @return an InputStream + * @exception IOException for failures creating the InputStream */ public InputStream getInputStream() throws IOException; @@ -60,6 +61,7 @@ public interface DataSource { * be positioned at the location the data is to be written. * * @return an OutputStream + * @exception IOException for failures creating the OutputStream */ public OutputStream getOutputStream() throws IOException; diff --git a/jaxws/src/java.activation/share/classes/javax/activation/MailcapCommandMap.java b/jaxws/src/java.activation/share/classes/javax/activation/MailcapCommandMap.java index 29bc9ad0a44..d88a4405166 100644 --- a/jaxws/src/java.activation/share/classes/javax/activation/MailcapCommandMap.java +++ b/jaxws/src/java.activation/share/classes/javax/activation/MailcapCommandMap.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -29,6 +29,8 @@ package javax.activation; import java.util.*; import java.io.*; import java.net.*; +import java.security.AccessController; +import java.security.PrivilegedAction; import com.sun.activation.registries.MailcapFile; import com.sun.activation.registries.LogSupport; @@ -48,12 +50,19 @@ import com.sun.activation.registries.LogSupport; *

    *
  1. Programatically added entries to the MailcapCommandMap instance. *
  2. The file {@code .mailcap} in the user's home directory. - *
  3. The file {@literal <}java.home{@literal >}{@code /lib/mailcap}. + *
  4. The file {@code mailcap} in the Java runtime. *
  5. The file or resources named {@code META-INF/mailcap}. *
  6. The file or resource named {@code META-INF/mailcap.default} * (usually found only in the {@code activation.jar} file). *
*

+ * (The current implementation looks for the {@code mailcap} file + * in the Java runtime in the directory java.home{@code /conf} + * if it exists, and otherwise in the directory + * java.home{@code /lib}, where java.home is the value + * of the "java.home" System property. Note that the "conf" directory was + * introduced in JDK 9.) + *

* Mailcap file format:

* * Mailcap files must conform to the mailcap @@ -120,6 +129,29 @@ public class MailcapCommandMap extends CommandMap { private MailcapFile[] DB; private static final int PROG = 0; // programmatically added entries + private static final String confDir; + + static { + String dir = null; + try { + dir = (String)AccessController.doPrivileged( + new PrivilegedAction() { + public Object run() { + String home = System.getProperty("java.home"); + String newdir = home + File.separator + "conf"; + File conf = new File(newdir); + if (conf.exists()) + return newdir + File.separator; + else + return home + File.separator + "lib" + File.separator; + } + }); + } catch (Exception ex) { + // ignore any exceptions + } + confDir = dir; + } + /** * The default Constructor. */ @@ -144,11 +176,11 @@ public class MailcapCommandMap extends CommandMap { LogSupport.log("MailcapCommandMap: load SYS"); try { // check system's home - String system_mailcap = System.getProperty("java.home") + - File.separator + "lib" + File.separator + "mailcap"; - mf = loadFile(system_mailcap); - if (mf != null) - dbv.add(mf); + if (confDir != null) { + mf = loadFile(confDir + "mailcap"); + if (mf != null) + dbv.add(mf); + } } catch (SecurityException ex) {} LogSupport.log("MailcapCommandMap: load JAR"); @@ -633,6 +665,7 @@ public class MailcapCommandMap extends CommandMap { * entries that specify a view command for the specified * MIME type are returned. * + * @param mimeType the MIME type * @return array of native command entries * @since 1.6, JAF 1.1 */ diff --git a/jaxws/src/java.activation/share/classes/javax/activation/MimeType.java b/jaxws/src/java.activation/share/classes/javax/activation/MimeType.java index 7f751fab98c..d96f454270a 100644 --- a/jaxws/src/java.activation/share/classes/javax/activation/MimeType.java +++ b/jaxws/src/java.activation/share/classes/javax/activation/MimeType.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -58,6 +58,7 @@ public class MimeType implements Externalizable { * Constructor that builds a MimeType from a String. * * @param rawdata the MIME type string + * @exception MimeTypeParseException if the MIME type can't be parsed */ public MimeType(String rawdata) throws MimeTypeParseException { parse(rawdata); @@ -258,6 +259,7 @@ public class MimeType implements Externalizable { * * @param rawdata the MIME type string to compare with * @return true if they match + * @exception MimeTypeParseException if the MIME type can't be parsed */ public boolean match(String rawdata) throws MimeTypeParseException { return match(new MimeType(rawdata)); diff --git a/jaxws/src/java.activation/share/classes/javax/activation/MimeTypeParameterList.java b/jaxws/src/java.activation/share/classes/javax/activation/MimeTypeParameterList.java index 869dcfa6752..83822fa5a66 100644 --- a/jaxws/src/java.activation/share/classes/javax/activation/MimeTypeParameterList.java +++ b/jaxws/src/java.activation/share/classes/javax/activation/MimeTypeParameterList.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -58,6 +58,7 @@ public class MimeTypeParameterList { * Constructs a new MimeTypeParameterList with the passed in data. * * @param parameterList an RFC 2045, 2046 compliant parameter list. + * @exception MimeTypeParseException if the MIME type can't be parsed */ public MimeTypeParameterList(String parameterList) throws MimeTypeParseException { @@ -71,6 +72,7 @@ public class MimeTypeParameterList { * A routine for parsing the parameter list out of a String. * * @param parameterList an RFC 2045, 2046 compliant parameter list. + * @exception MimeTypeParseException if the MIME type can't be parsed */ protected void parse(String parameterList) throws MimeTypeParseException { if (parameterList == null) diff --git a/jaxws/src/java.activation/share/classes/javax/activation/MimetypesFileTypeMap.java b/jaxws/src/java.activation/share/classes/javax/activation/MimetypesFileTypeMap.java index 430b43b1ed7..d2494634410 100644 --- a/jaxws/src/java.activation/share/classes/javax/activation/MimetypesFileTypeMap.java +++ b/jaxws/src/java.activation/share/classes/javax/activation/MimetypesFileTypeMap.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -28,6 +28,8 @@ package javax.activation; import java.io.*; import java.net.*; import java.util.*; +import java.security.AccessController; +import java.security.PrivilegedAction; import com.sun.activation.registries.MimeTypeFile; import com.sun.activation.registries.LogSupport; @@ -43,12 +45,19 @@ import com.sun.activation.registries.LogSupport; *

    *
  1. Programmatically added entries to the MimetypesFileTypeMap instance. *
  2. The file {@code .mime.types} in the user's home directory. - *
  3. The file {@literal <}java.home{@literal >}{@code /lib/mime.types}. + *
  4. The file {@code mime.types} in the Java runtime. *
  5. The file or resources named {@code META-INF/mime.types}. *
  6. The file or resource named {@code META-INF/mimetypes.default} * (usually found only in the {@code activation.jar} file). *
*

+ * (The current implementation looks for the {@code mime.types} file + * in the Java runtime in the directory java.home{@code /conf} + * if it exists, and otherwise in the directory + * java.home{@code /lib}, where java.home is the value + * of the "java.home" System property. Note that the "conf" directory was + * introduced in JDK 9.) + *

* MIME types file format: * *

{@code
@@ -72,7 +81,30 @@ public class MimetypesFileTypeMap extends FileTypeMap {
     private MimeTypeFile[] DB;
     private static final int PROG = 0;  // programmatically added entries
 
-    private static String defaultType = "application/octet-stream";
+    private static final String defaultType = "application/octet-stream";
+
+    private static final String confDir;
+
+    static {
+        String dir = null;
+        try {
+            dir = (String)AccessController.doPrivileged(
+                new PrivilegedAction() {
+                    public Object run() {
+                        String home = System.getProperty("java.home");
+                        String newdir = home + File.separator + "conf";
+                        File conf = new File(newdir);
+                        if (conf.exists())
+                            return newdir + File.separator;
+                        else
+                            return home + File.separator + "lib" + File.separator;
+                    }
+                });
+        } catch (Exception ex) {
+            // ignore any exceptions
+        }
+        confDir = dir;
+    }
 
     /**
      * The default constructor.
@@ -97,11 +129,11 @@ public class MimetypesFileTypeMap extends FileTypeMap {
         LogSupport.log("MimetypesFileTypeMap: load SYS");
         try {
             // check system's home
-            String system_mimetypes = System.getProperty("java.home") +
-                File.separator + "lib" + File.separator + "mime.types";
-            mf = loadFile(system_mimetypes);
-            if (mf != null)
-                dbv.addElement(mf);
+            if (confDir != null) {
+                mf = loadFile(confDir + "mime.types");
+                if (mf != null)
+                    dbv.addElement(mf);
+            }
         } catch (SecurityException ex) {}
 
         LogSupport.log("MimetypesFileTypeMap: load JAR");
@@ -239,6 +271,7 @@ public class MimetypesFileTypeMap extends FileTypeMap {
      * added from the named file.
      *
      * @param mimeTypeFileName  the file name
+     * @exception       IOException     for errors reading the file
      */
     public MimetypesFileTypeMap(String mimeTypeFileName) throws IOException {
         this();
diff --git a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/marshaller/MinimumEscapeHandler.java b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/marshaller/MinimumEscapeHandler.java
index d993fd6f5d1..fb83399f496 100644
--- a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/marshaller/MinimumEscapeHandler.java
+++ b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/marshaller/MinimumEscapeHandler.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, 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
@@ -48,10 +48,10 @@ public class MinimumEscapeHandler implements CharacterEscapeHandler {
         int limit = start+length;
         for (int i = start; i < limit; i++) {
             char c = ch[i];
-                if(c == '&' || c == '<' || c == '>' || c == '\r' || (c == '\"' && isAttVal) ) {
-                if(i!=start)
-                    out.write(ch,start,i-start);
-                start = i+1;
+            if (c == '&' || c == '<' || c == '>' || c == '\r' || (c == '\n' && isAttVal) || (c == '\"' && isAttVal)) {
+                if (i != start)
+                    out.write(ch, start, i - start);
+                start = i + 1;
                 switch (ch[i]) {
                     case '&':
                         out.write("&");
@@ -65,6 +65,14 @@ public class MinimumEscapeHandler implements CharacterEscapeHandler {
                     case '\"':
                         out.write(""");
                         break;
+                    case '\n':
+                    case '\r':
+                        out.write("&#");
+                        out.write(Integer.toString(c));
+                        out.write(';');
+                        break;
+                    default:
+                        throw new IllegalArgumentException("Cannot escape: '" + c + "'");
                 }
             }
         }
diff --git a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/marshaller/NoEscapeHandler.java b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/marshaller/NoEscapeHandler.java
new file mode 100644
index 00000000000..5edfb0c3aa0
--- /dev/null
+++ b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/marshaller/NoEscapeHandler.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) 2017, 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.xml.internal.bind.marshaller;
+
+import java.io.IOException;
+import java.io.Writer;
+
+/**
+ * Performs no character escaping.
+ *
+ * @author
+ *     Roman Grigoriadi (roman.grigoriadi@oracle.com)
+ */
+public class NoEscapeHandler implements CharacterEscapeHandler {
+
+    public static final NoEscapeHandler theInstance = new NoEscapeHandler();
+
+    @Override
+    public void escape(char[] ch, int start, int length, boolean isAttVal, Writer out) throws IOException {
+        out.write(ch, start, length);
+    }
+}
diff --git a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/BridgeImpl.java b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/BridgeImpl.java
index 21420097f63..86742930830 100644
--- a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/BridgeImpl.java
+++ b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/BridgeImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, 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
@@ -76,7 +76,7 @@ final class BridgeImpl extends InternalBridge {
 
     public void marshal(Marshaller _m, T t, XMLStreamWriter output) throws JAXBException {
         MarshallerImpl m = (MarshallerImpl)_m;
-        m.write(tagName,bi,t,XMLStreamWriterOutput.create(output,context),new StAXPostInitAction(output,m.serializer));
+        m.write(tagName,bi,t,XMLStreamWriterOutput.create(output,context, m.getEscapeHandler()),new StAXPostInitAction(output,m.serializer));
     }
 
     public void marshal(Marshaller _m, T t, OutputStream output, NamespaceContext nsContext) throws JAXBException {
diff --git a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/MarshallerImpl.java b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/MarshallerImpl.java
index 4891984195b..5796b019954 100644
--- a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/MarshallerImpl.java
+++ b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/MarshallerImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, 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
@@ -165,7 +165,7 @@ public /*to make unit tests happy*/ final class MarshallerImpl extends AbstractM
 
     @Override
     public void marshal(Object obj, XMLStreamWriter writer) throws JAXBException {
-        write(obj, XMLStreamWriterOutput.create(writer,context), new StAXPostInitAction(writer,serializer));
+        write(obj, XMLStreamWriterOutput.create(writer,context, escapeHandler), new StAXPostInitAction(writer,serializer));
     }
 
     @Override
@@ -371,6 +371,15 @@ public /*to make unit tests happy*/ final class MarshallerImpl extends AbstractM
     }
 
 
+    /**
+     * Returns escape handler provided with JAXB context parameters.
+     *
+     * @return escape handler
+     */
+    CharacterEscapeHandler getEscapeHandler() {
+        return escapeHandler;
+    }
+
     //
     //
     // create XMLWriter by specifing various type of output.
@@ -436,13 +445,14 @@ public /*to make unit tests happy*/ final class MarshallerImpl extends AbstractM
         if(encoding.equals("UTF-8")) {
             Encoded[] table = context.getUTF8NameTable();
             final UTF8XmlOutput out;
+            CharacterEscapeHandler ceh = createEscapeHandler(encoding);
             if(isFormattedOutput())
-                out = new IndentingUTF8XmlOutput(os, indent, table, escapeHandler);
+                out = new IndentingUTF8XmlOutput(os, indent, table, ceh);
             else {
                 if(c14nSupport)
-                    out = new C14nXmlOutput(os, table, context.c14nSupport, escapeHandler);
+                    out = new C14nXmlOutput(os, table, context.c14nSupport, ceh);
                 else
-                    out = new UTF8XmlOutput(os, table, escapeHandler);
+                    out = new UTF8XmlOutput(os, table, ceh);
             }
             if(header!=null)
                 out.setHeader(header);
diff --git a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/FastInfosetStreamWriterOutput.java b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/FastInfosetStreamWriterOutput.java
index 2e1ca69389f..4a1de635539 100644
--- a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/FastInfosetStreamWriterOutput.java
+++ b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/FastInfosetStreamWriterOutput.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, 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
@@ -25,21 +25,22 @@
 
 package com.sun.xml.internal.bind.v2.runtime.output;
 
+import com.sun.xml.internal.bind.marshaller.NoEscapeHandler;
 import com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl;
 import com.sun.xml.internal.bind.v2.runtime.Name;
 import com.sun.xml.internal.bind.v2.runtime.XMLSerializer;
-import javax.xml.stream.XMLStreamException;
-
 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data;
 import com.sun.xml.internal.fastinfoset.EncodingConstants;
 import com.sun.xml.internal.fastinfoset.stax.StAXDocumentSerializer;
+import com.sun.xml.internal.org.jvnet.fastinfoset.VocabularyApplicationData;
+import org.xml.sax.SAXException;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.stream.XMLStreamException;
 import java.io.IOException;
 import java.util.Collection;
 import java.util.Map;
 import java.util.WeakHashMap;
-import javax.xml.bind.JAXBContext;
-import com.sun.xml.internal.org.jvnet.fastinfoset.VocabularyApplicationData;
-import org.xml.sax.SAXException;
 
 /**
  * {@link XmlOutput} for {@link StAXDocumentSerializer}.
@@ -220,7 +221,7 @@ public final class FastInfosetStreamWriterOutput extends XMLStreamWriterOutput {
 
     public FastInfosetStreamWriterOutput(StAXDocumentSerializer out,
             JAXBContextImpl context) {
-        super(out);
+        super(out, NoEscapeHandler.theInstance);
 
         this.fiout = out;
         this.localNames = context.getUTF8NameTable();
diff --git a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/StAXExStreamWriterOutput.java b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/StAXExStreamWriterOutput.java
index 67d7fb40d44..c39199f814d 100644
--- a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/StAXExStreamWriterOutput.java
+++ b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/StAXExStreamWriterOutput.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, 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
@@ -27,6 +27,7 @@ package com.sun.xml.internal.bind.v2.runtime.output;
 
 import javax.xml.stream.XMLStreamException;
 
+import com.sun.xml.internal.bind.marshaller.NoEscapeHandler;
 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.Base64Data;
 
 import com.sun.xml.internal.org.jvnet.staxex.XMLStreamWriterEx;
@@ -40,7 +41,7 @@ public final class StAXExStreamWriterOutput extends XMLStreamWriterOutput {
     private final XMLStreamWriterEx out;
 
     public StAXExStreamWriterOutput(XMLStreamWriterEx out) {
-        super(out);
+        super(out, NoEscapeHandler.theInstance);
         this.out = out;
     }
 
diff --git a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/XMLStreamWriterOutput.java b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/XMLStreamWriterOutput.java
index c4721fd5ea8..892adcd1d1f 100644
--- a/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/XMLStreamWriterOutput.java
+++ b/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/output/XMLStreamWriterOutput.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, 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
@@ -26,15 +26,16 @@
 package com.sun.xml.internal.bind.v2.runtime.output;
 
 import java.io.IOException;
+import java.io.Writer;
 import java.lang.reflect.Constructor;
 
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamWriter;
 
+import com.sun.xml.internal.bind.marshaller.CharacterEscapeHandler;
 import com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl;
 import com.sun.xml.internal.bind.v2.runtime.XMLSerializer;
 
-import com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl;
 import org.xml.sax.SAXException;
 
 /**
@@ -53,7 +54,7 @@ public class XMLStreamWriterOutput extends XmlOutputAbstractImpl {
      * Creates a new {@link XmlOutput} from a {@link XMLStreamWriter}.
      * This method recognizes an FI StAX writer.
      */
-    public static XmlOutput create(XMLStreamWriter out, JAXBContextImpl context) {
+    public static XmlOutput create(XMLStreamWriter out, JAXBContextImpl context, CharacterEscapeHandler escapeHandler) {
         // try optimized path
         final Class writerClass = out.getClass();
         if (writerClass==FI_STAX_WRITER_CLASS) {
@@ -69,17 +70,26 @@ public class XMLStreamWriterOutput extends XmlOutputAbstractImpl {
             }
         }
 
+        CharacterEscapeHandler xmlStreamEscapeHandler = escapeHandler != null ?
+                escapeHandler : NewLineEscapeHandler.theInstance;
+
         // otherwise the normal writer.
-        return new XMLStreamWriterOutput(out);
+        return new XMLStreamWriterOutput(out, xmlStreamEscapeHandler);
     }
 
 
     private final XMLStreamWriter out;
 
+    private final CharacterEscapeHandler escapeHandler;
+
+    private final XmlStreamOutWriterAdapter writerWrapper;
+
     protected final char[] buf = new char[256];
 
-    protected XMLStreamWriterOutput(XMLStreamWriter out) {
+    protected XMLStreamWriterOutput(XMLStreamWriter out, CharacterEscapeHandler escapeHandler) {
         this.out = out;
+        this.escapeHandler = escapeHandler;
+        this.writerWrapper = new XmlStreamOutWriterAdapter(out);
     }
 
     // not called if we are generating fragments
@@ -137,7 +147,7 @@ public class XMLStreamWriterOutput extends XmlOutputAbstractImpl {
     public void text(String value, boolean needsSeparatingWhitespace) throws IOException, SAXException, XMLStreamException {
         if(needsSeparatingWhitespace)
             out.writeCharacters(" ");
-        out.writeCharacters(value);
+        escapeHandler.escape(value.toCharArray(), 0, value.length(), false, writerWrapper);
     }
 
     public void text(Pcdata value, boolean needsSeparatingWhitespace) throws IOException, SAXException, XMLStreamException {
@@ -207,4 +217,81 @@ public class XMLStreamWriterOutput extends XmlOutputAbstractImpl {
         }
     }
 
+    /**
+     * Performs character escaping only for new lines.
+     */
+    private static class NewLineEscapeHandler implements CharacterEscapeHandler {
+
+        public static final NewLineEscapeHandler theInstance = new NewLineEscapeHandler();
+
+        @Override
+        public void escape(char[] ch, int start, int length, boolean isAttVal, Writer out) throws IOException {
+            int limit = start+length;
+            int lastEscaped = start;
+            for (int i = start; i < limit; i++) {
+                char c = ch[i];
+                if (c == '\r' || c == '\n') {
+                    if (i != lastEscaped) {
+                        out.write(ch, lastEscaped, i - lastEscaped);
+                    }
+                    lastEscaped = i + 1;
+                    if (out instanceof XmlStreamOutWriterAdapter) {
+                        try {
+                            ((XmlStreamOutWriterAdapter)out).writeEntityRef("#x" + Integer.toHexString(c));
+                        } catch (XMLStreamException e) {
+                            throw new IOException("Error writing xml stream", e);
+                        }
+                    } else {
+                        out.write("&#x");
+                        out.write(Integer.toHexString(c));
+                        out.write(';');
+                    }
+                }
+            }
+
+            if (lastEscaped != limit) {
+                out.write(ch, lastEscaped, length - lastEscaped);
+            }
+        }
+    }
+
+    private static final class XmlStreamOutWriterAdapter extends Writer {
+
+        private final XMLStreamWriter writer;
+
+        private XmlStreamOutWriterAdapter(XMLStreamWriter writer) {
+            this.writer = writer;
+        }
+
+        @Override
+        public void write(char[] cbuf, int off, int len) throws IOException {
+            try {
+                writer.writeCharacters(cbuf, off, len);
+            } catch (XMLStreamException e) {
+                throw new IOException("Error writing XML stream", e);
+            }
+        }
+
+        public void writeEntityRef(String entityReference) throws XMLStreamException {
+            writer.writeEntityRef(entityReference);
+        }
+
+        @Override
+        public void flush() throws IOException {
+            try {
+                writer.flush();
+            } catch (XMLStreamException e) {
+                throw new IOException("Error flushing XML stream", e);
+            }
+        }
+
+        @Override
+        public void close() throws IOException {
+            try {
+                writer.close();
+            } catch (XMLStreamException e) {
+                throw new IOException("Error closing XML stream", e);
+            }
+        }
+    }
 }
diff --git a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/ContextFinder.java b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/ContextFinder.java
index d59b0e40471..278756423e0 100644
--- a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/ContextFinder.java
+++ b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/ContextFinder.java
@@ -150,13 +150,14 @@ class ContextFinder {
      * Create an instance of a class using the specified ClassLoader
      */
     static JAXBContext newInstance(String contextPath,
+                                   Class[] contextPathClasses,
                                    String className,
                                    ClassLoader classLoader,
                                    Map properties) throws JAXBException {
 
         try {
             Class spFactory = ServiceLoaderUtil.safeLoadClass(className, PLATFORM_DEFAULT_FACTORY_CLASS, classLoader);
-            return newInstance(contextPath, spFactory, classLoader, properties);
+            return newInstance(contextPath, contextPathClasses, spFactory, classLoader, properties);
         } catch (ClassNotFoundException x) {
             throw new JAXBException(Messages.format(Messages.DEFAULT_PROVIDER_NOT_FOUND), x);
 
@@ -175,6 +176,7 @@ class ContextFinder {
     }
 
     static JAXBContext newInstance(String contextPath,
+                                   Class[] contextPathClasses,
                                    Class spFactory,
                                    ClassLoader classLoader,
                                    Map properties) throws JAXBException {
@@ -212,6 +214,9 @@ class ContextFinder {
                 // the cast would fail, so generate an exception with a nice message
                 throw handleClassCastException(context.getClass(), JAXBContext.class);
             }
+
+            ModuleUtil.delegateAddOpensToImplModule(contextPathClasses, spFactory);
+
             return (JAXBContext) context;
         } catch (InvocationTargetException x) {
             // throw if it is exception not to be wrapped
@@ -277,6 +282,7 @@ class ContextFinder {
                 // the cast would fail, so generate an exception with a nice message
                 throw handleClassCastException(context.getClass(), JAXBContext.class);
             }
+            ModuleUtil.delegateAddOpensToImplModule(classes,  spFactory);
             return (JAXBContext) context;
 
         } catch (NoSuchMethodException | IllegalAccessException e) {
@@ -295,50 +301,52 @@ class ContextFinder {
                             ClassLoader classLoader,
                             Map properties) throws JAXBException {
 
-        StringTokenizer packages = new StringTokenizer(contextPath, ":");
-        if (!packages.hasMoreTokens()) {
+        if (contextPath == null || contextPath.isEmpty()) {
             // no context is specified
             throw new JAXBException(Messages.format(Messages.NO_PACKAGE_IN_CONTEXTPATH));
         }
 
-        // search for jaxb.properties in the class loader of each class first
-        logger.fine("Searching jaxb.properties");
-        while (packages.hasMoreTokens()) {
-            // com.acme.foo - > com/acme/foo/jaxb.properties
-            String factoryClassName =
-                    classNameFromPackageProperties(
-                        classLoader,
-                        packages.nextToken(":").replace('.', '/'),
-                        factoryId,
-                        JAXB_CONTEXT_FACTORY_DEPRECATED);
+        //ModuleUtil is mr-jar class, scans context path for jaxb classes on jdk9 and higher
+        Class[] contextPathClasses = ModuleUtil.getClassesFromContextPath(contextPath, classLoader);
 
-            if (factoryClassName != null) {
-                return newInstance(contextPath, factoryClassName, classLoader, properties);
-            }
+        //first try with classloader#getResource
+        String factoryClassName = jaxbProperties(contextPath, classLoader, factoryId);
+        if (factoryClassName == null && contextPathClasses != null) {
+            //try with class#getResource
+            factoryClassName = jaxbProperties(contextPathClasses, factoryId);
         }
 
+        if (factoryClassName != null) {
+            return newInstance(contextPath, contextPathClasses, factoryClassName, classLoader, properties);
+        }
+
+
         String factoryName = classNameFromSystemProperties();
-        if (factoryName != null) return newInstance(contextPath, factoryName, classLoader, properties);
+        if (factoryName != null) return newInstance(contextPath, contextPathClasses, factoryName, classLoader, properties);
 
         JAXBContextFactory obj = ServiceLoaderUtil.firstByServiceLoader(
                 JAXBContextFactory.class, logger, EXCEPTION_HANDLER);
 
-        if (obj != null) return obj.createContext(contextPath, classLoader, properties);
+        if (obj != null) {
+            JAXBContext context = obj.createContext(contextPath, classLoader, properties);
+            ModuleUtil.delegateAddOpensToImplModule(contextPathClasses, obj.getClass());
+            return context;
+        }
 
         // to ensure backwards compatibility
         factoryName = firstByServiceLoaderDeprecated(JAXBContext.class, classLoader);
-        if (factoryName != null) return newInstance(contextPath, factoryName, classLoader, properties);
+        if (factoryName != null) return newInstance(contextPath, contextPathClasses, factoryName, classLoader, properties);
 
         Class ctxFactory = (Class) ServiceLoaderUtil.lookupUsingOSGiServiceLoader(
                 "javax.xml.bind.JAXBContext", logger);
 
         if (ctxFactory != null) {
-            return newInstance(contextPath, ctxFactory, classLoader, properties);
+            return newInstance(contextPath, contextPathClasses, ctxFactory, classLoader, properties);
         }
 
         // else no provider found
         logger.fine("Trying to create the platform default provider");
-        return newInstance(contextPath, PLATFORM_DEFAULT_FACTORY_CLASS, classLoader, properties);
+        return newInstance(contextPath, contextPathClasses, PLATFORM_DEFAULT_FACTORY_CLASS, classLoader, properties);
     }
 
     static JAXBContext find(Class[] classes, Map properties) throws JAXBException {
@@ -356,13 +364,18 @@ class ContextFinder {
             // TODO: it's easier to look things up from the class
             // c.getResourceAsStream("jaxb.properties");
 
-            String factoryClassName =
-                    classNameFromPackageProperties(
-                            getClassClassLoader(c),
-                            c.getPackage().getName().replace('.', '/'),
-                            JAXBContext.JAXB_CONTEXT_FACTORY, JAXB_CONTEXT_FACTORY_DEPRECATED);
+            URL jaxbPropertiesUrl = getResourceUrl(c, "jaxb.properties");
+
+            if (jaxbPropertiesUrl != null) {
+
+                String factoryClassName =
+                        classNameFromPackageProperties(
+                                jaxbPropertiesUrl,
+                                JAXBContext.JAXB_CONTEXT_FACTORY, JAXB_CONTEXT_FACTORY_DEPRECATED);
+
+                return newInstance(classes, properties, factoryClassName);
+            }
 
-            if (factoryClassName != null) return newInstance(classes, properties, factoryClassName);
         }
 
         String factoryClassName = classNameFromSystemProperties();
@@ -371,7 +384,11 @@ class ContextFinder {
         JAXBContextFactory factory =
                 ServiceLoaderUtil.firstByServiceLoader(JAXBContextFactory.class, logger, EXCEPTION_HANDLER);
 
-        if (factory != null) return factory.createContext(classes, properties);
+        if (factory != null) {
+            JAXBContext context = factory.createContext(classes, properties);
+            ModuleUtil.delegateAddOpensToImplModule(classes, factory.getClass());
+            return context;
+        }
 
         // to ensure backwards compatibility
         String className = firstByServiceLoaderDeprecated(JAXBContext.class, getContextClassLoader());
@@ -395,22 +412,20 @@ class ContextFinder {
      * first factoryId should be the preferred one,
      * more of those can be provided to support backwards compatibility
      */
-    private static String classNameFromPackageProperties(ClassLoader classLoader,
-                                                         String packageName,
+    private static String classNameFromPackageProperties(URL packagePropertiesUrl,
                                                          String ... factoryIds) throws JAXBException {
 
-        String resourceName = packageName + "/jaxb.properties";
-        logger.log(Level.FINE, "Trying to locate {0}", resourceName);
-        Properties props = loadJAXBProperties(classLoader, resourceName);
-        if (props != null) {
-            for(String factoryId : factoryIds) {
-                if (props.containsKey(factoryId)) {
-                    return props.getProperty(factoryId);
-                }
+        logger.log(Level.FINE, "Trying to locate {0}", packagePropertiesUrl.toString());
+        Properties props = loadJAXBProperties(packagePropertiesUrl);
+        for(String factoryId : factoryIds) {
+            if (props.containsKey(factoryId)) {
+                return props.getProperty(factoryId);
             }
-            throw new JAXBException(Messages.format(Messages.MISSING_PROPERTY, packageName, factoryIds[0]));
         }
-        return null;
+        //Factory key not found
+        String propertiesUrl = packagePropertiesUrl.toExternalForm();
+        String packageName = propertiesUrl.substring(0, propertiesUrl.indexOf("/jaxb.properties"));
+        throw new JAXBException(Messages.format(Messages.MISSING_PROPERTY, packageName, factoryIds[0]));
     }
 
     private static String classNameFromSystemProperties() throws JAXBException {
@@ -452,30 +467,40 @@ class ContextFinder {
         return value;
     }
 
-    private static Properties loadJAXBProperties(ClassLoader classLoader,
-                                                 String propFileName) throws JAXBException {
+    private static Properties loadJAXBProperties(URL url) throws JAXBException {
 
-        Properties props = null;
         try {
-            URL url;
-            if (classLoader == null)
-                url = ClassLoader.getSystemResource(propFileName);
-            else
-                url = classLoader.getResource(propFileName);
-
-            if (url != null) {
-                logger.log(Level.FINE, "loading props from {0}", url);
-                props = new Properties();
-                InputStream is = url.openStream();
-                props.load(is);
-                is.close();
-            }
+            Properties props;
+            logger.log(Level.FINE, "loading props from {0}", url);
+            props = new Properties();
+            InputStream is = url.openStream();
+            props.load(is);
+            is.close();
+            return props;
         } catch (IOException ioe) {
-            logger.log(Level.FINE, "Unable to load " + propFileName, ioe);
+            logger.log(Level.FINE, "Unable to load " + url.toString(), ioe);
             throw new JAXBException(ioe.toString(), ioe);
         }
+    }
 
-        return props;
+    /**
+     * If run on JPMS package containing resource must be open unconditionally.
+     *
+     * @param classLoader classloader to load resource with
+     * @param resourceName qualified name of the resource
+     * @return resource url if found
+     */
+    private static URL getResourceUrl(ClassLoader classLoader, String resourceName) {
+        URL url;
+        if (classLoader == null)
+            url = ClassLoader.getSystemResource(resourceName);
+        else
+            url = classLoader.getResource(resourceName);
+        return url;
+    }
+
+    private static URL getResourceUrl(Class clazz, String resourceName) {
+        return clazz.getResource(resourceName);
     }
 
 
@@ -606,4 +631,28 @@ class ContextFinder {
         }
     }
 
+    private static String jaxbProperties(String contextPath, ClassLoader classLoader, String factoryId) throws JAXBException {
+        String[] packages = contextPath.split(":");
+
+        for (String pkg : packages) {
+            String pkgUrl = pkg.replace('.', '/');
+            URL jaxbPropertiesUrl = getResourceUrl(classLoader, pkgUrl + "/jaxb.properties");
+            if (jaxbPropertiesUrl != null) {
+                return classNameFromPackageProperties(jaxbPropertiesUrl,
+                                                      factoryId, JAXB_CONTEXT_FACTORY_DEPRECATED);
+            }
+        }
+        return null;
+    }
+
+    private static String jaxbProperties(Class[] classesFromContextPath, String factoryId) throws JAXBException {
+        for (Class c : classesFromContextPath) {
+            URL jaxbPropertiesUrl = getResourceUrl(c, "jaxb.properties");
+            if (jaxbPropertiesUrl != null) {
+                return classNameFromPackageProperties(jaxbPropertiesUrl, factoryId, JAXB_CONTEXT_FACTORY_DEPRECATED);
+            }
+        }
+        return null;
+    }
+
 }
diff --git a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/JAXBContext.java b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/JAXBContext.java
index 4b4f6e55c46..9bb4ceae18f 100644
--- a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/JAXBContext.java
+++ b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/JAXBContext.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2017, 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
@@ -27,11 +27,11 @@ package javax.xml.bind;
 
 import org.w3c.dom.Node;
 
+import java.io.IOException;
+import java.io.InputStream;
 import java.util.Collections;
 import java.util.Map;
 import java.util.Properties;
-import java.io.IOException;
-import java.io.InputStream;
 
 /**
  * The {@code JAXBContext} class provides the client's entry point to the
@@ -227,6 +227,9 @@ import java.io.InputStream;
  * This phase of the look up allows some packages to force the use of a certain JAXB implementation.
  * (For example, perhaps the schema compiler has generated some vendor extension in the code.)
  *
+ * 

+ * This configuration method is deprecated. + * *

  • * If the system property {@link #JAXB_CONTEXT_FACTORY} exists, then its value is assumed to be the provider * factory class. If no such property exists, properties {@code "javax.xml.bind.context.factory"} and @@ -332,7 +335,14 @@ public abstract class JAXBContext { * the context class loader of the current thread. * * @throws JAXBException if an error was encountered while creating the - * {@code JAXBContext}. See {@link JAXBContext#newInstance(String, ClassLoader, Map)} for details. + * {@code JAXBContext} such as + *
      + *
    1. failure to locate either ObjectFactory.class or jaxb.index in the packages
    2. + *
    3. an ambiguity among global elements contained in the contextPath
    4. + *
    5. failure to locate a value for the context factory provider property
    6. + *
    7. mixing schema derived packages from different providers on the same contextPath
    8. + *
    9. packages are not open to {@code java.xml.bind} module
    10. + *
    */ public static JAXBContext newInstance( String contextPath ) throws JAXBException { @@ -414,16 +424,26 @@ public abstract class JAXBContext { *

    * The steps involved in discovering the JAXB implementation is discussed in the class javadoc. * - * @param contextPath list of java package names that contain schema - * derived class and/or java to schema (JAXB-annotated) - * mapped classes + * @param contextPath + * List of java package names that contain schema + * derived class and/or java to schema (JAXB-annotated) + * mapped classes. + * Packages in {@code contextPath} that are in named modules must be + * {@linkplain java.lang.Module#isOpen open} to at least the {@code java.xml.bind} module. * @param classLoader * This class loader will be used to locate the implementation * classes. * * @return a new instance of a {@code JAXBContext} * @throws JAXBException if an error was encountered while creating the - * {@code JAXBContext}. See {@link JAXBContext#newInstance(String, ClassLoader, Map)} for details. + * {@code JAXBContext} such as + *

      + *
    1. failure to locate either ObjectFactory.class or jaxb.index in the packages
    2. + *
    3. an ambiguity among global elements contained in the contextPath
    4. + *
    5. failure to locate a value for the context factory provider property
    6. + *
    7. mixing schema derived packages from different providers on the same contextPath
    8. + *
    9. packages are not open to {@code java.xml.bind} module
    10. + *
    */ public static JAXBContext newInstance( String contextPath, ClassLoader classLoader ) throws JAXBException { @@ -442,7 +462,12 @@ public abstract class JAXBContext { * The interpretation of properties is up to implementations. Implementations must * throw {@code JAXBException} if it finds properties that it doesn't understand. * - * @param contextPath list of java package names that contain schema derived classes + * @param contextPath + * List of java package names that contain schema + * derived class and/or java to schema (JAXB-annotated) + * mapped classes. + * Packages in {@code contextPath} that are in named modules must be + * {@linkplain java.lang.Module#isOpen open} to at least the {@code java.xml.bind} module. * @param classLoader * This class loader will be used to locate the implementation classes. * @param properties @@ -457,6 +482,7 @@ public abstract class JAXBContext { *
  • an ambiguity among global elements contained in the contextPath
  • *
  • failure to locate a value for the context factory provider property
  • *
  • mixing schema derived packages from different providers on the same contextPath
  • + *
  • packages are not open to {@code java.xml.bind} module
  • * * @since 1.6, JAXB 2.0 */ @@ -588,15 +614,27 @@ public abstract class JAXBContext { * The steps involved in discovering the JAXB implementation is discussed in the class javadoc. * * @param classesToBeBound - * list of java classes to be recognized by the new {@link JAXBContext}. + * List of java classes to be recognized by the new {@link JAXBContext}. + * Classes in {@code classesToBeBound} that are in named modules must be in a package + * that is {@linkplain java.lang.Module#isOpen open} to at least the {@code java.xml.bind} module. * Can be empty, in which case a {@link JAXBContext} that only knows about * spec-defined classes will be returned. * * @return * A new instance of a {@code JAXBContext}. * - * @throws JAXBException if an error was encountered while creating the - * {@code JAXBContext}. See {@link JAXBContext#newInstance(Class[], Map)} for details. + * @throws JAXBException + * if an error was encountered while creating the + * {@code JAXBContext}, such as (but not limited to): + *
      + *
    1. No JAXB implementation was discovered + *
    2. Classes use JAXB annotations incorrectly + *
    3. Classes have colliding annotations (i.e., two classes with the same type name) + *
    4. The JAXB implementation was unable to locate + * provider-specific out-of-band information (such as additional + * files generated at the development time.) + *
    5. {@code classesToBeBound} are not open to {@code java.xml.bind} module + *
    * * @throws IllegalArgumentException * if the parameter contains {@code null} (i.e., {@code newInstance(null);}) @@ -621,7 +659,9 @@ public abstract class JAXBContext { * throw {@code JAXBException} if it finds properties that it doesn't understand. * * @param classesToBeBound - * list of java classes to be recognized by the new {@link JAXBContext}. + * List of java classes to be recognized by the new {@link JAXBContext}. + * Classes in {@code classesToBeBound} that are in named modules must be in a package + * that is {@linkplain java.lang.Module#isOpen open} to at least the {@code java.xml.bind} module. * Can be empty, in which case a {@link JAXBContext} that only knows about * spec-defined classes will be returned. * @param properties @@ -641,6 +681,7 @@ public abstract class JAXBContext { *
  • The JAXB implementation was unable to locate * provider-specific out-of-band information (such as additional * files generated at the development time.) + *
  • {@code classesToBeBound} are not open to {@code java.xml.bind} module * * * @throws IllegalArgumentException @@ -702,6 +743,7 @@ public abstract class JAXBContext { * {@code Validator} object * @deprecated since JAXB2.0 */ + @Deprecated public abstract Validator createValidator() throws JAXBException; /** diff --git a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/JAXBContextFactory.java b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/JAXBContextFactory.java index ef98dc61e4f..90fad73aea8 100644 --- a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/JAXBContextFactory.java +++ b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/JAXBContextFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2017, 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 @@ -44,7 +44,9 @@ public interface JAXBContextFactory { * For semantics see {@link javax.xml.bind.JAXBContext#newInstance(Class[], java.util.Map)} * * @param classesToBeBound - * list of java classes to be recognized by the new {@link JAXBContext}. + * List of java classes to be recognized by the new {@link JAXBContext}. + * Classes in {@code classesToBeBound} that are in named modules must be in a package + * that is {@linkplain java.lang.Module#isOpen open} to at least the {@code java.xml.bind} module. * Can be empty, in which case a {@link JAXBContext} that only knows about * spec-defined classes will be returned. * @param properties @@ -56,7 +58,16 @@ public interface JAXBContextFactory { * * @throws JAXBException * if an error was encountered while creating the - * {@code JAXBContext}. See {@link JAXBContext#newInstance(Class[], Map)} for details. + * {@code JAXBContext}, such as (but not limited to): + *
      + *
    1. No JAXB implementation was discovered + *
    2. Classes use JAXB annotations incorrectly + *
    3. Classes have colliding annotations (i.e., two classes with the same type name) + *
    4. The JAXB implementation was unable to locate + * provider-specific out-of-band information (such as additional + * files generated at the development time.) + *
    5. {@code classesToBeBound} are not open to {@code java.xml.bind} module + *
    * * @throws IllegalArgumentException * if the parameter contains {@code null} (i.e., {@code newInstance(null,someMap);}) @@ -77,7 +88,10 @@ public interface JAXBContextFactory { * The interpretation of properties is up to implementations. Implementations must * throw {@code JAXBException} if it finds properties that it doesn't understand. * - * @param contextPath list of java package names that contain schema derived classes + * @param contextPath + * List of java package names that contain schema derived classes. + * Classes in {@code classesToBeBound} that are in named modules must be in a package + * that is {@linkplain java.lang.Module#isOpen open} to at least the {@code java.xml.bind} module. * @param classLoader * This class loader will be used to locate the implementation classes. * @param properties @@ -86,7 +100,14 @@ public interface JAXBContextFactory { * * @return a new instance of a {@code JAXBContext} * @throws JAXBException if an error was encountered while creating the - * {@code JAXBContext}. See {@link JAXBContext#newInstance(String, ClassLoader, Map)} for details. + * {@code JAXBContext} such as + *
      + *
    1. failure to locate either ObjectFactory.class or jaxb.index in the packages
    2. + *
    3. an ambiguity among global elements contained in the contextPath
    4. + *
    5. failure to locate a value for the context factory provider property
    6. + *
    7. mixing schema derived packages from different providers on the same contextPath
    8. + *
    9. packages are not open to {@code java.xml.bind} module
    10. + *
    * * @since 9, JAXB 2.3 */ diff --git a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Messages.java b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Messages.java index 79ede4ff185..cbde96f86e2 100644 --- a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Messages.java +++ b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Messages.java @@ -91,4 +91,10 @@ class Messages static final String ILLEGAL_CAST = // 2 args "JAXBContext.IllegalCast"; + + static final String ERROR_LOAD_CLASS = // 2 args + "ContextFinder.ErrorLoadClass"; + + static final String JAXB_CLASSES_NOT_OPEN = // 1 arg + "JAXBClasses.notOpen"; } diff --git a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Messages.properties b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Messages.properties index 548001abfe7..8ea89d31487 100644 --- a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Messages.properties +++ b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Messages.properties @@ -44,6 +44,11 @@ ContextFinder.MissingProperty = \ ContextFinder.NoPackageInContextPath = \ No package name is given +ContextFinder.ErrorLoadClass = \ + Error loading class {0} listed in {1}, make sure that entries are accessable \ + on CLASSPATH and of the form ClassName or OuterClass.InnerClass \ + not ClassName.class or fully.qualified.ClassName + PropertyException.NameValue = \ name: {0} value: {1} @@ -52,3 +57,6 @@ DatatypeConverter.ConverterMustNotBeNull = \ JAXBContext.IllegalCast = \ ClassCastException: attempting to cast {0} to {1}. Please make sure that you are specifying the proper ClassLoader. + +JAXBClasses.notOpen = \ + Package {0} with JAXB class {1} defined in a module {2} must be open to at least java.xml.bind module. diff --git a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/ModuleUtil.java b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/ModuleUtil.java new file mode 100644 index 00000000000..d78441ca835 --- /dev/null +++ b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/ModuleUtil.java @@ -0,0 +1,160 @@ +/* + * Copyright (c) 2017, 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 javax.xml.bind; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.lang.Module; +import java.util.ArrayList; +import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; + +/** + * Propagates openness of JAXB annottated classess packages to JAXB impl module. + * + * @author Roman Grigoriadi + */ +class ModuleUtil { + + private static Logger logger = Logger.getLogger("javax.xml.bind"); + + /** + * Resolves classes from context path. + * Only one class per package is needed to access its {@link java.lang.Module} + */ + static Class[] getClassesFromContextPath(String contextPath, ClassLoader classLoader) throws JAXBException { + List classes = new ArrayList<>(); + if (contextPath == null || contextPath.isEmpty()){ + return classes.toArray(new Class[]{}); + } + + String [] tokens = contextPath.split(":"); + for (String pkg : tokens){ + + // look for ObjectFactory and load it + final Class o; + try { + o = classLoader.loadClass(pkg+".ObjectFactory"); + classes.add(o); + continue; + } catch (ClassNotFoundException e) { + // not necessarily an error + } + + // look for jaxb.index and load the list of classes + try { + final Class firstByJaxbIndex = findFirstByJaxbIndex(pkg, classLoader); + if (firstByJaxbIndex != null) { + classes.add(firstByJaxbIndex); + } + } catch (IOException e) { + throw new JAXBException(e); + } + } + + if (logger.isLoggable(Level.FINE)) { + logger.log(Level.FINE, "Resolved classes from context path: {0}", classes); + } + return classes.toArray(new Class[]{}); + } + + /** + * Find first class in package by {@code jaxb.index} file. + */ + static Class findFirstByJaxbIndex(String pkg, ClassLoader classLoader) throws IOException, JAXBException { + final String resource = pkg.replace('.', '/') + "/jaxb.index"; + final InputStream resourceAsStream = classLoader.getResourceAsStream(resource); + + if (resourceAsStream == null) { + return null; + } + + BufferedReader in = + new BufferedReader(new InputStreamReader(resourceAsStream, "UTF-8")); + try { + String className = in.readLine(); + while (className != null) { + className = className.trim(); + if (className.startsWith("#") || (className.length() == 0)) { + className = in.readLine(); + continue; + } + + try { + return classLoader.loadClass(pkg + '.' + className); + } catch (ClassNotFoundException e) { + throw new JAXBException(Messages.format(Messages.ERROR_LOAD_CLASS, className, pkg), e); + } + + } + } finally { + in.close(); + } + return null; + } + + /** + * Implementation may be defined in other module than {@code java.xml.bind}. In that case openness + * {@linkplain Module#isOpen open} of classes should be delegated to implementation module. + * + * @param classes used to resolve module for {@linkplain Module#addOpens(String, Module)} + * @param factorySPI used to resolve {@link Module} of the implementation. + * + * @throws JAXBException if ony of a classes package is not open to {@code java.xml.bind} module. + */ + static void delegateAddOpensToImplModule(Class[] classes, Class factorySPI) throws JAXBException { + final Module implModule = factorySPI.getModule(); + if (!implModule.isNamed()) { + return; + } + + Module jaxbModule = JAXBContext.class.getModule(); + + for (Class cls : classes) { + final Module classModule = cls.getModule(); + final String packageName = cls.getPackageName(); + //no need for unnamed + if (!classModule.isNamed()) { + continue; + } + //report error if they are not open to java.xml.bind + if (!classModule.isOpen(packageName, jaxbModule)) { + throw new JAXBException(Messages.format(Messages.JAXB_CLASSES_NOT_OPEN, + packageName, cls.getName(), classModule.getName())); + } + //propagate openness to impl module + classModule.addOpens(packageName, implModule); + if (logger.isLoggable(Level.FINE)) { + logger.log(Level.FINE, "Propagating openness of package {0} in {1} to {2}.", + new String[]{ packageName, classModule.getName(), implModule.getName() }); + } + } + } + +} diff --git a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Unmarshaller.java b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Unmarshaller.java index f075443bdfa..f8424dd1881 100644 --- a/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Unmarshaller.java +++ b/jaxws/src/java.xml.bind/share/classes/javax/xml/bind/Unmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2017, 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 @@ -23,6 +23,8 @@ * questions. */ + + package javax.xml.bind; import javax.xml.bind.annotation.adapters.XmlAdapter; @@ -975,7 +977,6 @@ public interface Unmarshaller { * {@link #isValidating()} API as well as access to the Schema object. * To determine if the Unmarshaller has validation enabled, simply * test the return type for null: - *

    *

    {@code
          *   boolean isValidating = u.getSchema()!=null;
          * }
    diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/client/p2p/HttpSOAPConnection.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/client/p2p/HttpSOAPConnection.java index a032c589dfe..aadf04a996d 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/client/p2p/HttpSOAPConnection.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/client/p2p/HttpSOAPConnection.java @@ -76,6 +76,7 @@ class HttpSOAPConnection extends SOAPConnection { } } + @Override public void close() throws SOAPException { if (closed) { log.severe("SAAJ0002.p2p.close.already.closed.conn"); @@ -86,6 +87,7 @@ class HttpSOAPConnection extends SOAPConnection { closed = true; } + @Override public SOAPMessage call(SOAPMessage message, Object endPoint) throws SOAPException { if (closed) { @@ -348,6 +350,7 @@ class HttpSOAPConnection extends SOAPConnection { // Object identifies where the request should be sent. // It is required to support objects of type String and java.net.URL. + @Override public SOAPMessage get(Object endPoint) throws SOAPException { if (closed) { log.severe("SAAJ0011.p2p.get.already.closed.conn"); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/client/p2p/HttpSOAPConnectionFactory.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/client/p2p/HttpSOAPConnectionFactory.java index d2e626a045b..c22b8e45e55 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/client/p2p/HttpSOAPConnectionFactory.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/client/p2p/HttpSOAPConnectionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -34,6 +34,7 @@ import javax.xml.soap.*; */ public class HttpSOAPConnectionFactory extends SOAPConnectionFactory { + @Override public SOAPConnection createConnection() throws SOAPException { diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/MessagingException.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/MessagingException.java index df55da3dac3..eab9cc35d38 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/MessagingException.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/MessagingException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -116,6 +116,7 @@ public class MessagingException extends Exception { * Produce the message, include the message from the nested * exception if there is one. */ + @Override public String getMessage() { if (next == null) return super.getMessage(); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/BMMimeMultipart.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/BMMimeMultipart.java index 96a7702e580..d6bd51371a4 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/BMMimeMultipart.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/BMMimeMultipart.java @@ -28,18 +28,20 @@ */ - package com.sun.xml.internal.messaging.saaj.packaging.mime.internet; -import java.io.*; -import java.util.BitSet; +import com.sun.xml.internal.messaging.saaj.packaging.mime.MessagingException; +import com.sun.xml.internal.messaging.saaj.packaging.mime.util.ASCIIUtility; +import com.sun.xml.internal.messaging.saaj.packaging.mime.util.OutputUtil; +import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream; import javax.activation.DataSource; - -import com.sun.xml.internal.messaging.saaj.packaging.mime.*; -import com.sun.xml.internal.messaging.saaj.packaging.mime.util.*; - -import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream; +import java.io.BufferedInputStream; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.util.BitSet; /** * The MimeMultipart class is an implementation of the abstract Multipart @@ -67,11 +69,10 @@ import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream; * subtype by using the MimeMultipart(String subtype) * constructor. For example, to create a "multipart/alternative" object, * use new MimeMultipart("alternative"). - * */ //TODO: cleanup the SharedInputStream handling -public class BMMimeMultipart extends MimeMultipart { +public class BMMimeMultipart extends MimeMultipart { /* * When true it indicates parsing hasnt been done at all @@ -120,12 +121,12 @@ public class BMMimeMultipart extends MimeMultipart { */ public BMMimeMultipart(String subtype) { super(subtype); - /* - * Compute a boundary string. - String boundary = UniqueValue.getUniqueBoundaryValue(); - ContentType cType = new ContentType("multipart", subtype, null); + /* + * Compute a boundary string. + String boundary = UniqueValue.getUniqueBoundaryValue(); + ContentType cType = new ContentType("multipart", subtype, null); contentType.setParameter("boundary", boundary); - */ + */ } /** @@ -144,25 +145,25 @@ public class BMMimeMultipart extends MimeMultipart { * skips the 'preamble' and reads bytes till the terminating * boundary and creates MimeBodyParts for each part of the stream. * - * @param ds DataSource, can be a MultipartDataSource. - * @param ct content type. - * @exception MessagingException in case of error. + * @param ct content type. + * @param ds DataSource, can be a MultipartDataSource. + * @throws MessagingException in case of error. */ public BMMimeMultipart(DataSource ds, ContentType ct) - throws MessagingException { - super(ds,ct); + throws MessagingException { + super(ds, ct); boundary = ct.getParameter("boundary"); /* - if (ds instanceof MultipartDataSource) { - // ask super to do this for us. - setMultipartDataSource((MultipartDataSource)ds); - return; - } + if (ds instanceof MultipartDataSource) { + // ask super to do this for us. + setMultipartDataSource((MultipartDataSource)ds); + return; + } - // 'ds' was not a MultipartDataSource, we have - // to parse this ourself. - parsed = false; - this.ds = ds; + // 'ds' was not a MultipartDataSource, we have + // to parse this ourself. + parsed = false; + this.ds = ds; if (ct==null) contentType = new ContentType(ds.getContentType()); else @@ -177,8 +178,8 @@ public class BMMimeMultipart extends MimeMultipart { try { in = ds.getInputStream(); if (!(in instanceof ByteArrayInputStream) && - !(in instanceof BufferedInputStream) && - !(in instanceof SharedInputStream)) + !(in instanceof BufferedInputStream) && + !(in instanceof SharedInputStream)) in = new BufferedInputStream(in); } catch (Exception ex) { throw new MessagingException("No inputstream from datasource"); @@ -186,7 +187,7 @@ public class BMMimeMultipart extends MimeMultipart { if (!in.markSupported()) { throw new MessagingException( - "InputStream does not support Marking"); + "InputStream does not support Marking"); } } return in; @@ -199,10 +200,10 @@ public class BMMimeMultipart extends MimeMultipart { * method is called by all other methods that need data for * the body parts, to make sure the data has been parsed. * - * @since JavaMail 1.2 + * @since JavaMail 1.2 */ @Override - protected void parse() throws MessagingException { + protected void parse() throws MessagingException { if (parsed) return; @@ -210,7 +211,7 @@ public class BMMimeMultipart extends MimeMultipart { SharedInputStream sin = null; if (in instanceof SharedInputStream) { - sin = (SharedInputStream)in; + sin = (SharedInputStream) in; } String bnd = "--" + boundary; @@ -231,8 +232,8 @@ public class BMMimeMultipart extends MimeMultipart { } public MimeBodyPart getNextPart( - InputStream stream, byte[] pattern, SharedInputStream sin) - throws Exception { + InputStream stream, byte[] pattern, SharedInputStream sin) + throws Exception { if (!stream.markSupported()) { throw new Exception("InputStream does not support Marking"); @@ -242,7 +243,7 @@ public class BMMimeMultipart extends MimeMultipart { compile(pattern); if (!skipPreamble(stream, pattern, sin)) { throw new Exception( - "Missing Start Boundary, or boundary does not start on a new line"); + "Missing Start Boundary, or boundary does not start on a new line"); } begining = false; } @@ -256,7 +257,7 @@ public class BMMimeMultipart extends MimeMultipart { b = readHeaders(stream); if (b == -1) { throw new Exception( - "End of Stream encountered while reading part headers"); + "End of Stream encountered while reading part headers"); } long[] v = new long[1]; v[0] = -1; // just to ensure the code later sets it correctly @@ -276,7 +277,7 @@ public class BMMimeMultipart extends MimeMultipart { } else { InternetHeaders headers = createInternetHeaders(stream); ByteOutputStream baos = new ByteOutputStream(); - b = readBody(stream, pattern, null,baos, null); + b = readBody(stream, pattern, null, baos, null); // looks like this check has to be disabled // in the old impl it is allowed to have Mime Package // without closing boundary @@ -286,7 +287,7 @@ public class BMMimeMultipart extends MimeMultipart { } } MimeBodyPart mbp = createMimeBodyPart( - headers, baos.getBytes(), baos.getCount()); + headers, baos.getBytes(), baos.getCount()); addBodyPart(mbp); return mbp; } @@ -294,11 +295,11 @@ public class BMMimeMultipart extends MimeMultipart { } public boolean parse( - InputStream stream, byte[] pattern, SharedInputStream sin) - throws Exception { + InputStream stream, byte[] pattern, SharedInputStream sin) + throws Exception { while (!lastPartFound.get(0) && (b != -1)) { - getNextPart(stream, pattern, sin); + getNextPart(stream, pattern, sin); } return true; } @@ -307,7 +308,7 @@ public class BMMimeMultipart extends MimeMultipart { // if the headers are to end properly then there has to be CRLF // actually we just need to mark the start and end positions int b = is.read(); - while(b != -1) { + while (b != -1) { // when it is a shared input stream no need to copy if (b == '\r') { b = is.read(); @@ -316,7 +317,7 @@ public class BMMimeMultipart extends MimeMultipart { if (b == '\r') { b = is.read(); if (b == '\n') { - return b; + return b; } else { continue; } @@ -331,43 +332,43 @@ public class BMMimeMultipart extends MimeMultipart { } if (b == -1) { throw new Exception( - "End of inputstream while reading Mime-Part Headers"); + "End of inputstream while reading Mime-Part Headers"); } return b; } private int readBody( - InputStream is, byte[] pattern, long[] posVector, - ByteOutputStream baos, SharedInputStream sin) - throws Exception { + InputStream is, byte[] pattern, long[] posVector, + ByteOutputStream baos, SharedInputStream sin) + throws Exception { if (!find(is, pattern, posVector, baos, sin)) { throw new Exception( - "Missing boundary delimitier while reading Body Part"); + "Missing boundary delimitier while reading Body Part"); } return b; } private boolean skipPreamble( - InputStream is, byte[] pattern, SharedInputStream sin) - throws Exception { + InputStream is, byte[] pattern, SharedInputStream sin) + throws Exception { if (!find(is, pattern, sin)) { return false; } if (lastPartFound.get(0)) { throw new Exception( - "Found closing boundary delimiter while trying to skip preamble"); + "Found closing boundary delimiter while trying to skip preamble"); } return true; } - public int readNext(InputStream is, byte[] buff, int patternLength, - BitSet eof, long[] posVector, SharedInputStream sin) - throws Exception { + public int readNext(InputStream is, byte[] buff, int patternLength, + BitSet eof, long[] posVector, SharedInputStream sin) + throws Exception { int bufferLength = is.read(buffer, 0, patternLength); if (bufferLength == -1) { - eof.flip(0); + eof.flip(0); } else if (bufferLength < patternLength) { //repeatedly read patternLength - bufferLength int temp = 0; @@ -385,18 +386,18 @@ public class BMMimeMultipart extends MimeMultipart { } break; } - buffer[i] = (byte)temp; + buffer[i] = (byte) temp; } - bufferLength=i; + bufferLength = i; } return bufferLength; } public boolean find(InputStream is, byte[] pattern, SharedInputStream sin) - throws Exception { + throws Exception { int i; int l = pattern.length; - int lx = l -1; + int lx = l - 1; BitSet eof = new BitSet(1); long[] posVector = new long[1]; @@ -409,12 +410,12 @@ public class BMMimeMultipart extends MimeMultipart { } /* - if (bufferLength < l) { - //is.reset(); - return false; - }*/ + if (bufferLength < l) { + //is.reset(); + return false; + }*/ - for(i = lx; i >= 0; i--) { + for (i = lx; i >= 0; i--) { if (buffer[i] != pattern[i]) { break; } @@ -435,11 +436,11 @@ public class BMMimeMultipart extends MimeMultipart { } public boolean find( - InputStream is, byte[] pattern, long[] posVector, - ByteOutputStream out, SharedInputStream sin) throws Exception { + InputStream is, byte[] pattern, long[] posVector, + ByteOutputStream out, SharedInputStream sin) throws Exception { int i; int l = pattern.length; - int lx = l -1; + int lx = l - 1; int bufferLength = 0; int s = 0; long endPos = -1; @@ -466,7 +467,7 @@ public class BMMimeMultipart extends MimeMultipart { // looks like it is allowed to not have a closing boundary //return false; //if (sin != null) { - // posVector[0] = endPos; + // posVector[0] = endPos; //} b = -1; if ((s == l) && (sin == null)) { @@ -482,7 +483,7 @@ public class BMMimeMultipart extends MimeMultipart { } else { // looks like it is allowed to not have a closing boundary // in the old implementation - out.write(buffer, 0, bufferLength); + out.write(buffer, 0, bufferLength); } // looks like it is allowed to not have a closing boundary // in the old implementation @@ -491,7 +492,7 @@ public class BMMimeMultipart extends MimeMultipart { return true; } - for(i = lx; i >= 0; i--) { + for (i = lx; i >= 0; i--) { if (buffer[i] != pattern[i]) { break; } @@ -507,7 +508,7 @@ public class BMMimeMultipart extends MimeMultipart { if (s == 2) { if (prevBuffer[1] == '\n') { if (prevBuffer[0] != '\r' && prevBuffer[0] != '\n') { - out.write(prevBuffer,0,1); + out.write(prevBuffer, 0, 1); } if (sin != null) { posVector[0] = endPos; @@ -516,15 +517,15 @@ public class BMMimeMultipart extends MimeMultipart { } else { throw new Exception( "Boundary characters encountered in part Body " + - "without a preceeding CRLF"); + "without a preceeding CRLF"); } - } else if (s==1) { + } else if (s == 1) { if (prevBuffer[0] != '\n') { throw new Exception( "Boundary characters encountered in part Body " + - "without a preceeding CRLF"); - }else { + "without a preceeding CRLF"); + } else { if (sin != null) { posVector[0] = endPos; } @@ -532,13 +533,13 @@ public class BMMimeMultipart extends MimeMultipart { } } else if (s > 2) { - if ((prevBuffer[s-2] == '\r') && (prevBuffer[s-1] == '\n')) { + if ((prevBuffer[s - 2] == '\r') && (prevBuffer[s - 1] == '\n')) { if (sin != null) { posVector[0] = endPos - 2; } else { out.write(prevBuffer, 0, s - 2); } - } else if (prevBuffer[s-1] == '\n') { + } else if (prevBuffer[s - 1] == '\n') { //old impl allowed just a \n if (sin != null) { posVector[0] = endPos - 1; @@ -547,8 +548,8 @@ public class BMMimeMultipart extends MimeMultipart { } } else { throw new Exception( - "Boundary characters encountered in part Body " + - "without a preceeding CRLF"); + "Boundary characters encountered in part Body " + + "without a preceeding CRLF"); } } } @@ -561,22 +562,22 @@ public class BMMimeMultipart extends MimeMultipart { } if ((s > 0) && (sin == null)) { - if (prevBuffer[s-1] == (byte)13) { + if (prevBuffer[s - 1] == (byte) 13) { // if buffer[0] == (byte)10 - if (buffer[0] == (byte)10) { + if (buffer[0] == (byte) 10) { int j; - for(j = lx-1; j > 0; j--) { - if (buffer[j+1] != pattern[j]) { + for (j = lx - 1; j > 0; j--) { + if (buffer[j + 1] != pattern[j]) { break; - } - } - if (j == 0) { - // matched the pattern excluding the last char of the pattern - // so dont write the CR into stream - out.write(prevBuffer,0,s-1); - } else { - out.write(prevBuffer,0,s); - } + } + } + if (j == 0) { + // matched the pattern excluding the last char of the pattern + // so dont write the CR into stream + out.write(prevBuffer, 0, s - 1); + } else { + out.write(prevBuffer, 0, s); + } } else { out.write(prevBuffer, 0, s); } @@ -612,20 +613,20 @@ public class BMMimeMultipart extends MimeMultipart { return true; } else { throw new Exception( - "transport padding after a Mime Boundary should end in a CRLF, found CR only"); + "transport padding after a Mime Boundary should end in a CRLF, found CR only"); } } if (b == '-') { b = is.read(); if (b != '-') { - throw new Exception( - "Unexpected singular '-' character after Mime Boundary"); + throw new Exception( + "Unexpected singular '-' character after Mime Boundary"); } else { //System.out.println("Last Part Found"); lastPartFound.flip(0); // read the next char - b = is.read(); + b = is.read(); } } @@ -641,7 +642,7 @@ public class BMMimeMultipart extends MimeMultipart { b = is.read(); } if (b == '\n') { - return true; + return true; } } } @@ -673,7 +674,8 @@ public class BMMimeMultipart extends MimeMultipart { // Initialise Good Suffix Shift table gss = new int[l]; - NEXT: for (i = l; i > 0; i--) { + NEXT: + for (i = l; i > 0; i--) { // j is the beginning index of suffix being considered for (j = l - 1; j >= i; j--) { // Testing for good suffix @@ -681,9 +683,9 @@ public class BMMimeMultipart extends MimeMultipart { // pattern[j..len] is a good suffix gss[j - 1] = i; } else { - // No match. The array has already been - // filled up with correct values before. - continue NEXT; + // No match. The array has already been + // filled up with correct values before. + continue NEXT; } } while (j > 0) { @@ -756,6 +758,7 @@ public class BMMimeMultipart extends MimeMultipart { this.contentType.setParameter("boundary", bnd); } } + public String getBoundary() { return this.boundary; } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/InternetHeaders.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/InternetHeaders.java index 84616c89b96..0c724613b7d 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/InternetHeaders.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/InternetHeaders.java @@ -320,15 +320,15 @@ public final class InternetHeaders { * @return list of header lines. */ public List getAllHeaderLines() { - if(headerValueView==null) + if (headerValueView == null) headerValueView = new AbstractList() { @Override - public String get(int index) { + public String get(int index) { return headers.get(index).line; } @Override - public int size() { + public int size() { return headers.size(); } }; diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimeMultipart.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimeMultipart.java index 6c5bf210d13..02437053265 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimeMultipart.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimeMultipart.java @@ -31,15 +31,21 @@ package com.sun.xml.internal.messaging.saaj.packaging.mime.internet; -import java.io.*; +import com.sun.xml.internal.messaging.saaj.packaging.mime.MessagingException; +import com.sun.xml.internal.messaging.saaj.packaging.mime.MultipartDataSource; +import com.sun.xml.internal.messaging.saaj.packaging.mime.util.ASCIIUtility; +import com.sun.xml.internal.messaging.saaj.packaging.mime.util.LineInputStream; +import com.sun.xml.internal.messaging.saaj.packaging.mime.util.OutputUtil; +import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream; +import com.sun.xml.internal.messaging.saaj.util.FinalArrayList; +import com.sun.xml.internal.messaging.saaj.util.SAAJUtil; import javax.activation.DataSource; - -import com.sun.xml.internal.messaging.saaj.packaging.mime.*; -import com.sun.xml.internal.messaging.saaj.packaging.mime.util.*; -import com.sun.xml.internal.messaging.saaj.util.FinalArrayList; -import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream; -import com.sun.xml.internal.messaging.saaj.util.SAAJUtil; +import java.io.BufferedInputStream; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; /** * The MimeMultipart class is an implementation @@ -211,7 +217,7 @@ public class MimeMultipart { * @exception MessagingException if no such MimeBodyPart exists */ public MimeBodyPart getBodyPart(int index) - throws MessagingException { + throws MessagingException { parse(); if (parts == null) throw new IndexOutOfBoundsException("No such BodyPart"); @@ -228,19 +234,19 @@ public class MimeMultipart { * @exception MessagingException if no such MimeBodyPart exists. */ public MimeBodyPart getBodyPart(String CID) - throws MessagingException { + throws MessagingException { parse(); int count = getCount(); for (int i = 0; i < count; i++) { MimeBodyPart part = getBodyPart(i); String s = part.getContentID(); - // Old versions of AXIS2 put angle brackets around the content - // id but not the start param - String sNoAngle = (s!= null) ? s.replaceFirst("^<", "").replaceFirst(">$", "") - :null; + // Old versions of AXIS2 put angle brackets around the content + // id but not the start param + String sNoAngle = (s!= null) ? s.replaceFirst("^<", "").replaceFirst(">$", "") + :null; if (s != null && (s.equals(CID) || CID.equals(sNoAngle))) - return part; + return part; } return null; } @@ -319,14 +325,14 @@ public class MimeMultipart { try { in = ds.getInputStream(); if (!(in instanceof ByteArrayInputStream) && - !(in instanceof BufferedInputStream) && - !(in instanceof SharedInputStream)) + !(in instanceof BufferedInputStream) && + !(in instanceof SharedInputStream)) in = new BufferedInputStream(in); } catch (Exception ex) { throw new MessagingException("No inputstream from datasource"); } if (in instanceof SharedInputStream) - sin = (SharedInputStream)in; + sin = (SharedInputStream) in; String boundary = "--" + contentType.getParameter("boundary"); byte[] bndbytes = ASCIIUtility.getBytes(boundary); @@ -338,12 +344,12 @@ public class MimeMultipart { LineInputStream lin = new LineInputStream(in); String line; while ((line = lin.readLine()) != null) { - /* - * Strip trailing whitespace. Can't use trim method - * because it's too aggressive. Some bogus MIME - * messages will include control characters in the - * boundary string. - */ + /* + * Strip trailing whitespace. Can't use trim method + * because it's too aggressive. Some bogus MIME + * messages will include control characters in the + * boundary string. + */ int i; for (i = line.length() - 1; i >= 0; i--) { char c = line.charAt(i); @@ -357,12 +363,12 @@ public class MimeMultipart { if (line == null) throw new MessagingException("Missing start boundary"); - /* - * Read and process body parts until we see the - * terminating boundary line (or EOF). - */ + /* + * Read and process body parts until we see the + * terminating boundary line (or EOF). + */ boolean done = false; - getparts: + getparts: while (!done) { InternetHeaders headers = null; if (sin != null) { @@ -372,7 +378,7 @@ public class MimeMultipart { ; if (line == null) { if (!ignoreMissingEndBoundary) { - throw new MessagingException("Missing End Boundary for Mime Package : EOF while skipping headers"); + throw new MessagingException("Missing End Boundary for Mime Package : EOF while skipping headers"); } // assume there's just a missing end boundary break getparts; @@ -397,7 +403,7 @@ public class MimeMultipart { /* * Read and save the content bytes in buf. */ - for (;;) { + for (; ; ) { if (bol) { /* * At the beginning of a line, check whether the @@ -416,7 +422,7 @@ public class MimeMultipart { if (in.read() == '-') { done = true; foundClosingBoundary = true; - break; // ignore trailing text + break; // ignore trailing text } } // skip linear whitespace @@ -424,12 +430,12 @@ public class MimeMultipart { b2 = in.read(); // check for end of line if (b2 == '\n') - break; // got it! break out of the loop + break; // got it! break out of the loop if (b2 == '\r') { in.mark(1); if (in.read() != '\n') in.reset(); - break; // got it! break out of the loop + break; // got it! break out of the loop } } // failed to match, reset and proceed normally @@ -491,7 +497,7 @@ public class MimeMultipart { buf.close(); } - if (!ignoreMissingEndBoundary && !foundClosingBoundary && sin== null) { + if (!ignoreMissingEndBoundary && !foundClosingBoundary && sin == null) { throw new MessagingException("Missing End Boundary for Mime Package : EOF while skipping headers"); } parsed = true; @@ -510,7 +516,7 @@ public class MimeMultipart { * @since JavaMail 1.2 */ protected InternetHeaders createInternetHeaders(InputStream is) - throws MessagingException { + throws MessagingException { return new InternetHeaders(is); } @@ -523,12 +529,12 @@ public class MimeMultipart { * * @param headers the headers for the body part. * @param content the content of the body part. - * @param len the content length. + * @param len the content length. * @return MimeBodyPart * @since JavaMail 1.2 */ protected MimeBodyPart createMimeBodyPart(InternetHeaders headers, byte[] content, int len) { - return new MimeBodyPart(headers, content,len); + return new MimeBodyPart(headers, content,len); } /** @@ -544,7 +550,7 @@ public class MimeMultipart { * @since JavaMail 1.2 */ protected MimeBodyPart createMimeBodyPart(InputStream is) throws MessagingException { - return new MimeBodyPart(is); + return new MimeBodyPart(is); } /** @@ -564,7 +570,7 @@ public class MimeMultipart { * @exception MessagingException in case of error. */ protected void setMultipartDataSource(MultipartDataSource mp) - throws MessagingException { + throws MessagingException { contentType = new ContentType(mp.getContentType()); int count = mp.getCount(); @@ -582,7 +588,7 @@ public class MimeMultipart { * @see #contentType */ public ContentType getContentType() { - return contentType; + return contentType; } /** diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimePartDataSource.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimePartDataSource.java index eb7b46c5656..786a1f7dd83 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimePartDataSource.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimePartDataSource.java @@ -28,21 +28,21 @@ */ - package com.sun.xml.internal.messaging.saaj.packaging.mime.internet; -import java.io.*; -import java.net.UnknownServiceException; +import com.sun.xml.internal.messaging.saaj.packaging.mime.MessagingException; import javax.activation.DataSource; - -import com.sun.xml.internal.messaging.saaj.packaging.mime.MessagingException; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.UnknownServiceException; /** * A utility class that implements a DataSource out of * a MimeBodyPart. This class is primarily meant for service providers. * - * @author John Mani + * @author John Mani */ public final class MimePartDataSource implements DataSource { @@ -68,13 +68,13 @@ public final class MimePartDataSource implements DataSource { * using the getContentStream() method and decodes * it using the MimeUtility.decode() method. * - * @return decoded input stream + * @return decoded input stream */ @Override public InputStream getInputStream() throws IOException { try { - InputStream is = part.getContentStream(); + InputStream is = part.getContentStream(); String encoding = part.getEncoding(); if (encoding != null) @@ -92,7 +92,7 @@ public final class MimePartDataSource implements DataSource { * This implementation throws the UnknownServiceException. */ @Override - public OutputStream getOutputStream() throws IOException { + public OutputStream getOutputStream() throws IOException { throw new UnknownServiceException(); } @@ -113,11 +113,11 @@ public final class MimePartDataSource implements DataSource { * This implementation just returns an empty string. */ @Override - public String getName() { + public String getName() { try { - return part.getFileName(); + return part.getFileName(); } catch (MessagingException mex) { - return ""; + return ""; } } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimePullMultipart.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimePullMultipart.java index 76f4c78ac29..40589ed30ce 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimePullMultipart.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimePullMultipart.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -113,6 +113,7 @@ public class MimePullMultipart extends MimeMultipart { parsed = true; } + @Override protected void parse() throws MessagingException { parseAll(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/ParameterList.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/ParameterList.java index f1dcc12e143..e16ba612952 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/ParameterList.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/ParameterList.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -50,7 +50,7 @@ public final class ParameterList { * No-arg Constructor. */ public ParameterList() { - this.list = new HashMap(); + this.list = new HashMap<>(); } private ParameterList(HashMap m) { @@ -73,7 +73,7 @@ public final class ParameterList { int type; String name; - list = new HashMap(); + list = new HashMap<>(); while (true) { tk = h.next(); type = tk.getType(); @@ -171,6 +171,7 @@ public final class ParameterList { * * @return String */ + @Override public String toString() { return toString(0); } @@ -232,6 +233,6 @@ public final class ParameterList { } public ParameterList copy() { - return new ParameterList((HashMap)list.clone()); + return new ParameterList((HashMap)list.clone()); } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/ASCIIUtility.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/ASCIIUtility.java index a85fc85dc67..6e11534bee4 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/ASCIIUtility.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/ASCIIUtility.java @@ -32,12 +32,14 @@ package com.sun.xml.internal.messaging.saaj.packaging.mime.util; import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream; -import java.io.*; +import java.io.IOException; +import java.io.InputStream; public class ASCIIUtility { // Private constructor so that this class is not instantiated - private ASCIIUtility() { } + private ASCIIUtility() { + } /** @@ -47,16 +49,14 @@ public class ASCIIUtility { * * Based on java.lang.Integer.parseInt(). * - * @param b bytes to convert to integer. + * @param b bytes to convert to integer. * @param start start of the range. - * @param end end of the range (not including). + * @param end end of the range (not including). * @param radix radix. - * * @return integer. - * */ public static int parseInt(byte[] b, int start, int end, int radix) - throws NumberFormatException { + throws NumberFormatException { if (b == null) throw new NumberFormatException("null"); @@ -77,18 +77,18 @@ public class ASCIIUtility { } multmin = limit / radix; if (i < end) { - digit = Character.digit((char)b[i++], radix); + digit = Character.digit((char) b[i++], radix); if (digit < 0) { throw new NumberFormatException( - "illegal number: " + toString(b, start, end) - ); + "illegal number: " + toString(b, start, end) + ); } else { result = -digit; } } while (i < end) { // Accumulating negatively avoids surprises near MAX_VALUE - digit = Character.digit((char)b[i++], radix); + digit = Character.digit((char) b[i++], radix); if (digit < 0) { throw new NumberFormatException("illegal number"); } @@ -120,56 +120,48 @@ public class ASCIIUtility { * array into a String. The range extends from start * till, but not including end. * - * @param b bytes to convert to integer. + * @param b bytes to convert to integer. * @param start start of the range. - * @param end end of the range (not including). - * + * @param end end of the range (not including). * @return integer. - * */ public static String toString(byte[] b, int start, int end) { int size = end - start; char[] theChars = new char[size]; for (int i = 0, j = start; i < size; ) - theChars[i++] = (char)(b[j++]&0xff); + theChars[i++] = (char) (b[j++] & 0xff); return new String(theChars); } - /** - * Encodes specified String into a sequence of bytes using the platform's - * default charset, storing the result into a new byte array. - * - * @param s string to encode into byte array. - * - * @return byte array. - * - */ + /** + * Encodes specified String into a sequence of bytes using the platform's + * default charset, storing the result into a new byte array. + * + * @param s string to encode into byte array. + * @return byte array. + */ public static byte[] getBytes(String s) { - char [] chars= s.toCharArray(); + char[] chars = s.toCharArray(); int size = chars.length; byte[] bytes = new byte[size]; - for (int i = 0; i < size;) + for (int i = 0; i < size; ) bytes[i] = (byte) chars[i++]; return bytes; } /** - * Converts input stream to array. - * - * @param is stream to convert to array. - * - * @return byte array. - * - * @throws IOException if an I/O error occurs. + * Converts input stream to array. * - * @deprecated - * this is an expensive operation that require an additional - * buffer reallocation just to get the array of an exact size. - * Unless you absolutely need the exact size array, don't use this. - * Use {@link ByteOutputStream} and {@link ByteOutputStream#write(InputStream)}. + * @param is stream to convert to array. + * @return byte array. + * @throws IOException if an I/O error occurs. + * @deprecated this is an expensive operation that require an additional + * buffer reallocation just to get the array of an exact size. + * Unless you absolutely need the exact size array, don't use this. + * Use {@link ByteOutputStream} and {@link ByteOutputStream#write(InputStream)}. */ @Deprecated public static byte[] getBytes(InputStream is) throws IOException { diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QDecoderStream.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QDecoderStream.java index 06ea9380930..ab8c3ab834a 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QDecoderStream.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QDecoderStream.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -63,6 +63,7 @@ public class QDecoderStream extends QPDecoderStream { * stream is reached. * @exception IOException if an I/O error occurs. */ + @Override public int read() throws IOException { int c = in.read(); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QPDecoderStream.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QPDecoderStream.java index 1f60b1a7503..7184e002a96 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QPDecoderStream.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QPDecoderStream.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -67,6 +67,7 @@ public class QPDecoderStream extends FilterInputStream { * stream is reached. * @exception IOException if an I/O error occurs. */ + @Override public int read() throws IOException { if (spaces > 0) { // We have cached space characters, return one @@ -150,6 +151,7 @@ public class QPDecoderStream extends FilterInputStream { * the stream has been reached. * @exception IOException if an I/O error occurs. */ + @Override public int read(byte[] buf, int off, int len) throws IOException { int i, c; for (i = 0; i < len; i++) { @@ -167,6 +169,7 @@ public class QPDecoderStream extends FilterInputStream { * Tests if this input stream supports marks. Currently this class * does not support marks */ + @Override public boolean markSupported() { return false; } @@ -178,6 +181,7 @@ public class QPDecoderStream extends FilterInputStream { * this method just invokes the available method * of the original input stream. */ + @Override public int available() throws IOException { // This is bogus ! We don't really know how much // bytes are available *after* decoding diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QPEncoderStream.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QPEncoderStream.java index 3f80d39ff09..74ac839646d 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QPEncoderStream.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/QPEncoderStream.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -81,6 +81,7 @@ public class QPEncoderStream extends FilterOutputStream { * @param len the number of bytes to write. * @exception IOException if an I/O error occurs. */ + @Override public void write(byte[] b, int off, int len) throws IOException { for (int i = 0; i < len; i++) write(b[off + i]); @@ -91,6 +92,7 @@ public class QPEncoderStream extends FilterOutputStream { * @param b the data to be written. * @exception IOException if an I/O error occurs. */ + @Override public void write(byte[] b) throws IOException { write(b, 0, b.length); } @@ -100,6 +102,7 @@ public class QPEncoderStream extends FilterOutputStream { * @param c the byte. * @exception IOException if an I/O error occurs. */ + @Override public void write(int c) throws IOException { c = c & 0xff; // Turn off the MSB. if (gotSpace) { // previous character was @@ -139,6 +142,7 @@ public class QPEncoderStream extends FilterOutputStream { * to be encoded out to the stream. * @exception IOException if an I/O error occurs. */ + @Override public void flush() throws IOException { out.flush(); } @@ -147,6 +151,7 @@ public class QPEncoderStream extends FilterOutputStream { * Forces any buffered output bytes to be encoded out to the stream * and closes this output stream */ + @Override public void close() throws IOException { out.close(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/UUDecoderStream.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/UUDecoderStream.java index d012014bed5..1945aefa3cc 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/UUDecoderStream.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/UUDecoderStream.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -78,6 +78,7 @@ public class UUDecoderStream extends FilterInputStream { * @see java.io.FilterInputStream#in */ + @Override public int read() throws IOException { if (index >= bufsize) { readPrefix(); @@ -88,6 +89,7 @@ public class UUDecoderStream extends FilterInputStream { return buffer[index++] & 0xff; // return lower byte } + @Override public int read(byte[] buf, int off, int len) throws IOException { int i, c; for (i = 0; i < len; i++) { @@ -101,10 +103,12 @@ public class UUDecoderStream extends FilterInputStream { return i; } + @Override public boolean markSupported() { return false; } + @Override public int available() throws IOException { // This is only an estimate, since in.available() // might include CRLFs too .. diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/AttachmentPartImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/AttachmentPartImpl.java index ada4a7de7be..d82c0284265 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/AttachmentPartImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/AttachmentPartImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -88,6 +88,7 @@ public class AttachmentPartImpl extends AttachmentPart { } } + @Override public int getSize() throws SOAPException { if (mimePart != null) { try { @@ -124,6 +125,7 @@ public class AttachmentPartImpl extends AttachmentPart { } } + @Override public void clearContent() { if (mimePart != null) { mimePart.close(); @@ -133,6 +135,7 @@ public class AttachmentPartImpl extends AttachmentPart { rawContent = null; } + @Override public Object getContent() throws SOAPException { try { if (mimePart != null) { @@ -153,6 +156,7 @@ public class AttachmentPartImpl extends AttachmentPart { } } + @Override public void setContent(Object object, String contentType) throws IllegalArgumentException { if (mimePart != null) { @@ -165,23 +169,28 @@ public class AttachmentPartImpl extends AttachmentPart { } + @Override public DataHandler getDataHandler() throws SOAPException { if (mimePart != null) { //return an inputstream return new DataHandler(new DataSource() { + @Override public InputStream getInputStream() throws IOException { return mimePart.read(); } + @Override public OutputStream getOutputStream() throws IOException { throw new UnsupportedOperationException("getOutputStream cannot be supported : You have enabled LazyAttachments Option"); } + @Override public String getContentType() { return mimePart.getContentType(); } + @Override public String getName() { return "MIMEPart Wrapper DataSource"; } @@ -197,6 +206,7 @@ public class AttachmentPartImpl extends AttachmentPart { return dataHandler; } + @Override public void setDataHandler(DataHandler dataHandler) throws IllegalArgumentException { if (mimePart != null) { @@ -216,35 +226,43 @@ public class AttachmentPartImpl extends AttachmentPart { setMimeHeader("Content-Type", dataHandler.getContentType()); } + @Override public void removeAllMimeHeaders() { headers.removeAllHeaders(); } + @Override public void removeMimeHeader(String header) { headers.removeHeader(header); } + @Override public String[] getMimeHeader(String name) { return headers.getHeader(name); } + @Override public void setMimeHeader(String name, String value) { headers.setHeader(name, value); } + @Override public void addMimeHeader(String name, String value) { headers.addHeader(name, value); } - public Iterator getAllMimeHeaders() { + @Override + public Iterator getAllMimeHeaders() { return headers.getAllHeaders(); } - public Iterator getMatchingMimeHeaders(String[] names) { + @Override + public Iterator getMatchingMimeHeaders(String[] names) { return headers.getMatchingHeaders(names); } - public Iterator getNonMatchingMimeHeaders(String[] names) { + @Override + public Iterator getNonMatchingMimeHeaders(String[] names) { return headers.getNonMatchingHeaders(names); } @@ -329,6 +347,7 @@ public class AttachmentPartImpl extends AttachmentPart { } } + @Override public void setBase64Content(InputStream content, String contentType) throws SOAPException { @@ -365,6 +384,7 @@ public class AttachmentPartImpl extends AttachmentPart { } } + @Override public InputStream getBase64Content() throws SOAPException { InputStream stream; if (mimePart != null) { @@ -425,6 +445,7 @@ public class AttachmentPartImpl extends AttachmentPart { } } + @Override public void setRawContent(InputStream content, String contentType) throws SOAPException { if (mimePart != null) { @@ -475,6 +496,7 @@ public class AttachmentPartImpl extends AttachmentPart { } } */ + @Override public void setRawContentBytes( byte[] content, int off, int len, String contentType) throws SOAPException { @@ -498,6 +520,7 @@ public class AttachmentPartImpl extends AttachmentPart { } } + @Override public InputStream getRawContent() throws SOAPException { if (mimePart != null) { return mimePart.read(); @@ -522,6 +545,7 @@ public class AttachmentPartImpl extends AttachmentPart { } } + @Override public byte[] getRawContentBytes() throws SOAPException { InputStream ret; if (mimePart != null) { @@ -556,12 +580,14 @@ public class AttachmentPartImpl extends AttachmentPart { } // attachments are equal if they are the same reference + @Override public boolean equals(Object o) { return (this == o); } // In JDK 8 we get a warning if we implement equals() but not hashCode(). // There is no intuitive value for this, the default one in Object is fine. + @Override public int hashCode() { return super.hashCode(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ContextClassloaderLocal.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ContextClassloaderLocal.java index 22efd453799..09de9035f6e 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ContextClassloaderLocal.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ContextClassloaderLocal.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -71,6 +71,7 @@ abstract class ContextClassloaderLocal { private static ClassLoader getContextClassLoader() { return AccessController.doPrivileged(new PrivilegedAction() { + @Override public ClassLoader run() { ClassLoader cl = null; try { diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageFactoryImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageFactoryImpl.java index d7a0226671b..d2d5c6e3173 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageFactoryImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageFactoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -63,6 +63,7 @@ public class MessageFactoryImpl extends MessageFactory { return oldListener; } + @Override public SOAPMessage createMessage() throws SOAPException { throw new UnsupportedOperationException(); } @@ -105,6 +106,7 @@ public class MessageFactoryImpl extends MessageFactory { "Unable to parse content type: " + e.getMessage()); } } + @Override public SOAPMessage createMessage(MimeHeaders headers, InputStream in) throws SOAPException, IOException { String contentTypeString = MessageImpl.getContentType(headers); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageImpl.java index a7df70323a4..b7fab4715b8 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageImpl.java @@ -87,7 +87,7 @@ public abstract class MessageImpl protected boolean saved = false; protected byte[] messageBytes; protected int messageByteCount; - protected HashMap properties = new HashMap(); + protected Map properties = new HashMap<>(); // used for lazy attachment initialization protected MimeMultipart multiPart = null; @@ -883,17 +883,17 @@ public abstract class MessageImpl throw new RuntimeException(e); } if (attachments == null) - attachments = new FinalArrayList(); + attachments = new FinalArrayList<>(); attachments.add(attachment); needsSave(); } - static private final Iterator nullIter = Collections.EMPTY_LIST.iterator(); + static private final Iterator nullIter = Collections.EMPTY_LIST.iterator(); @Override - public Iterator getAttachments() { + public Iterator getAttachments() { try { initializeAllAttachments(); } catch (Exception e) { @@ -963,7 +963,7 @@ public abstract class MessageImpl } @Override - public Iterator getAttachments(MimeHeaders headers) { + public Iterator getAttachments(MimeHeaders headers) { try { initializeAllAttachments(); } catch (Exception e) { diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SAAJMetaFactoryImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SAAJMetaFactoryImpl.java index 022741ee91f..d4faa0a6a25 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SAAJMetaFactoryImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SAAJMetaFactoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -42,6 +42,7 @@ public class SAAJMetaFactoryImpl extends SAAJMetaFactory { Logger.getLogger(LogDomainConstants.SOAP_DOMAIN, "com.sun.xml.internal.messaging.saaj.soap.LocalStrings"); + @Override protected MessageFactory newMessageFactory(String protocol) throws SOAPException { if (SOAPConstants.SOAP_1_1_PROTOCOL.equals(protocol)) { @@ -60,6 +61,7 @@ public class SAAJMetaFactoryImpl extends SAAJMetaFactory { } } + @Override protected SOAPFactory newSOAPFactory(String protocol) throws SOAPException { if (SOAPConstants.SOAP_1_1_PROTOCOL.equals(protocol)) { diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPDocumentFragment.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPDocumentFragment.java new file mode 100644 index 00000000000..84c6d69f9d5 --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPDocumentFragment.java @@ -0,0 +1,234 @@ +/* + * Copyright (c) 2017, 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.xml.internal.messaging.saaj.soap; + +import com.sun.xml.internal.messaging.saaj.soap.impl.NodeListImpl; +import org.w3c.dom.*; + +/** + * SAAJ wrapper for {@link DocumentFragment} + * + * @author Yan GAO. + */ +public class SOAPDocumentFragment implements DocumentFragment { + + private SOAPDocumentImpl soapDocument; + private DocumentFragment documentFragment; + + public SOAPDocumentFragment(SOAPDocumentImpl ownerDoc) { + this.soapDocument = ownerDoc; + this.documentFragment = soapDocument.getDomDocument().createDocumentFragment(); + } + + public SOAPDocumentFragment() {} + + @Override + public boolean hasAttributes() { + return documentFragment.hasAttributes(); + } + + @Override + public boolean isSameNode(Node other) { + return documentFragment.isSameNode(getDomNode(other)); + } + + @Override + public String lookupNamespaceURI(String prefix) { + return documentFragment.lookupNamespaceURI(prefix); + } + + @Override + public Node getParentNode() { + return soapDocument.findIfPresent(documentFragment.getParentNode()); + } + + @Override + public Node getFirstChild() { + return soapDocument.findIfPresent(documentFragment.getFirstChild()); + } + + @Override + public Object getUserData(String key) { + return documentFragment.getUserData(key); + } + + @Override + public String getTextContent() throws DOMException { + return documentFragment.getTextContent(); + } + @Override + public short getNodeType() { + return documentFragment.getNodeType(); + } + + public Node getDomNode(Node node) { + return soapDocument.getDomNode(node); + } + + @Override + public Node appendChild(Node newChild) throws DOMException { + Node node = soapDocument.importNode(newChild, true); + return soapDocument.findIfPresent(documentFragment.appendChild(getDomNode(node))); + } + + @Override + public Node removeChild(Node oldChild) throws DOMException { + return soapDocument.findIfPresent(documentFragment.removeChild(getDomNode(oldChild))); + } + + @Override + public NamedNodeMap getAttributes() { + return documentFragment.getAttributes(); + } + + @Override + public short compareDocumentPosition(Node other) throws DOMException { + return documentFragment.compareDocumentPosition(getDomNode(other)); + } + @Override + public void setTextContent(String textContent) throws DOMException { + documentFragment.setTextContent(textContent); + } + @Override + public Node insertBefore(Node newChild, Node refChild) throws DOMException { + Node node = soapDocument.importNode(newChild, true); + return soapDocument.findIfPresent(documentFragment.insertBefore(getDomNode(node), getDomNode(refChild))); + } + @Override + public Object setUserData(String key, Object data, UserDataHandler handler) { + return documentFragment.setUserData(key, data, handler); + } + @Override + public boolean isDefaultNamespace(String namespaceURI) { + return documentFragment.isDefaultNamespace(namespaceURI); + } + + @Override + public Node getLastChild() { + return soapDocument.findIfPresent(documentFragment.getLastChild()); + } + + @Override + public void setPrefix(String prefix) throws DOMException { + documentFragment.setPrefix(prefix); + } + @Override + public String getNodeName() { + return documentFragment.getNodeName(); + } + + @Override + public void setNodeValue(String nodeValue) throws DOMException { + documentFragment.setNodeValue(nodeValue); + } + @Override + public Node replaceChild(Node newChild, Node oldChild) throws DOMException { + Node node = soapDocument.importNode(newChild, true); + return soapDocument.findIfPresent(documentFragment.replaceChild(getDomNode(node), getDomNode(oldChild))); + } + @Override + public String getLocalName() { + return documentFragment.getLocalName(); + } + + @Override + public void normalize() { + documentFragment.normalize(); + } + + @Override + public Node cloneNode(boolean deep) { + Node node= documentFragment.cloneNode(deep); + soapDocument.registerChildNodes(node, deep); + return soapDocument.findIfPresent(node); + } + + @Override + public boolean isSupported(String feature, String version) { + return documentFragment.isSupported(feature, version); + } + + @Override + public boolean isEqualNode(Node arg) { + return documentFragment.isEqualNode(getDomNode(arg)); + } + + @Override + public boolean hasChildNodes() { + return documentFragment.hasChildNodes(); + } + + @Override + public String lookupPrefix(String namespaceURI) { + return documentFragment.lookupPrefix(namespaceURI); + } + + @Override + public String getNodeValue() throws DOMException { + return documentFragment.getNodeValue(); + } + @Override + public Document getOwnerDocument() { + return documentFragment.getOwnerDocument(); + } + @Override + public Object getFeature(String feature, String version) { + return documentFragment.getFeature(feature, version); + } + + @Override + public Node getPreviousSibling() { + return soapDocument.findIfPresent(documentFragment.getPreviousSibling()); + } + + @Override + public NodeList getChildNodes() { + return new NodeListImpl(soapDocument, documentFragment.getChildNodes()); + } + + @Override + public String getBaseURI() { + return documentFragment.getBaseURI(); + } + + @Override + public Node getNextSibling() { + return soapDocument.findIfPresent(documentFragment.getNextSibling()); + } + + @Override + public String getPrefix() { + return documentFragment.getPrefix(); + } + + @Override + public String getNamespaceURI() { + return documentFragment.getNamespaceURI(); + } + public Document getSoapDocument() { + return soapDocument; + } +} diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPDocumentImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPDocumentImpl.java index 417cd9a9cc9..d08f01c876c 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPDocumentImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPDocumentImpl.java @@ -32,6 +32,8 @@ package com.sun.xml.internal.messaging.saaj.soap; import com.sun.xml.internal.messaging.saaj.soap.impl.CDATAImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.ElementFactory; import com.sun.xml.internal.messaging.saaj.soap.impl.ElementImpl; +import com.sun.xml.internal.messaging.saaj.soap.impl.NamedNodeMapImpl; +import com.sun.xml.internal.messaging.saaj.soap.impl.NodeListImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.SOAPCommentImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.SOAPTextImpl; import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl; @@ -39,6 +41,7 @@ import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants; import com.sun.xml.internal.messaging.saaj.util.SAAJUtil; import org.w3c.dom.Attr; import org.w3c.dom.CDATASection; +import org.w3c.dom.CharacterData; import org.w3c.dom.Comment; import org.w3c.dom.DOMConfiguration; import org.w3c.dom.DOMException; @@ -52,6 +55,7 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.w3c.dom.ProcessingInstruction; +import org.w3c.dom.Text; import org.w3c.dom.UserDataHandler; import javax.xml.parsers.DocumentBuilder; @@ -59,13 +63,14 @@ import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.soap.SOAPElement; import javax.xml.soap.SOAPException; +import java.lang.reflect.Constructor; import java.text.MessageFormat; -import java.util.HashMap; -import java.util.Map; import java.util.logging.Logger; public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Document { + public static final String SAAJ_NODE = "javax.xml.soap.Node"; + private static final String XMLNS = "xmlns".intern(); protected static final Logger log = Logger.getLogger(LogDomainConstants.SOAP_DOMAIN, @@ -75,8 +80,6 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu private Document document; - private Map domToSoap = new HashMap<>(); - public SOAPDocumentImpl(SOAPPartImpl enclosingDocument) { document = createDocument(); this.enclosingSOAPPart = enclosingDocument; @@ -105,6 +108,7 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu // super(doctype, grammarAccess); // } + @Override public SOAPPartImpl getSOAPPart() { if (enclosingSOAPPart == null) { log.severe("SAAJ0541.soap.fragment.not.bound.to.part"); @@ -113,19 +117,23 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu return enclosingSOAPPart; } + @Override public SOAPDocumentImpl getDocument() { return this; } + @Override public DocumentType getDoctype() { // SOAP means no DTD, No DTD means no doctype (SOAP 1.2 only?) return null; } + @Override public DOMImplementation getImplementation() { return document.getImplementation(); } + @Override public Element getDocumentElement() { // This had better be an Envelope! getSOAPPart().doGetDocumentElement(); @@ -136,6 +144,7 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu return document.getDocumentElement(); } + @Override public Element createElement(String tagName) throws DOMException { return ElementFactory.createElement( this, @@ -144,22 +153,27 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu null); } + @Override public DocumentFragment createDocumentFragment() { - return document.createDocumentFragment(); + return new SOAPDocumentFragment(this); } + @Override public org.w3c.dom.Text createTextNode(String data) { return new SOAPTextImpl(this, data); } + @Override public Comment createComment(String data) { return new SOAPCommentImpl(this, data); } + @Override public CDATASection createCDATASection(String data) throws DOMException { return new CDATAImpl(this, data); } + @Override public ProcessingInstruction createProcessingInstruction( String target, String data) @@ -168,6 +182,7 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu throw new UnsupportedOperationException("Processing Instructions are not allowed in SOAP documents"); } + @Override public Attr createAttribute(String name) throws DOMException { boolean isQualifiedName = (name.indexOf(":") > 0); if (isQualifiedName) { @@ -184,24 +199,70 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu return document.createAttribute(name); } + @Override public EntityReference createEntityReference(String name) throws DOMException { log.severe("SAAJ0543.soap.entity.refs.not.allowed.in.docs"); throw new UnsupportedOperationException("Entity References are not allowed in SOAP documents"); } + @Override public NodeList getElementsByTagName(String tagname) { - return document.getElementsByTagName(tagname); + return new NodeListImpl(this, document.getElementsByTagName(tagname)); } + @Override public org.w3c.dom.Node importNode(Node importedNode, boolean deep) throws DOMException { - final Node node = document.importNode(getDomNode(importedNode), deep); - return node instanceof Element ? - ElementFactory.createElement(this, (Element) node) - : node; + Node domNode = getDomNode(importedNode); + final Node newNode = document.importNode(domNode, deep); + + if (importedNode instanceof javax.xml.soap.Node) { + Node newSoapNode = createSoapNode(importedNode.getClass(), newNode); + newNode.setUserData(SAAJ_NODE, newSoapNode, null); + if (deep && importedNode.hasChildNodes()) { + NodeList childNodes = importedNode.getChildNodes(); + for (int i = 0; i < childNodes.getLength(); i++) { + registerChildNodes(childNodes.item(i), deep); + } + } + return newSoapNode; + } + + registerChildNodes(newNode, deep); + return findIfPresent(newNode); } + //If the parentNode is not registered to domToSoap, create soap wapper for parentNode and register it to domToSoap + //If deep = true, also register all children of parentNode to domToSoap map. + public void registerChildNodes(Node parentNode, boolean deep) { + if (parentNode.getUserData(SAAJ_NODE) == null) { + if (parentNode instanceof Element) { + ElementFactory.createElement(this, (Element) parentNode); + } else if (parentNode instanceof CharacterData) { + switch (parentNode.getNodeType()) { + case CDATA_SECTION_NODE: + new CDATAImpl(this, (CharacterData) parentNode); + break; + case COMMENT_NODE: + new SOAPCommentImpl(this, (CharacterData) parentNode); + break; + case TEXT_NODE: + new SOAPTextImpl(this, (CharacterData) parentNode); + break; + } + } + } + if (deep) { + NodeList nodeList = parentNode.getChildNodes(); + for (int i = 0; i < nodeList.getLength(); i++) { + Node nextChild = nodeList.item(i); + registerChildNodes(nextChild, true); + } + } + } + + @Override public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException { return ElementFactory.createElement( @@ -211,19 +272,22 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu namespaceURI); } + @Override public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { return document.createAttributeNS(namespaceURI, qualifiedName); } + @Override public NodeList getElementsByTagNameNS( String namespaceURI, String localName) { - return document.getElementsByTagNameNS(namespaceURI, localName); + return new NodeListImpl(this, document.getElementsByTagNameNS(namespaceURI, localName)); } + @Override public Element getElementById(String elementId) { - return document.getElementById(elementId); + return (Element) findIfPresent(document.getElementById(elementId)); } @Override @@ -293,7 +357,7 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu @Override public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException { - return document.renameNode(n, namespaceURI, qualifiedName); + return findIfPresent(document.renameNode(n, namespaceURI, qualifiedName)); } @Override @@ -318,37 +382,37 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu @Override public Node getParentNode() { - return document.getParentNode(); + return findIfPresent(document.getParentNode()); } @Override public NodeList getChildNodes() { - return document.getChildNodes(); + return new NodeListImpl(this, document.getChildNodes()); } @Override public Node getFirstChild() { - return document.getFirstChild(); + return findIfPresent(document.getFirstChild()); } @Override public Node getLastChild() { - return document.getLastChild(); + return findIfPresent(document.getLastChild()); } @Override public Node getPreviousSibling() { - return document.getPreviousSibling(); + return findIfPresent(document.getPreviousSibling()); } @Override public Node getNextSibling() { - return document.getNextSibling(); + return findIfPresent(document.getNextSibling()); } @Override public NamedNodeMap getAttributes() { - return document.getAttributes(); + return new NamedNodeMapImpl(document.getAttributes(), this); } @Override @@ -383,7 +447,9 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu @Override public Node cloneNode(boolean deep) { - return document.cloneNode(deep); + Node node = document.cloneNode(deep); + registerChildNodes(node, deep); + return findIfPresent(node); } @Override @@ -428,7 +494,7 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu @Override public short compareDocumentPosition(Node other) throws DOMException { - return document.compareDocumentPosition(other); + return document.compareDocumentPosition(getDomNode(other)); } @Override @@ -443,7 +509,7 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu @Override public boolean isSameNode(Node other) { - return document.isSameNode(other); + return document.isSameNode(getDomNode(other)); } @Override @@ -463,7 +529,7 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu @Override public boolean isEqualNode(Node arg) { - return document.isEqualNode(arg); + return document.isEqualNode(getDomNode(arg)); } @Override @@ -496,11 +562,11 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu */ public void register(javax.xml.soap.Node node) { final Node domElement = getDomNode(node); - if (domToSoap.containsKey(domElement)) { + if (domElement.getUserData(SAAJ_NODE) != null) { throw new IllegalStateException("Element " + domElement.getNodeName() + " is already registered"); } - domToSoap.put(domElement, node); + domElement.setUserData(SAAJ_NODE, node, null); } /** @@ -522,7 +588,7 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu if (node instanceof javax.xml.soap.Node) { return (javax.xml.soap.Node) node; } - final javax.xml.soap.Node found = domToSoap.get(node); + final javax.xml.soap.Node found = (javax.xml.soap.Node) node.getUserData(SAAJ_NODE); if (found == null && required) { throw new IllegalArgumentException(MessageFormat.format("Cannot find SOAP wrapper for element {0}", node)); } @@ -562,6 +628,24 @@ public class SOAPDocumentImpl implements SOAPDocument, javax.xml.soap.Node, Docu return node; } + + private Node createSoapNode(Class nodeType, Node node) { + if (SOAPTextImpl.class.isAssignableFrom(nodeType)) { + return new SOAPTextImpl(this, (Text) node); + } else if (SOAPCommentImpl.class.isAssignableFrom(nodeType)) { + return new SOAPCommentImpl(this, (Comment) node); + } else if (CDATAImpl.class.isAssignableFrom(nodeType)) { + return new CDATAImpl(this, (CDATASection) node); + } + try { + Constructor constructor = nodeType.getConstructor(SOAPDocumentImpl.class, Element.class); + return constructor.newInstance(this, node); + } catch (Exception e) { + throw new IllegalStateException(e); + } + } + + public Document getDomElement() { return document; } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPFactoryImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPFactoryImpl.java index fc97fa83488..ac5d9eec006 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPFactoryImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPFactoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -49,6 +49,7 @@ public abstract class SOAPFactoryImpl extends SOAPFactory { protected abstract SOAPDocumentImpl createDocument(); + @Override public SOAPElement createElement(String tagName) throws SOAPException { if (tagName == null) { log.log( @@ -60,6 +61,7 @@ public abstract class SOAPFactoryImpl extends SOAPFactory { NameImpl.createFromTagName(tagName)); } + @Override public SOAPElement createElement(Name name) throws SOAPException { // @since SAAJ 1.3 // If the Name was null it would cause a NullPointerException in earlier release @@ -71,6 +73,7 @@ public abstract class SOAPFactoryImpl extends SOAPFactory { return ElementFactory.createElement(createDocument(), name); } + @Override public SOAPElement createElement(QName qname) throws SOAPException { if (qname == null) { log.log(Level.SEVERE,"SAAJ0567.soap.null.input", @@ -80,6 +83,7 @@ public abstract class SOAPFactoryImpl extends SOAPFactory { return ElementFactory.createElement(createDocument(),qname); } + @Override public SOAPElement createElement( String localName, String prefix, @@ -96,6 +100,7 @@ public abstract class SOAPFactoryImpl extends SOAPFactory { return ElementFactory.createElement(createDocument(), localName, prefix, uri); } + @Override public Name createName(String localName, String prefix, String uri) throws SOAPException { // @since SAAJ 1.3 @@ -110,6 +115,7 @@ public abstract class SOAPFactoryImpl extends SOAPFactory { return NameImpl.create(localName, prefix, uri); } + @Override public Name createName(String localName) throws SOAPException { // @since SAAJ 1.3 // if localName==null, earlier impl would create Name with localName=null @@ -125,6 +131,7 @@ public abstract class SOAPFactoryImpl extends SOAPFactory { // Note: the child elements might still be org.w3c.dom.Element's, but the // getChildElements will do the conversion to SOAPElement when called. + @Override public SOAPElement createElement(Element domElement) throws SOAPException { if (domElement == null) { return null; @@ -163,14 +170,17 @@ public abstract class SOAPFactoryImpl extends SOAPFactory { return copy; } + @Override public Detail createDetail() throws SOAPException { throw new UnsupportedOperationException(); } + @Override public SOAPFault createFault(String reasonText, QName faultCode) throws SOAPException { throw new UnsupportedOperationException(); } + @Override public SOAPFault createFault() throws SOAPException { throw new UnsupportedOperationException(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPIOException.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPIOException.java index 772fcd5662f..90782ccbdad 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPIOException.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPIOException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -64,6 +64,7 @@ public class SOAPIOException extends IOException { soapException.fillInStackTrace(); } + @Override public Throwable fillInStackTrace() { if (soapException != null) { soapException.fillInStackTrace(); @@ -71,26 +72,32 @@ public class SOAPIOException extends IOException { return this; } + @Override public String getLocalizedMessage() { return soapException.getLocalizedMessage(); } + @Override public String getMessage() { return soapException.getMessage(); } + @Override public void printStackTrace() { soapException.printStackTrace(); } + @Override public void printStackTrace(PrintStream s) { soapException.printStackTrace(s); } + @Override public void printStackTrace(PrintWriter s) { soapException.printStackTrace(s); } + @Override public String toString() { return soapException.toString(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPPartImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPPartImpl.java index 49abddb9f94..1410930bf74 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPPartImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/SOAPPartImpl.java @@ -75,6 +75,7 @@ import java.io.UnsupportedEncodingException; import java.util.Iterator; import java.util.logging.Level; import java.util.logging.Logger; +import javax.xml.soap.MimeHeader; /** * SOAPPartImpl is the first attachment. This contains the XML/SOAP document. @@ -136,6 +137,7 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { return (message != null) ? message.isFastInfoset() : false; } + @Override public SOAPEnvelope getEnvelope() throws SOAPException { // If there is no SOAP envelope already created, then create @@ -185,38 +187,47 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { } } + @Override public void removeAllMimeHeaders() { headers.removeAllHeaders(); } + @Override public void removeMimeHeader(String header) { headers.removeHeader(header); } + @Override public String[] getMimeHeader(String name) { return headers.getHeader(name); } + @Override public void setMimeHeader(String name, String value) { headers.setHeader(name, value); } + @Override public void addMimeHeader(String name, String value) { headers.addHeader(name, value); } - public Iterator getAllMimeHeaders() { + @Override + public Iterator getAllMimeHeaders() { return headers.getAllHeaders(); } - public Iterator getMatchingMimeHeaders(String[] names) { + @Override + public Iterator getMatchingMimeHeaders(String[] names) { return headers.getMatchingHeaders(names); } - public Iterator getNonMatchingMimeHeaders(String[] names) { + @Override + public Iterator getNonMatchingMimeHeaders(String[] names) { return headers.getNonMatchingHeaders(names); } + @Override public Source getContent() throws SOAPException { if (source != null) { InputStream bis = null; @@ -248,6 +259,7 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { return ((Envelope) getEnvelope()).getContent(); } + @Override public void setContent(Source source) throws SOAPException { try { if (source instanceof StreamSource) { @@ -376,18 +388,22 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { DataHandler getDataHandler() { DataSource ds = new DataSource() { + @Override public OutputStream getOutputStream() throws IOException { throw new IOException("Illegal Operation"); } + @Override public String getContentType() { return getContentTypeString(); } + @Override public String getName() { return getContentId(); } + @Override public InputStream getInputStream() throws IOException { return getContentAsStream(); } @@ -395,15 +411,18 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { return new DataHandler(ds); } + @Override public SOAPDocumentImpl getDocument() { handleNewSource(); return document; } + @Override public SOAPPartImpl getSOAPPart() { return this; } + @Override public DocumentType getDoctype() { return document.getDoctype(); } @@ -412,10 +431,12 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { // same way whether they are called from here or directly from the document. // If the document needs any help from this SOAPPart then // Make it use a call-back as in doGetDocumentElement() below + @Override public DOMImplementation getImplementation() { return document.getImplementation(); } + @Override public Element getDocumentElement() { // If there is no SOAP envelope already created, then create // one from a source if one exists. If there is a newer source @@ -435,26 +456,32 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { } } + @Override public Element createElement(String tagName) throws DOMException { return document.createElement(tagName); } + @Override public DocumentFragment createDocumentFragment() { return document.createDocumentFragment(); } + @Override public org.w3c.dom.Text createTextNode(String data) { return document.createTextNode(data); } + @Override public Comment createComment(String data) { return document.createComment(data); } + @Override public CDATASection createCDATASection(String data) throws DOMException { return document.createCDATASection(data); } + @Override public ProcessingInstruction createProcessingInstruction( String target, String data) @@ -462,20 +489,24 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { return document.createProcessingInstruction(target, data); } + @Override public Attr createAttribute(String name) throws DOMException { return document.createAttribute(name); } + @Override public EntityReference createEntityReference(String name) throws DOMException { return document.createEntityReference(name); } + @Override public NodeList getElementsByTagName(String tagname) { handleNewSource(); return document.getElementsByTagName(tagname); } + @Override public org.w3c.dom.Node importNode( org.w3c.dom.Node importedNode, boolean deep) @@ -484,16 +515,19 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { return document.importNode(importedNode, deep); } + @Override public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException { return document.createElementNS(namespaceURI, qualifiedName); } + @Override public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { return document.createAttributeNS(namespaceURI, qualifiedName); } + @Override public NodeList getElementsByTagNameNS( String namespaceURI, String localName) { @@ -501,16 +535,19 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { return document.getElementsByTagNameNS(namespaceURI, localName); } + @Override public Element getElementById(String elementId) { handleNewSource(); return document.getElementById(elementId); } + @Override public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws DOMException { handleNewSource(); return document.appendChild(newChild); } + @Override public org.w3c.dom.Node cloneNode(boolean deep) { handleNewSource(); return document.cloneNode(deep); @@ -525,75 +562,92 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { return newSoapPart; } + @Override public NamedNodeMap getAttributes() { return document.getDomDocument().getAttributes(); } + @Override public NodeList getChildNodes() { handleNewSource(); return document.getChildNodes(); } + @Override public org.w3c.dom.Node getFirstChild() { handleNewSource(); return document.getFirstChild(); } + @Override public org.w3c.dom.Node getLastChild() { handleNewSource(); return document.getLastChild(); } + @Override public String getLocalName() { return document.getDomDocument().getLocalName(); } + @Override public String getNamespaceURI() { return document.getDomDocument().getNamespaceURI(); } + @Override public org.w3c.dom.Node getNextSibling() { handleNewSource(); return document.getNextSibling(); } + @Override public String getNodeName() { return document.getDomDocument().getNodeName(); } + @Override public short getNodeType() { return document.getDomDocument().getNodeType(); } + @Override public String getNodeValue() throws DOMException { return document.getNodeValue(); } + @Override public Document getOwnerDocument() { return document.getDomDocument().getOwnerDocument(); } + @Override public org.w3c.dom.Node getParentNode() { return document.getDomDocument().getParentNode(); } + @Override public String getPrefix() { return document.getDomDocument().getPrefix(); } + @Override public org.w3c.dom.Node getPreviousSibling() { return document.getDomDocument().getPreviousSibling(); } + @Override public boolean hasAttributes() { return document.getDomDocument().hasAttributes(); } + @Override public boolean hasChildNodes() { handleNewSource(); return document.hasChildNodes(); } + @Override public org.w3c.dom.Node insertBefore( org.w3c.dom.Node arg0, org.w3c.dom.Node arg1) @@ -602,21 +656,25 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { return document.insertBefore(arg0, arg1); } + @Override public boolean isSupported(String arg0, String arg1) { return document.getDomDocument().isSupported(arg0, arg1); } + @Override public void normalize() { handleNewSource(); document.normalize(); } + @Override public org.w3c.dom.Node removeChild(org.w3c.dom.Node arg0) throws DOMException { handleNewSource(); return document.removeChild(arg0); } + @Override public org.w3c.dom.Node replaceChild( org.w3c.dom.Node arg0, org.w3c.dom.Node arg1) @@ -625,10 +683,12 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { return document.replaceChild(arg0, arg1); } + @Override public void setNodeValue(String arg0) throws DOMException { document.setNodeValue(arg0); } + @Override public void setPrefix(String arg0) throws DOMException { document.setPrefix(arg0); } @@ -703,141 +763,173 @@ public abstract class SOAPPartImpl extends SOAPPart implements SOAPDocument { this.sourceCharsetEncoding = charset; } + @Override public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, String namespaceURI, String qualifiedName) throws DOMException { handleNewSource(); return document.renameNode(n, namespaceURI, qualifiedName); } + @Override public void normalizeDocument() { document.normalizeDocument(); } + @Override public DOMConfiguration getDomConfig() { return document.getDomDocument().getDomConfig(); } + @Override public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws DOMException { handleNewSource(); return document.adoptNode(source); } + @Override public void setDocumentURI(String documentURI) { document.setDocumentURI(documentURI); } + @Override public String getDocumentURI() { return document.getDomDocument().getDocumentURI(); } + @Override public void setStrictErrorChecking(boolean strictErrorChecking) { document.setStrictErrorChecking(strictErrorChecking); } + @Override public String getInputEncoding() { return document.getDomDocument().getInputEncoding(); } + @Override public String getXmlEncoding() { return document.getDomDocument().getXmlEncoding(); } + @Override public boolean getXmlStandalone() { return document.getDomDocument().getXmlStandalone(); } + @Override public void setXmlStandalone(boolean xmlStandalone) throws DOMException { document.setXmlStandalone(xmlStandalone); } + @Override public String getXmlVersion() { return document.getDomDocument().getXmlVersion(); } + @Override public void setXmlVersion(String xmlVersion) throws DOMException { document.setXmlVersion(xmlVersion); } + @Override public boolean getStrictErrorChecking() { return document.getDomDocument().getStrictErrorChecking(); } // DOM L3 methods from org.w3c.dom.Node + @Override public String getBaseURI() { return document.getDomDocument().getBaseURI(); } + @Override public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException { return document.compareDocumentPosition(other); } + @Override public String getTextContent() throws DOMException { return document.getTextContent(); } + @Override public void setTextContent(String textContent) throws DOMException { document.setTextContent(textContent); } + @Override public boolean isSameNode(org.w3c.dom.Node other) { return document.isSameNode(other); } + @Override public String lookupPrefix(String namespaceURI) { return document.getDomDocument().lookupPrefix(namespaceURI); } + @Override public boolean isDefaultNamespace(String namespaceURI) { return document.isDefaultNamespace(namespaceURI); } + @Override public String lookupNamespaceURI(String prefix) { return document.lookupNamespaceURI(prefix); } + @Override public boolean isEqualNode(org.w3c.dom.Node arg) { return document.getDomDocument().isEqualNode(arg); } + @Override public Object getFeature(String feature, String version) { return document.getFeature(feature,version); } + @Override public Object setUserData(String key, Object data, UserDataHandler handler) { return document.setUserData(key, data, handler); } + @Override public Object getUserData(String key) { return document.getDomDocument().getUserData(key); } + @Override public void recycleNode() { // Nothing seems to be required to be done here } + @Override public String getValue() { return null; } + @Override public void setValue(String value) { log.severe("SAAJ0571.soappart.setValue.not.defined"); throw new IllegalStateException("Setting value of a soap part is not defined"); } + @Override public void setParentElement(SOAPElement parent) throws SOAPException { log.severe("SAAJ0570.soappart.parent.element.not.defined"); throw new SOAPExceptionImpl("The parent element of a soap part is not defined"); } + @Override public SOAPElement getParentElement() { return null; } + @Override public void detachNode() { // Nothing seems to be required to be done here } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/StaxLazySourceBridge.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/StaxLazySourceBridge.java index 751a014c163..cd78cdda2fe 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/StaxLazySourceBridge.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/StaxLazySourceBridge.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -42,38 +42,39 @@ import com.sun.xml.internal.org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWrit * @author shih-chang.chen@oracle.com */ public class StaxLazySourceBridge extends StaxBridge { - private LazyEnvelopeSource lazySource; + private LazyEnvelopeSource lazySource; - public StaxLazySourceBridge(LazyEnvelopeSource src, SOAPPartImpl soapPart) throws SOAPException { - super(soapPart); - lazySource = src; - final String soapEnvNS = soapPart.getSOAPNamespace(); - try { - breakpoint = new XMLStreamReaderToXMLStreamWriter.Breakpoint(src.readToBodyStarTag(), saajWriter) { - public boolean proceedAfterStartElement() { - if ("Body".equals(reader.getLocalName()) && soapEnvNS.equals(reader.getNamespaceURI()) ){ - return false; - } else - return true; - } - }; - } catch (XMLStreamException e) { - throw new SOAPException(e); + public StaxLazySourceBridge(LazyEnvelopeSource src, SOAPPartImpl soapPart) throws SOAPException { + super(soapPart); + lazySource = src; + final String soapEnvNS = soapPart.getSOAPNamespace(); + try { + breakpoint = new XMLStreamReaderToXMLStreamWriter.Breakpoint(src.readToBodyStarTag(), saajWriter) { + @Override + public boolean proceedAfterStartElement() { + if ("Body".equals(reader.getLocalName()) && soapEnvNS.equals(reader.getNamespaceURI()) ){ + return false; + } else + return true; } + }; + } catch (XMLStreamException e) { + throw new SOAPException(e); } + } - @Override + @Override public XMLStreamReader getPayloadReader() { return lazySource.readPayload(); // throw new UnsupportedOperationException(); } - @Override + @Override public QName getPayloadQName() { return lazySource.getPayloadQName(); } - @Override + @Override public String getPayloadAttributeValue(String attName) { if (lazySource.isPayloadStreamReader()) { XMLStreamReader reader = lazySource.readPayload(); @@ -84,7 +85,7 @@ public class StaxLazySourceBridge extends StaxBridge { return null; } - @Override + @Override public String getPayloadAttributeValue(QName attName) { if (lazySource.isPayloadStreamReader()) { XMLStreamReader reader = lazySource.readPayload(); @@ -95,12 +96,13 @@ public class StaxLazySourceBridge extends StaxBridge { return null; } - public void bridgePayload() throws XMLStreamException { - //Assuming out is at Body - writePayloadTo(saajWriter); - } + @Override + public void bridgePayload() throws XMLStreamException { + //Assuming out is at Body + writePayloadTo(saajWriter); + } - public void writePayloadTo(XMLStreamWriter writer) throws XMLStreamException { + public void writePayloadTo(XMLStreamWriter writer) throws XMLStreamException { lazySource.writePayloadTo(writer); } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/StaxReaderBridge.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/StaxReaderBridge.java index 753a26313e8..551de80d962 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/StaxReaderBridge.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/StaxReaderBridge.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -38,41 +38,46 @@ import com.sun.xml.internal.org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWrit * @author shih-chang.chen@oracle.com */ public class StaxReaderBridge extends StaxBridge { - private XMLStreamReader in; + private XMLStreamReader in; - public StaxReaderBridge(XMLStreamReader reader, SOAPPartImpl soapPart) throws SOAPException { - super(soapPart); - in = reader; - final String soapEnvNS = soapPart.getSOAPNamespace(); - breakpoint = new XMLStreamReaderToXMLStreamWriter.Breakpoint(reader, saajWriter) { - boolean seenBody = false; - boolean stopedAtBody = false; - public boolean proceedBeforeStartElement() { - if (stopedAtBody) return true; - if (seenBody) { - stopedAtBody = true; - return false; - } - if ("Body".equals(reader.getLocalName()) && soapEnvNS.equals(reader.getNamespaceURI()) ){ - seenBody = true; - } - return true; + public StaxReaderBridge(XMLStreamReader reader, SOAPPartImpl soapPart) throws SOAPException { + super(soapPart); + in = reader; + final String soapEnvNS = soapPart.getSOAPNamespace(); + breakpoint = new XMLStreamReaderToXMLStreamWriter.Breakpoint(reader, saajWriter) { + boolean seenBody = false; + boolean stopedAtBody = false; + @Override + public boolean proceedBeforeStartElement() { + if (stopedAtBody) return true; + if (seenBody) { + stopedAtBody = true; + return false; } - }; - } + if ("Body".equals(reader.getLocalName()) && soapEnvNS.equals(reader.getNamespaceURI()) ){ + seenBody = true; + } + return true; + } + }; + } + @Override public XMLStreamReader getPayloadReader() { return in; } + @Override public QName getPayloadQName() { return (in.getEventType() == XMLStreamConstants.START_ELEMENT) ? in.getName() : null; } + @Override public String getPayloadAttributeValue(String attName) { return (in.getEventType() == XMLStreamConstants.START_ELEMENT) ? in.getAttributeValue(null, attName) : null; } + @Override public String getPayloadAttributeValue(QName attName) { return (in.getEventType() == XMLStreamConstants.START_ELEMENT) ? in.getAttributeValue(attName.getNamespaceURI(), attName.getLocalPart()) : null; } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/dynamic/SOAPFactoryDynamicImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/dynamic/SOAPFactoryDynamicImpl.java index 58136239bdf..d7a45dcc97e 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/dynamic/SOAPFactoryDynamicImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/dynamic/SOAPFactoryDynamicImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -36,10 +36,12 @@ import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.SOAPFactoryImpl; public class SOAPFactoryDynamicImpl extends SOAPFactoryImpl { + @Override protected SOAPDocumentImpl createDocument() { return null; } + @Override public Detail createDetail() throws SOAPException { throw new UnsupportedOperationException( "createDetail() not supported for Dynamic Protocol"); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/dynamic/SOAPMessageFactoryDynamicImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/dynamic/SOAPMessageFactoryDynamicImpl.java index 2ea59f9d015..64b2678172a 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/dynamic/SOAPMessageFactoryDynamicImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/dynamic/SOAPMessageFactoryDynamicImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -35,6 +35,7 @@ import javax.xml.soap.*; import com.sun.xml.internal.messaging.saaj.soap.MessageFactoryImpl; public class SOAPMessageFactoryDynamicImpl extends MessageFactoryImpl { + @Override public SOAPMessage createMessage() throws SOAPException { throw new UnsupportedOperationException( "createMessage() not supported for Dynamic Protocol"); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/BodyElementImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/BodyElementImpl.java index 30777a7ef03..10a45b7a93a 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/BodyElementImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/BodyElementImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -29,6 +29,7 @@ import javax.xml.namespace.QName; import javax.xml.soap.*; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; +import org.w3c.dom.Element; /** * All elements of the SOAP-ENV:BODY. @@ -47,6 +48,11 @@ public abstract class BodyElementImpl super(ownerDoc, qname); } + public BodyElementImpl(SOAPDocumentImpl ownerDoc, Element domElement) { + super(ownerDoc, domElement); + } + + @Override public void setParentElement(SOAPElement element) throws SOAPException { if (! (element instanceof SOAPBody)) { log.severe("SAAJ0101.impl.parent.of.body.elem.mustbe.body"); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/BodyImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/BodyImpl.java index 4993bf71e7e..d5885ea5d26 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/BodyImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/BodyImpl.java @@ -30,21 +30,30 @@ import java.util.Locale; import java.util.logging.Level; import javax.xml.namespace.QName; -import javax.xml.soap.*; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import com.sun.xml.internal.messaging.saaj.util.SAAJUtil; -import org.w3c.dom.*; -import org.w3c.dom.Node; import com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocument; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.StaxBridge; import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl; +import javax.xml.soap.Name; +import javax.xml.soap.SOAPBody; +import javax.xml.soap.SOAPBodyElement; +import javax.xml.soap.SOAPElement; +import javax.xml.soap.SOAPEnvelope; +import javax.xml.soap.SOAPException; +import javax.xml.soap.SOAPFault; +import org.w3c.dom.Document; +import org.w3c.dom.DocumentFragment; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; /** * The implementation of SOAP-ENV:BODY or the SOAPBody abstraction. @@ -72,6 +81,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { protected abstract SOAPFault createFaultElement(); protected abstract QName getDefaultFaultCode(); + @Override public SOAPFault addFault() throws SOAPException { if (hasFault()) { log.severe("SAAJ0110.impl.fault.already.exists"); @@ -88,6 +98,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { return fault; } + @Override public SOAPFault addFault( Name faultCode, String faultString, @@ -100,6 +111,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { return fault; } + @Override public SOAPFault addFault( QName faultCode, String faultString, @@ -112,6 +124,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { return fault; } + @Override public SOAPFault addFault(Name faultCode, String faultString) throws SOAPException { @@ -121,6 +134,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { return fault; } + @Override public SOAPFault addFault(QName faultCode, String faultString) throws SOAPException { @@ -147,6 +161,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { return null; } + @Override public boolean hasFault() { QName payloadQName = getPayloadQName(); return getFaultQName().equals(payloadQName); @@ -156,6 +171,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { return new QName(getNamespaceURI(), "Fault"); } + @Override public SOAPFault getFault() { if (hasFault()) { if (fault == null) { @@ -167,6 +183,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { return null; } + @Override public SOAPBodyElement addBodyElement(Name name) throws SOAPException { SOAPBodyElement newBodyElement = (SOAPBodyElement) ElementFactory.createNamedElement( @@ -181,6 +198,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { return newBodyElement; } + @Override public SOAPBodyElement addBodyElement(QName qname) throws SOAPException { SOAPBodyElement newBodyElement = (SOAPBodyElement) ElementFactory.createNamedElement( @@ -195,6 +213,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { return newBodyElement; } + @Override public void setParentElement(SOAPElement element) throws SOAPException { if (!(element instanceof SOAPEnvelope)) { @@ -204,10 +223,12 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { super.setParentElement(element); } + @Override protected SOAPElement addElement(Name name) throws SOAPException { return addBodyElement(name); } + @Override protected SOAPElement addElement(QName name) throws SOAPException { return addBodyElement(name); } @@ -226,6 +247,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { // return super.replaceChild(newElement, ref); // } + @Override public SOAPBodyElement addDocument(Document document) throws SOAPException { /* @@ -252,7 +274,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { org.w3c.dom.Node replacingNode = ownerDoc.importNode(docFrag, true); // Adding replacingNode at the last of the children list of body addNode(replacingNode); - Iterator i = + Iterator i = getChildElements(NameImpl.copyElementName(rootElement)); // Return the child element with the required name which is at the // end of the list @@ -263,6 +285,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { //*/ } + @Override protected SOAPElement convertToSoapElement(Element element) { final Node soapNode = getSoapDocument().findIfPresent(element); if ((soapNode instanceof SOAPBodyElement) && @@ -278,6 +301,7 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { } } + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { log.log(Level.SEVERE, "SAAJ0146.impl.invalid.name.change.requested", @@ -288,9 +312,10 @@ public abstract class BodyImpl extends ElementImpl implements SOAPBody { + newName.getLocalPart()); } + @Override public Document extractContentAsDocument() throws SOAPException { - Iterator eachChild = getChildElements(); + Iterator eachChild = getChildElements(); javax.xml.soap.Node firstBodyElement = null; while (eachChild.hasNext() && diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/CDATAImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/CDATAImpl.java index b406caf111e..975d2cc4a1a 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/CDATAImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/CDATAImpl.java @@ -25,325 +25,61 @@ package com.sun.xml.internal.messaging.saaj.soap.impl; -import java.util.logging.Logger; - -import javax.xml.soap.SOAPElement; -import javax.xml.soap.SOAPException; - import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; -import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants; -import com.sun.xml.internal.messaging.saaj.util.SAAJUtil; import org.w3c.dom.CDATASection; +import org.w3c.dom.CharacterData; import org.w3c.dom.DOMException; -import org.w3c.dom.Document; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; import org.w3c.dom.Text; -import org.w3c.dom.UserDataHandler; -public class CDATAImpl implements CDATASection, javax.xml.soap.Text { - - protected static final Logger log = - Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN, - "com.sun.xml.internal.messaging.saaj.soap.impl.LocalStrings"); +public class CDATAImpl extends TextImpl implements CDATASection { static final String cdataUC = "() { + @Override + public Iterator getDetailEntries() { + return new Iterator() { Iterator eachNode = getChildElementNodes(); SOAPElement next = null; SOAPElement last = null; + @Override public boolean hasNext() { if (next == null) { while (eachNode.hasNext()) { @@ -101,15 +107,17 @@ public abstract class DetailImpl extends FaultElementImpl implements Detail { return next != null; } - public SOAPElement next() { + @Override + public DetailEntry next() { if (!hasNext()) { throw new NoSuchElementException(); } last = next; next = null; - return last; + return (DetailEntry) last; } + @Override public void remove() { if (last == null) { throw new IllegalStateException(); @@ -121,6 +129,7 @@ public abstract class DetailImpl extends FaultElementImpl implements Detail { }; } + @Override protected boolean isStandardFaultElement() { return true; } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementFactory.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementFactory.java index 20aa00b0e2b..b704bf32d66 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementFactory.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementFactory.java @@ -106,9 +106,9 @@ public class ElementFactory { } if ("Fault".equalsIgnoreCase(localName)) { if (NameImpl.SOAP11_NAMESPACE.equals(namespaceUri)) { - return new Fault1_1Impl(element, ownerDocument); + return new Fault1_1Impl(ownerDocument, element); } else if (NameImpl.SOAP12_NAMESPACE.equals(namespaceUri)) { - return new Fault1_2Impl(element, ownerDocument); + return new Fault1_2Impl(ownerDocument, element); } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementImpl.java index 5f9ffc3eaac..efbc0dffe1c 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/ElementImpl.java @@ -27,21 +27,37 @@ package com.sun.xml.internal.messaging.saaj.soap.impl; import java.net.URI; import java.net.URISyntaxException; -import java.util.*; import java.util.logging.Level; import java.util.logging.Logger; import javax.xml.namespace.QName; -import javax.xml.soap.*; -import org.w3c.dom.*; import org.w3c.dom.Node; import com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocument; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl; -import com.sun.xml.internal.messaging.saaj.util.*; +import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants; +import com.sun.xml.internal.messaging.saaj.util.NamespaceContextIterator; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.NoSuchElementException; +import javax.xml.soap.Name; +import javax.xml.soap.SOAPBodyElement; +import javax.xml.soap.SOAPConstants; +import javax.xml.soap.SOAPElement; +import javax.xml.soap.SOAPException; +import org.w3c.dom.Attr; +import org.w3c.dom.CharacterData; +import org.w3c.dom.DOMException; +import org.w3c.dom.Document; +import org.w3c.dom.DocumentFragment; +import org.w3c.dom.Element; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.NodeList; +import org.w3c.dom.TypeInfo; +import org.w3c.dom.UserDataHandler; public class ElementImpl implements SOAPElement, SOAPBodyElement { @@ -108,7 +124,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { @Override public NodeList getElementsByTagName(String name) { - return new NodeListImpl(getSoapDocument(), element.getElementsByTagName(name)); + return new NodeListImpl(soapDocument, element.getElementsByTagName(name)); } @Override @@ -139,21 +155,21 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { this.soapDocument = ownerDoc; this.element = ownerDoc.getDomDocument().createElementNS(name.getURI(), name.getQualifiedName()); elementQName = NameImpl.convertToQName(name); - getSoapDocument().register(this); + soapDocument.register(this); } public ElementImpl(SOAPDocumentImpl ownerDoc, QName name) { this.soapDocument = ownerDoc; this.element = ownerDoc.getDomDocument().createElementNS(name.getNamespaceURI(), getQualifiedName(name)); elementQName = name; - getSoapDocument().register(this); + soapDocument.register(this); } public ElementImpl(SOAPDocumentImpl ownerDoc, Element domElement) { this.element = domElement; this.soapDocument = ownerDoc; this.elementQName = new QName(domElement.getNamespaceURI(), domElement.getLocalName()); - getSoapDocument().register(this); + soapDocument.register(this); } public ElementImpl( @@ -165,7 +181,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { this.element = ownerDoc.getDomDocument().createElementNS(uri, qualifiedName); elementQName = new QName(uri, getLocalPart(qualifiedName), getPrefix(qualifiedName)); - getSoapDocument().register(this); + soapDocument.register(this); } public void ensureNamespaceIsDeclared(String prefix, String uri) { @@ -178,28 +194,29 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } } + @Override public Document getOwnerDocument() { return soapDocument; } @Override public Node insertBefore(Node newChild, Node refChild) throws DOMException { - return element.insertBefore(getSoapDocument().getDomNode(newChild), getSoapDocument().getDomNode(refChild)); + return soapDocument.findIfPresent(element.insertBefore(soapDocument.getDomNode(newChild), soapDocument.getDomNode(refChild))); } @Override public Node replaceChild(Node newChild, Node oldChild) throws DOMException { - return element.replaceChild(getSoapDocument().getDomNode(newChild), getSoapDocument().getDomNode(oldChild)); + return soapDocument.findIfPresent(element.replaceChild(soapDocument.getDomNode(newChild), soapDocument.getDomNode(oldChild))); } @Override public Node removeChild(Node oldChild) throws DOMException { - return element.removeChild(getSoapDocument().getDomNode(oldChild)); + return soapDocument.findIfPresent(element.removeChild(soapDocument.getDomNode(oldChild))); } @Override public Node appendChild(Node newChild) throws DOMException { - return element.appendChild(getSoapDocument().getDomNode(newChild)); + return soapDocument.findIfPresent(element.appendChild(soapDocument.getDomNode(newChild))); } @Override @@ -209,7 +226,9 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { @Override public Node cloneNode(boolean deep) { - return element.cloneNode(deep); + Node elementNSNode = element.cloneNode(deep); + soapDocument.registerChildNodes(elementNSNode, deep); + return soapDocument.findIfPresent(soapDocument.getDomNode(elementNSNode)); } @Override @@ -254,7 +273,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { @Override public short compareDocumentPosition(Node other) throws DOMException { - return element.compareDocumentPosition(other); + return element.compareDocumentPosition(soapDocument.getDomNode(other)); } @Override @@ -269,7 +288,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { @Override public boolean isSameNode(Node other) { - return element.isSameNode(other); + return element.isSameNode(soapDocument.getDomNode(other)); } @Override @@ -289,7 +308,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { @Override public boolean isEqualNode(Node arg) { - return element.isEqualNode(arg); + return element.isEqualNode(soapDocument.getDomNode(arg)); } @Override @@ -307,14 +326,17 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return element.getUserData(key); } + @Override public SOAPElement addChildElement(Name name) throws SOAPException { return addElement(name); } + @Override public SOAPElement addChildElement(QName qname) throws SOAPException { return addElement(qname); } + @Override public SOAPElement addChildElement(String localName) throws SOAPException { String nsUri = getNamespaceURI(""); Name name = (nsUri == null || nsUri.isEmpty()) @@ -323,6 +345,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return addChildElement(name); } + @Override public SOAPElement addChildElement(String localName, String prefix) throws SOAPException { String uri = getNamespaceURI(prefix); @@ -337,6 +360,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return addChildElement(localName, prefix, uri); } + @Override public String getNamespaceURI(String prefix) { if ("xmlns".equals(prefix)) { @@ -415,12 +439,14 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return null; } + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { ElementImpl copy = new ElementImpl((SOAPDocumentImpl) getOwnerDocument(), newName); return replaceElementWithSOAPElement(this,copy); } + @Override public QName createQName(String localName, String prefix) throws SOAPException { String uri = getNamespaceURI(prefix); @@ -485,6 +511,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return new NamespaceContextIterator(this, traverseStack); } + @Override public SOAPElement addChildElement( String localName, String prefix, @@ -496,6 +523,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return convertToSoapElement(newElement); } + @Override public SOAPElement addChildElement(SOAPElement element) throws SOAPException { @@ -531,7 +559,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { log.severe("SAAJ0158.impl.version.mismatch.fault"); throw new SOAPExceptionImpl("SOAP Version mismatch encountered when trying to add SOAPFault to SOAPBody"); } - Iterator it = this.getChildElements(); + Iterator it = this.getChildElements(); if (it.hasNext()) { log.severe("SAAJ0156.impl.adding.fault.error"); throw new SOAPExceptionImpl("Cannot add SOAPFault as a child of a non-Empty SOAPBody"); @@ -542,8 +570,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { // preserve the encodingStyle attr as it may get lost in the import String encodingStyle = element.getEncodingStyle(); - final Element domElement = ((ElementImpl) element).getDomElement(); - final Element importedElement = importElement(domElement); + final Element importedElement = importElement(element); addNode(importedElement); final SOAPElement converted = convertToSoapElement(importedElement); @@ -603,7 +630,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } protected void addNode(org.w3c.dom.Node newElement) throws SOAPException { - insertBefore(getSoapDocument().getDomNode(newElement), null); + insertBefore(soapDocument.getDomNode(newElement), null); if (getOwnerDocument() instanceof DocumentFragment) return; @@ -623,7 +650,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { Node child = getFirstChild(); while (child != null) { if (child instanceof Element) { - return (Element) getSoapDocument().find(child); + return (Element) soapDocument.find(child); } child = child.getNextSibling(); } @@ -634,7 +661,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { Node eachChild = getFirstChild(); while (eachChild != null) { if (eachChild instanceof Element) { - SOAPElement eachChildSoap = (SOAPElement) getSoapDocument().find(eachChild); + SOAPElement eachChildSoap = (SOAPElement) soapDocument.find(eachChild); if (eachChildSoap != null) { if (eachChildSoap.getElementName().equals(name)) { return eachChildSoap; @@ -658,6 +685,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return null; } + @Override public SOAPElement addTextNode(String text) throws SOAPException { if (text.startsWith(CDATAImpl.cdataUC) || text.startsWith(CDATAImpl.cdataLC)) @@ -680,6 +708,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return this; } + @Override public SOAPElement addAttribute(Name name, String value) throws SOAPException { addAttributeBare(name, value); @@ -689,6 +718,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return this; } + @Override public SOAPElement addAttribute(QName qname, String value) throws SOAPException { addAttributeBare(qname, value); @@ -731,6 +761,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } } + @Override public SOAPElement addNamespaceDeclaration(String prefix, String uri) throws SOAPException { if (prefix.length() > 0) { @@ -743,10 +774,12 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return this; } + @Override public String getAttributeValue(Name name) { return getAttributeValueFrom(this, name); } + @Override public String getAttributeValue(QName qname) { return getAttributeValueFrom( this, @@ -756,9 +789,10 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { getQualifiedName(qname)); } - public Iterator getAllAttributes() { + @Override + public Iterator getAllAttributes() { Iterator i = getAllAttributesFrom(this); - ArrayList list = new ArrayList(); + ArrayList list = new ArrayList<>(); while (i.hasNext()) { Name name = i.next(); if (!"xmlns".equalsIgnoreCase(name.getPrefix())) @@ -767,9 +801,10 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return list.iterator(); } - public Iterator getAllAttributesAsQNames() { + @Override + public Iterator getAllAttributesAsQNames() { Iterator i = getAllAttributesFrom(this); - ArrayList list = new ArrayList(); + ArrayList list = new ArrayList<>(); while (i.hasNext()) { Name name = i.next(); if (!"xmlns".equalsIgnoreCase(name.getPrefix())) { @@ -780,11 +815,13 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } - public Iterator getNamespacePrefixes() { + @Override + public Iterator getNamespacePrefixes() { return doGetNamespacePrefixes(false); } - public Iterator getVisibleNamespacePrefixes() { + @Override + public Iterator getVisibleNamespacePrefixes() { return doGetNamespacePrefixes(true); } @@ -805,11 +842,13 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } } + @Override public boolean hasNext() { findNext(); return next != null; } + @Override public String next() { findNext(); if (next == null) { @@ -821,6 +860,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return last; } + @Override public void remove() { if (last == null) { throw new IllegalStateException(); @@ -832,18 +872,22 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { }; } + @Override public Name getElementName() { return NameImpl.convertToName(elementQName); } + @Override public QName getElementQName() { return elementQName; } + @Override public boolean removeAttribute(Name name) { return removeAttribute(name.getURI(), name.getLocalName()); } + @Override public boolean removeAttribute(QName name) { return removeAttribute(name.getNamespaceURI(), name.getLocalPart()); } @@ -860,6 +904,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return true; } + @Override public boolean removeNamespaceDeclaration(String prefix) { org.w3c.dom.Attr declaration = getNamespaceAttr(prefix); if (declaration == null) { @@ -873,12 +918,13 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return true; } - public Iterator getChildElements() { + @Override + public Iterator getChildElements() { return getChildElementsFrom(this); } protected SOAPElement convertToSoapElement(Element element) { - final Node soapNode = getSoapDocument().findIfPresent(element); + final Node soapNode = soapDocument.findIfPresent(element); if (soapNode instanceof SOAPElement) { return (SOAPElement) soapNode; } else { @@ -888,6 +934,36 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } } + protected TextImpl convertToSoapText(CharacterData characterData) { + final Node soapNode = getSoapDocument().findIfPresent(characterData); + if (soapNode instanceof TextImpl) { + return (TextImpl) soapNode; + } else { + TextImpl t = null; + switch (characterData.getNodeType()) { + case CDATA_SECTION_NODE: + t = new CDATAImpl(getSoapDocument(), characterData.getData()); + break; + case COMMENT_NODE: + t = new SOAPCommentImpl(getSoapDocument(), characterData.getData()); + break; + case TEXT_NODE: + t = new SOAPTextImpl(getSoapDocument(), characterData.getData()); + break; + } + Node parent = getSoapDocument().find(characterData.getParentNode()); + if (parent != null) { + parent.replaceChild(t, characterData); + } // XXX else throw an exception? + + return t; + +// return replaceElementWithSOAPElement( +// element, +// (ElementImpl) createElement(NameImpl.copyElementName(element))); + } + } + protected SOAPElement replaceElementWithSOAPElement( Element element, ElementImpl copy) { @@ -898,13 +974,13 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { copy.addAttributeBare(name, getAttributeValueFrom(element, name)); } - Iterator eachChild = getChildElementsFrom(element); + Iterator eachChild = getChildElementsFromDOM(element); while (eachChild.hasNext()) { Node nextChild = eachChild.next(); copy.insertBefore(nextChild, null); } - Node parent = getSoapDocument().find(element.getParentNode()); + Node parent = soapDocument.find(element.getParentNode()); if (parent != null) { parent.replaceChild(copy, element); } // XXX else throw an exception? @@ -912,22 +988,22 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return copy; } - protected Iterator getChildElementNodes() { + private Iterator getChildElementsFromDOM(final Element el) { return new Iterator() { - Iterator eachNode = getChildElements(); - Node next = null; + Node next = el.getFirstChild(); + Node nextNext = null; Node last = null; + Node soapElement = getSoapDocument().findIfPresent(el); + @Override public boolean hasNext() { - if (next == null) { - while (eachNode.hasNext()) { - Node node = eachNode.next(); - if (node instanceof Element) { - next = getSoapDocument().findIfPresent(node); - break; - } - } + if (next != null) { + return true; } + if (nextNext != null) { + next = nextNext; + } + return next != null; } @@ -935,11 +1011,66 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { if (hasNext()) { last = next; next = null; + + if ((soapElement instanceof ElementImpl) + && (last instanceof Element)) { + last = + ((ElementImpl) soapElement).convertToSoapElement( + (Element) last); + } else if ((soapElement instanceof ElementImpl) && (last instanceof CharacterData)) { + last = ((ElementImpl) soapElement).convertToSoapText( + (CharacterData) last); + } + + nextNext = last.getNextSibling(); return last; } throw new NoSuchElementException(); } + @Override + public void remove() { + if (last == null) { + throw new IllegalStateException(); + } + Node target = last; + last = null; + el.removeChild(target); + } + }; + } + + protected Iterator getChildElementNodes() { + return new Iterator() { + Iterator eachNode = getChildElements(); + Node next = null; + Node last = null; + + @Override + public boolean hasNext() { + if (next == null) { + while (eachNode.hasNext()) { + Node node = eachNode.next(); + if (node instanceof Element) { + next = soapDocument.findIfPresent(node); + break; + } + } + } + return next != null; + } + + @Override + public javax.xml.soap.Node next() { + if (hasNext()) { + last = next; + next = null; + return (javax.xml.soap.Node) last; + } + throw new NoSuchElementException(); + } + + @Override public void remove() { if (last == null) { throw new IllegalStateException(); @@ -951,20 +1082,23 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { }; } - public Iterator getChildElements(final Name name) { + @Override + public Iterator getChildElements(final Name name) { return getChildElements(name.getURI(), name.getLocalName()); } - public Iterator getChildElements(final QName qname) { + @Override + public Iterator getChildElements(final QName qname) { return getChildElements(qname.getNamespaceURI(), qname.getLocalPart()); } - private Iterator getChildElements(final String nameUri, final String nameLocal) { - return new Iterator() { + private Iterator getChildElements(final String nameUri, final String nameLocal) { + return new Iterator() { Iterator eachElement = getChildElementNodes(); Node next = null; Node last = null; + @Override public boolean hasNext() { if (next == null) { while (eachElement.hasNext()) { @@ -982,15 +1116,17 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return next != null; } - public Node next() { + @Override + public javax.xml.soap.Node next() { if (!hasNext()) { throw new NoSuchElementException(); } last = next; next = null; - return last; + return (javax.xml.soap.Node) last; } + @Override public void remove() { if (last == null) { throw new IllegalStateException(); @@ -1002,6 +1138,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { }; } + @Override public void removeContents() { Node currentChild = getFirstChild(); @@ -1020,6 +1157,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } } + @Override public void setEncodingStyle(String encodingStyle) throws SOAPException { if (!"".equals(encodingStyle)) { try { @@ -1037,6 +1175,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { tryToFindEncodingStyleAttributeName(); } + @Override public String getEncodingStyle() { String encodingStyle = encodingStyleAttribute.getValue(); if (encodingStyle != null) @@ -1058,11 +1197,13 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } // Node methods + @Override public String getValue() { javax.xml.soap.Node valueNode = getValueNode(); return valueNode == null ? null : valueNode.getValue(); } + @Override public void setValue(String value) { Node valueNode = getValueNodeStrict(); if (valueNode != null) { @@ -1092,7 +1233,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } protected javax.xml.soap.Node getValueNode() { - Iterator i = getChildElements(); + Iterator i = getChildElements(); while (i.hasNext()) { Node n = i.next(); if (n.getNodeType() == org.w3c.dom.Node.TEXT_NODE || @@ -1101,12 +1242,13 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { normalize(); // Should remove the normalization step when this gets fixed in // DOM/Xerces. - return getSoapDocument().find(n); + return soapDocument.find(n); } } return null; } + @Override public void setParentElement(SOAPElement element) throws SOAPException { if (element == null) { log.severe("SAAJ0106.impl.no.null.to.parent.elem"); @@ -1138,12 +1280,13 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { encodingStyleAttribute.setName(encodingStyleAttributeName); } + @Override public SOAPElement getParentElement() { Node parentNode = getParentNode(); if (parentNode instanceof SOAPDocument) { return null; } - return (SOAPElement) getSoapDocument().find(parentNode); + return (SOAPElement) soapDocument.find(parentNode); } protected String getSOAPNamespace() { @@ -1167,6 +1310,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return soapNamespace; } + @Override public void detachNode() { Node parent = getParentNode(); if (parent != null) { @@ -1184,6 +1328,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } } + @Override public void recycleNode() { detachNode(); // TBD @@ -1260,10 +1405,12 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { int attributeIndex = 0; String currentName; + @Override public boolean hasNext() { return attributeIndex < attributesLength; } + @Override public Name next() { if (!hasNext()) { throw new NoSuchElementException(); @@ -1283,6 +1430,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } } + @Override public void remove() { if (currentName == null) { throw new IllegalStateException(); @@ -1331,13 +1479,14 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return attribute == null ? null : attribute.getValue(); } - protected Iterator getChildElementsFrom(final Element element) { - return new Iterator() { + protected Iterator getChildElementsFrom(final Element element) { + return new Iterator() { Node next = element.getFirstChild(); Node nextNext = null; Node last = null; - Node soapElement = getSoapDocument().findIfPresent(element); + Node soapElement = soapDocument.findIfPresent(element); + @Override public boolean hasNext() { if (next != null) { return true; @@ -1349,7 +1498,8 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { return next != null; } - public Node next() { + @Override + public javax.xml.soap.Node next() { if (hasNext()) { last = next; next = null; @@ -1362,11 +1512,12 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { } nextNext = last.getNextSibling(); - return getSoapDocument().findIfPresent(last); + return (javax.xml.soap.Node) soapDocument.findIfPresent(last); } throw new NoSuchElementException(); } + @Override public void remove() { if (last == null) { throw new IllegalStateException(); @@ -1428,6 +1579,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { //TODO: This is a temporary SAAJ workaround for optimizing XWS // should be removed once the corresponding JAXP bug is fixed // It appears the bug will be fixed in JAXP 1.4 (not by Appserver 9 timeframe) + @Override public void setAttributeNS( String namespaceURI,String qualifiedName, String value) { int index = qualifiedName.indexOf(':'); @@ -1483,7 +1635,7 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { @Override public NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException { - return new NodeListImpl(getSoapDocument(), element.getElementsByTagNameNS(namespaceURI, localName)); + return new NodeListImpl(soapDocument, element.getElementsByTagNameNS(namespaceURI, localName)); } @Override @@ -1538,37 +1690,37 @@ public class ElementImpl implements SOAPElement, SOAPBodyElement { @Override public Node getParentNode() { - return getSoapDocument().find(element.getParentNode()); + return soapDocument.find(element.getParentNode()); } @Override public NodeList getChildNodes() { - return new NodeListImpl(getSoapDocument(), element.getChildNodes()); + return new NodeListImpl(soapDocument, element.getChildNodes()); } @Override public Node getFirstChild() { - return getSoapDocument().findIfPresent(element.getFirstChild()); + return soapDocument.findIfPresent(element.getFirstChild()); } @Override public Node getLastChild() { - return getSoapDocument().findIfPresent(element.getLastChild()); + return soapDocument.findIfPresent(element.getLastChild()); } @Override public Node getPreviousSibling() { - return getSoapDocument().findIfPresent(element.getPreviousSibling()); + return soapDocument.findIfPresent(element.getPreviousSibling()); } @Override public Node getNextSibling() { - return getSoapDocument().findIfPresent(element.getNextSibling()); + return soapDocument.findIfPresent(element.getNextSibling()); } @Override public NamedNodeMap getAttributes() { - return element.getAttributes(); + return new NamedNodeMapImpl(element.getAttributes(), soapDocument); } public Element getDomElement() { diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/EnvelopeImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/EnvelopeImpl.java index faaa3d8f61a..a1564b4a450 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/EnvelopeImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/EnvelopeImpl.java @@ -100,6 +100,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { protected abstract NameImpl getHeaderName(String prefix); protected abstract NameImpl getBodyName(String prefix); + @Override public SOAPHeader addHeader() throws SOAPException { return addHeader(null); } @@ -140,6 +141,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { header = hdr; } + @Override public SOAPHeader getHeader() throws SOAPException { lookForHeader(); return header; @@ -152,6 +154,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { body = bodyChildElement; } + @Override public SOAPBody addBody() throws SOAPException { return addBody(null); } @@ -176,6 +179,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { return body; } + @Override protected SOAPElement addElement(Name name) throws SOAPException { if (getBodyName(null).equals(name)) { return addBody(name.getPrefix()); @@ -187,6 +191,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { return super.addElement(name); } + @Override protected SOAPElement addElement(QName name) throws SOAPException { if (getBodyName(null).equals(NameImpl.convertToName(name))) { return addBody(name.getPrefix()); @@ -198,15 +203,18 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { return super.addElement(name); } + @Override public SOAPBody getBody() throws SOAPException { lookForBody(); return body; } + @Override public Source getContent() { return new DOMSource(getOwnerDocument()); } + @Override public Name createName(String localName, String prefix, String uri) throws SOAPException { @@ -241,6 +249,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { return NameImpl.create(localName, prefix, namespace); } + @Override public Name createName(String localName) throws SOAPException { return NameImpl.createFromUnqualifiedName(localName); } @@ -257,6 +266,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { charset = value; } + @Override public void output(OutputStream out) throws IOException { try { // materializeBody(); @@ -301,6 +311,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { /** * Serialize to FI if boolean parameter set. */ + @Override public void output(OutputStream out, boolean isFastInfoset) throws IOException { @@ -353,6 +364,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { // } + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { log.log(Level.SEVERE, "SAAJ0146.impl.invalid.name.change.requested", @@ -389,6 +401,7 @@ public abstract class EnvelopeImpl extends ElementImpl implements LazyEnvelope { final DOMStreamReader reader = new DOMStreamReader(this); XMLStreamReaderToXMLStreamWriter writingBridge = new XMLStreamReaderToXMLStreamWriter(); writingBridge.bridge( new XMLStreamReaderToXMLStreamWriter.Breakpoint(reader, writer) { + @Override public boolean proceedAfterStartElement() { if ("Body".equals(reader.getLocalName()) && soapEnvNS.equals(reader.getNamespaceURI()) ){ return false; diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/FaultElementImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/FaultElementImpl.java index 447039ed8e6..07f25dfd8ba 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/FaultElementImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/FaultElementImpl.java @@ -54,6 +54,7 @@ public abstract class FaultElementImpl protected abstract boolean isStandardFaultElement(); + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { log.log(Level.SEVERE, "SAAJ0146.impl.invalid.name.change.requested", diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/HeaderElementImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/HeaderElementImpl.java index c45594601fd..73b4725abf6 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/HeaderElementImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/HeaderElementImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -30,6 +30,7 @@ import javax.xml.soap.*; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl; +import org.w3c.dom.Element; public abstract class HeaderElementImpl extends ElementImpl @@ -47,6 +48,10 @@ public abstract class HeaderElementImpl super(ownerDoc, qname); } + public HeaderElementImpl(SOAPDocumentImpl ownerDoc, Element domElement) { + super(ownerDoc, domElement); + } + protected abstract NameImpl getActorAttributeName(); protected abstract NameImpl getRoleAttributeName(); protected abstract NameImpl getMustunderstandAttributeName(); @@ -58,6 +63,7 @@ public abstract class HeaderElementImpl protected abstract String getActorOrRole(); + @Override public void setParentElement(SOAPElement element) throws SOAPException { if (!(element instanceof SOAPHeader)) { log.severe("SAAJ0130.impl.header.elem.parent.mustbe.header"); @@ -67,6 +73,7 @@ public abstract class HeaderElementImpl super.setParentElement(element); } + @Override public void setActor(String actorUri) { try { removeAttribute(getActorAttributeName()); @@ -76,6 +83,7 @@ public abstract class HeaderElementImpl } //SOAP 1.2 supports Role + @Override public void setRole(String roleUri) throws SOAPException { // runtime exception thrown if called for SOAP 1.1 removeAttribute(getRoleAttributeName()); @@ -85,6 +93,7 @@ public abstract class HeaderElementImpl Name actorAttNameWithoutNS = NameImpl.createFromTagName("actor"); + @Override public String getActor() { String actor = getAttributeValue(getActorAttributeName()); return actor; @@ -92,12 +101,14 @@ public abstract class HeaderElementImpl Name roleAttNameWithoutNS = NameImpl.createFromTagName("role"); + @Override public String getRole() { // runtime exception thrown for 1.1 String role = getAttributeValue(getRoleAttributeName()); return role; } + @Override public void setMustUnderstand(boolean mustUnderstand) { try { removeAttribute(getMustunderstandAttributeName()); @@ -108,6 +119,7 @@ public abstract class HeaderElementImpl } } + @Override public boolean getMustUnderstand() { String mu = getAttributeValue(getMustunderstandAttributeName()); @@ -117,6 +129,7 @@ public abstract class HeaderElementImpl return false; } + @Override public void setRelay(boolean relay) throws SOAPException { // runtime exception thrown for 1.1 removeAttribute(getRelayAttributeName()); @@ -125,6 +138,7 @@ public abstract class HeaderElementImpl getRelayLiteralValue(relay)); } + @Override public boolean getRelay() { String mu = getAttributeValue(getRelayAttributeName()); if (mu != null) diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/HeaderImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/HeaderImpl.java index 0d9f7ad8ae4..aaf56be8d9a 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/HeaderImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/HeaderImpl.java @@ -25,19 +25,25 @@ package com.sun.xml.internal.messaging.saaj.soap.impl; -import java.util.*; import java.util.logging.Level; import javax.xml.namespace.QName; -import javax.xml.soap.*; -import com.sun.xml.internal.messaging.saaj.util.SAAJUtil; import org.w3c.dom.Element; import com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocument; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import javax.xml.soap.Name; +import javax.xml.soap.SOAPElement; +import javax.xml.soap.SOAPEnvelope; +import javax.xml.soap.SOAPException; +import javax.xml.soap.SOAPHeader; +import javax.xml.soap.SOAPHeaderElement; public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { protected static final boolean MUST_UNDERSTAND_ONLY = false; @@ -58,6 +64,7 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { protected abstract NameImpl getUpgradeName(); protected abstract NameImpl getSupportedEnvelopeName(); + @Override public SOAPHeaderElement addHeaderElement(Name name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( @@ -81,6 +88,7 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { return (SOAPHeaderElement) newHeaderElement; } + @Override public SOAPHeaderElement addHeaderElement(QName name) throws SOAPException { SOAPElement newHeaderElement = ElementFactory.createNamedElement( @@ -104,19 +112,23 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { return (SOAPHeaderElement) newHeaderElement; } + @Override protected SOAPElement addElement(Name name) throws SOAPException { return addHeaderElement(name); } + @Override protected SOAPElement addElement(QName name) throws SOAPException { return addHeaderElement(name); } - public Iterator examineHeaderElements(String actor) { + @Override + public Iterator examineHeaderElements(String actor) { return getHeaderElementsForActor(actor, false, false); } - public Iterator extractHeaderElements(String actor) { + @Override + public Iterator extractHeaderElements(String actor) { return getHeaderElementsForActor(actor, true, false); } @@ -135,9 +147,9 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { String actor, boolean detach, boolean mustUnderstand) { - List elementList = new ArrayList(); + List elementList = new ArrayList<>(); - Iterator eachChild = getChildElements(); + Iterator eachChild = getChildElements(); org.w3c.dom.Node currentChild = iterate(eachChild); while (currentChild != null) { @@ -181,6 +193,7 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { return each.hasNext() ? each.next() : null; } + @Override public void setParentElement(SOAPElement element) throws SOAPException { if (!(element instanceof SOAPEnvelope)) { log.severe("SAAJ0133.impl.header.parent.mustbe.envelope"); @@ -193,6 +206,7 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { // namespace qualified. Holds for both SOAP versions. // TODO - This check needs to be made for other addChildElement() methods // as well. + @Override public SOAPElement addChildElement(String localName) throws SOAPException { SOAPElement element = super.addChildElement(localName); @@ -205,19 +219,23 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { return element; } - public Iterator examineAllHeaderElements() { + @Override + public Iterator examineAllHeaderElements() { return getHeaderElements(null, false, MUST_UNDERSTAND_ONLY); } - public Iterator examineMustUnderstandHeaderElements(String actor) { + @Override + public Iterator examineMustUnderstandHeaderElements(String actor) { return getHeaderElements(actor, false, true); } - public Iterator extractAllHeaderElements() { + @Override + public Iterator extractAllHeaderElements() { return getHeaderElements(null, true, false); } + @Override public SOAPHeaderElement addUpgradeHeaderElement(Iterator supportedSoapUris) throws SOAPException { if (supportedSoapUris == null) { @@ -241,18 +259,19 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { NameImpl.createFromUnqualifiedName("qname"), ns + ":Envelope"); subElement.addNamespaceDeclaration( - ns, - (String) supportedSoapUris.next()); + ns, (String) supportedSoapUris.next()); i ++; } return upgradeHeaderElement; } + @Override public SOAPHeaderElement addUpgradeHeaderElement(String supportedSoapUri) throws SOAPException { return addUpgradeHeaderElement(new String[] {supportedSoapUri}); } + @Override public SOAPHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris) throws SOAPException { @@ -280,6 +299,7 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { return upgradeHeaderElement; } + @Override protected SOAPElement convertToSoapElement(Element element) { final org.w3c.dom.Node soapNode = getSoapDocument().findIfPresent(element); if (soapNode instanceof SOAPHeaderElement) { @@ -298,6 +318,7 @@ public abstract class HeaderImpl extends ElementImpl implements SOAPHeader { } } + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { log.log(Level.SEVERE, "SAAJ0146.impl.invalid.name.change.requested", diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/LocalStrings.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/LocalStrings.properties index b4b7b999748..87c0ec75bd9 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/LocalStrings.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/LocalStrings.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -46,7 +46,7 @@ SAAJ0122.impl.body.already.exists=SAAJ0122: Can't add a body when one is already SAAJ0123.impl.no.reserved.xmlns=SAAJ0123: Cannot declare reserved xmlns prefix SAAJ0124.impl.qualified.name.cannot.be.xmlns=SAAJ0124: Qualified name cannot be xmlns #SAAJ0125.impl.URI.cannot.be.null=SAAJ0125: URI cannot be null -SAAJ0126.impl.cannot.locate.ns=SAAJ0126: Unable to locate namespace for prefix {0} +#SAAJ0126.impl.cannot.locate.ns=SAAJ0126: Unable to locate namespace for prefix {0} SAAJ0127.impl.no.null.for.parent.elem=SAAJ0127: Cannot pass NULL to setParentElement SAAJ0130.impl.header.elem.parent.mustbe.header=SAAJ0130: Parent of a SOAPHeaderElement has to be a SOAPHeader @@ -60,7 +60,7 @@ SAAJ0141.impl.detail.exists=SAAJ0141: Detail already exists SAAJ0142.impl.reason.or.text.not.supported=SAAJ0142: Fault/Reason/Text not supported by this SOAP version, try SOAP 1.2 or later SAAJ0143.impl.node.not.supported=SAAJ0143: Fault/Node not supported by this SOAP version, try SOAP 1.2 or later SAAJ0144.impl.role.not.supported=SAAJ0144: Fault/Role not supported by this SOAP version, try SOAP 1.2 or later -SAAJ0145.impl.no.null.to.parent.elem=SAAJ0145: Cannot pass NULL to setParentElement +#SAAJ0145.impl.no.null.to.parent.elem=SAAJ0145: Cannot pass NULL to setParentElement SAAJ0146.impl.invalid.name.change.requested=SAAJ0146: Cannot change name of element {0} to {1} SAAJ0147.impl.invalid.uri.change.requested=SAAJ0147: Cannot change the URI for prefix {0} from {1} to {2} in setElementQName SAAJ0148.impl.invalid.prefix.for.uri=Non-empty namespace URI: {0} for an empty prefix in SetElementQName diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/NamedNodeMapImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/NamedNodeMapImpl.java new file mode 100644 index 00000000000..fb7f28d28ef --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/NamedNodeMapImpl.java @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2017, 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.xml.internal.messaging.saaj.soap.impl; + +import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; +import org.w3c.dom.DOMException; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; + +/** + * {@link NamedNodeMap} wrapper, finding SOAP elements automatically when possible. + * + * @author Roman Grigoriadi + */ +public class NamedNodeMapImpl implements NamedNodeMap { + + private final NamedNodeMap namedNodeMap; + + private final SOAPDocumentImpl soapDocument; + + /** + * Create wrapper. + * + * @param namedNodeMap node map to wrap + * @param soapDocument soap document to find soap elements + */ + public NamedNodeMapImpl(NamedNodeMap namedNodeMap, SOAPDocumentImpl soapDocument) { + this.namedNodeMap = namedNodeMap; + this.soapDocument = soapDocument; + } + + @Override + public Node getNamedItem(String name) { + return soapDocument.findIfPresent(namedNodeMap.getNamedItem(name)); + } + + @Override + public Node setNamedItem(Node arg) throws DOMException { + return namedNodeMap.setNamedItem(arg); + } + + @Override + public Node removeNamedItem(String name) throws DOMException { + return namedNodeMap.removeNamedItem(name); + } + + @Override + public Node item(int index) { + return namedNodeMap.item(index); + } + + @Override + public int getLength() { + return namedNodeMap.getLength(); + } + + @Override + public Node getNamedItemNS(String namespaceURI, String localName) throws DOMException { + return namedNodeMap.getNamedItemNS(namespaceURI, localName); + } + + @Override + public Node setNamedItemNS(Node arg) throws DOMException { + return namedNodeMap.setNamedItemNS(arg); + } + + @Override + public Node removeNamedItemNS(String namespaceURI, String localName) throws DOMException { + return namedNodeMap.removeNamedItemNS(namespaceURI, localName); + } +} diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/SOAPCommentImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/SOAPCommentImpl.java index 85fbb14aacd..b05af537243 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/SOAPCommentImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/SOAPCommentImpl.java @@ -25,327 +25,64 @@ package com.sun.xml.internal.messaging.saaj.soap.impl; -import java.util.ResourceBundle; -import java.util.logging.Logger; - -import javax.xml.soap.SOAPElement; -import javax.xml.soap.SOAPException; - -import com.sun.xml.internal.messaging.saaj.util.SAAJUtil; +import org.w3c.dom.CharacterData; import org.w3c.dom.Comment; import org.w3c.dom.DOMException; -import org.w3c.dom.Document; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; import org.w3c.dom.Text; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; -import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants; -import org.w3c.dom.UserDataHandler; +import static com.sun.xml.internal.messaging.saaj.soap.impl.TextImpl.log; -public class SOAPCommentImpl - implements javax.xml.soap.Text, org.w3c.dom.Comment { - - protected static final Logger log = - Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN, - "com.sun.xml.internal.messaging.saaj.soap.impl.LocalStrings"); - protected static ResourceBundle rb = - log.getResourceBundle(); - - @Override - public String getData() throws DOMException { - return comment.getData(); - } - - @Override - public void setData(String data) throws DOMException { - comment.setData(data); - } - - @Override - public int getLength() { - return comment.getLength(); - } - - @Override - public String substringData(int offset, int count) throws DOMException { - return comment.substringData(offset, count); - } - - @Override - public void appendData(String arg) throws DOMException { - comment.appendData(arg); - } - - @Override - public void insertData(int offset, String arg) throws DOMException { - comment.insertData(offset, arg); - } - - @Override - public void deleteData(int offset, int count) throws DOMException { - comment.deleteData(offset, count); - } - - @Override - public void replaceData(int offset, int count, String arg) throws DOMException { - comment.replaceData(offset, count, arg); - } - - @Override - public String getNodeName() { - return comment.getNodeName(); - } - - @Override - public String getNodeValue() throws DOMException { - return comment.getNodeValue(); - } - - @Override - public void setNodeValue(String nodeValue) throws DOMException { - comment.setNodeValue(nodeValue); - } - - @Override - public short getNodeType() { - return comment.getNodeType(); - } - - @Override - public Node getParentNode() { - return comment.getParentNode(); - } - - @Override - public NodeList getChildNodes() { - return comment.getChildNodes(); - } - - @Override - public Node getFirstChild() { - return comment.getFirstChild(); - } - - @Override - public Node getLastChild() { - return comment.getLastChild(); - } - - @Override - public Node getPreviousSibling() { - return comment.getPreviousSibling(); - } - - @Override - public Node getNextSibling() { - return comment.getNextSibling(); - } - - @Override - public NamedNodeMap getAttributes() { - return comment.getAttributes(); - } - - @Override - public Document getOwnerDocument() { - return comment.getOwnerDocument(); - } - - @Override - public Node insertBefore(Node newChild, Node refChild) throws DOMException { - return comment.insertBefore(newChild, refChild); - } - - @Override - public Node replaceChild(Node newChild, Node oldChild) throws DOMException { - return comment.replaceChild(newChild, oldChild); - } - - @Override - public Node removeChild(Node oldChild) throws DOMException { - return comment.removeChild(oldChild); - } - - @Override - public Node appendChild(Node newChild) throws DOMException { - return comment.appendChild(newChild); - } - - @Override - public boolean hasChildNodes() { - return comment.hasChildNodes(); - } - - @Override - public Node cloneNode(boolean deep) { - return comment.cloneNode(deep); - } - - @Override - public void normalize() { - comment.normalize(); - } - - @Override - public boolean isSupported(String feature, String version) { - return comment.isSupported(feature, version); - } - - @Override - public String getNamespaceURI() { - return comment.getNamespaceURI(); - } - - @Override - public String getPrefix() { - return comment.getPrefix(); - } - - @Override - public void setPrefix(String prefix) throws DOMException { - comment.setPrefix(prefix); - } - - @Override - public String getLocalName() { - return comment.getLocalName(); - } - - @Override - public boolean hasAttributes() { - return comment.hasAttributes(); - } - - @Override - public String getBaseURI() { - return comment.getBaseURI(); - } - - @Override - public short compareDocumentPosition(Node other) throws DOMException { - return comment.compareDocumentPosition(other); - } - - @Override - public String getTextContent() throws DOMException { - return comment.getTextContent(); - } - - @Override - public void setTextContent(String textContent) throws DOMException { - comment.setTextContent(textContent); - } - - @Override - public boolean isSameNode(Node other) { - return comment.isSameNode(other); - } - - @Override - public String lookupPrefix(String namespaceURI) { - return comment.lookupPrefix(namespaceURI); - } - - @Override - public boolean isDefaultNamespace(String namespaceURI) { - return comment.isDefaultNamespace(namespaceURI); - } - - @Override - public String lookupNamespaceURI(String prefix) { - return comment.lookupNamespaceURI(prefix); - } - - @Override - public boolean isEqualNode(Node arg) { - return comment.isEqualNode(arg); - } - - @Override - public Object getFeature(String feature, String version) { - return comment.getFeature(feature, version); - } - - @Override - public Object setUserData(String key, Object data, UserDataHandler handler) { - return comment.setUserData(key, data, handler); - } - - @Override - public Object getUserData(String key) { - return comment.getUserData(key); - } - - private Comment comment; +public class SOAPCommentImpl extends TextImpl implements Comment { public SOAPCommentImpl(SOAPDocumentImpl ownerDoc, String text) { - comment = ownerDoc.getDomDocument().createComment(text); - ownerDoc.register(this); + super(ownerDoc, text); } - public String getValue() { - String nodeValue = getNodeValue(); - return (nodeValue.equals("") ? null : nodeValue); + public SOAPCommentImpl(SOAPDocumentImpl ownerDoc, CharacterData data) { + super(ownerDoc, data); } - public void setValue(String text) { - setNodeValue(text); + @Override + protected Comment createN(SOAPDocumentImpl ownerDoc, String text) { + Comment c = ownerDoc.getDomDocument().createComment(text); +// ownerDoc.register(this); + return c; } - - public void setParentElement(SOAPElement element) throws SOAPException { - if (element == null) { - log.severe("SAAJ0112.impl.no.null.to.parent.elem"); - throw new SOAPException("Cannot pass NULL to setParentElement"); - } - ((ElementImpl) element).addNode(this); - } - - public SOAPElement getParentElement() { - return (SOAPElement) getParentNode(); - } - - public void detachNode() { - org.w3c.dom.Node parent = getParentNode(); - if (parent != null) { - parent.removeChild(this); - } - } - - public void recycleNode() { - detachNode(); - // TBD - // - add this to the factory so subsequent - // creations can reuse this object. + @Override + protected Comment createN(SOAPDocumentImpl ownerDoc, CharacterData data) { + Comment c = (Comment) data; + return c; } + @Override public boolean isComment() { return true; } + @Override public Text splitText(int offset) throws DOMException { log.severe("SAAJ0113.impl.cannot.split.text.from.comment"); throw new UnsupportedOperationException("Cannot split text from a Comment Node."); } + @Override public Text replaceWholeText(String content) throws DOMException { log.severe("SAAJ0114.impl.cannot.replace.wholetext.from.comment"); throw new UnsupportedOperationException("Cannot replace Whole Text from a Comment Node."); } + @Override public String getWholeText() { //TODO: maybe we have to implement this in future. throw new UnsupportedOperationException("Not Supported"); } + @Override public boolean isElementContentWhitespace() { //TODO: maybe we have to implement this in future. throw new UnsupportedOperationException("Not Supported"); } - public Comment getDomElement() { - return comment; - } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/SOAPTextImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/SOAPTextImpl.java index 076cacb202d..63cb43a3bc0 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/SOAPTextImpl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/SOAPTextImpl.java @@ -25,316 +25,55 @@ package com.sun.xml.internal.messaging.saaj.soap.impl; -import java.util.logging.Logger; - -import javax.xml.soap.SOAPElement; -import javax.xml.soap.SOAPException; - import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; -import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants; +import org.w3c.dom.CharacterData; import org.w3c.dom.DOMException; -import org.w3c.dom.Document; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; import org.w3c.dom.Text; -import org.w3c.dom.UserDataHandler; -public class SOAPTextImpl - implements javax.xml.soap.Text, org.w3c.dom.Text { +public class SOAPTextImpl extends TextImpl implements Text { + + public SOAPTextImpl(SOAPDocumentImpl ownerDoc, String text) { + super(ownerDoc, text); + } + + public SOAPTextImpl(SOAPDocumentImpl ownerDoc, CharacterData data) { + super(ownerDoc, data); + } + + @Override + protected Text createN(SOAPDocumentImpl ownerDoc, String text) { + Text t = ownerDoc.getDomDocument().createTextNode(text); +// ownerDoc.register(this); + return t; + } + + @Override + protected Text createN(SOAPDocumentImpl ownerDoc, CharacterData data) { + Text t = (Text) data; + return t; + } @Override public Text splitText(int offset) throws DOMException { - return textNode.splitText(offset); + return getDomElement().splitText(offset); } @Override public boolean isElementContentWhitespace() { - return textNode.isElementContentWhitespace(); + return getDomElement().isElementContentWhitespace(); } @Override public String getWholeText() { - return textNode.getWholeText(); + return getDomElement().getWholeText(); } @Override public Text replaceWholeText(String content) throws DOMException { - return textNode.replaceWholeText(content); + return getDomElement().replaceWholeText(content); } @Override - public String getData() throws DOMException { - return textNode.getData(); - } - - @Override - public void setData(String data) throws DOMException { - textNode.setData(data); - } - - @Override - public int getLength() { - return textNode.getLength(); - } - - @Override - public String substringData(int offset, int count) throws DOMException { - return textNode.substringData(offset, count); - } - - @Override - public void appendData(String arg) throws DOMException { - textNode.appendData(arg); - } - - @Override - public void insertData(int offset, String arg) throws DOMException { - textNode.insertData(offset, arg); - } - - @Override - public void deleteData(int offset, int count) throws DOMException { - textNode.deleteData(offset, count); - } - - @Override - public void replaceData(int offset, int count, String arg) throws DOMException { - textNode.replaceData(offset, count, arg); - } - - @Override - public String getNodeName() { - return textNode.getNodeName(); - } - - @Override - public String getNodeValue() throws DOMException { - return textNode.getNodeValue(); - } - - @Override - public void setNodeValue(String nodeValue) throws DOMException { - textNode.setNodeValue(nodeValue); - } - - @Override - public short getNodeType() { - return textNode.getNodeType(); - } - - @Override - public Node getParentNode() { - return textNode.getParentNode(); - } - - @Override - public NodeList getChildNodes() { - return textNode.getChildNodes(); - } - - @Override - public Node getFirstChild() { - return textNode.getFirstChild(); - } - - @Override - public Node getLastChild() { - return textNode.getLastChild(); - } - - @Override - public Node getPreviousSibling() { - return textNode.getPreviousSibling(); - } - - @Override - public Node getNextSibling() { - return textNode.getNextSibling(); - } - - @Override - public NamedNodeMap getAttributes() { - return textNode.getAttributes(); - } - - @Override - public Document getOwnerDocument() { - return textNode.getOwnerDocument(); - } - - @Override - public Node insertBefore(Node newChild, Node refChild) throws DOMException { - return textNode.insertBefore(newChild, refChild); - } - - @Override - public Node replaceChild(Node newChild, Node oldChild) throws DOMException { - return textNode.replaceChild(newChild, oldChild); - } - - @Override - public Node removeChild(Node oldChild) throws DOMException { - return textNode.removeChild(oldChild); - } - - @Override - public Node appendChild(Node newChild) throws DOMException { - return textNode.appendChild(newChild); - } - - @Override - public boolean hasChildNodes() { - return textNode.hasChildNodes(); - } - - @Override - public Node cloneNode(boolean deep) { - return textNode.cloneNode(deep); - } - - @Override - public void normalize() { - textNode.normalize(); - } - - @Override - public boolean isSupported(String feature, String version) { - return textNode.isSupported(feature, version); - } - - @Override - public String getNamespaceURI() { - return textNode.getNamespaceURI(); - } - - @Override - public String getPrefix() { - return textNode.getPrefix(); - } - - @Override - public void setPrefix(String prefix) throws DOMException { - textNode.setPrefix(prefix); - } - - @Override - public String getLocalName() { - return textNode.getLocalName(); - } - - @Override - public boolean hasAttributes() { - return textNode.hasAttributes(); - } - - @Override - public String getBaseURI() { - return textNode.getBaseURI(); - } - - @Override - public short compareDocumentPosition(Node other) throws DOMException { - return textNode.compareDocumentPosition(other); - } - - @Override - public String getTextContent() throws DOMException { - return textNode.getTextContent(); - } - - @Override - public void setTextContent(String textContent) throws DOMException { - textNode.setTextContent(textContent); - } - - @Override - public boolean isSameNode(Node other) { - return textNode.isSameNode(other); - } - - @Override - public String lookupPrefix(String namespaceURI) { - return textNode.lookupPrefix(namespaceURI); - } - - @Override - public boolean isDefaultNamespace(String namespaceURI) { - return textNode.isDefaultNamespace(namespaceURI); - } - - @Override - public String lookupNamespaceURI(String prefix) { - return textNode.lookupNamespaceURI(prefix); - } - - @Override - public boolean isEqualNode(Node arg) { - return textNode.isEqualNode(arg); - } - - @Override - public Object getFeature(String feature, String version) { - return textNode.getFeature(feature, version); - } - - @Override - public Object setUserData(String key, Object data, UserDataHandler handler) { - return textNode.setUserData(key, data, handler); - } - - @Override - public Object getUserData(String key) { - return textNode.getUserData(key); - } - - protected static final Logger log = - Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN, - "com.sun.xml.internal.messaging.saaj.soap.impl.LocalStrings"); - - private Text textNode; - - public SOAPTextImpl(SOAPDocumentImpl ownerDoc, String text) { - textNode = ownerDoc.getDomDocument().createTextNode(text); - ownerDoc.register(this); - } - - public String getValue() { - String nodeValue = getNodeValue(); - return (nodeValue.equals("") ? null : nodeValue); - } - - public void setValue(String text) { - setNodeValue(text); - } - - public void setParentElement(SOAPElement parent) throws SOAPException { - if (parent == null) { - log.severe("SAAJ0126.impl.cannot.locate.ns"); - throw new SOAPException("Cannot pass NULL to setParentElement"); - } - ((ElementImpl) parent).addNode(this); - } - - public SOAPElement getParentElement() { - return (SOAPElement) getParentNode(); - } - - - public void detachNode() { - org.w3c.dom.Node parent = getParentNode(); - if (parent != null) { - parent.removeChild(getDomElement()); - } - } - - public void recycleNode() { - detachNode(); - // TBD - // - add this to the factory so subsequent - // creations can reuse this object. - } - public boolean isComment() { String txt = getNodeValue(); if (txt == null) { @@ -343,7 +82,4 @@ public class SOAPTextImpl return txt.startsWith(""); } - public Text getDomElement() { - return textNode; - } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/TextImpl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/TextImpl.java new file mode 100644 index 00000000000..0a49b10a75e --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/impl/TextImpl.java @@ -0,0 +1,342 @@ +/* + * Copyright (c) 2017, 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.xml.internal.messaging.saaj.soap.impl; + +import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; +import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants; +import java.util.logging.Logger; +import javax.xml.soap.SOAPElement; +import javax.xml.soap.SOAPException; +import javax.xml.soap.Text; +import org.w3c.dom.CharacterData; +import org.w3c.dom.DOMException; +import org.w3c.dom.Document; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; +import org.w3c.dom.UserDataHandler; + +/** + * + * @author lukas + * @param + */ +public abstract class TextImpl implements Text, CharacterData { + + protected static final Logger log + = Logger.getLogger(LogDomainConstants.SOAP_IMPL_DOMAIN, + "com.sun.xml.internal.messaging.saaj.soap.impl.LocalStrings"); + private final T domNode; + + private final SOAPDocumentImpl soapDocument; + + protected TextImpl(SOAPDocumentImpl ownerDoc, String text) { + this.soapDocument = ownerDoc; + domNode = createN(ownerDoc, text); + ownerDoc.register(this); + } + + protected TextImpl(SOAPDocumentImpl ownerDoc, CharacterData data) { + this.soapDocument = ownerDoc; + domNode = createN(ownerDoc, data); + ownerDoc.register(this); + } + + protected abstract T createN(SOAPDocumentImpl ownerDoc, CharacterData data); + + protected abstract T createN(SOAPDocumentImpl ownerDoc, String text); + + public T getDomElement() { + return domNode; + } + + @Override + public String getValue() { + String nodeValue = getNodeValue(); + return (nodeValue.equals("") ? null : nodeValue); + } + + @Override + public void setValue(String text) { + setNodeValue(text); + } + + @Override + public void setParentElement(SOAPElement parent) throws SOAPException { + if (parent == null) { + log.severe("SAAJ0112.impl.no.null.to.parent.elem"); + throw new SOAPException("Cannot pass NULL to setParentElement"); + } + ((ElementImpl) parent).addNode(this); + } + + @Override + public SOAPElement getParentElement() { + return (SOAPElement) getParentNode(); + } + + @Override + public void detachNode() { + org.w3c.dom.Node parent = getParentNode(); + if (parent != null) { + parent.removeChild(getDomElement()); + } + } + + @Override + public void recycleNode() { + detachNode(); + // TBD + // - add this to the factory so subsequent + // creations can reuse this object. + } + + @Override + public String getNodeName() { + return domNode.getNodeName(); + } + + @Override + public String getNodeValue() throws DOMException { + return domNode.getNodeValue(); + } + + @Override + public void setNodeValue(String nodeValue) throws DOMException { + domNode.setNodeValue(nodeValue); + } + + @Override + public short getNodeType() { + return domNode.getNodeType(); + } + + @Override + public Node getParentNode() { + return domNode.getParentNode(); + } + + @Override + public NodeList getChildNodes() { + return domNode.getChildNodes(); + } + + @Override + public Node getFirstChild() { + return domNode.getFirstChild(); + } + + @Override + public Node getLastChild() { + return domNode.getLastChild(); + } + + @Override + public Node getPreviousSibling() { + return domNode.getPreviousSibling(); + } + + @Override + public Node getNextSibling() { + return domNode.getNextSibling(); + } + + @Override + public NamedNodeMap getAttributes() { + return domNode.getAttributes(); + } + + @Override + public Document getOwnerDocument() { + return domNode.getOwnerDocument(); + } + + @Override + public Node insertBefore(Node newChild, Node refChild) throws DOMException { + return domNode.insertBefore(newChild, refChild); + } + + @Override + public Node replaceChild(Node newChild, Node oldChild) throws DOMException { + return domNode.replaceChild(newChild, oldChild); + } + + @Override + public Node removeChild(Node oldChild) throws DOMException { + return domNode.removeChild(oldChild); + } + + @Override + public Node appendChild(Node newChild) throws DOMException { + return domNode.appendChild(newChild); + } + + @Override + public boolean hasChildNodes() { + return domNode.hasChildNodes(); + } + + @Override + public Node cloneNode(boolean deep) { + return domNode.cloneNode(deep); + } + + @Override + public void normalize() { + domNode.normalize(); + } + + @Override + public boolean isSupported(String feature, String version) { + return domNode.isSupported(feature, version); + } + + @Override + public String getNamespaceURI() { + return domNode.getNamespaceURI(); + } + + @Override + public String getPrefix() { + return domNode.getPrefix(); + } + + @Override + public void setPrefix(String prefix) throws DOMException { + domNode.setPrefix(prefix); + } + + @Override + public String getLocalName() { + return domNode.getLocalName(); + } + + @Override + public boolean hasAttributes() { + return domNode.hasAttributes(); + } + + @Override + public String getBaseURI() { + return domNode.getBaseURI(); + } + + @Override + public short compareDocumentPosition(Node other) throws DOMException { + return domNode.compareDocumentPosition(other); + } + + @Override + public String getTextContent() throws DOMException { + return domNode.getTextContent(); + } + + @Override + public void setTextContent(String textContent) throws DOMException { + domNode.setTextContent(textContent);; + } + + @Override + public boolean isSameNode(Node other) { + return domNode.isSameNode(other); + } + + @Override + public String lookupPrefix(String namespaceURI) { + return domNode.lookupPrefix(namespaceURI); + } + + @Override + public boolean isDefaultNamespace(String namespaceURI) { + return domNode.isDefaultNamespace(namespaceURI); + } + + @Override + public String lookupNamespaceURI(String prefix) { + return domNode.lookupNamespaceURI(prefix); + } + + @Override + public boolean isEqualNode(Node arg) { + return domNode.isEqualNode(arg); + } + + @Override + public Object getFeature(String feature, String version) { + return domNode.getFeature(feature, version); + } + + @Override + public Object setUserData(String key, Object data, UserDataHandler handler) { + return domNode.setUserData(key, data, handler); + } + + @Override + public Object getUserData(String key) { + return domNode.getUserData(key); + } + + @Override + public String getData() throws DOMException { + return domNode.getData(); + } + + @Override + public void setData(String data) throws DOMException { + domNode.setData(data); + } + + @Override + public int getLength() { + return domNode.getLength(); + } + + @Override + public String substringData(int offset, int count) throws DOMException { + return domNode.substringData(offset, count); + } + + @Override + public void appendData(String arg) throws DOMException { + domNode.appendData(arg); + } + + @Override + public void insertData(int offset, String arg) throws DOMException { + domNode.insertData(offset, arg); + } + + @Override + public void deleteData(int offset, int count) throws DOMException { + domNode.deleteData(offset, count); + } + + @Override + public void replaceData(int offset, int count, String arg) throws DOMException { + domNode.replaceData(offset, count, arg); + } + +} diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Body1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Body1_1Impl.java index 453abec8d51..f841bf72734 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Body1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Body1_1Impl.java @@ -54,32 +54,38 @@ public class Body1_1Impl extends BodyImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } + @Override protected NameImpl getFaultName(String name) { // Ignore name return NameImpl.createFault1_1Name(null); } + @Override protected SOAPBodyElement createBodyElement(Name name) { return new BodyElement1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); } + @Override protected SOAPBodyElement createBodyElement(QName name) { return new BodyElement1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); } + @Override protected QName getDefaultFaultCode() { return new QName(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, "Server"); } + @Override protected boolean isFault(SOAPElement child) { // SOAP 1.1 faults always use the default name return child.getElementName().equals(getFaultName(null)); } + @Override protected SOAPFault createFaultElement() { return new Fault1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), getPrefix()); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/BodyElement1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/BodyElement1_1Impl.java index 6cc387d5d79..9f6db55ca1a 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/BodyElement1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/BodyElement1_1Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -36,6 +36,7 @@ import javax.xml.soap.SOAPException; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.BodyElementImpl; +import org.w3c.dom.Element; public class BodyElement1_1Impl extends BodyElementImpl { @@ -45,6 +46,12 @@ public class BodyElement1_1Impl extends BodyElementImpl { public BodyElement1_1Impl(SOAPDocumentImpl ownerDoc, QName qname) { super(ownerDoc, qname); } + + public BodyElement1_1Impl(SOAPDocumentImpl ownerDoc, Element domElement) { + super(ownerDoc, domElement); + } + + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { BodyElementImpl copy = new BodyElement1_1Impl((SOAPDocumentImpl) getOwnerDocument(), newName); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Detail1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Detail1_1Impl.java index acd4612488f..6d4fe38f6b3 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Detail1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Detail1_1Impl.java @@ -51,11 +51,13 @@ public class Detail1_1Impl extends DetailImpl { super(ownerDoc, domElement); } + @Override protected DetailEntry createDetailEntry(Name name) { return new DetailEntry1_1Impl( (SOAPDocumentImpl) getOwnerDocument(), name); } + @Override protected DetailEntry createDetailEntry(QName name) { return new DetailEntry1_1Impl( (SOAPDocumentImpl) getOwnerDocument(), diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/DetailEntry1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/DetailEntry1_1Impl.java index 6c9ea4efb7f..a0571e29005 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/DetailEntry1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/DetailEntry1_1Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -36,6 +36,7 @@ import javax.xml.soap.SOAPException; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.DetailEntryImpl; +import org.w3c.dom.Element; public class DetailEntry1_1Impl extends DetailEntryImpl { @@ -45,6 +46,12 @@ public class DetailEntry1_1Impl extends DetailEntryImpl { public DetailEntry1_1Impl(SOAPDocumentImpl ownerDoc, QName qname) { super(ownerDoc, qname); } + + public DetailEntry1_1Impl(SOAPDocumentImpl ownerDoc, Element domElement) { + super(ownerDoc, domElement); + } + + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { DetailEntryImpl copy = new DetailEntry1_1Impl((SOAPDocumentImpl) getOwnerDocument(), newName); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Envelope1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Envelope1_1Impl.java index de55d8fa86c..31429c7ef68 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Envelope1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Envelope1_1Impl.java @@ -58,10 +58,12 @@ public class Envelope1_1Impl extends EnvelopeImpl { super(ownerDoc, domElement); } + @Override protected NameImpl getBodyName(String prefix) { return NameImpl.createBody1_1Name(prefix); } + @Override protected NameImpl getHeaderName(String prefix) { return NameImpl.createHeader1_1Name(prefix); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Fault1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Fault1_1Impl.java index 58c00c4823e..c2cf2c05839 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Fault1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Fault1_1Impl.java @@ -60,37 +60,48 @@ public class Fault1_1Impl extends FaultImpl { super(ownerDocument, NameImpl.createFault1_1Name(prefix)); } - public Fault1_1Impl(Element domElement, SOAPDocumentImpl ownerDoc) { + public Fault1_1Impl(SOAPDocumentImpl ownerDoc, Element domElement) { super(ownerDoc, domElement); } + public Fault1_1Impl(SOAPDocumentImpl ownerDoc) { + super(ownerDoc, NameImpl.createFault1_1Name(null)); + } + + @Override protected NameImpl getDetailName() { return NameImpl.createDetail1_1Name(); } + @Override protected NameImpl getFaultCodeName() { return NameImpl.createFromUnqualifiedName("faultcode"); } + @Override protected NameImpl getFaultStringName() { return NameImpl.createFromUnqualifiedName("faultstring"); } + @Override protected NameImpl getFaultActorName() { return NameImpl.createFromUnqualifiedName("faultactor"); } + @Override protected DetailImpl createDetail() { return new Detail1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument()); } + @Override protected FaultElementImpl createSOAPFaultElement(String localName) { return new FaultElement1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), localName); } + @Override protected void checkIfStandardFaultCode(String faultCode, String uri) throws SOAPException { // SOAP 1.1 doesn't seem to mandate using faultcode from a particular @@ -98,16 +109,19 @@ public class Fault1_1Impl extends FaultImpl { // Also need to be backward compatible. } + @Override protected void finallySetFaultCode(String faultcode) throws SOAPException { this.faultCodeElement.addTextNode(faultcode); } + @Override public String getFaultCode() { if (this.faultCodeElement == null) findFaultCodeElement(); return this.faultCodeElement.getValue(); } + @Override public Name getFaultCodeAsName() { String faultcodeString = getFaultCode(); @@ -132,6 +146,7 @@ public class Fault1_1Impl extends FaultImpl { return NameImpl.createFromQualifiedName(faultcodeString, nsName); } + @Override public QName getFaultCodeAsQName() { String faultcodeString = getFaultCode(); if (faultcodeString == null) { @@ -142,6 +157,7 @@ public class Fault1_1Impl extends FaultImpl { return convertCodeToQName(faultcodeString, this.faultCodeElement); } + @Override public void setFaultString(String faultString) throws SOAPException { if (this.faultStringElement == null) @@ -158,6 +174,7 @@ public class Fault1_1Impl extends FaultImpl { this.faultStringElement.addTextNode(faultString); } + @Override public String getFaultString() { if (this.faultStringElement == null) findFaultStringElement(); @@ -165,6 +182,7 @@ public class Fault1_1Impl extends FaultImpl { } + @Override public Locale getFaultStringLocale() { if (this.faultStringElement == null) findFaultStringElement(); @@ -178,6 +196,7 @@ public class Fault1_1Impl extends FaultImpl { return null; } + @Override public void setFaultString(String faultString, Locale locale) throws SOAPException { setFaultString(faultString); @@ -186,6 +205,7 @@ public class Fault1_1Impl extends FaultImpl { localeToXmlLang(locale)); } + @Override protected boolean isStandardFaultElement(String localName) { if (localName.equalsIgnoreCase("detail") || localName.equalsIgnoreCase("faultcode") || @@ -196,6 +216,7 @@ public class Fault1_1Impl extends FaultImpl { return false; } + @Override public void appendFaultSubcode(QName subcode) { log.log( Level.SEVERE, @@ -204,6 +225,7 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } + @Override public void removeAllFaultSubcodes() { log.log( Level.SEVERE, @@ -212,7 +234,8 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } - public Iterator getFaultSubcodes() { + @Override + public Iterator getFaultSubcodes() { log.log( Level.SEVERE, "SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1", @@ -220,6 +243,7 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } + @Override public String getFaultReasonText(Locale locale) { log.log( Level.SEVERE, @@ -228,7 +252,8 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } - public Iterator getFaultReasonTexts() { + @Override + public Iterator getFaultReasonTexts() { log.log( Level.SEVERE, "SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1", @@ -236,7 +261,8 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } - public Iterator getFaultReasonLocales() { + @Override + public Iterator getFaultReasonLocales() { log.log( Level.SEVERE, "SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1", @@ -244,6 +270,7 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } + @Override public void addFaultReasonText(String text, java.util.Locale locale) throws SOAPException { log.log( @@ -253,6 +280,7 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } + @Override public String getFaultRole() { log.log( Level.SEVERE, @@ -261,6 +289,7 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } + @Override public void setFaultRole(String uri) { log.log( Level.SEVERE, @@ -269,6 +298,7 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } + @Override public String getFaultNode() { log.log( Level.SEVERE, @@ -277,6 +307,7 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } + @Override public void setFaultNode(String uri) { log.log( Level.SEVERE, @@ -285,10 +316,12 @@ public class Fault1_1Impl extends FaultImpl { throw new UnsupportedOperationException("Not supported in SOAP 1.1"); } + @Override protected QName getDefaultFaultCode() { return new QName(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, "Server"); } + @Override public SOAPElement addChildElement(SOAPElement element) throws SOAPException { String localName = element.getLocalName(); @@ -301,18 +334,21 @@ public class Fault1_1Impl extends FaultImpl { return super.addChildElement(element); } + @Override protected FaultElementImpl createSOAPFaultElement(QName qname) { return new FaultElement1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), qname); } + @Override protected FaultElementImpl createSOAPFaultElement(Name qname) { return new FaultElement1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), (NameImpl)qname); } + @Override public void setFaultCode(String faultCode, String prefix, String uri) throws SOAPException { if (prefix == null || "".equals(prefix)) { @@ -370,6 +406,7 @@ public class Fault1_1Impl extends FaultImpl { return false; } + @Override public void setFaultActor(String faultActor) throws SOAPException { if (this.faultActorElement == null) findFaultActorElement(); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/FaultElement1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/FaultElement1_1Impl.java index 22bcab053da..62f9c8c1909 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/FaultElement1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/FaultElement1_1Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -59,6 +59,7 @@ public class FaultElement1_1Impl extends FaultElementImpl { NameImpl.createFaultElement1_1Name(localName, prefix)); } + @Override protected boolean isStandardFaultElement() { String localName = elementQName.getLocalPart(); if (localName.equalsIgnoreCase("faultcode") || @@ -69,6 +70,7 @@ public class FaultElement1_1Impl extends FaultElementImpl { return false; } + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { if (!isStandardFaultElement()) { FaultElement1_1Impl copy = diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Header1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Header1_1Impl.java index 75b76d513f5..cff022a7609 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Header1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Header1_1Impl.java @@ -56,6 +56,7 @@ public class Header1_1Impl extends HeaderImpl { super(ownerDoc, domElement); } + @Override protected NameImpl getNotUnderstoodName() { log.log( Level.SEVERE, @@ -64,6 +65,7 @@ public class Header1_1Impl extends HeaderImpl { throw new UnsupportedOperationException("Not supported by SOAP 1.1"); } + @Override protected NameImpl getUpgradeName() { return NameImpl.create( "Upgrade", @@ -71,6 +73,7 @@ public class Header1_1Impl extends HeaderImpl { SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE); } + @Override protected NameImpl getSupportedEnvelopeName() { return NameImpl.create( "SupportedEnvelope", @@ -78,6 +81,7 @@ public class Header1_1Impl extends HeaderImpl { SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE); } + @Override public SOAPHeaderElement addNotUnderstoodHeaderElement(QName name) throws SOAPException { log.log( @@ -87,11 +91,13 @@ public class Header1_1Impl extends HeaderImpl { throw new UnsupportedOperationException("Not supported by SOAP 1.1"); } + @Override protected SOAPHeaderElement createHeaderElement(Name name) { return new HeaderElement1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); } + @Override protected SOAPHeaderElement createHeaderElement(QName name) { return new HeaderElement1_1Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/HeaderElement1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/HeaderElement1_1Impl.java index 8708ac933bb..7f256985bbc 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/HeaderElement1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/HeaderElement1_1Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -41,6 +41,7 @@ import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.HeaderElementImpl; import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl; import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants; +import org.w3c.dom.Element; public class HeaderElement1_1Impl extends HeaderElementImpl { @@ -55,17 +56,24 @@ public class HeaderElement1_1Impl extends HeaderElementImpl { super(ownerDoc, qname); } + public HeaderElement1_1Impl(SOAPDocumentImpl ownerDoc, Element domElement) { + super(ownerDoc, domElement); + } + + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { HeaderElementImpl copy = new HeaderElement1_1Impl((SOAPDocumentImpl) getOwnerDocument(), newName); return replaceElementWithSOAPElement(this,copy); } + @Override protected NameImpl getActorAttributeName() { return NameImpl.create("actor", null, NameImpl.SOAP11_NAMESPACE); } // role not supported by SOAP 1.1 + @Override protected NameImpl getRoleAttributeName() { log.log( Level.SEVERE, @@ -74,15 +82,18 @@ public class HeaderElement1_1Impl extends HeaderElementImpl { throw new UnsupportedOperationException("Role not supported by SOAP 1.1"); } + @Override protected NameImpl getMustunderstandAttributeName() { return NameImpl.create("mustUnderstand", null, NameImpl.SOAP11_NAMESPACE); } // mustUnderstand attribute has literal value "1" or "0" + @Override protected String getMustunderstandLiteralValue(boolean mustUnderstand) { return (mustUnderstand == true ? "1" : "0"); } + @Override protected boolean getMustunderstandAttributeValue(String mu) { if ("1".equals(mu) || "true".equalsIgnoreCase(mu)) return true; @@ -90,6 +101,7 @@ public class HeaderElement1_1Impl extends HeaderElementImpl { } // relay not supported by SOAP 1.1 + @Override protected NameImpl getRelayAttributeName() { log.log( Level.SEVERE, @@ -98,6 +110,7 @@ public class HeaderElement1_1Impl extends HeaderElementImpl { throw new UnsupportedOperationException("Relay not supported by SOAP 1.1"); } + @Override protected String getRelayLiteralValue(boolean relayAttr) { log.log( Level.SEVERE, @@ -106,6 +119,7 @@ public class HeaderElement1_1Impl extends HeaderElementImpl { throw new UnsupportedOperationException("Relay not supported by SOAP 1.1"); } + @Override protected boolean getRelayAttributeValue(String mu) { log.log( Level.SEVERE, @@ -114,6 +128,7 @@ public class HeaderElement1_1Impl extends HeaderElementImpl { throw new UnsupportedOperationException("Relay not supported by SOAP 1.1"); } + @Override protected String getActorOrRole() { return getActor(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Message1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Message1_1Impl.java index e52640fc399..e7e2ab5ee57 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Message1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/Message1_1Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -76,6 +76,7 @@ public class Message1_1Impl extends MessageImpl implements SOAPConstants { super(headers,ct,stat,reader); } + @Override public SOAPPart getSOAPPart() { if (soapPartImpl == null) { soapPartImpl = new SOAPPart1_1Impl(this); @@ -83,10 +84,12 @@ public class Message1_1Impl extends MessageImpl implements SOAPConstants { return soapPartImpl; } + @Override protected boolean isCorrectSoapVersion(int contentTypeId) { return (contentTypeId & SOAP1_1_FLAG) != 0; } + @Override public String getAction() { log.log( Level.SEVERE, @@ -95,6 +98,7 @@ public class Message1_1Impl extends MessageImpl implements SOAPConstants { throw new UnsupportedOperationException("Operation not supported by SOAP 1.1"); } + @Override public void setAction(String type) { log.log( Level.SEVERE, @@ -103,6 +107,7 @@ public class Message1_1Impl extends MessageImpl implements SOAPConstants { throw new UnsupportedOperationException("Operation not supported by SOAP 1.1"); } + @Override public String getCharset() { log.log( Level.SEVERE, @@ -111,6 +116,7 @@ public class Message1_1Impl extends MessageImpl implements SOAPConstants { throw new UnsupportedOperationException("Operation not supported by SOAP 1.1"); } + @Override public void setCharset(String charset) { log.log( Level.SEVERE, @@ -119,10 +125,12 @@ public class Message1_1Impl extends MessageImpl implements SOAPConstants { throw new UnsupportedOperationException("Operation not supported by SOAP 1.1"); } + @Override protected String getExpectedContentType() { return isFastInfoset ? "application/fastinfoset" : "text/xml"; } + @Override protected String getExpectedAcceptHeader() { String accept = "text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"; return acceptFastInfoset ? ("application/fastinfoset, " + accept) : accept; diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPFactory1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPFactory1_1Impl.java index 13448095cff..d3b27135810 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPFactory1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPFactory1_1Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -39,14 +39,17 @@ import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.SOAPFactoryImpl; public class SOAPFactory1_1Impl extends SOAPFactoryImpl { + @Override protected SOAPDocumentImpl createDocument() { return (new SOAPPart1_1Impl()).getDocument(); } + @Override public Detail createDetail() throws SOAPException { return new Detail1_1Impl(createDocument()); } + @Override public SOAPFault createFault(String reasonText, QName faultCode) throws SOAPException { if (faultCode == null) { @@ -55,14 +58,15 @@ public class SOAPFactory1_1Impl extends SOAPFactoryImpl { if (reasonText == null) { throw new IllegalArgumentException("reasonText argument for createFault was passed NULL"); } - Fault1_1Impl fault = new Fault1_1Impl(createDocument(), null); + Fault1_1Impl fault = new Fault1_1Impl(createDocument()); fault.setFaultCode(faultCode); fault.setFaultString(reasonText); return fault; } + @Override public SOAPFault createFault() throws SOAPException { - Fault1_1Impl fault = new Fault1_1Impl(createDocument(), null); + Fault1_1Impl fault = new Fault1_1Impl(createDocument()); fault.setFaultCode(fault.getDefaultFaultCode()); fault.setFaultString("Fault string, and possibly fault code, not set"); return fault; diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPMessageFactory1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPMessageFactory1_1Impl.java index 01ce1b8b4c8..e43c5fca686 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPMessageFactory1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPMessageFactory1_1Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -40,16 +40,19 @@ import com.sun.xml.internal.messaging.saaj.soap.MessageImpl; public class SOAPMessageFactory1_1Impl extends MessageFactoryImpl { + @Override public SOAPMessage createMessage() throws SOAPException { return new Message1_1Impl(); } + @Override public SOAPMessage createMessage(boolean isFastInfoset, boolean acceptFastInfoset) throws SOAPException { return new Message1_1Impl(isFastInfoset, acceptFastInfoset); } + @Override public SOAPMessage createMessage(MimeHeaders headers, InputStream in) throws IOException, SOAPExceptionImpl { if (headers == null) { diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPPart1_1Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPPart1_1Impl.java index b2408ff3220..0e284bbb3c7 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPPart1_1Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_1/SOAPPart1_1Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -54,10 +54,12 @@ public class SOAPPart1_1Impl extends SOAPPartImpl implements SOAPConstants { super(message); } + @Override protected String getContentType() { return isFastInfoset() ? "application/fastinfoset" : "text/xml"; } + @Override protected Envelope createEnvelopeFromSource() throws SOAPException { // Record the presence of xml declaration before the envelope gets // created. @@ -80,11 +82,13 @@ public class SOAPPart1_1Impl extends SOAPPartImpl implements SOAPConstants { return envelope; } + @Override protected Envelope createEmptyEnvelope(String prefix) throws SOAPException { return new Envelope1_1Impl(getDocument(), prefix, true, true); } + @Override protected SOAPPartImpl duplicateType() { return new SOAPPart1_1Impl(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Body1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Body1_2Impl.java index 1e57365b01c..5fb3436ebd6 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Body1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Body1_2Impl.java @@ -57,25 +57,30 @@ public class Body1_2Impl extends BodyImpl { super(ownerDoc, domElement); } + @Override protected NameImpl getFaultName(String name) { return NameImpl.createFault1_2Name(name, null); } + @Override protected SOAPBodyElement createBodyElement(Name name) { return new BodyElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); } + @Override protected SOAPBodyElement createBodyElement(QName name) { return new BodyElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); } + @Override protected QName getDefaultFaultCode() { return SOAPConstants.SOAP_RECEIVER_FAULT; } + @Override public SOAPFault addFault() throws SOAPException { if (hasAnyChildElement()) { log.severe("SAAJ0402.ver1_2.only.fault.allowed.in.body"); @@ -89,6 +94,7 @@ public class Body1_2Impl extends BodyImpl { * Override setEncodingStyle of ElementImpl to restrict adding encodingStyle * attribute to SOAP Body (SOAP 1.2 spec, part 1, section 5.1.1) */ + @Override public void setEncodingStyle(String encodingStyle) throws SOAPException { log.severe("SAAJ0401.ver1_2.no.encodingstyle.in.body"); throw new SOAPExceptionImpl("encodingStyle attribute cannot appear on Body"); @@ -98,6 +104,7 @@ public class Body1_2Impl extends BodyImpl { * Override addAttribute of ElementImpl to restrict adding encodingStyle * attribute to SOAP Body (SOAP 1.2 spec, part 1, section 5.1.1) */ + @Override public SOAPElement addAttribute(Name name, String value) throws SOAPException { if (name.getLocalName().equals("encodingStyle") @@ -108,6 +115,7 @@ public class Body1_2Impl extends BodyImpl { return super.addAttribute(name, value); } + @Override public SOAPElement addAttribute(QName name, String value) throws SOAPException { if (name.getLocalPart().equals("encodingStyle") @@ -118,6 +126,7 @@ public class Body1_2Impl extends BodyImpl { return super.addAttribute(name, value); } + @Override protected boolean isFault(SOAPElement child) { return (child.getElementName().getURI().equals( SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE) && @@ -125,6 +134,7 @@ public class Body1_2Impl extends BodyImpl { "Fault")); } + @Override protected SOAPFault createFaultElement() { return new Fault1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), getPrefix()); @@ -135,6 +145,7 @@ public class Body1_2Impl extends BodyImpl { * SOAP message MUST contain a single Fault element as the only * child element of the SOAP Body. */ + @Override public SOAPBodyElement addBodyElement(Name name) throws SOAPException { if (hasFault()) { log.severe("SAAJ0402.ver1_2.only.fault.allowed.in.body"); @@ -144,6 +155,7 @@ public class Body1_2Impl extends BodyImpl { return super.addBodyElement(name); } + @Override public SOAPBodyElement addBodyElement(QName name) throws SOAPException { if (hasFault()) { log.severe("SAAJ0402.ver1_2.only.fault.allowed.in.body"); @@ -153,6 +165,7 @@ public class Body1_2Impl extends BodyImpl { return super.addBodyElement(name); } + @Override protected SOAPElement addElement(Name name) throws SOAPException { if (hasFault()) { log.severe("SAAJ0402.ver1_2.only.fault.allowed.in.body"); @@ -162,6 +175,7 @@ public class Body1_2Impl extends BodyImpl { return super.addElement(name); } + @Override protected SOAPElement addElement(QName name) throws SOAPException { if (hasFault()) { log.severe("SAAJ0402.ver1_2.only.fault.allowed.in.body"); @@ -171,6 +185,7 @@ public class Body1_2Impl extends BodyImpl { return super.addElement(name); } + @Override public SOAPElement addChildElement(Name name) throws SOAPException { if (hasFault()) { log.severe("SAAJ0402.ver1_2.only.fault.allowed.in.body"); @@ -180,6 +195,7 @@ public class Body1_2Impl extends BodyImpl { return super.addChildElement(name); } + @Override public SOAPElement addChildElement(QName name) throws SOAPException { if (hasFault()) { log.severe("SAAJ0402.ver1_2.only.fault.allowed.in.body"); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/BodyElement1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/BodyElement1_2Impl.java index 8e9d9d8a215..6038bc55eb6 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/BodyElement1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/BodyElement1_2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -36,6 +36,7 @@ import javax.xml.soap.SOAPElement; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.BodyElementImpl; +import org.w3c.dom.Element; public class BodyElement1_2Impl extends BodyElementImpl { @@ -47,6 +48,11 @@ public class BodyElement1_2Impl extends BodyElementImpl { super(ownerDoc, qname); } + public BodyElement1_2Impl(SOAPDocumentImpl ownerDoc, Element domElement) { + super(ownerDoc, domElement); + } + + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { BodyElementImpl copy = new BodyElement1_2Impl((SOAPDocumentImpl) getOwnerDocument(), newName); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Detail1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Detail1_2Impl.java index 455d6e4ee9d..a0cad1359ec 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Detail1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Detail1_2Impl.java @@ -59,12 +59,14 @@ public class Detail1_2Impl extends DetailImpl { super(ownerDoc, domElement); } + @Override protected DetailEntry createDetailEntry(Name name) { return new DetailEntry1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), name); } + @Override protected DetailEntry createDetailEntry(QName name) { return new DetailEntry1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), @@ -75,11 +77,13 @@ public class Detail1_2Impl extends DetailImpl { * Override setEncodingStyle of ElementImpl to restrict adding encodingStyle * attribute to SOAP Detail (SOAP 1.2 spec, part 1, section 5.1.1) */ + @Override public void setEncodingStyle(String encodingStyle) throws SOAPException { log.severe("SAAJ0403.ver1_2.no.encodingStyle.in.detail"); throw new SOAPExceptionImpl("EncodingStyle attribute cannot appear in Detail"); } + @Override public SOAPElement addAttribute(Name name, String value) throws SOAPException { if (name.getLocalName().equals("encodingStyle") @@ -89,6 +93,7 @@ public class Detail1_2Impl extends DetailImpl { return super.addAttribute(name, value); } + @Override public SOAPElement addAttribute(QName name, String value) throws SOAPException { if (name.getLocalPart().equals("encodingStyle") diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/DetailEntry1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/DetailEntry1_2Impl.java index 26f2b216e29..2f55421dc04 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/DetailEntry1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/DetailEntry1_2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -36,6 +36,7 @@ import javax.xml.soap.SOAPElement; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.DetailEntryImpl; +import org.w3c.dom.Element; public class DetailEntry1_2Impl extends DetailEntryImpl { @@ -47,6 +48,11 @@ public class DetailEntry1_2Impl extends DetailEntryImpl { super(ownerDoc, qname); } + public DetailEntry1_2Impl(SOAPDocumentImpl ownerDoc, Element domElement) { + super(ownerDoc, domElement); + } + + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { DetailEntryImpl copy = new DetailEntry1_2Impl((SOAPDocumentImpl) getOwnerDocument(), newName); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Envelope1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Envelope1_2Impl.java index 075a848b91b..1d5a823b252 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Envelope1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Envelope1_2Impl.java @@ -68,10 +68,12 @@ public class Envelope1_2Impl extends EnvelopeImpl { createBody); } + @Override protected NameImpl getBodyName(String prefix) { return NameImpl.createBody1_2Name(prefix); } + @Override protected NameImpl getHeaderName(String prefix) { return NameImpl.createHeader1_2Name(prefix); } @@ -80,6 +82,7 @@ public class Envelope1_2Impl extends EnvelopeImpl { * Override setEncodingStyle of ElementImpl to restrict adding encodingStyle * attribute to SOAP Envelope (SOAP 1.2 spec, part 1, section 5.1.1) */ + @Override public void setEncodingStyle(String encodingStyle) throws SOAPException { log.severe("SAAJ0404.ver1_2.no.encodingStyle.in.envelope"); throw new SOAPExceptionImpl("encodingStyle attribute cannot appear on Envelope"); @@ -89,6 +92,7 @@ public class Envelope1_2Impl extends EnvelopeImpl { * Override addAttribute of ElementImpl to restrict adding encodingStyle * attribute to SOAP Envelope (SOAP 1.2 spec, part 1, section 5.1.1) */ + @Override public SOAPElement addAttribute(Name name, String value) throws SOAPException { if (name.getLocalName().equals("encodingStyle") @@ -98,6 +102,7 @@ public class Envelope1_2Impl extends EnvelopeImpl { return super.addAttribute(name, value); } + @Override public SOAPElement addAttribute(QName name, String value) throws SOAPException { if (name.getLocalPart().equals("encodingStyle") @@ -112,6 +117,7 @@ public class Envelope1_2Impl extends EnvelopeImpl { * Override addChildElement method to ensure that no element * is added after body in SOAP 1.2. */ + @Override public SOAPElement addChildElement(Name name) throws SOAPException { // check if body already exists if (getBody() != null) { @@ -122,6 +128,7 @@ public class Envelope1_2Impl extends EnvelopeImpl { return super.addChildElement(name); } + @Override public SOAPElement addChildElement(QName name) throws SOAPException { // check if body already exists if (getBody() != null) { @@ -142,6 +149,7 @@ public class Envelope1_2Impl extends EnvelopeImpl { * */ + @Override public SOAPElement addTextNode(String text) throws SOAPException { log.log( Level.SEVERE, diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Fault1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Fault1_2Impl.java index 3f206c13031..55ba06ed585 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Fault1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Fault1_2Impl.java @@ -29,12 +29,10 @@ */ package com.sun.xml.internal.messaging.saaj.soap.ver1_2; -import java.util.*; import java.util.logging.Logger; import java.util.logging.Level; import javax.xml.namespace.QName; -import javax.xml.soap.*; import com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocument; @@ -42,6 +40,14 @@ import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.*; import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl; import com.sun.xml.internal.messaging.saaj.util.LogDomainConstants; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import javax.xml.soap.Name; +import javax.xml.soap.SOAPConstants; +import javax.xml.soap.SOAPElement; +import javax.xml.soap.SOAPException; import org.w3c.dom.Element; @@ -69,22 +75,30 @@ public class Fault1_2Impl extends FaultImpl { super(ownerDocument, NameImpl.createFault1_2Name(null, prefix)); } - public Fault1_2Impl(Element domElement, SOAPDocumentImpl ownerDoc) { + public Fault1_2Impl(SOAPDocumentImpl ownerDocument) { + super(ownerDocument, NameImpl.createFault1_2Name(null, null)); + } + + public Fault1_2Impl(SOAPDocumentImpl ownerDoc, Element domElement) { super(ownerDoc, domElement); } + @Override protected NameImpl getDetailName() { return NameImpl.createSOAP12Name("Detail", getPrefix()); } + @Override protected NameImpl getFaultCodeName() { return NameImpl.createSOAP12Name("Code", getPrefix()); } + @Override protected NameImpl getFaultStringName() { return getFaultReasonName(); } + @Override protected NameImpl getFaultActorName() { return getFaultRoleName(); } @@ -109,17 +123,20 @@ public class Fault1_2Impl extends FaultImpl { return NameImpl.createXmlName("lang"); } + @Override protected DetailImpl createDetail() { return new Detail1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument()); } + @Override protected FaultElementImpl createSOAPFaultElement(String localName) { return new FaultElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), localName); } + @Override protected void checkIfStandardFaultCode(String faultCode, String uri) throws SOAPException { QName qname = new QName(uri, faultCode); @@ -136,6 +153,7 @@ public class Fault1_2Impl extends FaultImpl { throw new SOAPExceptionImpl(qname + " is not a standard Code value"); } + @Override protected void finallySetFaultCode(String faultcode) throws SOAPException { SOAPElement value = this.faultCodeElement.addChildElement(valueName); value.addTextNode(faultcode); @@ -145,13 +163,14 @@ public class Fault1_2Impl extends FaultImpl { findFaultStringElement(); } - public Iterator getFaultReasonTexts() throws SOAPException { + @Override + public Iterator getFaultReasonTexts() throws SOAPException { // Fault Reason has similar semantics as faultstring if (this.faultStringElement == null) findReasonElement(); Iterator eachTextElement = this.faultStringElement.getChildElements(textName); - List texts = new ArrayList(); + List texts = new ArrayList<>(); while (eachTextElement.hasNext()) { SOAPElement textElement = (SOAPElement) eachTextElement.next(); Locale thisLocale = getLocale(textElement); @@ -168,6 +187,7 @@ public class Fault1_2Impl extends FaultImpl { return texts.iterator(); } + @Override public void addFaultReasonText(String text, java.util.Locale locale) throws SOAPException { @@ -214,6 +234,7 @@ public class Fault1_2Impl extends FaultImpl { } } + @Override public String getFaultReasonText(Locale locale) throws SOAPException { if (locale == null) @@ -234,13 +255,14 @@ public class Fault1_2Impl extends FaultImpl { return null; } - public Iterator getFaultReasonLocales() throws SOAPException { + @Override + public Iterator getFaultReasonLocales() throws SOAPException { // Fault Reason has similar semantics as faultstring if (this.faultStringElement == null) findReasonElement(); Iterator eachTextElement = this.faultStringElement.getChildElements(textName); - List localeSet = new ArrayList(); + List localeSet = new ArrayList<>(); while (eachTextElement.hasNext()) { SOAPElement textElement = (SOAPElement) eachTextElement.next(); Locale thisLocale = getLocale(textElement); @@ -257,6 +279,7 @@ public class Fault1_2Impl extends FaultImpl { return localeSet.iterator(); } + @Override public Locale getFaultStringLocale() { Locale locale = null; try { @@ -288,6 +311,7 @@ public class Fault1_2Impl extends FaultImpl { return null; } + @Override public String getFaultNode() { SOAPElement faultNode = findAndConvertChildElement(getFaultNodeName()); if (faultNode == null) { @@ -296,6 +320,7 @@ public class Fault1_2Impl extends FaultImpl { return faultNode.getValue(); } + @Override public void setFaultNode(String uri) throws SOAPException { SOAPElement faultNode = findAndConvertChildElement(getFaultNodeName()); if (faultNode != null) { @@ -314,10 +339,12 @@ public class Fault1_2Impl extends FaultImpl { addNode(faultNode); } + @Override public String getFaultRole() { return getFaultActor(); } + @Override public void setFaultRole(String uri) throws SOAPException { if (this.faultActorElement == null) findFaultActorElement(); @@ -333,6 +360,7 @@ public class Fault1_2Impl extends FaultImpl { addNode(this.faultActorElement); } + @Override public String getFaultCode() { if (this.faultCodeElement == null) findFaultCodeElement(); @@ -341,6 +369,7 @@ public class Fault1_2Impl extends FaultImpl { return ((SOAPElement) codeValues.next()).getValue(); } + @Override public QName getFaultCodeAsQName() { String faultcode = getFaultCode(); if (faultcode == null) { @@ -355,6 +384,7 @@ public class Fault1_2Impl extends FaultImpl { (SOAPElement) valueElements.next()); } + @Override public Name getFaultCodeAsName() { String faultcode = getFaultCode(); if (faultcode == null) { @@ -370,6 +400,7 @@ public class Fault1_2Impl extends FaultImpl { (SOAPElement) valueElements.next())); } + @Override public String getFaultString() { String reason = null; try { @@ -380,10 +411,12 @@ public class Fault1_2Impl extends FaultImpl { return reason; } + @Override public void setFaultString(String faultString) throws SOAPException { addFaultReasonText(faultString, Locale.getDefault()); } + @Override public void setFaultString( String faultString, Locale locale) @@ -391,6 +424,7 @@ public class Fault1_2Impl extends FaultImpl { addFaultReasonText(faultString, locale); } + @Override public void appendFaultSubcode(QName subcode) throws SOAPException { if (subcode == null) { return; @@ -426,6 +460,7 @@ public class Fault1_2Impl extends FaultImpl { subcodeValueElement.addTextNode(prefix + ":" + subcode.getLocalPart()); } + @Override public void removeAllFaultSubcodes() { if (this.faultCodeElement == null) findFaultCodeElement(); @@ -437,10 +472,11 @@ public class Fault1_2Impl extends FaultImpl { } } - public Iterator getFaultSubcodes() { + @Override + public Iterator getFaultSubcodes() { if (this.faultCodeElement == null) findFaultCodeElement(); - final List subcodeList = new ArrayList(); + final List subcodeList = new ArrayList<>(); SOAPElement currentCodeElement = this.faultCodeElement; Iterator subcodeElements = currentCodeElement.getChildElements(subcodeName); @@ -457,14 +493,17 @@ public class Fault1_2Impl extends FaultImpl { return new Iterator() { Iterator subCodeIter = subcodeList.iterator(); + @Override public boolean hasNext() { return subCodeIter.hasNext(); } + @Override public QName next() { return subCodeIter.next(); } + @Override public void remove() { throw new UnsupportedOperationException( "Method remove() not supported on SubCodes Iterator"); @@ -480,11 +519,13 @@ public class Fault1_2Impl extends FaultImpl { * Override setEncodingStyle of ElementImpl to restrict adding encodingStyle * attribute to SOAP Fault (SOAP 1.2 spec, part 1, section 5.1.1) */ + @Override public void setEncodingStyle(String encodingStyle) throws SOAPException { log.severe("SAAJ0407.ver1_2.no.encodingStyle.in.fault"); throw new SOAPExceptionImpl("encodingStyle attribute cannot appear on Fault"); } + @Override public SOAPElement addAttribute(Name name, String value) throws SOAPException { if (name.getLocalName().equals("encodingStyle") @@ -494,6 +535,7 @@ public class Fault1_2Impl extends FaultImpl { return super.addAttribute(name, value); } + @Override public SOAPElement addAttribute(QName name, String value) throws SOAPException { if (name.getLocalPart().equals("encodingStyle") @@ -503,6 +545,7 @@ public class Fault1_2Impl extends FaultImpl { return super.addAttribute(name, value); } + @Override public SOAPElement addTextNode(String text) throws SOAPException { log.log( Level.SEVERE, @@ -511,6 +554,7 @@ public class Fault1_2Impl extends FaultImpl { throw new SOAPExceptionImpl("Adding text to SOAP 1.2 Fault is not legal"); } + @Override public SOAPElement addChildElement(SOAPElement element) throws SOAPException { String localName = element.getLocalName(); @@ -533,6 +577,7 @@ public class Fault1_2Impl extends FaultImpl { return super.addChildElement(element); } + @Override protected boolean isStandardFaultElement(String localName) { if (localName.equalsIgnoreCase("code") || localName.equalsIgnoreCase("reason") || @@ -544,22 +589,26 @@ public class Fault1_2Impl extends FaultImpl { return false; } + @Override protected QName getDefaultFaultCode() { return SOAPConstants.SOAP_SENDER_FAULT; } + @Override protected FaultElementImpl createSOAPFaultElement(QName qname) { return new FaultElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), qname); } + @Override protected FaultElementImpl createSOAPFaultElement(Name qname) { return new FaultElement1_2Impl( ((SOAPDocument) getOwnerDocument()).getDocument(), (NameImpl)qname); } + @Override public void setFaultActor(String faultActor) throws SOAPException { this.setFaultRole(faultActor); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/FaultElement1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/FaultElement1_2Impl.java index a65f172d3c7..0e34cf01cfb 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/FaultElement1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/FaultElement1_2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -38,6 +38,7 @@ import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.FaultElementImpl; import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl; import com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl; +import org.w3c.dom.Element; public class FaultElement1_2Impl extends FaultElementImpl { @@ -53,6 +54,11 @@ public class FaultElement1_2Impl extends FaultElementImpl { super(ownerDoc, NameImpl.createSOAP12Name(localName)); } + public FaultElement1_2Impl(SOAPDocumentImpl ownerDoc, Element domElement) { + super(ownerDoc, domElement); + } + + @Override protected boolean isStandardFaultElement() { String localName = elementQName.getLocalPart(); if (localName.equalsIgnoreCase("code") || @@ -64,6 +70,7 @@ public class FaultElement1_2Impl extends FaultElementImpl { return false; } + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { if (!isStandardFaultElement()) { FaultElement1_2Impl copy = @@ -74,11 +81,13 @@ public class FaultElement1_2Impl extends FaultElementImpl { } } + @Override public void setEncodingStyle(String encodingStyle) throws SOAPException { log.severe("SAAJ0408.ver1_2.no.encodingStyle.in.fault.child"); throw new SOAPExceptionImpl("encodingStyle attribute cannot appear on a Fault child element"); } + @Override public SOAPElement addAttribute(Name name, String value) throws SOAPException { if (name.getLocalName().equals("encodingStyle") @@ -88,6 +97,7 @@ public class FaultElement1_2Impl extends FaultElementImpl { return super.addAttribute(name, value); } + @Override public SOAPElement addAttribute(QName name, String value) throws SOAPException { if (name.getLocalPart().equals("encodingStyle") diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Header1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Header1_2Impl.java index ee9eeaac427..295158b0394 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Header1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Header1_2Impl.java @@ -59,18 +59,22 @@ public class Header1_2Impl extends HeaderImpl { super(ownerDoc, domElement); } + @Override protected NameImpl getNotUnderstoodName() { return NameImpl.createNotUnderstood1_2Name(null); } + @Override protected NameImpl getUpgradeName() { return NameImpl.createUpgrade1_2Name(null); } + @Override protected NameImpl getSupportedEnvelopeName() { return NameImpl.createSupportedEnvelope1_2Name(null); } + @Override public SOAPHeaderElement addNotUnderstoodHeaderElement(final QName sourceName) throws SOAPException { @@ -102,6 +106,7 @@ public class Header1_2Impl extends HeaderImpl { return notunderstoodHeaderElement; } + @Override public SOAPElement addTextNode(String text) throws SOAPException { log.log( Level.SEVERE, @@ -110,6 +115,7 @@ public class Header1_2Impl extends HeaderImpl { throw new SOAPExceptionImpl("Adding text to SOAP 1.2 Header is not legal"); } + @Override protected SOAPHeaderElement createHeaderElement(Name name) throws SOAPException { String uri = name.getURI(); @@ -122,6 +128,7 @@ public class Header1_2Impl extends HeaderImpl { name); } + @Override protected SOAPHeaderElement createHeaderElement(QName name) throws SOAPException { String uri = name.getNamespaceURI(); @@ -134,11 +141,13 @@ public class Header1_2Impl extends HeaderImpl { name); } + @Override public void setEncodingStyle(String encodingStyle) throws SOAPException { log.severe("SAAJ0409.ver1_2.no.encodingstyle.in.header"); throw new SOAPExceptionImpl("encodingStyle attribute cannot appear on Header"); } + @Override public SOAPElement addAttribute(Name name, String value) throws SOAPException { if (name.getLocalName().equals("encodingStyle") @@ -149,6 +158,7 @@ public class Header1_2Impl extends HeaderImpl { return super.addAttribute(name, value); } + @Override public SOAPElement addAttribute(QName name, String value) throws SOAPException { if (name.getLocalPart().equals("encodingStyle") diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/HeaderElement1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/HeaderElement1_2Impl.java index b2673a9f5fa..fdbcf0635a4 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/HeaderElement1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/HeaderElement1_2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -37,6 +37,7 @@ import javax.xml.soap.SOAPException; import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.impl.HeaderElementImpl; import com.sun.xml.internal.messaging.saaj.soap.name.NameImpl; +import org.w3c.dom.Element; public class HeaderElement1_2Impl extends HeaderElementImpl { @@ -47,51 +48,65 @@ public class HeaderElement1_2Impl extends HeaderElementImpl { super(ownerDoc, qname); } + public HeaderElement1_2Impl(SOAPDocumentImpl ownerDoc, Element domElement) { + super(ownerDoc, domElement); + } + + @Override public SOAPElement setElementQName(QName newName) throws SOAPException { HeaderElementImpl copy = new HeaderElement1_2Impl((SOAPDocumentImpl)getOwnerDocument(), newName); return replaceElementWithSOAPElement(this,copy); } + @Override protected NameImpl getRoleAttributeName() { return NameImpl.create("role", null, NameImpl.SOAP12_NAMESPACE); } // Actor equivalent to Role in SOAP 1.2 + @Override protected NameImpl getActorAttributeName() { return getRoleAttributeName(); } + @Override protected NameImpl getMustunderstandAttributeName() { return NameImpl.create("mustUnderstand", null, NameImpl.SOAP12_NAMESPACE); } // mustUnderstand attribute has literal value "true" or "false" + @Override protected String getMustunderstandLiteralValue(boolean mustUnderstand) { return (mustUnderstand == true ? "true" : "false"); } + @Override protected boolean getMustunderstandAttributeValue(String mu) { if (mu.equals("true") || mu.equals("1")) return true; return false; } + @Override protected NameImpl getRelayAttributeName() { return NameImpl.create("relay", null, NameImpl.SOAP12_NAMESPACE); } //relay attribute has literal value "true" or "false" + @Override protected String getRelayLiteralValue(boolean relay) { return (relay == true ? "true" : "false"); } + @Override protected boolean getRelayAttributeValue(String relay) { if (relay.equals("true") || relay.equals("1")) return true; return false; } + @Override protected String getActorOrRole() { return getRole(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Message1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Message1_2Impl.java index b63c8ed4f55..bf851c1299f 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Message1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/Message1_2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -69,6 +69,7 @@ public class Message1_2Impl extends MessageImpl implements SOAPConstants{ super(headers,ct,stat,reader); } + @Override public SOAPPart getSOAPPart() { if (soapPartImpl == null) soapPartImpl = new SOAPPart1_2Impl(this); @@ -76,14 +77,17 @@ public class Message1_2Impl extends MessageImpl implements SOAPConstants{ return soapPartImpl; } + @Override protected boolean isCorrectSoapVersion(int contentTypeId) { return (contentTypeId & SOAP1_2_FLAG) != 0; } + @Override protected String getExpectedContentType() { return isFastInfoset ? "application/soap+fastinfoset" : "application/soap+xml"; } + @Override protected String getExpectedAcceptHeader() { String accept = "application/soap+xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"; return acceptFastInfoset ? ("application/soap+fastinfoset, " + accept) : accept; diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPFactory1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPFactory1_2Impl.java index af01e129e19..4f6ce887508 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPFactory1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPFactory1_2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -39,14 +39,17 @@ import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; import com.sun.xml.internal.messaging.saaj.soap.SOAPFactoryImpl; public class SOAPFactory1_2Impl extends SOAPFactoryImpl { + @Override protected SOAPDocumentImpl createDocument() { return (new SOAPPart1_2Impl()).getDocument(); } + @Override public Detail createDetail() throws SOAPException { return new Detail1_2Impl(createDocument()); } + @Override public SOAPFault createFault(String reasonText, QName faultCode) throws SOAPException { if (faultCode == null) { @@ -55,14 +58,15 @@ public class SOAPFactory1_2Impl extends SOAPFactoryImpl { if (reasonText == null) { throw new IllegalArgumentException("reasonText argument for createFault was passed NULL"); } - Fault1_2Impl fault = new Fault1_2Impl(createDocument(), null); + Fault1_2Impl fault = new Fault1_2Impl(createDocument()); fault.setFaultCode(faultCode); fault.setFaultString(reasonText); return fault; } + @Override public SOAPFault createFault() throws SOAPException { - Fault1_2Impl fault = new Fault1_2Impl(createDocument(), null); + Fault1_2Impl fault = new Fault1_2Impl(createDocument()); fault.setFaultCode(fault.getDefaultFaultCode()); fault.setFaultString("Fault string, and possibly fault code, not set"); return fault; diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPMessageFactory1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPMessageFactory1_2Impl.java index ac1152121f2..2736d5d9843 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPMessageFactory1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPMessageFactory1_2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -40,16 +40,19 @@ import com.sun.xml.internal.messaging.saaj.soap.MessageImpl; public class SOAPMessageFactory1_2Impl extends MessageFactoryImpl { + @Override public SOAPMessage createMessage() throws SOAPException { return new Message1_2Impl(); } + @Override public SOAPMessage createMessage(boolean isFastInfoset, boolean acceptFastInfoset) throws SOAPException { return new Message1_2Impl(isFastInfoset, acceptFastInfoset); } + @Override public SOAPMessage createMessage(MimeHeaders headers, InputStream in) throws IOException, SOAPExceptionImpl { if (headers == null) { diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPPart1_2Impl.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPPart1_2Impl.java index 6f708b8e228..0331405b8ac 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPPart1_2Impl.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPPart1_2Impl.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -53,14 +53,17 @@ public class SOAPPart1_2Impl extends SOAPPartImpl implements SOAPConstants{ super(message); } + @Override protected String getContentType() { return "application/soap+xml"; } + @Override protected Envelope createEmptyEnvelope(String prefix) throws SOAPException { return new Envelope1_2Impl(getDocument(), prefix, true, true); } + @Override protected Envelope createEnvelopeFromSource() throws SOAPException { XMLDeclarationParser parser = lookForXmlDecl(); Source tmp = source; @@ -82,6 +85,7 @@ public class SOAPPart1_2Impl extends SOAPPartImpl implements SOAPConstants{ } + @Override protected SOAPPartImpl duplicateType() { return new SOAPPart1_2Impl(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/ByteInputStream.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/ByteInputStream.java index 5722f117296..4e11155b8f7 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/ByteInputStream.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/ByteInputStream.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -53,6 +53,7 @@ public class ByteInputStream extends ByteArrayInputStream { return count; } + @Override public void close() throws IOException { reset(); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/JAXMStreamSource.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/JAXMStreamSource.java index df3508a6d60..fc9652e4f50 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/JAXMStreamSource.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/JAXMStreamSource.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -75,10 +75,12 @@ public class JAXMStreamSource extends StreamSource { this.reader = new CharArrayReader(cout.toCharArray(), 0, cout.size()); } + @Override public InputStream getInputStream() { return in; } + @Override public Reader getReader() { return reader; } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/NamespaceContextIterator.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/NamespaceContextIterator.java index cac1817e59f..cffc2c4d806 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/NamespaceContextIterator.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/NamespaceContextIterator.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -89,11 +89,13 @@ public class NamespaceContextIterator implements Iterator { } } + @Override public boolean hasNext() { findNext(); return next != null; } + @Override public Object next() { return getNext(); } @@ -112,6 +114,7 @@ public class NamespaceContextIterator implements Iterator { return last; } + @Override public void remove() { if (last == null) { throw new IllegalStateException(); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/RejectDoctypeSaxFilter.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/RejectDoctypeSaxFilter.java index 649e206e3a5..e56fee4d102 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/RejectDoctypeSaxFilter.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/RejectDoctypeSaxFilter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -96,6 +96,7 @@ public class RejectDoctypeSaxFilter extends XMLFilterImpl implements XMLReader, * Override setProperty() to capture any LexicalHandler that is set for * forwarding of events. */ + @Override public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (LEXICAL_HANDLER_PROP.equals(name)) { @@ -109,38 +110,45 @@ public class RejectDoctypeSaxFilter extends XMLFilterImpl implements XMLReader, // Beginning of SAX LexicalHandler callbacks... // + @Override public void startDTD(String name, String publicId, String systemId) throws SAXException { throw new SAXException("Document Type Declaration is not allowed"); } + @Override public void endDTD() throws SAXException { } + @Override public void startEntity(String name) throws SAXException { if (lexicalHandler != null) { lexicalHandler.startEntity(name); } } + @Override public void endEntity(String name) throws SAXException { if (lexicalHandler != null) { lexicalHandler.endEntity(name); } } + @Override public void startCDATA() throws SAXException { if (lexicalHandler != null) { lexicalHandler.startCDATA(); } } + @Override public void endCDATA() throws SAXException { if (lexicalHandler != null) { lexicalHandler.endCDATA(); } } + @Override public void comment(char[] ch, int start, int length) throws SAXException { if (lexicalHandler != null) { lexicalHandler.comment(ch, start, length); @@ -151,6 +159,7 @@ public class RejectDoctypeSaxFilter extends XMLFilterImpl implements XMLReader, // End of SAX LexicalHandler callbacks // + @Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException{ if(atts != null ){ diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/TeeInputStream.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/TeeInputStream.java index bbb4c832327..563f38d8c73 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/TeeInputStream.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/TeeInputStream.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -46,44 +46,53 @@ public class TeeInputStream extends InputStream { this.source = source; } + @Override public int read() throws IOException { int result = source.read(); copySink.write(result); return result; } + @Override public int available() throws IOException { return source.available(); } + @Override public void close() throws IOException { source.close(); } + @Override public synchronized void mark(int readlimit) { source.mark(readlimit); } + @Override public boolean markSupported() { return source.markSupported(); } + @Override public int read(byte[] b, int off, int len) throws IOException { int result = source.read(b, off, len); copySink.write(b, off, len); return result; } + @Override public int read(byte[] b) throws IOException { int result = source.read(b); copySink.write(b); return result; } + @Override public synchronized void reset() throws IOException { source.reset(); } + @Override public long skip(long n) throws IOException { return source.skip(n); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/LazyEnvelopeStaxReader.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/LazyEnvelopeStaxReader.java index c8765a4667c..1bf8da3572d 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/LazyEnvelopeStaxReader.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/LazyEnvelopeStaxReader.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -59,11 +59,13 @@ public class LazyEnvelopeStaxReader extends com.sun.xml.internal.org.jvnet.staxe } } + @Override public Object getProperty(String name) throws IllegalArgumentException { if (usePayloadReaderDelegate) return payloadReader.getProperty(name); return super.getProperty(name); } + @Override public int next() throws XMLStreamException { // boolean previouslyUsingPayloadReader = usePayloadReaderDelegate; //call checkReaderStatus to advance to payloadReader if needed @@ -78,22 +80,26 @@ public class LazyEnvelopeStaxReader extends com.sun.xml.internal.org.jvnet.staxe return getEventType(); } + @Override public void require(int type, String namespaceURI, String localName) throws XMLStreamException { if (usePayloadReaderDelegate) payloadReader.require(type, namespaceURI, localName); else super.require(type, namespaceURI, localName); } + @Override public String getElementText() throws XMLStreamException { if (usePayloadReaderDelegate) return payloadReader.getElementText(); return super.getElementText(); } + @Override public int nextTag() throws XMLStreamException { if (usePayloadReaderDelegate) return payloadReader.nextTag(); return super.nextTag(); } + @Override public boolean hasNext() throws XMLStreamException { checkReaderStatus(false); boolean hasNext; @@ -139,116 +145,139 @@ public class LazyEnvelopeStaxReader extends com.sun.xml.internal.org.jvnet.staxe } } + @Override public void close() throws XMLStreamException { if (usePayloadReaderDelegate) payloadReader.close(); else super.close(); } + @Override public String getNamespaceURI(String prefix) { if (usePayloadReaderDelegate) return payloadReader.getNamespaceURI(prefix); return super.getNamespaceURI(prefix); } + @Override public boolean isStartElement() { if (usePayloadReaderDelegate) return payloadReader.isStartElement(); return super.isStartElement(); } + @Override public boolean isEndElement() { if (usePayloadReaderDelegate) return payloadReader.isEndElement(); return super.isEndElement(); } + @Override public boolean isCharacters() { if (usePayloadReaderDelegate) return payloadReader.isCharacters(); return super.isEndElement(); } + @Override public boolean isWhiteSpace() { if (usePayloadReaderDelegate) return payloadReader.isWhiteSpace(); return super.isWhiteSpace(); } + @Override public String getAttributeValue(String namespaceURI, String localName) { if (usePayloadReaderDelegate) return payloadReader.getAttributeValue(namespaceURI, localName); return super.getAttributeValue(namespaceURI, localName); } + @Override public int getAttributeCount() { if (usePayloadReaderDelegate) return payloadReader.getAttributeCount(); return super.getAttributeCount(); } + @Override public QName getAttributeName(int index) { if (usePayloadReaderDelegate) return payloadReader.getAttributeName(index); return super.getAttributeName(index); } + @Override public String getAttributeNamespace(int index) { if (usePayloadReaderDelegate) return payloadReader.getAttributeNamespace(index); return super.getAttributeNamespace(index); } + @Override public String getAttributeLocalName(int index) { if (usePayloadReaderDelegate) return payloadReader.getAttributeLocalName(index); return super.getAttributeLocalName(index); } + @Override public String getAttributePrefix(int index) { if (usePayloadReaderDelegate) return payloadReader.getAttributePrefix(index); return super.getAttributePrefix(index); } + @Override public String getAttributeType(int index) { if (usePayloadReaderDelegate) return payloadReader.getAttributeType(index); return super.getAttributeType(index); } + @Override public String getAttributeValue(int index) { if (usePayloadReaderDelegate) return payloadReader.getAttributeValue(index); return super.getAttributeValue(index); } + @Override public boolean isAttributeSpecified(int index) { if (usePayloadReaderDelegate) return payloadReader.isAttributeSpecified(index); return super.isAttributeSpecified(index); } + @Override public int getNamespaceCount() { if (usePayloadReaderDelegate) return payloadReader.getNamespaceCount(); return super.getNamespaceCount(); } + @Override public String getNamespacePrefix(int index) { if (usePayloadReaderDelegate) return payloadReader.getNamespacePrefix(index); return super.getNamespacePrefix(index); } + @Override public String getNamespaceURI(int index) { if (usePayloadReaderDelegate) return payloadReader.getNamespaceURI(index); return super.getNamespaceURI(index); } + @Override public NamespaceContext getNamespaceContext() { if (usePayloadReaderDelegate) return payloadReader.getNamespaceContext(); return super.getNamespaceContext(); } + @Override public int getEventType() { if (usePayloadReaderDelegate) return payloadReader.getEventType(); return super.getEventType(); } + @Override public String getText() { if (usePayloadReaderDelegate) return payloadReader.getText(); return super.getText(); } + @Override public char[] getTextCharacters() { if (usePayloadReaderDelegate) return payloadReader.getTextCharacters(); return super.getTextCharacters(); } + @Override public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException { if (usePayloadReaderDelegate) return payloadReader.getTextCharacters(sourceStart, target, targetStart, @@ -256,81 +285,97 @@ public class LazyEnvelopeStaxReader extends com.sun.xml.internal.org.jvnet.staxe return super.getTextCharacters(sourceStart, target, targetStart, length); } + @Override public int getTextStart() { if (usePayloadReaderDelegate) return payloadReader.getTextStart(); return super.getTextStart(); } + @Override public int getTextLength() { if (usePayloadReaderDelegate) return payloadReader.getTextLength(); return super.getTextLength(); } + @Override public String getEncoding() { if (usePayloadReaderDelegate) return payloadReader.getEncoding(); return super.getEncoding(); } + @Override public boolean hasText() { if (usePayloadReaderDelegate) return payloadReader.hasText(); return super.hasText(); } + @Override public Location getLocation() { if (usePayloadReaderDelegate) return payloadReader.getLocation(); return super.getLocation(); } + @Override public QName getName() { if (usePayloadReaderDelegate) return payloadReader.getName(); return super.getName(); } + @Override public String getLocalName() { if (usePayloadReaderDelegate) return payloadReader.getLocalName(); return super.getLocalName(); } + @Override public boolean hasName() { if (usePayloadReaderDelegate) return payloadReader.hasName(); return super.hasName(); } + @Override public String getNamespaceURI() { if (usePayloadReaderDelegate) return payloadReader.getNamespaceURI(); return super.getNamespaceURI(); } + @Override public String getPrefix() { if (usePayloadReaderDelegate) return payloadReader.getPrefix(); return super.getPrefix(); } + @Override public String getVersion() { if (usePayloadReaderDelegate) return payloadReader.getVersion(); return super.getVersion(); } + @Override public boolean isStandalone() { if (usePayloadReaderDelegate) return payloadReader.isStandalone(); return super.isStandalone(); } + @Override public boolean standaloneSet() { if (usePayloadReaderDelegate) return payloadReader.standaloneSet(); return super.standaloneSet(); } + @Override public String getCharacterEncodingScheme() { if (usePayloadReaderDelegate) return payloadReader.getCharacterEncodingScheme(); return super.getCharacterEncodingScheme(); } + @Override public String getPITarget() { if (usePayloadReaderDelegate) return payloadReader.getPITarget(); return super.getPITarget(); } + @Override public String getPIData() { if (usePayloadReaderDelegate) return payloadReader.getPIData(); return super.getPIData(); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/SaajStaxWriter.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/SaajStaxWriter.java index a53cb79a7a1..ce9c1755f4b 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/SaajStaxWriter.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/SaajStaxWriter.java @@ -335,24 +335,30 @@ public class SaajStaxWriter implements XMLStreamWriter { @Override public NamespaceContext getNamespaceContext() { return new NamespaceContext() { + @Override public String getNamespaceURI(final String prefix) { return currentElement.getNamespaceURI(prefix); } + @Override public String getPrefix(final String namespaceURI) { return currentElement.lookupPrefix(namespaceURI); } + @Override public Iterator getPrefixes(final String namespaceURI) { return new Iterator() { String prefix = getPrefix(namespaceURI); + @Override public boolean hasNext() { return (prefix != null); } + @Override public String next() { if (!hasNext()) throw new java.util.NoSuchElementException(); String next = prefix; prefix = null; return next; } + @Override public void remove() {} }; } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/SaajStaxWriterEx.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/SaajStaxWriterEx.java index 4048b296a48..b5745dc98d4 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/SaajStaxWriterEx.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/stax/SaajStaxWriterEx.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -67,6 +67,7 @@ public class SaajStaxWriterEx extends SaajStaxWriter implements XMLStreamWriterE super(msg, uri); } + @Override public void writeStartElement(String prefix, String ln, String ns) throws XMLStreamException { if (xopNS.equals(ns) && Include.equals(ln)) { state = State.xopInclude; @@ -108,31 +109,41 @@ public class SaajStaxWriterEx extends SaajStaxWriter implements XMLStreamWriterE @Override public NamespaceContextEx getNamespaceContext() { return new NamespaceContextEx() { + @Override public String getNamespaceURI(String prefix) { return currentElement.getNamespaceURI(prefix); } + @Override public String getPrefix(String namespaceURI) { return currentElement.lookupPrefix(namespaceURI); } + @Override public Iterator getPrefixes(final String namespaceURI) { return new Iterator() { String prefix = getPrefix(namespaceURI); + @Override public boolean hasNext() { return (prefix != null); } + @Override public String next() { if (prefix == null) throw new java.util.NoSuchElementException(); String next = prefix; prefix = null; return next; } + @Override public void remove() {} }; } + @Override public Iterator iterator() { return new Iterator() { + @Override public boolean hasNext() { return false; } + @Override public Binding next() { return null; } + @Override public void remove() {} }; } @@ -208,6 +219,7 @@ public class SaajStaxWriterEx extends SaajStaxWriter implements XMLStreamWriterE return hrefOrCid; } + @Override public AttachmentMarshaller getAttachmentMarshaller() { return new AttachmentMarshaller() { @Override diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/message/saaj/SAAJMessageHeaders.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/message/saaj/SAAJMessageHeaders.java index 80f7d3bb6ea..db5defcbfd8 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/message/saaj/SAAJMessageHeaders.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/message/saaj/SAAJMessageHeaders.java @@ -25,6 +25,18 @@ package com.sun.xml.internal.ws.api.message.saaj; +import com.sun.xml.internal.ws.api.SOAPVersion; +import com.sun.xml.internal.ws.api.WSBinding; +import com.sun.xml.internal.ws.api.message.Header; +import com.sun.xml.internal.ws.api.message.MessageHeaders; +import com.sun.xml.internal.ws.binding.SOAPBindingImpl; +import com.sun.xml.internal.ws.message.saaj.SAAJHeader; + +import javax.xml.namespace.QName; +import javax.xml.soap.SOAPException; +import javax.xml.soap.SOAPHeader; +import javax.xml.soap.SOAPHeaderElement; +import javax.xml.soap.SOAPMessage; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -34,21 +46,6 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.xml.namespace.QName; -import javax.xml.soap.SOAPException; -import javax.xml.soap.SOAPHeader; -import javax.xml.soap.SOAPHeaderElement; -import javax.xml.soap.SOAPMessage; - -import com.sun.xml.internal.messaging.saaj.soap.SOAPDocumentImpl; -import com.sun.xml.internal.messaging.saaj.soap.impl.HeaderImpl; -import com.sun.xml.internal.ws.api.SOAPVersion; -import com.sun.xml.internal.ws.api.WSBinding; -import com.sun.xml.internal.ws.api.message.Header; -import com.sun.xml.internal.ws.api.message.MessageHeaders; -import com.sun.xml.internal.ws.binding.SOAPBindingImpl; -import com.sun.xml.internal.ws.message.saaj.SAAJHeader; - public class SAAJMessageHeaders implements MessageHeaders { SOAPMessage sm; Map nonSAAJHeaders; @@ -236,12 +233,11 @@ public class SAAJMessageHeaders implements MessageHeaders { if (soapHeader == null) { return null; } - SOAPDocumentImpl soapDocument = ((HeaderImpl)soapHeader).getSoapDocument(); SOAPHeaderElement headerElem = find(nsUri, localName); if (headerElem == null) { return null; } - headerElem = (SOAPHeaderElement) soapDocument.find(soapHeader.removeChild(headerElem)); + headerElem = (SOAPHeaderElement) soapHeader.removeChild(headerElem); //it might have been a nonSAAJHeader - remove from that map removeNonSAAJHeader(headerElem); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/server/SDDocumentSource.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/server/SDDocumentSource.java index 3ba900a13da..02d22f134f8 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/server/SDDocumentSource.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/server/SDDocumentSource.java @@ -35,6 +35,7 @@ import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import java.io.IOException; import java.io.InputStream; +import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; @@ -89,8 +90,14 @@ public abstract class SDDocumentSource { */ public abstract URL getSystemId(); - public static SDDocumentSource create(final Class implClass, final String url) { - return create(url, implClass); + public static SDDocumentSource create(final Class implClass, final String wsdlLocation) { + ClassLoader cl = implClass.getClassLoader(); + URL url = cl.getResource(wsdlLocation); + if (url != null) { + return create(url); + } else { + return create(wsdlLocation, implClass); + } } /** diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamReaderFactory.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamReaderFactory.java index 68cccd1611c..9aab8d71600 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamReaderFactory.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamReaderFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -28,6 +28,7 @@ package com.sun.xml.internal.ws.api.streaming; import com.sun.istack.internal.NotNull; import com.sun.istack.internal.Nullable; import com.sun.xml.internal.ws.streaming.XMLReaderException; +import com.sun.xml.internal.ws.util.MrJarUtil; import com.sun.xml.internal.ws.util.xml.XmlUtil; import org.xml.sax.InputSource; @@ -79,7 +80,7 @@ public abstract class XMLStreamReaderFactory { // this system property can be used to disable the pooling altogether, // in case someone hits an issue with pooling in the production system. - if(!getProperty(XMLStreamReaderFactory.class.getName()+".noPool")) { + if(!MrJarUtil.getNoPoolProperty(XMLStreamReaderFactory.class.getName())) { f = Zephyr.newInstance(xif); } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamWriterFactory.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamWriterFactory.java index fa52778a9f1..2b34c2c6808 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamWriterFactory.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/streaming/XMLStreamWriterFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -30,6 +30,7 @@ import com.sun.istack.internal.Nullable; import com.sun.xml.internal.ws.encoding.HasEncoding; import com.sun.xml.internal.ws.encoding.SOAPBindingCodec; import com.sun.xml.internal.ws.streaming.XMLReaderException; +import com.sun.xml.internal.ws.util.MrJarUtil; import com.sun.xml.internal.ws.util.xml.XMLStreamWriterFilter; import javax.xml.stream.XMLOutputFactory; @@ -85,7 +86,7 @@ public abstract class XMLStreamWriterFactory { // this system property can be used to disable the pooling altogether, // in case someone hits an issue with pooling in the production system. - if (!Boolean.getBoolean(XMLStreamWriterFactory.class.getName()+".noPool")) { + if (!MrJarUtil.getNoPoolProperty(XMLStreamWriterFactory.class.getName())) { try { Class clazz = xof.createXMLStreamWriter(new StringWriter()).getClass(); if (clazz.getName().startsWith("com.sun.xml.internal.stream.")) { diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/model/RuntimeModeler.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/model/RuntimeModeler.java index ad6f52f342e..3b2df620a7f 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/model/RuntimeModeler.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/model/RuntimeModeler.java @@ -1180,7 +1180,7 @@ public class RuntimeModeler { if(p == null) resRpcParams.put(resRpcParams.size()+10000, param); else - resRpcParams.put(param.getIndex(), param); + resRpcParams.put(p.getIndex(), param); } }else{ javaMethod.addParameter(param); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/privateutil/LocalizationMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/privateutil/LocalizationMessages.java index 1c6f1d6fdbd..a672ba5b294 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/privateutil/LocalizationMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/privateutil/LocalizationMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,30 +25,28 @@ package com.sun.xml.internal.ws.policy.privateutil; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class LocalizationMessages { - private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.policy.privateutil.Localization"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, LocalizationMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.policy.privateutil.Localization"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new LocalizationMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableWSP_0017_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL_PLUS_REASON(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0017_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL_PLUS_REASON", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0017_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL_PLUS_REASON", arg0, arg1); } /** @@ -57,11 +55,11 @@ public final class LocalizationMessages { * */ public static String WSP_0017_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL_PLUS_REASON(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0017_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL_PLUS_REASON(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0017_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL_PLUS_REASON(arg0, arg1)); } public static Localizable localizableWSP_0028_SERVICE_PROVIDER_COULD_NOT_BE_INSTANTIATED(Object arg0) { - return messageFactory.getMessage("WSP_0028_SERVICE_PROVIDER_COULD_NOT_BE_INSTANTIATED", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0028_SERVICE_PROVIDER_COULD_NOT_BE_INSTANTIATED", arg0); } /** @@ -69,11 +67,11 @@ public final class LocalizationMessages { * */ public static String WSP_0028_SERVICE_PROVIDER_COULD_NOT_BE_INSTANTIATED(Object arg0) { - return localizer.localize(localizableWSP_0028_SERVICE_PROVIDER_COULD_NOT_BE_INSTANTIATED(arg0)); + return LOCALIZER.localize(localizableWSP_0028_SERVICE_PROVIDER_COULD_NOT_BE_INSTANTIATED(arg0)); } public static Localizable localizableWSP_0081_UNABLE_TO_INSERT_CHILD(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0081_UNABLE_TO_INSERT_CHILD", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0081_UNABLE_TO_INSERT_CHILD", arg0, arg1); } /** @@ -81,11 +79,11 @@ public final class LocalizationMessages { * */ public static String WSP_0081_UNABLE_TO_INSERT_CHILD(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0081_UNABLE_TO_INSERT_CHILD(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0081_UNABLE_TO_INSERT_CHILD(arg0, arg1)); } public static Localizable localizableWSP_0096_ERROR_WHILE_COMBINE(Object arg0) { - return messageFactory.getMessage("WSP_0096_ERROR_WHILE_COMBINE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0096_ERROR_WHILE_COMBINE", arg0); } /** @@ -93,11 +91,11 @@ public final class LocalizationMessages { * */ public static String WSP_0096_ERROR_WHILE_COMBINE(Object arg0) { - return localizer.localize(localizableWSP_0096_ERROR_WHILE_COMBINE(arg0)); + return LOCALIZER.localize(localizableWSP_0096_ERROR_WHILE_COMBINE(arg0)); } public static Localizable localizableWSP_0018_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL(Object arg0) { - return messageFactory.getMessage("WSP_0018_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0018_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL", arg0); } /** @@ -105,11 +103,11 @@ public final class LocalizationMessages { * */ public static String WSP_0018_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL(Object arg0) { - return localizer.localize(localizableWSP_0018_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL(arg0)); + return LOCALIZER.localize(localizableWSP_0018_UNABLE_TO_ACCESS_POLICY_SOURCE_MODEL(arg0)); } public static Localizable localizableWSP_0090_UNEXPECTED_ELEMENT(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0090_UNEXPECTED_ELEMENT", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0090_UNEXPECTED_ELEMENT", arg0, arg1); } /** @@ -117,11 +115,11 @@ public final class LocalizationMessages { * */ public static String WSP_0090_UNEXPECTED_ELEMENT(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0090_UNEXPECTED_ELEMENT(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0090_UNEXPECTED_ELEMENT(arg0, arg1)); } public static Localizable localizableWSP_0043_POLICY_MODEL_TRANSLATION_ERROR_INPUT_PARAM_NULL() { - return messageFactory.getMessage("WSP_0043_POLICY_MODEL_TRANSLATION_ERROR_INPUT_PARAM_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0043_POLICY_MODEL_TRANSLATION_ERROR_INPUT_PARAM_NULL"); } /** @@ -129,11 +127,11 @@ public final class LocalizationMessages { * */ public static String WSP_0043_POLICY_MODEL_TRANSLATION_ERROR_INPUT_PARAM_NULL() { - return localizer.localize(localizableWSP_0043_POLICY_MODEL_TRANSLATION_ERROR_INPUT_PARAM_NULL()); + return LOCALIZER.localize(localizableWSP_0043_POLICY_MODEL_TRANSLATION_ERROR_INPUT_PARAM_NULL()); } public static Localizable localizableWSP_0055_NO_ALTERNATIVE_COMBINATIONS_CREATED() { - return messageFactory.getMessage("WSP_0055_NO_ALTERNATIVE_COMBINATIONS_CREATED"); + return MESSAGE_FACTORY.getMessage("WSP_0055_NO_ALTERNATIVE_COMBINATIONS_CREATED"); } /** @@ -141,11 +139,11 @@ public final class LocalizationMessages { * */ public static String WSP_0055_NO_ALTERNATIVE_COMBINATIONS_CREATED() { - return localizer.localize(localizableWSP_0055_NO_ALTERNATIVE_COMBINATIONS_CREATED()); + return LOCALIZER.localize(localizableWSP_0055_NO_ALTERNATIVE_COMBINATIONS_CREATED()); } public static Localizable localizableWSP_0072_DIGEST_MUST_NOT_BE_NULL_WHEN_ALG_DEFINED() { - return messageFactory.getMessage("WSP_0072_DIGEST_MUST_NOT_BE_NULL_WHEN_ALG_DEFINED"); + return MESSAGE_FACTORY.getMessage("WSP_0072_DIGEST_MUST_NOT_BE_NULL_WHEN_ALG_DEFINED"); } /** @@ -153,11 +151,11 @@ public final class LocalizationMessages { * */ public static String WSP_0072_DIGEST_MUST_NOT_BE_NULL_WHEN_ALG_DEFINED() { - return localizer.localize(localizableWSP_0072_DIGEST_MUST_NOT_BE_NULL_WHEN_ALG_DEFINED()); + return LOCALIZER.localize(localizableWSP_0072_DIGEST_MUST_NOT_BE_NULL_WHEN_ALG_DEFINED()); } public static Localizable localizableWSP_0016_UNABLE_TO_CLONE_POLICY_SOURCE_MODEL() { - return messageFactory.getMessage("WSP_0016_UNABLE_TO_CLONE_POLICY_SOURCE_MODEL"); + return MESSAGE_FACTORY.getMessage("WSP_0016_UNABLE_TO_CLONE_POLICY_SOURCE_MODEL"); } /** @@ -165,11 +163,11 @@ public final class LocalizationMessages { * */ public static String WSP_0016_UNABLE_TO_CLONE_POLICY_SOURCE_MODEL() { - return localizer.localize(localizableWSP_0016_UNABLE_TO_CLONE_POLICY_SOURCE_MODEL()); + return LOCALIZER.localize(localizableWSP_0016_UNABLE_TO_CLONE_POLICY_SOURCE_MODEL()); } public static Localizable localizableWSP_0058_MULTIPLE_POLICY_IDS_NOT_ALLOWED() { - return messageFactory.getMessage("WSP_0058_MULTIPLE_POLICY_IDS_NOT_ALLOWED"); + return MESSAGE_FACTORY.getMessage("WSP_0058_MULTIPLE_POLICY_IDS_NOT_ALLOWED"); } /** @@ -177,11 +175,11 @@ public final class LocalizationMessages { * */ public static String WSP_0058_MULTIPLE_POLICY_IDS_NOT_ALLOWED() { - return localizer.localize(localizableWSP_0058_MULTIPLE_POLICY_IDS_NOT_ALLOWED()); + return LOCALIZER.localize(localizableWSP_0058_MULTIPLE_POLICY_IDS_NOT_ALLOWED()); } public static Localizable localizableWSP_0061_METHOD_INVOCATION_FAILED(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("WSP_0061_METHOD_INVOCATION_FAILED", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("WSP_0061_METHOD_INVOCATION_FAILED", arg0, arg1, arg2); } /** @@ -189,11 +187,11 @@ public final class LocalizationMessages { * */ public static String WSP_0061_METHOD_INVOCATION_FAILED(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSP_0061_METHOD_INVOCATION_FAILED(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSP_0061_METHOD_INVOCATION_FAILED(arg0, arg1, arg2)); } public static Localizable localizableWSP_0048_POLICY_ELEMENT_EXPECTED_FIRST() { - return messageFactory.getMessage("WSP_0048_POLICY_ELEMENT_EXPECTED_FIRST"); + return MESSAGE_FACTORY.getMessage("WSP_0048_POLICY_ELEMENT_EXPECTED_FIRST"); } /** @@ -201,11 +199,11 @@ public final class LocalizationMessages { * */ public static String WSP_0048_POLICY_ELEMENT_EXPECTED_FIRST() { - return localizer.localize(localizableWSP_0048_POLICY_ELEMENT_EXPECTED_FIRST()); + return LOCALIZER.localize(localizableWSP_0048_POLICY_ELEMENT_EXPECTED_FIRST()); } public static Localizable localizableWSP_0068_FAILED_TO_UNMARSHALL_POLICY_EXPRESSION() { - return messageFactory.getMessage("WSP_0068_FAILED_TO_UNMARSHALL_POLICY_EXPRESSION"); + return MESSAGE_FACTORY.getMessage("WSP_0068_FAILED_TO_UNMARSHALL_POLICY_EXPRESSION"); } /** @@ -213,11 +211,11 @@ public final class LocalizationMessages { * */ public static String WSP_0068_FAILED_TO_UNMARSHALL_POLICY_EXPRESSION() { - return localizer.localize(localizableWSP_0068_FAILED_TO_UNMARSHALL_POLICY_EXPRESSION()); + return LOCALIZER.localize(localizableWSP_0068_FAILED_TO_UNMARSHALL_POLICY_EXPRESSION()); } public static Localizable localizableWSP_0029_SERVICE_PORT_OPERATION_PARAM_MUST_NOT_BE_NULL(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("WSP_0029_SERVICE_PORT_OPERATION_PARAM_MUST_NOT_BE_NULL", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("WSP_0029_SERVICE_PORT_OPERATION_PARAM_MUST_NOT_BE_NULL", arg0, arg1, arg2); } /** @@ -225,11 +223,11 @@ public final class LocalizationMessages { * */ public static String WSP_0029_SERVICE_PORT_OPERATION_PARAM_MUST_NOT_BE_NULL(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSP_0029_SERVICE_PORT_OPERATION_PARAM_MUST_NOT_BE_NULL(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSP_0029_SERVICE_PORT_OPERATION_PARAM_MUST_NOT_BE_NULL(arg0, arg1, arg2)); } public static Localizable localizableWSP_0080_IMPLEMENTATION_EXPECTED_NOT_NULL() { - return messageFactory.getMessage("WSP_0080_IMPLEMENTATION_EXPECTED_NOT_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0080_IMPLEMENTATION_EXPECTED_NOT_NULL"); } /** @@ -237,11 +235,11 @@ public final class LocalizationMessages { * */ public static String WSP_0080_IMPLEMENTATION_EXPECTED_NOT_NULL() { - return localizer.localize(localizableWSP_0080_IMPLEMENTATION_EXPECTED_NOT_NULL()); + return LOCALIZER.localize(localizableWSP_0080_IMPLEMENTATION_EXPECTED_NOT_NULL()); } public static Localizable localizableWSP_0051_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_ASSERTION_RELATED_NODE_TYPE(Object arg0) { - return messageFactory.getMessage("WSP_0051_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_ASSERTION_RELATED_NODE_TYPE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0051_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_ASSERTION_RELATED_NODE_TYPE", arg0); } /** @@ -249,11 +247,11 @@ public final class LocalizationMessages { * */ public static String WSP_0051_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_ASSERTION_RELATED_NODE_TYPE(Object arg0) { - return localizer.localize(localizableWSP_0051_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_ASSERTION_RELATED_NODE_TYPE(arg0)); + return LOCALIZER.localize(localizableWSP_0051_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_ASSERTION_RELATED_NODE_TYPE(arg0)); } public static Localizable localizableWSP_0008_UNEXPECTED_CHILD_MODEL_TYPE(Object arg0) { - return messageFactory.getMessage("WSP_0008_UNEXPECTED_CHILD_MODEL_TYPE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0008_UNEXPECTED_CHILD_MODEL_TYPE", arg0); } /** @@ -261,11 +259,11 @@ public final class LocalizationMessages { * */ public static String WSP_0008_UNEXPECTED_CHILD_MODEL_TYPE(Object arg0) { - return localizer.localize(localizableWSP_0008_UNEXPECTED_CHILD_MODEL_TYPE(arg0)); + return LOCALIZER.localize(localizableWSP_0008_UNEXPECTED_CHILD_MODEL_TYPE(arg0)); } public static Localizable localizableWSP_0023_UNEXPECTED_ERROR_WHILE_CLOSING_RESOURCE(Object arg0) { - return messageFactory.getMessage("WSP_0023_UNEXPECTED_ERROR_WHILE_CLOSING_RESOURCE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0023_UNEXPECTED_ERROR_WHILE_CLOSING_RESOURCE", arg0); } /** @@ -273,11 +271,11 @@ public final class LocalizationMessages { * */ public static String WSP_0023_UNEXPECTED_ERROR_WHILE_CLOSING_RESOURCE(Object arg0) { - return localizer.localize(localizableWSP_0023_UNEXPECTED_ERROR_WHILE_CLOSING_RESOURCE(arg0)); + return LOCALIZER.localize(localizableWSP_0023_UNEXPECTED_ERROR_WHILE_CLOSING_RESOURCE(arg0)); } public static Localizable localizableWSP_0091_END_ELEMENT_NO_MATCH(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("WSP_0091_END_ELEMENT_NO_MATCH", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("WSP_0091_END_ELEMENT_NO_MATCH", arg0, arg1, arg2); } /** @@ -285,11 +283,11 @@ public final class LocalizationMessages { * */ public static String WSP_0091_END_ELEMENT_NO_MATCH(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSP_0091_END_ELEMENT_NO_MATCH(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSP_0091_END_ELEMENT_NO_MATCH(arg0, arg1, arg2)); } public static Localizable localizableWSP_0001_UNSUPPORTED_MODEL_NODE_TYPE(Object arg0) { - return messageFactory.getMessage("WSP_0001_UNSUPPORTED_MODEL_NODE_TYPE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0001_UNSUPPORTED_MODEL_NODE_TYPE", arg0); } /** @@ -297,11 +295,11 @@ public final class LocalizationMessages { * */ public static String WSP_0001_UNSUPPORTED_MODEL_NODE_TYPE(Object arg0) { - return localizer.localize(localizableWSP_0001_UNSUPPORTED_MODEL_NODE_TYPE(arg0)); + return LOCALIZER.localize(localizableWSP_0001_UNSUPPORTED_MODEL_NODE_TYPE(arg0)); } public static Localizable localizableWSP_0053_INVALID_CLIENT_SIDE_ALTERNATIVE() { - return messageFactory.getMessage("WSP_0053_INVALID_CLIENT_SIDE_ALTERNATIVE"); + return MESSAGE_FACTORY.getMessage("WSP_0053_INVALID_CLIENT_SIDE_ALTERNATIVE"); } /** @@ -309,11 +307,11 @@ public final class LocalizationMessages { * */ public static String WSP_0053_INVALID_CLIENT_SIDE_ALTERNATIVE() { - return localizer.localize(localizableWSP_0053_INVALID_CLIENT_SIDE_ALTERNATIVE()); + return LOCALIZER.localize(localizableWSP_0053_INVALID_CLIENT_SIDE_ALTERNATIVE()); } public static Localizable localizableWSP_0087_UNKNOWN_EVENT(Object arg0) { - return messageFactory.getMessage("WSP_0087_UNKNOWN_EVENT", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0087_UNKNOWN_EVENT", arg0); } /** @@ -321,11 +319,11 @@ public final class LocalizationMessages { * */ public static String WSP_0087_UNKNOWN_EVENT(Object arg0) { - return localizer.localize(localizableWSP_0087_UNKNOWN_EVENT(arg0)); + return LOCALIZER.localize(localizableWSP_0087_UNKNOWN_EVENT(arg0)); } public static Localizable localizableWSP_0065_INCONSISTENCY_IN_POLICY_SOURCE_MODEL(Object arg0) { - return messageFactory.getMessage("WSP_0065_INCONSISTENCY_IN_POLICY_SOURCE_MODEL", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0065_INCONSISTENCY_IN_POLICY_SOURCE_MODEL", arg0); } /** @@ -333,11 +331,11 @@ public final class LocalizationMessages { * */ public static String WSP_0065_INCONSISTENCY_IN_POLICY_SOURCE_MODEL(Object arg0) { - return localizer.localize(localizableWSP_0065_INCONSISTENCY_IN_POLICY_SOURCE_MODEL(arg0)); + return LOCALIZER.localize(localizableWSP_0065_INCONSISTENCY_IN_POLICY_SOURCE_MODEL(arg0)); } public static Localizable localizableWSP_0032_SERVICE_CAN_NOT_BE_NULL() { - return messageFactory.getMessage("WSP_0032_SERVICE_CAN_NOT_BE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0032_SERVICE_CAN_NOT_BE_NULL"); } /** @@ -345,11 +343,11 @@ public final class LocalizationMessages { * */ public static String WSP_0032_SERVICE_CAN_NOT_BE_NULL() { - return localizer.localize(localizableWSP_0032_SERVICE_CAN_NOT_BE_NULL()); + return LOCALIZER.localize(localizableWSP_0032_SERVICE_CAN_NOT_BE_NULL()); } public static Localizable localizableWSP_0093_INVALID_URI(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0093_INVALID_URI", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0093_INVALID_URI", arg0, arg1); } /** @@ -357,11 +355,11 @@ public final class LocalizationMessages { * */ public static String WSP_0093_INVALID_URI(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0093_INVALID_URI(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0093_INVALID_URI(arg0, arg1)); } public static Localizable localizableWSP_0045_POLICY_MAP_KEY_MUST_NOT_BE_NULL() { - return messageFactory.getMessage("WSP_0045_POLICY_MAP_KEY_MUST_NOT_BE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0045_POLICY_MAP_KEY_MUST_NOT_BE_NULL"); } /** @@ -369,11 +367,11 @@ public final class LocalizationMessages { * */ public static String WSP_0045_POLICY_MAP_KEY_MUST_NOT_BE_NULL() { - return localizer.localize(localizableWSP_0045_POLICY_MAP_KEY_MUST_NOT_BE_NULL()); + return LOCALIZER.localize(localizableWSP_0045_POLICY_MAP_KEY_MUST_NOT_BE_NULL()); } public static Localizable localizableWSP_0079_ERROR_WHILE_RFC_2396_UNESCAPING(Object arg0) { - return messageFactory.getMessage("WSP_0079_ERROR_WHILE_RFC2396_UNESCAPING", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0079_ERROR_WHILE_RFC2396_UNESCAPING", arg0); } /** @@ -381,11 +379,11 @@ public final class LocalizationMessages { * */ public static String WSP_0079_ERROR_WHILE_RFC_2396_UNESCAPING(Object arg0) { - return localizer.localize(localizableWSP_0079_ERROR_WHILE_RFC_2396_UNESCAPING(arg0)); + return LOCALIZER.localize(localizableWSP_0079_ERROR_WHILE_RFC_2396_UNESCAPING(arg0)); } public static Localizable localizableWSP_0064_INITIAL_POLICY_COLLECTION_MUST_NOT_BE_EMPTY() { - return messageFactory.getMessage("WSP_0064_INITIAL_POLICY_COLLECTION_MUST_NOT_BE_EMPTY"); + return MESSAGE_FACTORY.getMessage("WSP_0064_INITIAL_POLICY_COLLECTION_MUST_NOT_BE_EMPTY"); } /** @@ -393,11 +391,11 @@ public final class LocalizationMessages { * */ public static String WSP_0064_INITIAL_POLICY_COLLECTION_MUST_NOT_BE_EMPTY() { - return localizer.localize(localizableWSP_0064_INITIAL_POLICY_COLLECTION_MUST_NOT_BE_EMPTY()); + return LOCALIZER.localize(localizableWSP_0064_INITIAL_POLICY_COLLECTION_MUST_NOT_BE_EMPTY()); } public static Localizable localizableWSP_0044_POLICY_MAP_MUTATOR_ALREADY_CONNECTED() { - return messageFactory.getMessage("WSP_0044_POLICY_MAP_MUTATOR_ALREADY_CONNECTED"); + return MESSAGE_FACTORY.getMessage("WSP_0044_POLICY_MAP_MUTATOR_ALREADY_CONNECTED"); } /** @@ -405,11 +403,11 @@ public final class LocalizationMessages { * */ public static String WSP_0044_POLICY_MAP_MUTATOR_ALREADY_CONNECTED() { - return localizer.localize(localizableWSP_0044_POLICY_MAP_MUTATOR_ALREADY_CONNECTED()); + return LOCALIZER.localize(localizableWSP_0044_POLICY_MAP_MUTATOR_ALREADY_CONNECTED()); } public static Localizable localizableWSP_0015_UNABLE_TO_INSTANTIATE_DIGEST_ALG_URI_FIELD() { - return messageFactory.getMessage("WSP_0015_UNABLE_TO_INSTANTIATE_DIGEST_ALG_URI_FIELD"); + return MESSAGE_FACTORY.getMessage("WSP_0015_UNABLE_TO_INSTANTIATE_DIGEST_ALG_URI_FIELD"); } /** @@ -417,11 +415,11 @@ public final class LocalizationMessages { * */ public static String WSP_0015_UNABLE_TO_INSTANTIATE_DIGEST_ALG_URI_FIELD() { - return localizer.localize(localizableWSP_0015_UNABLE_TO_INSTANTIATE_DIGEST_ALG_URI_FIELD()); + return LOCALIZER.localize(localizableWSP_0015_UNABLE_TO_INSTANTIATE_DIGEST_ALG_URI_FIELD()); } public static Localizable localizableWSP_0046_POLICY_MAP_KEY_HANDLER_NOT_SET() { - return messageFactory.getMessage("WSP_0046_POLICY_MAP_KEY_HANDLER_NOT_SET"); + return MESSAGE_FACTORY.getMessage("WSP_0046_POLICY_MAP_KEY_HANDLER_NOT_SET"); } /** @@ -429,11 +427,11 @@ public final class LocalizationMessages { * */ public static String WSP_0046_POLICY_MAP_KEY_HANDLER_NOT_SET() { - return localizer.localize(localizableWSP_0046_POLICY_MAP_KEY_HANDLER_NOT_SET()); + return LOCALIZER.localize(localizableWSP_0046_POLICY_MAP_KEY_HANDLER_NOT_SET()); } public static Localizable localizableWSP_0012_UNABLE_TO_UNMARSHALL_POLICY_MALFORMED_URI() { - return messageFactory.getMessage("WSP_0012_UNABLE_TO_UNMARSHALL_POLICY_MALFORMED_URI"); + return MESSAGE_FACTORY.getMessage("WSP_0012_UNABLE_TO_UNMARSHALL_POLICY_MALFORMED_URI"); } /** @@ -441,11 +439,11 @@ public final class LocalizationMessages { * */ public static String WSP_0012_UNABLE_TO_UNMARSHALL_POLICY_MALFORMED_URI() { - return localizer.localize(localizableWSP_0012_UNABLE_TO_UNMARSHALL_POLICY_MALFORMED_URI()); + return LOCALIZER.localize(localizableWSP_0012_UNABLE_TO_UNMARSHALL_POLICY_MALFORMED_URI()); } public static Localizable localizableWSP_0003_UNMARSHALLING_FAILED_END_TAG_DOES_NOT_MATCH(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0003_UNMARSHALLING_FAILED_END_TAG_DOES_NOT_MATCH", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0003_UNMARSHALLING_FAILED_END_TAG_DOES_NOT_MATCH", arg0, arg1); } /** @@ -453,11 +451,11 @@ public final class LocalizationMessages { * */ public static String WSP_0003_UNMARSHALLING_FAILED_END_TAG_DOES_NOT_MATCH(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0003_UNMARSHALLING_FAILED_END_TAG_DOES_NOT_MATCH(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0003_UNMARSHALLING_FAILED_END_TAG_DOES_NOT_MATCH(arg0, arg1)); } public static Localizable localizableWSP_0007_UNEXPECTED_MODEL_NODE_TYPE_FOUND(Object arg0) { - return messageFactory.getMessage("WSP_0007_UNEXPECTED_MODEL_NODE_TYPE_FOUND", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0007_UNEXPECTED_MODEL_NODE_TYPE_FOUND", arg0); } /** @@ -465,11 +463,11 @@ public final class LocalizationMessages { * */ public static String WSP_0007_UNEXPECTED_MODEL_NODE_TYPE_FOUND(Object arg0) { - return localizer.localize(localizableWSP_0007_UNEXPECTED_MODEL_NODE_TYPE_FOUND(arg0)); + return LOCALIZER.localize(localizableWSP_0007_UNEXPECTED_MODEL_NODE_TYPE_FOUND(arg0)); } public static Localizable localizableWSP_0086_FAILED_CREATE_READER(Object arg0) { - return messageFactory.getMessage("WSP_0086_FAILED_CREATE_READER", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0086_FAILED_CREATE_READER", arg0); } /** @@ -477,11 +475,11 @@ public final class LocalizationMessages { * */ public static String WSP_0086_FAILED_CREATE_READER(Object arg0) { - return localizer.localize(localizableWSP_0086_FAILED_CREATE_READER(arg0)); + return LOCALIZER.localize(localizableWSP_0086_FAILED_CREATE_READER(arg0)); } public static Localizable localizableWSP_0077_ASSERTION_CREATOR_DOES_NOT_SUPPORT_ANY_URI(Object arg0) { - return messageFactory.getMessage("WSP_0077_ASSERTION_CREATOR_DOES_NOT_SUPPORT_ANY_URI", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0077_ASSERTION_CREATOR_DOES_NOT_SUPPORT_ANY_URI", arg0); } /** @@ -489,11 +487,11 @@ public final class LocalizationMessages { * */ public static String WSP_0077_ASSERTION_CREATOR_DOES_NOT_SUPPORT_ANY_URI(Object arg0) { - return localizer.localize(localizableWSP_0077_ASSERTION_CREATOR_DOES_NOT_SUPPORT_ANY_URI(arg0)); + return LOCALIZER.localize(localizableWSP_0077_ASSERTION_CREATOR_DOES_NOT_SUPPORT_ANY_URI(arg0)); } public static Localizable localizableWSP_0082_NO_SUBJECT_TYPE() { - return messageFactory.getMessage("WSP_0082_NO_SUBJECT_TYPE"); + return MESSAGE_FACTORY.getMessage("WSP_0082_NO_SUBJECT_TYPE"); } /** @@ -501,11 +499,11 @@ public final class LocalizationMessages { * */ public static String WSP_0082_NO_SUBJECT_TYPE() { - return localizer.localize(localizableWSP_0082_NO_SUBJECT_TYPE()); + return LOCALIZER.localize(localizableWSP_0082_NO_SUBJECT_TYPE()); } public static Localizable localizableWSP_0089_EXPECTED_ELEMENT(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("WSP_0089_EXPECTED_ELEMENT", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("WSP_0089_EXPECTED_ELEMENT", arg0, arg1, arg2); } /** @@ -513,11 +511,11 @@ public final class LocalizationMessages { * */ public static String WSP_0089_EXPECTED_ELEMENT(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSP_0089_EXPECTED_ELEMENT(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSP_0089_EXPECTED_ELEMENT(arg0, arg1, arg2)); } public static Localizable localizableWSP_0031_SERVICE_PARAM_MUST_NOT_BE_NULL() { - return messageFactory.getMessage("WSP_0031_SERVICE_PARAM_MUST_NOT_BE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0031_SERVICE_PARAM_MUST_NOT_BE_NULL"); } /** @@ -525,11 +523,11 @@ public final class LocalizationMessages { * */ public static String WSP_0031_SERVICE_PARAM_MUST_NOT_BE_NULL() { - return localizer.localize(localizableWSP_0031_SERVICE_PARAM_MUST_NOT_BE_NULL()); + return LOCALIZER.localize(localizableWSP_0031_SERVICE_PARAM_MUST_NOT_BE_NULL()); } public static Localizable localizableWSP_0030_SERVICE_PORT_OPERATION_FAULT_MSG_PARAM_MUST_NOT_BE_NULL(Object arg0, Object arg1, Object arg2, Object arg3) { - return messageFactory.getMessage("WSP_0030_SERVICE_PORT_OPERATION_FAULT_MSG_PARAM_MUST_NOT_BE_NULL", arg0, arg1, arg2, arg3); + return MESSAGE_FACTORY.getMessage("WSP_0030_SERVICE_PORT_OPERATION_FAULT_MSG_PARAM_MUST_NOT_BE_NULL", arg0, arg1, arg2, arg3); } /** @@ -537,11 +535,11 @@ public final class LocalizationMessages { * */ public static String WSP_0030_SERVICE_PORT_OPERATION_FAULT_MSG_PARAM_MUST_NOT_BE_NULL(Object arg0, Object arg1, Object arg2, Object arg3) { - return localizer.localize(localizableWSP_0030_SERVICE_PORT_OPERATION_FAULT_MSG_PARAM_MUST_NOT_BE_NULL(arg0, arg1, arg2, arg3)); + return LOCALIZER.localize(localizableWSP_0030_SERVICE_PORT_OPERATION_FAULT_MSG_PARAM_MUST_NOT_BE_NULL(arg0, arg1, arg2, arg3)); } public static Localizable localizableWSP_0040_POLICY_REFERENCE_URI_ATTR_NOT_FOUND() { - return messageFactory.getMessage("WSP_0040_POLICY_REFERENCE_URI_ATTR_NOT_FOUND"); + return MESSAGE_FACTORY.getMessage("WSP_0040_POLICY_REFERENCE_URI_ATTR_NOT_FOUND"); } /** @@ -549,11 +547,11 @@ public final class LocalizationMessages { * */ public static String WSP_0040_POLICY_REFERENCE_URI_ATTR_NOT_FOUND() { - return localizer.localize(localizableWSP_0040_POLICY_REFERENCE_URI_ATTR_NOT_FOUND()); + return LOCALIZER.localize(localizableWSP_0040_POLICY_REFERENCE_URI_ATTR_NOT_FOUND()); } public static Localizable localizableWSP_0034_REMOVE_OPERATION_NOT_SUPPORTED() { - return messageFactory.getMessage("WSP_0034_REMOVE_OPERATION_NOT_SUPPORTED"); + return MESSAGE_FACTORY.getMessage("WSP_0034_REMOVE_OPERATION_NOT_SUPPORTED"); } /** @@ -561,11 +559,11 @@ public final class LocalizationMessages { * */ public static String WSP_0034_REMOVE_OPERATION_NOT_SUPPORTED() { - return localizer.localize(localizableWSP_0034_REMOVE_OPERATION_NOT_SUPPORTED()); + return LOCALIZER.localize(localizableWSP_0034_REMOVE_OPERATION_NOT_SUPPORTED()); } public static Localizable localizableWSP_0084_MESSAGE_TYPE_NO_MESSAGE() { - return messageFactory.getMessage("WSP_0084_MESSAGE_TYPE_NO_MESSAGE"); + return MESSAGE_FACTORY.getMessage("WSP_0084_MESSAGE_TYPE_NO_MESSAGE"); } /** @@ -573,11 +571,11 @@ public final class LocalizationMessages { * */ public static String WSP_0084_MESSAGE_TYPE_NO_MESSAGE() { - return localizer.localize(localizableWSP_0084_MESSAGE_TYPE_NO_MESSAGE()); + return LOCALIZER.localize(localizableWSP_0084_MESSAGE_TYPE_NO_MESSAGE()); } public static Localizable localizableWSP_0004_UNEXPECTED_VISIBILITY_ATTR_VALUE(Object arg0) { - return messageFactory.getMessage("WSP_0004_UNEXPECTED_VISIBILITY_ATTR_VALUE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0004_UNEXPECTED_VISIBILITY_ATTR_VALUE", arg0); } /** @@ -585,11 +583,11 @@ public final class LocalizationMessages { * */ public static String WSP_0004_UNEXPECTED_VISIBILITY_ATTR_VALUE(Object arg0) { - return localizer.localize(localizableWSP_0004_UNEXPECTED_VISIBILITY_ATTR_VALUE(arg0)); + return LOCALIZER.localize(localizableWSP_0004_UNEXPECTED_VISIBILITY_ATTR_VALUE(arg0)); } public static Localizable localizableWSP_0074_CANNOT_CREATE_ASSERTION_BAD_TYPE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("WSP_0074_CANNOT_CREATE_ASSERTION_BAD_TYPE", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("WSP_0074_CANNOT_CREATE_ASSERTION_BAD_TYPE", arg0, arg1, arg2); } /** @@ -597,11 +595,11 @@ public final class LocalizationMessages { * */ public static String WSP_0074_CANNOT_CREATE_ASSERTION_BAD_TYPE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSP_0074_CANNOT_CREATE_ASSERTION_BAD_TYPE(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSP_0074_CANNOT_CREATE_ASSERTION_BAD_TYPE(arg0, arg1, arg2)); } public static Localizable localizableWSP_0052_NUMBER_OF_ALTERNATIVE_COMBINATIONS_CREATED(Object arg0) { - return messageFactory.getMessage("WSP_0052_NUMBER_OF_ALTERNATIVE_COMBINATIONS_CREATED", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0052_NUMBER_OF_ALTERNATIVE_COMBINATIONS_CREATED", arg0); } /** @@ -609,11 +607,11 @@ public final class LocalizationMessages { * */ public static String WSP_0052_NUMBER_OF_ALTERNATIVE_COMBINATIONS_CREATED(Object arg0) { - return localizer.localize(localizableWSP_0052_NUMBER_OF_ALTERNATIVE_COMBINATIONS_CREATED(arg0)); + return LOCALIZER.localize(localizableWSP_0052_NUMBER_OF_ALTERNATIVE_COMBINATIONS_CREATED(arg0)); } public static Localizable localizableWSP_0037_PRIVATE_CONSTRUCTOR_DOES_NOT_TAKE_NULL() { - return messageFactory.getMessage("WSP_0037_PRIVATE_CONSTRUCTOR_DOES_NOT_TAKE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0037_PRIVATE_CONSTRUCTOR_DOES_NOT_TAKE_NULL"); } /** @@ -621,11 +619,11 @@ public final class LocalizationMessages { * */ public static String WSP_0037_PRIVATE_CONSTRUCTOR_DOES_NOT_TAKE_NULL() { - return localizer.localize(localizableWSP_0037_PRIVATE_CONSTRUCTOR_DOES_NOT_TAKE_NULL()); + return LOCALIZER.localize(localizableWSP_0037_PRIVATE_CONSTRUCTOR_DOES_NOT_TAKE_NULL()); } public static Localizable localizableWSP_0067_ILLEGAL_CFG_FILE_SYNTAX() { - return messageFactory.getMessage("WSP_0067_ILLEGAL_CFG_FILE_SYNTAX"); + return MESSAGE_FACTORY.getMessage("WSP_0067_ILLEGAL_CFG_FILE_SYNTAX"); } /** @@ -633,11 +631,11 @@ public final class LocalizationMessages { * */ public static String WSP_0067_ILLEGAL_CFG_FILE_SYNTAX() { - return localizer.localize(localizableWSP_0067_ILLEGAL_CFG_FILE_SYNTAX()); + return LOCALIZER.localize(localizableWSP_0067_ILLEGAL_CFG_FILE_SYNTAX()); } public static Localizable localizableWSP_0085_MESSAGE_FAULT_NO_NAME() { - return messageFactory.getMessage("WSP_0085_MESSAGE_FAULT_NO_NAME"); + return MESSAGE_FACTORY.getMessage("WSP_0085_MESSAGE_FAULT_NO_NAME"); } /** @@ -645,11 +643,11 @@ public final class LocalizationMessages { * */ public static String WSP_0085_MESSAGE_FAULT_NO_NAME() { - return localizer.localize(localizableWSP_0085_MESSAGE_FAULT_NO_NAME()); + return LOCALIZER.localize(localizableWSP_0085_MESSAGE_FAULT_NO_NAME()); } public static Localizable localizableWSP_0050_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_POLICY_REFERENCE_NODE_TYPE(Object arg0) { - return messageFactory.getMessage("WSP_0050_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_POLICY_REFERENCE_NODE_TYPE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0050_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_POLICY_REFERENCE_NODE_TYPE", arg0); } /** @@ -657,11 +655,11 @@ public final class LocalizationMessages { * */ public static String WSP_0050_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_POLICY_REFERENCE_NODE_TYPE(Object arg0) { - return localizer.localize(localizableWSP_0050_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_POLICY_REFERENCE_NODE_TYPE(arg0)); + return LOCALIZER.localize(localizableWSP_0050_OPERATION_NOT_SUPPORTED_FOR_THIS_BUT_POLICY_REFERENCE_NODE_TYPE(arg0)); } public static Localizable localizableWSP_0042_POLICY_REFERENCE_NODE_EXPECTED_INSTEAD_OF(Object arg0) { - return messageFactory.getMessage("WSP_0042_POLICY_REFERENCE_NODE_EXPECTED_INSTEAD_OF", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0042_POLICY_REFERENCE_NODE_EXPECTED_INSTEAD_OF", arg0); } /** @@ -669,11 +667,11 @@ public final class LocalizationMessages { * */ public static String WSP_0042_POLICY_REFERENCE_NODE_EXPECTED_INSTEAD_OF(Object arg0) { - return localizer.localize(localizableWSP_0042_POLICY_REFERENCE_NODE_EXPECTED_INSTEAD_OF(arg0)); + return LOCALIZER.localize(localizableWSP_0042_POLICY_REFERENCE_NODE_EXPECTED_INSTEAD_OF(arg0)); } public static Localizable localizableWSP_0014_UNABLE_TO_INSTANTIATE_READER_FOR_STORAGE() { - return messageFactory.getMessage("WSP_0014_UNABLE_TO_INSTANTIATE_READER_FOR_STORAGE"); + return MESSAGE_FACTORY.getMessage("WSP_0014_UNABLE_TO_INSTANTIATE_READER_FOR_STORAGE"); } /** @@ -681,11 +679,11 @@ public final class LocalizationMessages { * */ public static String WSP_0014_UNABLE_TO_INSTANTIATE_READER_FOR_STORAGE() { - return localizer.localize(localizableWSP_0014_UNABLE_TO_INSTANTIATE_READER_FOR_STORAGE()); + return LOCALIZER.localize(localizableWSP_0014_UNABLE_TO_INSTANTIATE_READER_FOR_STORAGE()); } public static Localizable localizableWSP_0054_NO_MORE_ELEMS_IN_POLICY_MAP() { - return messageFactory.getMessage("WSP_0054_NO_MORE_ELEMS_IN_POLICY_MAP"); + return MESSAGE_FACTORY.getMessage("WSP_0054_NO_MORE_ELEMS_IN_POLICY_MAP"); } /** @@ -693,11 +691,11 @@ public final class LocalizationMessages { * */ public static String WSP_0054_NO_MORE_ELEMS_IN_POLICY_MAP() { - return localizer.localize(localizableWSP_0054_NO_MORE_ELEMS_IN_POLICY_MAP()); + return LOCALIZER.localize(localizableWSP_0054_NO_MORE_ELEMS_IN_POLICY_MAP()); } public static Localizable localizableWSP_0083_MESSAGE_TYPE_NULL() { - return messageFactory.getMessage("WSP_0083_MESSAGE_TYPE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0083_MESSAGE_TYPE_NULL"); } /** @@ -705,11 +703,11 @@ public final class LocalizationMessages { * */ public static String WSP_0083_MESSAGE_TYPE_NULL() { - return localizer.localize(localizableWSP_0083_MESSAGE_TYPE_NULL()); + return LOCALIZER.localize(localizableWSP_0083_MESSAGE_TYPE_NULL()); } public static Localizable localizableWSP_0011_UNABLE_TO_UNMARSHALL_POLICY_XML_ELEM_EXPECTED() { - return messageFactory.getMessage("WSP_0011_UNABLE_TO_UNMARSHALL_POLICY_XML_ELEM_EXPECTED"); + return MESSAGE_FACTORY.getMessage("WSP_0011_UNABLE_TO_UNMARSHALL_POLICY_XML_ELEM_EXPECTED"); } /** @@ -717,11 +715,11 @@ public final class LocalizationMessages { * */ public static String WSP_0011_UNABLE_TO_UNMARSHALL_POLICY_XML_ELEM_EXPECTED() { - return localizer.localize(localizableWSP_0011_UNABLE_TO_UNMARSHALL_POLICY_XML_ELEM_EXPECTED()); + return LOCALIZER.localize(localizableWSP_0011_UNABLE_TO_UNMARSHALL_POLICY_XML_ELEM_EXPECTED()); } public static Localizable localizableWSP_0025_SPI_FAIL_SERVICE_MSG(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0025_SPI_FAIL_SERVICE_MSG", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0025_SPI_FAIL_SERVICE_MSG", arg0, arg1); } /** @@ -729,11 +727,11 @@ public final class LocalizationMessages { * */ public static String WSP_0025_SPI_FAIL_SERVICE_MSG(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0025_SPI_FAIL_SERVICE_MSG(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0025_SPI_FAIL_SERVICE_MSG(arg0, arg1)); } public static Localizable localizableWSP_0094_INVALID_URN() { - return messageFactory.getMessage("WSP_0094_INVALID_URN"); + return MESSAGE_FACTORY.getMessage("WSP_0094_INVALID_URN"); } /** @@ -741,11 +739,11 @@ public final class LocalizationMessages { * */ public static String WSP_0094_INVALID_URN() { - return localizer.localize(localizableWSP_0094_INVALID_URN()); + return LOCALIZER.localize(localizableWSP_0094_INVALID_URN()); } public static Localizable localizableWSP_0026_SINGLE_EMPTY_ALTERNATIVE_COMBINATION_CREATED() { - return messageFactory.getMessage("WSP_0026_SINGLE_EMPTY_ALTERNATIVE_COMBINATION_CREATED"); + return MESSAGE_FACTORY.getMessage("WSP_0026_SINGLE_EMPTY_ALTERNATIVE_COMBINATION_CREATED"); } /** @@ -753,11 +751,11 @@ public final class LocalizationMessages { * */ public static String WSP_0026_SINGLE_EMPTY_ALTERNATIVE_COMBINATION_CREATED() { - return localizer.localize(localizableWSP_0026_SINGLE_EMPTY_ALTERNATIVE_COMBINATION_CREATED()); + return LOCALIZER.localize(localizableWSP_0026_SINGLE_EMPTY_ALTERNATIVE_COMBINATION_CREATED()); } public static Localizable localizableWSP_0078_ASSERTION_CREATOR_DISCOVERED(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0078_ASSERTION_CREATOR_DISCOVERED", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0078_ASSERTION_CREATOR_DISCOVERED", arg0, arg1); } /** @@ -765,11 +763,11 @@ public final class LocalizationMessages { * */ public static String WSP_0078_ASSERTION_CREATOR_DISCOVERED(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0078_ASSERTION_CREATOR_DISCOVERED(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0078_ASSERTION_CREATOR_DISCOVERED(arg0, arg1)); } public static Localizable localizableWSP_0041_POLICY_REFERENCE_NODE_FOUND_WITH_NO_POLICY_REFERENCE_IN_IT() { - return messageFactory.getMessage("WSP_0041_POLICY_REFERENCE_NODE_FOUND_WITH_NO_POLICY_REFERENCE_IN_IT"); + return MESSAGE_FACTORY.getMessage("WSP_0041_POLICY_REFERENCE_NODE_FOUND_WITH_NO_POLICY_REFERENCE_IN_IT"); } /** @@ -777,11 +775,11 @@ public final class LocalizationMessages { * */ public static String WSP_0041_POLICY_REFERENCE_NODE_FOUND_WITH_NO_POLICY_REFERENCE_IN_IT() { - return localizer.localize(localizableWSP_0041_POLICY_REFERENCE_NODE_FOUND_WITH_NO_POLICY_REFERENCE_IN_IT()); + return LOCALIZER.localize(localizableWSP_0041_POLICY_REFERENCE_NODE_FOUND_WITH_NO_POLICY_REFERENCE_IN_IT()); } public static Localizable localizableWSP_0039_POLICY_SRC_MODEL_INPUT_PARAMETER_MUST_NOT_BE_NULL() { - return messageFactory.getMessage("WSP_0039_POLICY_SRC_MODEL_INPUT_PARAMETER_MUST_NOT_BE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0039_POLICY_SRC_MODEL_INPUT_PARAMETER_MUST_NOT_BE_NULL"); } /** @@ -789,11 +787,11 @@ public final class LocalizationMessages { * */ public static String WSP_0039_POLICY_SRC_MODEL_INPUT_PARAMETER_MUST_NOT_BE_NULL() { - return localizer.localize(localizableWSP_0039_POLICY_SRC_MODEL_INPUT_PARAMETER_MUST_NOT_BE_NULL()); + return LOCALIZER.localize(localizableWSP_0039_POLICY_SRC_MODEL_INPUT_PARAMETER_MUST_NOT_BE_NULL()); } public static Localizable localizableWSP_0070_ERROR_REGISTERING_ASSERTION_CREATOR(Object arg0) { - return messageFactory.getMessage("WSP_0070_ERROR_REGISTERING_ASSERTION_CREATOR", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0070_ERROR_REGISTERING_ASSERTION_CREATOR", arg0); } /** @@ -801,11 +799,11 @@ public final class LocalizationMessages { * */ public static String WSP_0070_ERROR_REGISTERING_ASSERTION_CREATOR(Object arg0) { - return localizer.localize(localizableWSP_0070_ERROR_REGISTERING_ASSERTION_CREATOR(arg0)); + return LOCALIZER.localize(localizableWSP_0070_ERROR_REGISTERING_ASSERTION_CREATOR(arg0)); } public static Localizable localizableWSP_0036_PRIVATE_METHOD_DOES_NOT_ACCEPT_NULL_OR_EMPTY_COLLECTION() { - return messageFactory.getMessage("WSP_0036_PRIVATE_METHOD_DOES_NOT_ACCEPT_NULL_OR_EMPTY_COLLECTION"); + return MESSAGE_FACTORY.getMessage("WSP_0036_PRIVATE_METHOD_DOES_NOT_ACCEPT_NULL_OR_EMPTY_COLLECTION"); } /** @@ -813,11 +811,11 @@ public final class LocalizationMessages { * */ public static String WSP_0036_PRIVATE_METHOD_DOES_NOT_ACCEPT_NULL_OR_EMPTY_COLLECTION() { - return localizer.localize(localizableWSP_0036_PRIVATE_METHOD_DOES_NOT_ACCEPT_NULL_OR_EMPTY_COLLECTION()); + return LOCALIZER.localize(localizableWSP_0036_PRIVATE_METHOD_DOES_NOT_ACCEPT_NULL_OR_EMPTY_COLLECTION()); } public static Localizable localizableWSP_0027_SERVICE_PROVIDER_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("WSP_0027_SERVICE_PROVIDER_NOT_FOUND", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0027_SERVICE_PROVIDER_NOT_FOUND", arg0); } /** @@ -825,11 +823,11 @@ public final class LocalizationMessages { * */ public static String WSP_0027_SERVICE_PROVIDER_NOT_FOUND(Object arg0) { - return localizer.localize(localizableWSP_0027_SERVICE_PROVIDER_NOT_FOUND(arg0)); + return LOCALIZER.localize(localizableWSP_0027_SERVICE_PROVIDER_NOT_FOUND(arg0)); } public static Localizable localizableWSP_0056_NEITHER_NULL_NOR_EMPTY_POLICY_COLLECTION_EXPECTED() { - return messageFactory.getMessage("WSP_0056_NEITHER_NULL_NOR_EMPTY_POLICY_COLLECTION_EXPECTED"); + return MESSAGE_FACTORY.getMessage("WSP_0056_NEITHER_NULL_NOR_EMPTY_POLICY_COLLECTION_EXPECTED"); } /** @@ -837,11 +835,11 @@ public final class LocalizationMessages { * */ public static String WSP_0056_NEITHER_NULL_NOR_EMPTY_POLICY_COLLECTION_EXPECTED() { - return localizer.localize(localizableWSP_0056_NEITHER_NULL_NOR_EMPTY_POLICY_COLLECTION_EXPECTED()); + return LOCALIZER.localize(localizableWSP_0056_NEITHER_NULL_NOR_EMPTY_POLICY_COLLECTION_EXPECTED()); } public static Localizable localizableWSP_0022_STORAGE_TYPE_NOT_SUPPORTED(Object arg0) { - return messageFactory.getMessage("WSP_0022_STORAGE_TYPE_NOT_SUPPORTED", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0022_STORAGE_TYPE_NOT_SUPPORTED", arg0); } /** @@ -849,11 +847,11 @@ public final class LocalizationMessages { * */ public static String WSP_0022_STORAGE_TYPE_NOT_SUPPORTED(Object arg0) { - return localizer.localize(localizableWSP_0022_STORAGE_TYPE_NOT_SUPPORTED(arg0)); + return LOCALIZER.localize(localizableWSP_0022_STORAGE_TYPE_NOT_SUPPORTED(arg0)); } public static Localizable localizableWSP_0095_INVALID_BOOLEAN_VALUE(Object arg0) { - return messageFactory.getMessage("WSP_0095_INVALID_BOOLEAN_VALUE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0095_INVALID_BOOLEAN_VALUE", arg0); } /** @@ -861,11 +859,11 @@ public final class LocalizationMessages { * */ public static String WSP_0095_INVALID_BOOLEAN_VALUE(Object arg0) { - return localizer.localize(localizableWSP_0095_INVALID_BOOLEAN_VALUE(arg0)); + return LOCALIZER.localize(localizableWSP_0095_INVALID_BOOLEAN_VALUE(arg0)); } public static Localizable localizableWSP_0059_MULTIPLE_ATTRS_WITH_SAME_NAME_DETECTED_FOR_ASSERTION(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0059_MULTIPLE_ATTRS_WITH_SAME_NAME_DETECTED_FOR_ASSERTION", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0059_MULTIPLE_ATTRS_WITH_SAME_NAME_DETECTED_FOR_ASSERTION", arg0, arg1); } /** @@ -873,11 +871,11 @@ public final class LocalizationMessages { * */ public static String WSP_0059_MULTIPLE_ATTRS_WITH_SAME_NAME_DETECTED_FOR_ASSERTION(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0059_MULTIPLE_ATTRS_WITH_SAME_NAME_DETECTED_FOR_ASSERTION(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0059_MULTIPLE_ATTRS_WITH_SAME_NAME_DETECTED_FOR_ASSERTION(arg0, arg1)); } public static Localizable localizableWSP_0047_POLICY_IS_NULL_RETURNING() { - return messageFactory.getMessage("WSP_0047_POLICY_IS_NULL_RETURNING"); + return MESSAGE_FACTORY.getMessage("WSP_0047_POLICY_IS_NULL_RETURNING"); } /** @@ -885,11 +883,11 @@ public final class LocalizationMessages { * */ public static String WSP_0047_POLICY_IS_NULL_RETURNING() { - return localizer.localize(localizableWSP_0047_POLICY_IS_NULL_RETURNING()); + return LOCALIZER.localize(localizableWSP_0047_POLICY_IS_NULL_RETURNING()); } public static Localizable localizableWSP_0088_FAILED_PARSE(Object arg0) { - return messageFactory.getMessage("WSP_0088_FAILED_PARSE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0088_FAILED_PARSE", arg0); } /** @@ -897,11 +895,11 @@ public final class LocalizationMessages { * */ public static String WSP_0088_FAILED_PARSE(Object arg0) { - return localizer.localize(localizableWSP_0088_FAILED_PARSE(arg0)); + return LOCALIZER.localize(localizableWSP_0088_FAILED_PARSE(arg0)); } public static Localizable localizableWSP_0005_UNEXPECTED_POLICY_ELEMENT_FOUND_IN_ASSERTION_PARAM(Object arg0) { - return messageFactory.getMessage("WSP_0005_UNEXPECTED_POLICY_ELEMENT_FOUND_IN_ASSERTION_PARAM", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0005_UNEXPECTED_POLICY_ELEMENT_FOUND_IN_ASSERTION_PARAM", arg0); } /** @@ -909,11 +907,11 @@ public final class LocalizationMessages { * */ public static String WSP_0005_UNEXPECTED_POLICY_ELEMENT_FOUND_IN_ASSERTION_PARAM(Object arg0) { - return localizer.localize(localizableWSP_0005_UNEXPECTED_POLICY_ELEMENT_FOUND_IN_ASSERTION_PARAM(arg0)); + return LOCALIZER.localize(localizableWSP_0005_UNEXPECTED_POLICY_ELEMENT_FOUND_IN_ASSERTION_PARAM(arg0)); } public static Localizable localizableWSP_0009_UNEXPECTED_CDATA_ON_SOURCE_MODEL_NODE(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0009_UNEXPECTED_CDATA_ON_SOURCE_MODEL_NODE", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0009_UNEXPECTED_CDATA_ON_SOURCE_MODEL_NODE", arg0, arg1); } /** @@ -921,11 +919,11 @@ public final class LocalizationMessages { * */ public static String WSP_0009_UNEXPECTED_CDATA_ON_SOURCE_MODEL_NODE(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0009_UNEXPECTED_CDATA_ON_SOURCE_MODEL_NODE(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0009_UNEXPECTED_CDATA_ON_SOURCE_MODEL_NODE(arg0, arg1)); } public static Localizable localizableWSP_0024_SPI_FAIL_SERVICE_URL_LINE_MSG(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("WSP_0024_SPI_FAIL_SERVICE_URL_LINE_MSG", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("WSP_0024_SPI_FAIL_SERVICE_URL_LINE_MSG", arg0, arg1, arg2); } /** @@ -933,11 +931,11 @@ public final class LocalizationMessages { * */ public static String WSP_0024_SPI_FAIL_SERVICE_URL_LINE_MSG(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSP_0024_SPI_FAIL_SERVICE_URL_LINE_MSG(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSP_0024_SPI_FAIL_SERVICE_URL_LINE_MSG(arg0, arg1, arg2)); } public static Localizable localizableWSP_0057_N_ALTERNATIVE_COMBINATIONS_M_POLICY_ALTERNATIVES_CREATED(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0057_N_ALTERNATIVE_COMBINATIONS_M_POLICY_ALTERNATIVES_CREATED", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0057_N_ALTERNATIVE_COMBINATIONS_M_POLICY_ALTERNATIVES_CREATED", arg0, arg1); } /** @@ -945,11 +943,11 @@ public final class LocalizationMessages { * */ public static String WSP_0057_N_ALTERNATIVE_COMBINATIONS_M_POLICY_ALTERNATIVES_CREATED(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0057_N_ALTERNATIVE_COMBINATIONS_M_POLICY_ALTERNATIVES_CREATED(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0057_N_ALTERNATIVE_COMBINATIONS_M_POLICY_ALTERNATIVES_CREATED(arg0, arg1)); } public static Localizable localizableWSP_0020_SUBJECT_PARAM_MUST_NOT_BE_NULL() { - return messageFactory.getMessage("WSP_0020_SUBJECT_PARAM_MUST_NOT_BE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0020_SUBJECT_PARAM_MUST_NOT_BE_NULL"); } /** @@ -957,11 +955,11 @@ public final class LocalizationMessages { * */ public static String WSP_0020_SUBJECT_PARAM_MUST_NOT_BE_NULL() { - return localizer.localize(localizableWSP_0020_SUBJECT_PARAM_MUST_NOT_BE_NULL()); + return LOCALIZER.localize(localizableWSP_0020_SUBJECT_PARAM_MUST_NOT_BE_NULL()); } public static Localizable localizableWSP_0071_ERROR_MULTIPLE_ASSERTION_CREATORS_FOR_NAMESPACE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("WSP_0071_ERROR_MULTIPLE_ASSERTION_CREATORS_FOR_NAMESPACE", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("WSP_0071_ERROR_MULTIPLE_ASSERTION_CREATORS_FOR_NAMESPACE", arg0, arg1, arg2); } /** @@ -969,11 +967,11 @@ public final class LocalizationMessages { * */ public static String WSP_0071_ERROR_MULTIPLE_ASSERTION_CREATORS_FOR_NAMESPACE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSP_0071_ERROR_MULTIPLE_ASSERTION_CREATORS_FOR_NAMESPACE(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSP_0071_ERROR_MULTIPLE_ASSERTION_CREATORS_FOR_NAMESPACE(arg0, arg1, arg2)); } public static Localizable localizableWSP_0038_POLICY_TO_ATTACH_MUST_NOT_BE_NULL() { - return messageFactory.getMessage("WSP_0038_POLICY_TO_ATTACH_MUST_NOT_BE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0038_POLICY_TO_ATTACH_MUST_NOT_BE_NULL"); } /** @@ -981,11 +979,11 @@ public final class LocalizationMessages { * */ public static String WSP_0038_POLICY_TO_ATTACH_MUST_NOT_BE_NULL() { - return localizer.localize(localizableWSP_0038_POLICY_TO_ATTACH_MUST_NOT_BE_NULL()); + return LOCALIZER.localize(localizableWSP_0038_POLICY_TO_ATTACH_MUST_NOT_BE_NULL()); } public static Localizable localizableWSP_0033_SERVICE_AND_PORT_PARAM_MUST_NOT_BE_NULL(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0033_SERVICE_AND_PORT_PARAM_MUST_NOT_BE_NULL", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0033_SERVICE_AND_PORT_PARAM_MUST_NOT_BE_NULL", arg0, arg1); } /** @@ -993,11 +991,11 @@ public final class LocalizationMessages { * */ public static String WSP_0033_SERVICE_AND_PORT_PARAM_MUST_NOT_BE_NULL(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0033_SERVICE_AND_PORT_PARAM_MUST_NOT_BE_NULL(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0033_SERVICE_AND_PORT_PARAM_MUST_NOT_BE_NULL(arg0, arg1)); } public static Localizable localizableWSP_0060_POLICY_ELEMENT_TYPE_UNKNOWN(Object arg0) { - return messageFactory.getMessage("WSP_0060_POLICY_ELEMENT_TYPE_UNKNOWN", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0060_POLICY_ELEMENT_TYPE_UNKNOWN", arg0); } /** @@ -1005,11 +1003,11 @@ public final class LocalizationMessages { * */ public static String WSP_0060_POLICY_ELEMENT_TYPE_UNKNOWN(Object arg0) { - return localizer.localize(localizableWSP_0060_POLICY_ELEMENT_TYPE_UNKNOWN(arg0)); + return LOCALIZER.localize(localizableWSP_0060_POLICY_ELEMENT_TYPE_UNKNOWN(arg0)); } public static Localizable localizableWSP_0013_UNABLE_TO_SET_PARENT_MODEL_ON_ROOT() { - return messageFactory.getMessage("WSP_0013_UNABLE_TO_SET_PARENT_MODEL_ON_ROOT"); + return MESSAGE_FACTORY.getMessage("WSP_0013_UNABLE_TO_SET_PARENT_MODEL_ON_ROOT"); } /** @@ -1017,11 +1015,11 @@ public final class LocalizationMessages { * */ public static String WSP_0013_UNABLE_TO_SET_PARENT_MODEL_ON_ROOT() { - return localizer.localize(localizableWSP_0013_UNABLE_TO_SET_PARENT_MODEL_ON_ROOT()); + return LOCALIZER.localize(localizableWSP_0013_UNABLE_TO_SET_PARENT_MODEL_ON_ROOT()); } public static Localizable localizableWSP_0019_SUBOPTIMAL_ALTERNATIVE_SELECTED(Object arg0) { - return messageFactory.getMessage("WSP_0019_SUBOPTIMAL_ALTERNATIVE_SELECTED", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0019_SUBOPTIMAL_ALTERNATIVE_SELECTED", arg0); } /** @@ -1029,11 +1027,11 @@ public final class LocalizationMessages { * */ public static String WSP_0019_SUBOPTIMAL_ALTERNATIVE_SELECTED(Object arg0) { - return localizer.localize(localizableWSP_0019_SUBOPTIMAL_ALTERNATIVE_SELECTED(arg0)); + return LOCALIZER.localize(localizableWSP_0019_SUBOPTIMAL_ALTERNATIVE_SELECTED(arg0)); } public static Localizable localizableWSP_0073_CREATE_CHILD_NODE_OPERATION_NOT_SUPPORTED(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0073_CREATE_CHILD_NODE_OPERATION_NOT_SUPPORTED", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0073_CREATE_CHILD_NODE_OPERATION_NOT_SUPPORTED", arg0, arg1); } /** @@ -1041,11 +1039,11 @@ public final class LocalizationMessages { * */ public static String WSP_0073_CREATE_CHILD_NODE_OPERATION_NOT_SUPPORTED(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0073_CREATE_CHILD_NODE_OPERATION_NOT_SUPPORTED(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0073_CREATE_CHILD_NODE_OPERATION_NOT_SUPPORTED(arg0, arg1)); } public static Localizable localizableWSP_0002_UNRECOGNIZED_SCOPE_TYPE(Object arg0) { - return messageFactory.getMessage("WSP_0002_UNRECOGNIZED_SCOPE_TYPE", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0002_UNRECOGNIZED_SCOPE_TYPE", arg0); } /** @@ -1053,11 +1051,11 @@ public final class LocalizationMessages { * */ public static String WSP_0002_UNRECOGNIZED_SCOPE_TYPE(Object arg0) { - return localizer.localize(localizableWSP_0002_UNRECOGNIZED_SCOPE_TYPE(arg0)); + return LOCALIZER.localize(localizableWSP_0002_UNRECOGNIZED_SCOPE_TYPE(arg0)); } public static Localizable localizableWSP_0062_INPUT_PARAMS_MUST_NOT_BE_NULL() { - return messageFactory.getMessage("WSP_0062_INPUT_PARAMS_MUST_NOT_BE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_0062_INPUT_PARAMS_MUST_NOT_BE_NULL"); } /** @@ -1065,11 +1063,11 @@ public final class LocalizationMessages { * */ public static String WSP_0062_INPUT_PARAMS_MUST_NOT_BE_NULL() { - return localizer.localize(localizableWSP_0062_INPUT_PARAMS_MUST_NOT_BE_NULL()); + return LOCALIZER.localize(localizableWSP_0062_INPUT_PARAMS_MUST_NOT_BE_NULL()); } public static Localizable localizableWSP_0063_ERROR_WHILE_CONSTRUCTING_EXCEPTION(Object arg0) { - return messageFactory.getMessage("WSP_0063_ERROR_WHILE_CONSTRUCTING_EXCEPTION", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0063_ERROR_WHILE_CONSTRUCTING_EXCEPTION", arg0); } /** @@ -1077,11 +1075,11 @@ public final class LocalizationMessages { * */ public static String WSP_0063_ERROR_WHILE_CONSTRUCTING_EXCEPTION(Object arg0) { - return localizer.localize(localizableWSP_0063_ERROR_WHILE_CONSTRUCTING_EXCEPTION(arg0)); + return LOCALIZER.localize(localizableWSP_0063_ERROR_WHILE_CONSTRUCTING_EXCEPTION(arg0)); } public static Localizable localizableWSP_0021_SUBJECT_AND_POLICY_PARAM_MUST_NOT_BE_NULL(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0021_SUBJECT_AND_POLICY_PARAM_MUST_NOT_BE_NULL", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0021_SUBJECT_AND_POLICY_PARAM_MUST_NOT_BE_NULL", arg0, arg1); } /** @@ -1089,11 +1087,11 @@ public final class LocalizationMessages { * */ public static String WSP_0021_SUBJECT_AND_POLICY_PARAM_MUST_NOT_BE_NULL(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0021_SUBJECT_AND_POLICY_PARAM_MUST_NOT_BE_NULL(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0021_SUBJECT_AND_POLICY_PARAM_MUST_NOT_BE_NULL(arg0, arg1)); } public static Localizable localizableWSP_0075_PROBLEMATIC_ASSERTION_STATE(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_0075_PROBLEMATIC_ASSERTION_STATE", arg0, arg1); + return MESSAGE_FACTORY.getMessage("WSP_0075_PROBLEMATIC_ASSERTION_STATE", arg0, arg1); } /** @@ -1101,11 +1099,11 @@ public final class LocalizationMessages { * */ public static String WSP_0075_PROBLEMATIC_ASSERTION_STATE(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_0075_PROBLEMATIC_ASSERTION_STATE(arg0, arg1)); + return LOCALIZER.localize(localizableWSP_0075_PROBLEMATIC_ASSERTION_STATE(arg0, arg1)); } public static Localizable localizableWSP_0006_UNEXPECTED_MULTIPLE_POLICY_NODES() { - return messageFactory.getMessage("WSP_0006_UNEXPECTED_MULTIPLE_POLICY_NODES"); + return MESSAGE_FACTORY.getMessage("WSP_0006_UNEXPECTED_MULTIPLE_POLICY_NODES"); } /** @@ -1113,11 +1111,11 @@ public final class LocalizationMessages { * */ public static String WSP_0006_UNEXPECTED_MULTIPLE_POLICY_NODES() { - return localizer.localize(localizableWSP_0006_UNEXPECTED_MULTIPLE_POLICY_NODES()); + return LOCALIZER.localize(localizableWSP_0006_UNEXPECTED_MULTIPLE_POLICY_NODES()); } public static Localizable localizableWSP_0092_CHARACTER_DATA_UNEXPECTED(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("WSP_0092_CHARACTER_DATA_UNEXPECTED", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("WSP_0092_CHARACTER_DATA_UNEXPECTED", arg0, arg1, arg2); } /** @@ -1125,11 +1123,11 @@ public final class LocalizationMessages { * */ public static String WSP_0092_CHARACTER_DATA_UNEXPECTED(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSP_0092_CHARACTER_DATA_UNEXPECTED(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSP_0092_CHARACTER_DATA_UNEXPECTED(arg0, arg1, arg2)); } public static Localizable localizableWSP_0069_EXCEPTION_WHILE_RETRIEVING_EFFECTIVE_POLICY_FOR_KEY(Object arg0) { - return messageFactory.getMessage("WSP_0069_EXCEPTION_WHILE_RETRIEVING_EFFECTIVE_POLICY_FOR_KEY", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0069_EXCEPTION_WHILE_RETRIEVING_EFFECTIVE_POLICY_FOR_KEY", arg0); } /** @@ -1137,11 +1135,11 @@ public final class LocalizationMessages { * */ public static String WSP_0069_EXCEPTION_WHILE_RETRIEVING_EFFECTIVE_POLICY_FOR_KEY(Object arg0) { - return localizer.localize(localizableWSP_0069_EXCEPTION_WHILE_RETRIEVING_EFFECTIVE_POLICY_FOR_KEY(arg0)); + return LOCALIZER.localize(localizableWSP_0069_EXCEPTION_WHILE_RETRIEVING_EFFECTIVE_POLICY_FOR_KEY(arg0)); } public static Localizable localizableWSP_0010_UNEXPANDED_POLICY_REFERENCE_NODE_FOUND_REFERENCING(Object arg0) { - return messageFactory.getMessage("WSP_0010_UNEXPANDED_POLICY_REFERENCE_NODE_FOUND_REFERENCING", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0010_UNEXPANDED_POLICY_REFERENCE_NODE_FOUND_REFERENCING", arg0); } /** @@ -1149,11 +1147,11 @@ public final class LocalizationMessages { * */ public static String WSP_0010_UNEXPANDED_POLICY_REFERENCE_NODE_FOUND_REFERENCING(Object arg0) { - return localizer.localize(localizableWSP_0010_UNEXPANDED_POLICY_REFERENCE_NODE_FOUND_REFERENCING(arg0)); + return LOCALIZER.localize(localizableWSP_0010_UNEXPANDED_POLICY_REFERENCE_NODE_FOUND_REFERENCING(arg0)); } public static Localizable localizableWSP_0035_RECONFIGURE_ALTERNATIVES(Object arg0) { - return messageFactory.getMessage("WSP_0035_RECONFIGURE_ALTERNATIVES", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0035_RECONFIGURE_ALTERNATIVES", arg0); } /** @@ -1161,11 +1159,11 @@ public final class LocalizationMessages { * */ public static String WSP_0035_RECONFIGURE_ALTERNATIVES(Object arg0) { - return localizer.localize(localizableWSP_0035_RECONFIGURE_ALTERNATIVES(arg0)); + return LOCALIZER.localize(localizableWSP_0035_RECONFIGURE_ALTERNATIVES(arg0)); } public static Localizable localizableWSP_0066_ILLEGAL_PROVIDER_CLASSNAME(Object arg0) { - return messageFactory.getMessage("WSP_0066_ILLEGAL_PROVIDER_CLASSNAME", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0066_ILLEGAL_PROVIDER_CLASSNAME", arg0); } /** @@ -1173,11 +1171,11 @@ public final class LocalizationMessages { * */ public static String WSP_0066_ILLEGAL_PROVIDER_CLASSNAME(Object arg0) { - return localizer.localize(localizableWSP_0066_ILLEGAL_PROVIDER_CLASSNAME(arg0)); + return LOCALIZER.localize(localizableWSP_0066_ILLEGAL_PROVIDER_CLASSNAME(arg0)); } public static Localizable localizableWSP_0076_NO_SERVICE_PROVIDERS_FOUND(Object arg0) { - return messageFactory.getMessage("WSP_0076_NO_SERVICE_PROVIDERS_FOUND", arg0); + return MESSAGE_FACTORY.getMessage("WSP_0076_NO_SERVICE_PROVIDERS_FOUND", arg0); } /** @@ -1185,11 +1183,11 @@ public final class LocalizationMessages { * */ public static String WSP_0076_NO_SERVICE_PROVIDERS_FOUND(Object arg0) { - return localizer.localize(localizableWSP_0076_NO_SERVICE_PROVIDERS_FOUND(arg0)); + return LOCALIZER.localize(localizableWSP_0076_NO_SERVICE_PROVIDERS_FOUND(arg0)); } public static Localizable localizableWSP_0049_PARENT_MODEL_CAN_NOT_BE_CHANGED() { - return messageFactory.getMessage("WSP_0049_PARENT_MODEL_CAN_NOT_BE_CHANGED"); + return MESSAGE_FACTORY.getMessage("WSP_0049_PARENT_MODEL_CAN_NOT_BE_CHANGED"); } /** @@ -1197,7 +1195,18 @@ public final class LocalizationMessages { * */ public static String WSP_0049_PARENT_MODEL_CAN_NOT_BE_CHANGED() { - return localizer.localize(localizableWSP_0049_PARENT_MODEL_CAN_NOT_BE_CHANGED()); + return LOCALIZER.localize(localizableWSP_0049_PARENT_MODEL_CAN_NOT_BE_CHANGED()); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/sourcemodel/attach/ContextClassloaderLocal.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/sourcemodel/attach/ContextClassloaderLocal.java index f77560163cb..bbd7c328bbd 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/sourcemodel/attach/ContextClassloaderLocal.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/sourcemodel/attach/ContextClassloaderLocal.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2017, 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 @@ -27,8 +27,6 @@ package com.sun.xml.internal.ws.policy.sourcemodel.attach; import java.security.AccessController; import java.security.PrivilegedAction; -import java.text.MessageFormat; -import java.util.ResourceBundle; import java.util.WeakHashMap; /** @@ -36,9 +34,7 @@ import java.util.WeakHashMap; */ abstract class ContextClassloaderLocal { - private static final String FAILED_TO_CREATE_NEW_INSTANCE = "FAILED_TO_CREATE_NEW_INSTANCE"; - - private WeakHashMap CACHE = new WeakHashMap(); + private WeakHashMap CACHE = new WeakHashMap<>(); public V get() throws Error { ClassLoader tccl = getContextClassLoader(); @@ -60,25 +56,21 @@ abstract class ContextClassloaderLocal { try { return initialValue(); } catch (Exception e) { - throw new Error(format(FAILED_TO_CREATE_NEW_INSTANCE, getClass().getName()), e); + throw new Error(ContextClassloaderLocalMessages.FAILED_TO_CREATE_NEW_INSTANCE(getClass().getName()), e); } } - private static String format(String property, Object... args) { - String text = ResourceBundle.getBundle(ContextClassloaderLocal.class.getName()).getString(property); - return MessageFormat.format(text, args); - } - private static ClassLoader getContextClassLoader() { return AccessController.doPrivileged(new PrivilegedAction() { - public ClassLoader run() { - ClassLoader cl = null; - try { - cl = Thread.currentThread().getContextClassLoader(); - } catch (SecurityException ex) { - } - return cl; - } - }); + @Override + public ClassLoader run() { + ClassLoader cl = null; + try { + cl = Thread.currentThread().getContextClassLoader(); + } catch (SecurityException ex) { + } + return cl; + } + }); } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/sourcemodel/attach/ContextClassloaderLocalMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/sourcemodel/attach/ContextClassloaderLocalMessages.java new file mode 100644 index 00000000000..1b2322062c8 --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/sourcemodel/attach/ContextClassloaderLocalMessages.java @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2017, 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.xml.internal.ws.policy.sourcemodel.attach; + +import java.util.Locale; +import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; + + +/** + * Defines string formatting method for each constant in the resource file + * + */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") +public final class ContextClassloaderLocalMessages { + + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.policy.sourcemodel.attach.ContextClassloaderLocal"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ContextClassloaderLocalMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); + + public static Localizable localizableFAILED_TO_CREATE_NEW_INSTANCE(Object arg0) { + return MESSAGE_FACTORY.getMessage("FAILED_TO_CREATE_NEW_INSTANCE", arg0); + } + + /** + * Failed to create new instance of {0} + * + */ + public static String FAILED_TO_CREATE_NEW_INSTANCE(Object arg0) { + return LOCALIZER.localize(localizableFAILED_TO_CREATE_NEW_INSTANCE(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + + } + +} diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/AddressingMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/AddressingMessages.java index a1ae07c6944..e042a7efbe9 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/AddressingMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/AddressingMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,330 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class AddressingMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.addressing"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, AddressingMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableNON_ANONYMOUS_RESPONSE_ONEWAY() { - return messageFactory.getMessage("nonAnonymous.response.oneway"); - } - - /** - * Ignoring non-anonymous response for one-way message - * - */ - public static String NON_ANONYMOUS_RESPONSE_ONEWAY() { - return localizer.localize(localizableNON_ANONYMOUS_RESPONSE_ONEWAY()); - } - - public static Localizable localizableNULL_WSA_HEADERS() { - return messageFactory.getMessage("null.wsa.headers"); - } - - /** - * No WS-Addressing headers found processing the server inbound request - * - */ - public static String NULL_WSA_HEADERS() { - return localizer.localize(localizableNULL_WSA_HEADERS()); - } - - public static Localizable localizableUNKNOWN_WSA_HEADER() { - return messageFactory.getMessage("unknown.wsa.header"); - } - - /** - * Unknown WS-Addressing header - * - */ - public static String UNKNOWN_WSA_HEADER() { - return localizer.localize(localizableUNKNOWN_WSA_HEADER()); - } - - public static Localizable localizableNULL_ACTION() { - return messageFactory.getMessage("null.action"); - } - - /** - * Populating request Addressing headers and found null Action - * - */ - public static String NULL_ACTION() { - return localizer.localize(localizableNULL_ACTION()); - } - - public static Localizable localizableINVALID_WSAW_ANONYMOUS(Object arg0) { - return messageFactory.getMessage("invalid.wsaw.anonymous", arg0); - } - - /** - * Invalid value obtained from wsaw:Anonymous: "{0}" - * - */ - public static String INVALID_WSAW_ANONYMOUS(Object arg0) { - return localizer.localize(localizableINVALID_WSAW_ANONYMOUS(arg0)); - } - - public static Localizable localizableNULL_SOAP_VERSION() { - return messageFactory.getMessage("null.soap.version"); - } - - /** - * Unexpected null SOAP version - * - */ - public static String NULL_SOAP_VERSION() { - return localizer.localize(localizableNULL_SOAP_VERSION()); - } - - public static Localizable localizableWSDL_BOUND_OPERATION_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("wsdlBoundOperation.notFound", arg0); - } - - /** - * Cannot find an operation in wsdl:binding for "{0}" - * - */ - public static String WSDL_BOUND_OPERATION_NOT_FOUND(Object arg0) { - return localizer.localize(localizableWSDL_BOUND_OPERATION_NOT_FOUND(arg0)); - } - - public static Localizable localizableNON_UNIQUE_OPERATION_SIGNATURE(Object arg0, Object arg1, Object arg2, Object arg3) { - return messageFactory.getMessage("non.unique.operation.signature", arg0, arg1, arg2, arg3); - } - - /** - * Operations in a port should have unique operation signature to successfuly identify a associated wsdl operation for a message. WSDL operation {0} and {1} have the same operation signature, wsa:Action "{2}" and request body block "{3}", Method dispatching may fail at runtime. Use unique wsa:Action for each operation - * - */ - public static String NON_UNIQUE_OPERATION_SIGNATURE(Object arg0, Object arg1, Object arg2, Object arg3) { - return localizer.localize(localizableNON_UNIQUE_OPERATION_SIGNATURE(arg0, arg1, arg2, arg3)); - } - - public static Localizable localizableNON_ANONYMOUS_RESPONSE() { - return messageFactory.getMessage("nonAnonymous.response"); - } - - /** - * Sending 202 and processing non-anonymous response - * - */ - public static String NON_ANONYMOUS_RESPONSE() { - return localizer.localize(localizableNON_ANONYMOUS_RESPONSE()); - } - - public static Localizable localizableVALIDATION_SERVER_NULL_ACTION() { - return messageFactory.getMessage("validation.server.nullAction"); - } - - /** - * Validating inbound Addressing headers on server and found null Action - * - */ - public static String VALIDATION_SERVER_NULL_ACTION() { - return localizer.localize(localizableVALIDATION_SERVER_NULL_ACTION()); - } - - public static Localizable localizableFAULT_TO_CANNOT_PARSE() { - return messageFactory.getMessage("faultTo.cannot.parse"); - } - - /** - * FaultTo header cannot be parsed - * - */ - public static String FAULT_TO_CANNOT_PARSE() { - return localizer.localize(localizableFAULT_TO_CANNOT_PARSE()); - } - - public static Localizable localizableVALIDATION_CLIENT_NULL_ACTION() { - return messageFactory.getMessage("validation.client.nullAction"); - } - - /** - * Validating inbound Addressing headers on client and found null Action - * - */ - public static String VALIDATION_CLIENT_NULL_ACTION() { - return localizer.localize(localizableVALIDATION_CLIENT_NULL_ACTION()); - } - - public static Localizable localizableNULL_MESSAGE() { - return messageFactory.getMessage("null.message"); - } - - /** - * Null message found when processing the server inbound request and WS-Addressing is required - * - */ - public static String NULL_MESSAGE() { - return localizer.localize(localizableNULL_MESSAGE()); - } - - public static Localizable localizableACTION_NOT_SUPPORTED_EXCEPTION(Object arg0) { - return messageFactory.getMessage("action.not.supported.exception", arg0); - } - - /** - * Action: "{0}" not supported - * - */ - public static String ACTION_NOT_SUPPORTED_EXCEPTION(Object arg0) { - return localizer.localize(localizableACTION_NOT_SUPPORTED_EXCEPTION(arg0)); - } - - public static Localizable localizableNON_ANONYMOUS_RESPONSE_NULL_HEADERS(Object arg0) { - return messageFactory.getMessage("nonAnonymous.response.nullHeaders", arg0); - } - - /** - * No response headers found in non-anonymous response from "{0}" - * - */ - public static String NON_ANONYMOUS_RESPONSE_NULL_HEADERS(Object arg0) { - return localizer.localize(localizableNON_ANONYMOUS_RESPONSE_NULL_HEADERS(arg0)); - } - - public static Localizable localizableNON_ANONYMOUS_RESPONSE_SENDING(Object arg0) { - return messageFactory.getMessage("nonAnonymous.response.sending", arg0); - } - - /** - * Sending non-anonymous reply to "{0}" - * - */ - public static String NON_ANONYMOUS_RESPONSE_SENDING(Object arg0) { - return localizer.localize(localizableNON_ANONYMOUS_RESPONSE_SENDING(arg0)); - } - - public static Localizable localizableREPLY_TO_CANNOT_PARSE() { - return messageFactory.getMessage("replyTo.cannot.parse"); - } - - /** - * ReplyTo header cannot be parsed - * - */ - public static String REPLY_TO_CANNOT_PARSE() { - return localizer.localize(localizableREPLY_TO_CANNOT_PARSE()); - } - - public static Localizable localizableINVALID_ADDRESSING_HEADER_EXCEPTION(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.addressing.header.exception", arg0, arg1); - } - - /** - * Invalid WS-Addressing header: "{0}",Reason: "{1}" - * - */ - public static String INVALID_ADDRESSING_HEADER_EXCEPTION(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_ADDRESSING_HEADER_EXCEPTION(arg0, arg1)); - } - - public static Localizable localizableWSAW_ANONYMOUS_PROHIBITED() { - return messageFactory.getMessage("wsaw.anonymousProhibited"); - } - - /** - * Operation has "prohibited" value for wsaw:anonymous in the WSDL, Addressing must be disabled and SOAP message need to be hand-crafted - * - */ - public static String WSAW_ANONYMOUS_PROHIBITED() { - return localizer.localize(localizableWSAW_ANONYMOUS_PROHIBITED()); - } - - public static Localizable localizableNULL_WSDL_PORT() { - return messageFactory.getMessage("null.wsdlPort"); - } - - /** - * Populating request Addressing headers and found null WSDLPort - * - */ - public static String NULL_WSDL_PORT() { - return localizer.localize(localizableNULL_WSDL_PORT()); - } - - public static Localizable localizableADDRESSING_SHOULD_BE_ENABLED() { - return messageFactory.getMessage("addressing.should.be.enabled."); - } - - /** - * Addressing is not enabled - * - */ - public static String ADDRESSING_SHOULD_BE_ENABLED() { - return localizer.localize(localizableADDRESSING_SHOULD_BE_ENABLED()); - } - - public static Localizable localizableNULL_ADDRESSING_VERSION() { - return messageFactory.getMessage("null.addressing.version"); - } - - /** - * Unexpected null Addressing version - * - */ - public static String NULL_ADDRESSING_VERSION() { - return localizer.localize(localizableNULL_ADDRESSING_VERSION()); - } - - public static Localizable localizableMISSING_HEADER_EXCEPTION(Object arg0) { - return messageFactory.getMessage("missing.header.exception", arg0); - } - - /** - * Missing WS-Addressing header: "{0}" - * - */ - public static String MISSING_HEADER_EXCEPTION(Object arg0) { - return localizer.localize(localizableMISSING_HEADER_EXCEPTION(arg0)); - } - - public static Localizable localizableNULL_PACKET() { - return messageFactory.getMessage("null.packet"); - } - - /** - * Populating request Addressing headers and found null Packet - * - */ - public static String NULL_PACKET() { - return localizer.localize(localizableNULL_PACKET()); - } - - public static Localizable localizableWRONG_ADDRESSING_VERSION(Object arg0, Object arg1) { - return messageFactory.getMessage("wrong.addressing.version", arg0, arg1); - } - - /** - * Expected "{0}" version of WS-Addressing but found "{1}" - * - */ - public static String WRONG_ADDRESSING_VERSION(Object arg0, Object arg1) { - return localizer.localize(localizableWRONG_ADDRESSING_VERSION(arg0, arg1)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new AddressingMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableADDRESSING_NOT_ENABLED(Object arg0) { - return messageFactory.getMessage("addressing.notEnabled", arg0); + return MESSAGE_FACTORY.getMessage("addressing.notEnabled", arg0); } /** @@ -356,23 +54,35 @@ public final class AddressingMessages { * */ public static String ADDRESSING_NOT_ENABLED(Object arg0) { - return localizer.localize(localizableADDRESSING_NOT_ENABLED(arg0)); + return LOCALIZER.localize(localizableADDRESSING_NOT_ENABLED(arg0)); } - public static Localizable localizableNON_ANONYMOUS_UNKNOWN_PROTOCOL(Object arg0) { - return messageFactory.getMessage("nonAnonymous.unknown.protocol", arg0); + public static Localizable localizableWSAW_ANONYMOUS_PROHIBITED() { + return MESSAGE_FACTORY.getMessage("wsaw.anonymousProhibited"); } /** - * Unknown protocol: "{0}" + * Operation has "prohibited" value for wsaw:anonymous in the WSDL, Addressing must be disabled and SOAP message need to be hand-crafted * */ - public static String NON_ANONYMOUS_UNKNOWN_PROTOCOL(Object arg0) { - return localizer.localize(localizableNON_ANONYMOUS_UNKNOWN_PROTOCOL(arg0)); + public static String WSAW_ANONYMOUS_PROHIBITED() { + return LOCALIZER.localize(localizableWSAW_ANONYMOUS_PROHIBITED()); + } + + public static Localizable localizableNULL_SOAP_VERSION() { + return MESSAGE_FACTORY.getMessage("null.soap.version"); + } + + /** + * Unexpected null SOAP version + * + */ + public static String NULL_SOAP_VERSION() { + return LOCALIZER.localize(localizableNULL_SOAP_VERSION()); } public static Localizable localizableNULL_HEADERS() { - return messageFactory.getMessage("null.headers"); + return MESSAGE_FACTORY.getMessage("null.headers"); } /** @@ -380,11 +90,167 @@ public final class AddressingMessages { * */ public static String NULL_HEADERS() { - return localizer.localize(localizableNULL_HEADERS()); + return LOCALIZER.localize(localizableNULL_HEADERS()); + } + + public static Localizable localizableFAULT_TO_CANNOT_PARSE() { + return MESSAGE_FACTORY.getMessage("faultTo.cannot.parse"); + } + + /** + * FaultTo header cannot be parsed + * + */ + public static String FAULT_TO_CANNOT_PARSE() { + return LOCALIZER.localize(localizableFAULT_TO_CANNOT_PARSE()); + } + + public static Localizable localizableNON_ANONYMOUS_RESPONSE_NULL_HEADERS(Object arg0) { + return MESSAGE_FACTORY.getMessage("nonAnonymous.response.nullHeaders", arg0); + } + + /** + * No response headers found in non-anonymous response from "{0}" + * + */ + public static String NON_ANONYMOUS_RESPONSE_NULL_HEADERS(Object arg0) { + return LOCALIZER.localize(localizableNON_ANONYMOUS_RESPONSE_NULL_HEADERS(arg0)); + } + + public static Localizable localizableUNKNOWN_WSA_HEADER() { + return MESSAGE_FACTORY.getMessage("unknown.wsa.header"); + } + + /** + * Unknown WS-Addressing header + * + */ + public static String UNKNOWN_WSA_HEADER() { + return LOCALIZER.localize(localizableUNKNOWN_WSA_HEADER()); + } + + public static Localizable localizableINVALID_ADDRESSING_HEADER_EXCEPTION(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.addressing.header.exception", arg0, arg1); + } + + /** + * Invalid WS-Addressing header: "{0}",Reason: "{1}" + * + */ + public static String INVALID_ADDRESSING_HEADER_EXCEPTION(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_ADDRESSING_HEADER_EXCEPTION(arg0, arg1)); + } + + public static Localizable localizableNULL_WSDL_PORT() { + return MESSAGE_FACTORY.getMessage("null.wsdlPort"); + } + + /** + * Populating request Addressing headers and found null WSDLPort + * + */ + public static String NULL_WSDL_PORT() { + return LOCALIZER.localize(localizableNULL_WSDL_PORT()); + } + + public static Localizable localizableNON_ANONYMOUS_UNKNOWN_PROTOCOL(Object arg0) { + return MESSAGE_FACTORY.getMessage("nonAnonymous.unknown.protocol", arg0); + } + + /** + * Unknown protocol: "{0}" + * + */ + public static String NON_ANONYMOUS_UNKNOWN_PROTOCOL(Object arg0) { + return LOCALIZER.localize(localizableNON_ANONYMOUS_UNKNOWN_PROTOCOL(arg0)); + } + + public static Localizable localizableNON_ANONYMOUS_RESPONSE_SENDING(Object arg0) { + return MESSAGE_FACTORY.getMessage("nonAnonymous.response.sending", arg0); + } + + /** + * Sending non-anonymous reply to "{0}" + * + */ + public static String NON_ANONYMOUS_RESPONSE_SENDING(Object arg0) { + return LOCALIZER.localize(localizableNON_ANONYMOUS_RESPONSE_SENDING(arg0)); + } + + public static Localizable localizableNON_ANONYMOUS_RESPONSE() { + return MESSAGE_FACTORY.getMessage("nonAnonymous.response"); + } + + /** + * Sending 202 and processing non-anonymous response + * + */ + public static String NON_ANONYMOUS_RESPONSE() { + return LOCALIZER.localize(localizableNON_ANONYMOUS_RESPONSE()); + } + + public static Localizable localizableREPLY_TO_CANNOT_PARSE() { + return MESSAGE_FACTORY.getMessage("replyTo.cannot.parse"); + } + + /** + * ReplyTo header cannot be parsed + * + */ + public static String REPLY_TO_CANNOT_PARSE() { + return LOCALIZER.localize(localizableREPLY_TO_CANNOT_PARSE()); + } + + public static Localizable localizableINVALID_WSAW_ANONYMOUS(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.wsaw.anonymous", arg0); + } + + /** + * Invalid value obtained from wsaw:Anonymous: "{0}" + * + */ + public static String INVALID_WSAW_ANONYMOUS(Object arg0) { + return LOCALIZER.localize(localizableINVALID_WSAW_ANONYMOUS(arg0)); + } + + public static Localizable localizableVALIDATION_CLIENT_NULL_ACTION() { + return MESSAGE_FACTORY.getMessage("validation.client.nullAction"); + } + + /** + * Validating inbound Addressing headers on client and found null Action + * + */ + public static String VALIDATION_CLIENT_NULL_ACTION() { + return LOCALIZER.localize(localizableVALIDATION_CLIENT_NULL_ACTION()); + } + + public static Localizable localizableWSDL_BOUND_OPERATION_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlBoundOperation.notFound", arg0); + } + + /** + * Cannot find an operation in wsdl:binding for "{0}" + * + */ + public static String WSDL_BOUND_OPERATION_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableWSDL_BOUND_OPERATION_NOT_FOUND(arg0)); + } + + public static Localizable localizableMISSING_HEADER_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("missing.header.exception", arg0); + } + + /** + * Missing WS-Addressing header: "{0}" + * + */ + public static String MISSING_HEADER_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizableMISSING_HEADER_EXCEPTION(arg0)); } public static Localizable localizableNULL_BINDING() { - return messageFactory.getMessage("null.binding"); + return MESSAGE_FACTORY.getMessage("null.binding"); } /** @@ -392,7 +258,150 @@ public final class AddressingMessages { * */ public static String NULL_BINDING() { - return localizer.localize(localizableNULL_BINDING()); + return LOCALIZER.localize(localizableNULL_BINDING()); + } + + public static Localizable localizableNULL_WSA_HEADERS() { + return MESSAGE_FACTORY.getMessage("null.wsa.headers"); + } + + /** + * No WS-Addressing headers found processing the server inbound request + * + */ + public static String NULL_WSA_HEADERS() { + return LOCALIZER.localize(localizableNULL_WSA_HEADERS()); + } + + public static Localizable localizableNON_ANONYMOUS_RESPONSE_ONEWAY() { + return MESSAGE_FACTORY.getMessage("nonAnonymous.response.oneway"); + } + + /** + * Ignoring non-anonymous response for one-way message + * + */ + public static String NON_ANONYMOUS_RESPONSE_ONEWAY() { + return LOCALIZER.localize(localizableNON_ANONYMOUS_RESPONSE_ONEWAY()); + } + + public static Localizable localizableVALIDATION_SERVER_NULL_ACTION() { + return MESSAGE_FACTORY.getMessage("validation.server.nullAction"); + } + + /** + * Validating inbound Addressing headers on server and found null Action + * + */ + public static String VALIDATION_SERVER_NULL_ACTION() { + return LOCALIZER.localize(localizableVALIDATION_SERVER_NULL_ACTION()); + } + + public static Localizable localizableWRONG_ADDRESSING_VERSION(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wrong.addressing.version", arg0, arg1); + } + + /** + * Expected "{0}" version of WS-Addressing but found "{1}" + * + */ + public static String WRONG_ADDRESSING_VERSION(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWRONG_ADDRESSING_VERSION(arg0, arg1)); + } + + public static Localizable localizableACTION_NOT_SUPPORTED_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("action.not.supported.exception", arg0); + } + + /** + * Action: "{0}" not supported + * + */ + public static String ACTION_NOT_SUPPORTED_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizableACTION_NOT_SUPPORTED_EXCEPTION(arg0)); + } + + public static Localizable localizableNULL_MESSAGE() { + return MESSAGE_FACTORY.getMessage("null.message"); + } + + /** + * Null message found when processing the server inbound request and WS-Addressing is required + * + */ + public static String NULL_MESSAGE() { + return LOCALIZER.localize(localizableNULL_MESSAGE()); + } + + public static Localizable localizableADDRESSING_SHOULD_BE_ENABLED() { + return MESSAGE_FACTORY.getMessage("addressing.should.be.enabled."); + } + + /** + * Addressing is not enabled + * + */ + public static String ADDRESSING_SHOULD_BE_ENABLED() { + return LOCALIZER.localize(localizableADDRESSING_SHOULD_BE_ENABLED()); + } + + public static Localizable localizableNULL_PACKET() { + return MESSAGE_FACTORY.getMessage("null.packet"); + } + + /** + * Populating request Addressing headers and found null Packet + * + */ + public static String NULL_PACKET() { + return LOCALIZER.localize(localizableNULL_PACKET()); + } + + public static Localizable localizableNULL_ADDRESSING_VERSION() { + return MESSAGE_FACTORY.getMessage("null.addressing.version"); + } + + /** + * Unexpected null Addressing version + * + */ + public static String NULL_ADDRESSING_VERSION() { + return LOCALIZER.localize(localizableNULL_ADDRESSING_VERSION()); + } + + public static Localizable localizableNULL_ACTION() { + return MESSAGE_FACTORY.getMessage("null.action"); + } + + /** + * Populating request Addressing headers and found null Action + * + */ + public static String NULL_ACTION() { + return LOCALIZER.localize(localizableNULL_ACTION()); + } + + public static Localizable localizableNON_UNIQUE_OPERATION_SIGNATURE(Object arg0, Object arg1, Object arg2, Object arg3) { + return MESSAGE_FACTORY.getMessage("non.unique.operation.signature", arg0, arg1, arg2, arg3); + } + + /** + * Operations in a port should have unique operation signature to successfuly identify a associated wsdl operation for a message. WSDL operation {0} and {1} have the same operation signature, wsa:Action "{2}" and request body block "{3}", Method dispatching may fail at runtime. Use unique wsa:Action for each operation + * + */ + public static String NON_UNIQUE_OPERATION_SIGNATURE(Object arg0, Object arg1, Object arg2, Object arg3) { + return LOCALIZER.localize(localizableNON_UNIQUE_OPERATION_SIGNATURE(arg0, arg1, arg2, arg3)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/BindingApiMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/BindingApiMessages.java index c044aca530e..4cd64ec6aff 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/BindingApiMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/BindingApiMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,30 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class BindingApiMessages { - private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.bindingApi"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, BindingApiMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.bindingApi"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new BindingApiMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableBINDING_API_NO_FAULT_MESSAGE_NAME() { - return messageFactory.getMessage("binding.api.no.fault.message.name"); + return MESSAGE_FACTORY.getMessage("binding.api.no.fault.message.name"); } /** @@ -56,7 +54,18 @@ public final class BindingApiMessages { * */ public static String BINDING_API_NO_FAULT_MESSAGE_NAME() { - return localizer.localize(localizableBINDING_API_NO_FAULT_MESSAGE_NAME()); + return LOCALIZER.localize(localizableBINDING_API_NO_FAULT_MESSAGE_NAME()); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ClientMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ClientMessages.java index 21228d5ee5d..c7182a12c17 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ClientMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ClientMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,115 +25,40 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class ClientMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.client"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, ClientMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ClientMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableFAILED_TO_PARSE(Object arg0, Object arg1) { - return messageFactory.getMessage("failed.to.parse", arg0, arg1); + public static Localizable localizableINVALID_WSDL_URL(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.wsdl.url", arg0); } /** - * Failed to access the WSDL at: {0}. It failed with: - * {1}. + * Invalid WSDL URL: {0} * */ - public static String FAILED_TO_PARSE(Object arg0, Object arg1) { - return localizer.localize(localizableFAILED_TO_PARSE(arg0, arg1)); - } - - public static Localizable localizableINVALID_BINDING_ID(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.binding.id", arg0, arg1); - } - - /** - * Invalid binding id: {0}. Must be: {1} - * - */ - public static String INVALID_BINDING_ID(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_BINDING_ID(arg0, arg1)); - } - - public static Localizable localizableEPR_WITHOUT_ADDRESSING_ON() { - return messageFactory.getMessage("epr.without.addressing.on"); - } - - /** - * EPR is specified without enabling WS-Addressing support. - * - */ - public static String EPR_WITHOUT_ADDRESSING_ON() { - return localizer.localize(localizableEPR_WITHOUT_ADDRESSING_ON()); - } - - public static Localizable localizableINVALID_SERVICE_NO_WSDL(Object arg0) { - return messageFactory.getMessage("invalid.service.no.wsdl", arg0); - } - - /** - * No wsdl metadata for service: {0}, can't create proxy! Try creating Service by providing a WSDL URL - * - */ - public static String INVALID_SERVICE_NO_WSDL(Object arg0) { - return localizer.localize(localizableINVALID_SERVICE_NO_WSDL(arg0)); - } - - public static Localizable localizableINVALID_SOAP_ROLE_NONE() { - return messageFactory.getMessage("invalid.soap.role.none"); - } - - /** - * Cannot set SOAP 1.2 role "none" - * - */ - public static String INVALID_SOAP_ROLE_NONE() { - return localizer.localize(localizableINVALID_SOAP_ROLE_NONE()); - } - - public static Localizable localizableUNDEFINED_BINDING(Object arg0) { - return messageFactory.getMessage("undefined.binding", arg0); - } - - /** - * Undefined binding: {0} - * - */ - public static String UNDEFINED_BINDING(Object arg0) { - return localizer.localize(localizableUNDEFINED_BINDING(arg0)); - } - - public static Localizable localizableHTTP_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("http.not.found", arg0); - } - - /** - * HTTP Status-Code 404: Not Found - {0} - * - */ - public static String HTTP_NOT_FOUND(Object arg0) { - return localizer.localize(localizableHTTP_NOT_FOUND(arg0)); + public static String INVALID_WSDL_URL(Object arg0) { + return LOCALIZER.localize(localizableINVALID_WSDL_URL(arg0)); } public static Localizable localizableINVALID_EPR_PORT_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.epr.port.name", arg0, arg1); + return MESSAGE_FACTORY.getMessage("invalid.epr.port.name", arg0, arg1); } /** @@ -141,11 +66,35 @@ public final class ClientMessages { * */ public static String INVALID_EPR_PORT_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_EPR_PORT_NAME(arg0, arg1)); + return LOCALIZER.localize(localizableINVALID_EPR_PORT_NAME(arg0, arg1)); + } + + public static Localizable localizableINVALID_SOAP_ROLE_NONE() { + return MESSAGE_FACTORY.getMessage("invalid.soap.role.none"); + } + + /** + * Cannot set SOAP 1.2 role "none" + * + */ + public static String INVALID_SOAP_ROLE_NONE() { + return LOCALIZER.localize(localizableINVALID_SOAP_ROLE_NONE()); + } + + public static Localizable localizableEPR_WITHOUT_ADDRESSING_ON() { + return MESSAGE_FACTORY.getMessage("epr.without.addressing.on"); + } + + /** + * EPR is specified without enabling WS-Addressing support. + * + */ + public static String EPR_WITHOUT_ADDRESSING_ON() { + return LOCALIZER.localize(localizableEPR_WITHOUT_ADDRESSING_ON()); } public static Localizable localizableFAILED_TO_PARSE_WITH_MEX(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("failed.to.parseWithMEX", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("failed.to.parseWithMEX", arg0, arg1, arg2); } /** @@ -156,11 +105,11 @@ public final class ClientMessages { * */ public static String FAILED_TO_PARSE_WITH_MEX(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableFAILED_TO_PARSE_WITH_MEX(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableFAILED_TO_PARSE_WITH_MEX(arg0, arg1, arg2)); } public static Localizable localizableHTTP_STATUS_CODE(Object arg0, Object arg1) { - return messageFactory.getMessage("http.status.code", arg0, arg1); + return MESSAGE_FACTORY.getMessage("http.status.code", arg0, arg1); } /** @@ -168,155 +117,11 @@ public final class ClientMessages { * */ public static String HTTP_STATUS_CODE(Object arg0, Object arg1) { - return localizer.localize(localizableHTTP_STATUS_CODE(arg0, arg1)); - } - - public static Localizable localizableINVALID_ADDRESS(Object arg0) { - return messageFactory.getMessage("invalid.address", arg0); - } - - /** - * Invalid address: {0} - * - */ - public static String INVALID_ADDRESS(Object arg0) { - return localizer.localize(localizableINVALID_ADDRESS(arg0)); - } - - public static Localizable localizableUNDEFINED_PORT_TYPE(Object arg0) { - return messageFactory.getMessage("undefined.portType", arg0); - } - - /** - * Undefined port type: {0} - * - */ - public static String UNDEFINED_PORT_TYPE(Object arg0) { - return localizer.localize(localizableUNDEFINED_PORT_TYPE(arg0)); - } - - public static Localizable localizableWSDL_CONTAINS_NO_SERVICE(Object arg0) { - return messageFactory.getMessage("wsdl.contains.no.service", arg0); - } - - /** - * WSDL {0} contains no service definition. - * - */ - public static String WSDL_CONTAINS_NO_SERVICE(Object arg0) { - return localizer.localize(localizableWSDL_CONTAINS_NO_SERVICE(arg0)); - } - - public static Localizable localizableINVALID_SOAP_ACTION() { - return messageFactory.getMessage("invalid.soap.action"); - } - - /** - * A valid SOAPAction should be set in the RequestContext when Addressing is enabled, Use BindingProvider.SOAPACTION_URI_PROPERTY to set it. - * - */ - public static String INVALID_SOAP_ACTION() { - return localizer.localize(localizableINVALID_SOAP_ACTION()); - } - - public static Localizable localizableNON_LOGICAL_HANDLER_SET(Object arg0) { - return messageFactory.getMessage("non.logical.handler.set", arg0); - } - - /** - * Cannot set {0} on binding. Handler must be a LogicalHandler. - * - */ - public static String NON_LOGICAL_HANDLER_SET(Object arg0) { - return localizer.localize(localizableNON_LOGICAL_HANDLER_SET(arg0)); - } - - public static Localizable localizableLOCAL_CLIENT_FAILED(Object arg0) { - return messageFactory.getMessage("local.client.failed", arg0); - } - - /** - * local transport error: {0} - * - */ - public static String LOCAL_CLIENT_FAILED(Object arg0) { - return localizer.localize(localizableLOCAL_CLIENT_FAILED(arg0)); - } - - public static Localizable localizableRUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) { - return messageFactory.getMessage("runtime.wsdlparser.invalidWSDL", arg0, arg1, arg2, arg3); - } - - /** - * Invalid WSDL {0}, expected {1} found {2} at (line{3}) - * - */ - public static String RUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) { - return localizer.localize(localizableRUNTIME_WSDLPARSER_INVALID_WSDL(arg0, arg1, arg2, arg3)); - } - - public static Localizable localizableWSDL_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("wsdl.not.found", arg0); - } - - /** - * WSDL url {0} is not accessible. - * - */ - public static String WSDL_NOT_FOUND(Object arg0) { - return localizer.localize(localizableWSDL_NOT_FOUND(arg0)); - } - - public static Localizable localizableHTTP_CLIENT_FAILED(Object arg0) { - return messageFactory.getMessage("http.client.failed", arg0); - } - - /** - * HTTP transport error: {0} - * - */ - public static String HTTP_CLIENT_FAILED(Object arg0) { - return localizer.localize(localizableHTTP_CLIENT_FAILED(arg0)); - } - - public static Localizable localizableINVALID_SERVICE_NAME_NULL(Object arg0) { - return messageFactory.getMessage("invalid.service.name.null", arg0); - } - - /** - * {0} is not a valid service - * - */ - public static String INVALID_SERVICE_NAME_NULL(Object arg0) { - return localizer.localize(localizableINVALID_SERVICE_NAME_NULL(arg0)); - } - - public static Localizable localizableINVALID_WSDL_URL(Object arg0) { - return messageFactory.getMessage("invalid.wsdl.url", arg0); - } - - /** - * Invalid WSDL URL: {0} - * - */ - public static String INVALID_WSDL_URL(Object arg0) { - return localizer.localize(localizableINVALID_WSDL_URL(arg0)); - } - - public static Localizable localizableINVALID_PORT_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.port.name", arg0, arg1); - } - - /** - * {0} is not a valid port. Valid ports are: {1} - * - */ - public static String INVALID_PORT_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_PORT_NAME(arg0, arg1)); + return LOCALIZER.localize(localizableHTTP_STATUS_CODE(arg0, arg1)); } public static Localizable localizableINVALID_SERVICE_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.service.name", arg0, arg1); + return MESSAGE_FACTORY.getMessage("invalid.service.name", arg0, arg1); } /** @@ -324,11 +129,96 @@ public final class ClientMessages { * */ public static String INVALID_SERVICE_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_SERVICE_NAME(arg0, arg1)); + return LOCALIZER.localize(localizableINVALID_SERVICE_NAME(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) { + return MESSAGE_FACTORY.getMessage("runtime.wsdlparser.invalidWSDL", arg0, arg1, arg2, arg3); + } + + /** + * Invalid WSDL {0}, expected {1} found {2} at (line{3}) + * + */ + public static String RUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) { + return LOCALIZER.localize(localizableRUNTIME_WSDLPARSER_INVALID_WSDL(arg0, arg1, arg2, arg3)); + } + + public static Localizable localizableNON_LOGICAL_HANDLER_SET(Object arg0) { + return MESSAGE_FACTORY.getMessage("non.logical.handler.set", arg0); + } + + /** + * Cannot set {0} on binding. Handler must be a LogicalHandler. + * + */ + public static String NON_LOGICAL_HANDLER_SET(Object arg0) { + return LOCALIZER.localize(localizableNON_LOGICAL_HANDLER_SET(arg0)); + } + + public static Localizable localizableINVALID_PORT_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.port.name", arg0, arg1); + } + + /** + * {0} is not a valid port. Valid ports are: {1} + * + */ + public static String INVALID_PORT_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_PORT_NAME(arg0, arg1)); + } + + public static Localizable localizableINVALID_SOAP_ACTION() { + return MESSAGE_FACTORY.getMessage("invalid.soap.action"); + } + + /** + * A valid SOAPAction should be set in the RequestContext when Addressing is enabled, Use BindingProvider.SOAPACTION_URI_PROPERTY to set it. + * + */ + public static String INVALID_SOAP_ACTION() { + return LOCALIZER.localize(localizableINVALID_SOAP_ACTION()); + } + + public static Localizable localizableINVALID_ADDRESS(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.address", arg0); + } + + /** + * Invalid address: {0} + * + */ + public static String INVALID_ADDRESS(Object arg0) { + return LOCALIZER.localize(localizableINVALID_ADDRESS(arg0)); + } + + public static Localizable localizableFAILED_TO_PARSE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("failed.to.parse", arg0, arg1); + } + + /** + * Failed to access the WSDL at: {0}. It failed with: + * {1}. + * + */ + public static String FAILED_TO_PARSE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableFAILED_TO_PARSE(arg0, arg1)); + } + + public static Localizable localizableHTTP_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("http.not.found", arg0); + } + + /** + * HTTP Status-Code 404: Not Found - {0} + * + */ + public static String HTTP_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableHTTP_NOT_FOUND(arg0)); } public static Localizable localizableUNSUPPORTED_OPERATION(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("unsupported.operation", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("unsupported.operation", arg0, arg1, arg2); } /** @@ -336,11 +226,47 @@ public final class ClientMessages { * */ public static String UNSUPPORTED_OPERATION(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableUNSUPPORTED_OPERATION(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableUNSUPPORTED_OPERATION(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDL_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdl.not.found", arg0); + } + + /** + * WSDL url {0} is not accessible. + * + */ + public static String WSDL_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableWSDL_NOT_FOUND(arg0)); + } + + public static Localizable localizableINVALID_SERVICE_NAME_NULL(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.service.name.null", arg0); + } + + /** + * {0} is not a valid service + * + */ + public static String INVALID_SERVICE_NAME_NULL(Object arg0) { + return LOCALIZER.localize(localizableINVALID_SERVICE_NAME_NULL(arg0)); + } + + public static Localizable localizableHTTP_CLIENT_FAILED(Object arg0) { + return MESSAGE_FACTORY.getMessage("http.client.failed", arg0); + } + + /** + * HTTP transport error: {0} + * + */ + public static String HTTP_CLIENT_FAILED(Object arg0) { + return LOCALIZER.localize(localizableHTTP_CLIENT_FAILED(arg0)); } public static Localizable localizableFAILED_TO_PARSE_EPR(Object arg0) { - return messageFactory.getMessage("failed.to.parse.epr", arg0); + return MESSAGE_FACTORY.getMessage("failed.to.parse.epr", arg0); } /** @@ -348,7 +274,90 @@ public final class ClientMessages { * */ public static String FAILED_TO_PARSE_EPR(Object arg0) { - return localizer.localize(localizableFAILED_TO_PARSE_EPR(arg0)); + return LOCALIZER.localize(localizableFAILED_TO_PARSE_EPR(arg0)); + } + + public static Localizable localizableLOCAL_CLIENT_FAILED(Object arg0) { + return MESSAGE_FACTORY.getMessage("local.client.failed", arg0); + } + + /** + * local transport error: {0} + * + */ + public static String LOCAL_CLIENT_FAILED(Object arg0) { + return LOCALIZER.localize(localizableLOCAL_CLIENT_FAILED(arg0)); + } + + public static Localizable localizableUNDEFINED_BINDING(Object arg0) { + return MESSAGE_FACTORY.getMessage("undefined.binding", arg0); + } + + /** + * Undefined binding: {0} + * + */ + public static String UNDEFINED_BINDING(Object arg0) { + return LOCALIZER.localize(localizableUNDEFINED_BINDING(arg0)); + } + + public static Localizable localizableINVALID_SERVICE_NO_WSDL(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.service.no.wsdl", arg0); + } + + /** + * No wsdl metadata for service: {0}, can't create proxy! Try creating Service by providing a WSDL URL + * + */ + public static String INVALID_SERVICE_NO_WSDL(Object arg0) { + return LOCALIZER.localize(localizableINVALID_SERVICE_NO_WSDL(arg0)); + } + + public static Localizable localizableWSDL_CONTAINS_NO_SERVICE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdl.contains.no.service", arg0); + } + + /** + * WSDL {0} contains no service definition. + * + */ + public static String WSDL_CONTAINS_NO_SERVICE(Object arg0) { + return LOCALIZER.localize(localizableWSDL_CONTAINS_NO_SERVICE(arg0)); + } + + public static Localizable localizableINVALID_BINDING_ID(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.binding.id", arg0, arg1); + } + + /** + * Invalid binding id: {0}. Must be: {1} + * + */ + public static String INVALID_BINDING_ID(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_BINDING_ID(arg0, arg1)); + } + + public static Localizable localizableUNDEFINED_PORT_TYPE(Object arg0) { + return MESSAGE_FACTORY.getMessage("undefined.portType", arg0); + } + + /** + * Undefined port type: {0} + * + */ + public static String UNDEFINED_PORT_TYPE(Object arg0) { + return LOCALIZER.localize(localizableUNDEFINED_PORT_TYPE(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/DispatchMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/DispatchMessages.java index 4d5c7fab190..f6179248ec1 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/DispatchMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/DispatchMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,138 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class DispatchMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.dispatch"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, DispatchMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableINVALID_NULLARG_XMLHTTP_REQUEST_METHOD(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.nullarg.xmlhttp.request.method", arg0, arg1); - } - - /** - * A XML/HTTP request using MessageContext.HTTP_REQUEST_METHOD equals {0} with a Null invocation Argument is not allowed. Must be: {1} - * - */ - public static String INVALID_NULLARG_XMLHTTP_REQUEST_METHOD(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_NULLARG_XMLHTTP_REQUEST_METHOD(arg0, arg1)); - } - - public static Localizable localizableINVALID_NULLARG_URI() { - return messageFactory.getMessage("invalid.nullarg.uri"); - } - - /** - * Endpoint address URI is not allowed with a null argument - * - */ - public static String INVALID_NULLARG_URI() { - return localizer.localize(localizableINVALID_NULLARG_URI()); - } - - public static Localizable localizableINVALID_SOAPMESSAGE_DISPATCH_MSGMODE(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.soapmessage.dispatch.msgmode", arg0, arg1); - } - - /** - * Can not create Dispatch of {0}. Must be {1}. - * - */ - public static String INVALID_SOAPMESSAGE_DISPATCH_MSGMODE(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_SOAPMESSAGE_DISPATCH_MSGMODE(arg0, arg1)); - } - - public static Localizable localizableINVALID_RESPONSE_DESERIALIZATION() { - return messageFactory.getMessage("invalid.response.deserialization"); - } - - /** - * Failed to deserialize the response. - * - */ - public static String INVALID_RESPONSE_DESERIALIZATION() { - return localizer.localize(localizableINVALID_RESPONSE_DESERIALIZATION()); - } - - public static Localizable localizableINVALID_QUERY_LEADING_CHAR(Object arg0) { - return messageFactory.getMessage("invalid.query.leading.char", arg0); - } - - /** - * Leading '?' of MessageContext.QUERY_STRING: {0} is not valid. Remove '?' and run again. - * - */ - public static String INVALID_QUERY_LEADING_CHAR(Object arg0) { - return localizer.localize(localizableINVALID_QUERY_LEADING_CHAR(arg0)); - } - - public static Localizable localizableINVALID_QUERY_STRING(Object arg0) { - return messageFactory.getMessage("invalid.query.string", arg0); - } - - /** - * Unable to resolve endpoint address using the supplied query string: {0}. - * - */ - public static String INVALID_QUERY_STRING(Object arg0) { - return localizer.localize(localizableINVALID_QUERY_STRING(arg0)); - } - - public static Localizable localizableDUPLICATE_PORT(Object arg0) { - return messageFactory.getMessage("duplicate.port", arg0); - } - - /** - * WSDLPort {0} already exists. Can not create a port of the same QName. - * - */ - public static String DUPLICATE_PORT(Object arg0) { - return localizer.localize(localizableDUPLICATE_PORT(arg0)); - } - - public static Localizable localizableINVALID_DATASOURCE_DISPATCH_BINDING(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.datasource.dispatch.binding", arg0, arg1); - } - - /** - * Can not create Dispatch with {0}. Must be: {1} - * - */ - public static String INVALID_DATASOURCE_DISPATCH_BINDING(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_DATASOURCE_DISPATCH_BINDING(arg0, arg1)); - } - - public static Localizable localizableINVALID_DATASOURCE_DISPATCH_MSGMODE(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.datasource.dispatch.msgmode", arg0, arg1); - } - - /** - * Can not create Dispatch of Service.Mode.PAYLOAD{0}. Must be: {1} - * - */ - public static String INVALID_DATASOURCE_DISPATCH_MSGMODE(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_DATASOURCE_DISPATCH_MSGMODE(arg0, arg1)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new DispatchMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableINVALID_NULLARG_SOAP_MSGMODE(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.nullarg.soap.msgmode", arg0, arg1); + return MESSAGE_FACTORY.getMessage("invalid.nullarg.soap.msgmode", arg0, arg1); } /** @@ -164,71 +54,23 @@ public final class DispatchMessages { * */ public static String INVALID_NULLARG_SOAP_MSGMODE(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_NULLARG_SOAP_MSGMODE(arg0, arg1)); + return LOCALIZER.localize(localizableINVALID_NULLARG_SOAP_MSGMODE(arg0, arg1)); } - public static Localizable localizableINVALID_URI(Object arg0) { - return messageFactory.getMessage("invalid.uri", arg0); + public static Localizable localizableINVALID_QUERY_STRING(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.query.string", arg0); } /** - * Endpoint String: {0} is and invalid URI. + * Unable to resolve endpoint address using the supplied query string: {0}. * */ - public static String INVALID_URI(Object arg0) { - return localizer.localize(localizableINVALID_URI(arg0)); - } - - public static Localizable localizableINVALID_SOAPMESSAGE_DISPATCH_BINDING(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.soapmessage.dispatch.binding", arg0, arg1); - } - - /** - * Can not create Dispatch with {0} Binding. Must be: {1} Binding. - * - */ - public static String INVALID_SOAPMESSAGE_DISPATCH_BINDING(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_SOAPMESSAGE_DISPATCH_BINDING(arg0, arg1)); - } - - public static Localizable localizableINVALID_URI_PATH_QUERY(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.uri.path.query", arg0, arg1); - } - - /** - * Unable to construct a URI with this path info {0} and this query string {1}. - * - */ - public static String INVALID_URI_PATH_QUERY(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_URI_PATH_QUERY(arg0, arg1)); - } - - public static Localizable localizableINVALID_RESPONSE() { - return messageFactory.getMessage("invalid.response"); - } - - /** - * No response returned. - * - */ - public static String INVALID_RESPONSE() { - return localizer.localize(localizableINVALID_RESPONSE()); - } - - public static Localizable localizableINVALID_URI_RESOLUTION(Object arg0) { - return messageFactory.getMessage("invalid.uri.resolution", arg0); - } - - /** - * Unable to resolve endpoint address using the supplied path: {0}. - * - */ - public static String INVALID_URI_RESOLUTION(Object arg0) { - return localizer.localize(localizableINVALID_URI_RESOLUTION(arg0)); + public static String INVALID_QUERY_STRING(Object arg0) { + return LOCALIZER.localize(localizableINVALID_QUERY_STRING(arg0)); } public static Localizable localizableINVALID_URI_DECODE() { - return messageFactory.getMessage("invalid.uri.decode"); + return MESSAGE_FACTORY.getMessage("invalid.uri.decode"); } /** @@ -236,7 +78,174 @@ public final class DispatchMessages { * */ public static String INVALID_URI_DECODE() { - return localizer.localize(localizableINVALID_URI_DECODE()); + return LOCALIZER.localize(localizableINVALID_URI_DECODE()); + } + + public static Localizable localizableINVALID_URI_RESOLUTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.uri.resolution", arg0); + } + + /** + * Unable to resolve endpoint address using the supplied path: {0}. + * + */ + public static String INVALID_URI_RESOLUTION(Object arg0) { + return LOCALIZER.localize(localizableINVALID_URI_RESOLUTION(arg0)); + } + + public static Localizable localizableINVALID_NULLARG_URI() { + return MESSAGE_FACTORY.getMessage("invalid.nullarg.uri"); + } + + /** + * Endpoint address URI is not allowed with a null argument + * + */ + public static String INVALID_NULLARG_URI() { + return LOCALIZER.localize(localizableINVALID_NULLARG_URI()); + } + + public static Localizable localizableINVALID_URI_PATH_QUERY(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.uri.path.query", arg0, arg1); + } + + /** + * Unable to construct a URI with this path info {0} and this query string {1}. + * + */ + public static String INVALID_URI_PATH_QUERY(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_URI_PATH_QUERY(arg0, arg1)); + } + + public static Localizable localizableINVALID_URI(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.uri", arg0); + } + + /** + * Endpoint String: {0} is and invalid URI. + * + */ + public static String INVALID_URI(Object arg0) { + return LOCALIZER.localize(localizableINVALID_URI(arg0)); + } + + public static Localizable localizableINVALID_DATASOURCE_DISPATCH_MSGMODE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.datasource.dispatch.msgmode", arg0, arg1); + } + + /** + * Can not create Dispatch of Service.Mode.PAYLOAD{0}. Must be: {1} + * + */ + public static String INVALID_DATASOURCE_DISPATCH_MSGMODE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_DATASOURCE_DISPATCH_MSGMODE(arg0, arg1)); + } + + public static Localizable localizableDUPLICATE_PORT(Object arg0) { + return MESSAGE_FACTORY.getMessage("duplicate.port", arg0); + } + + /** + * WSDLPort {0} already exists. Can not create a port of the same QName. + * + */ + public static String DUPLICATE_PORT(Object arg0) { + return LOCALIZER.localize(localizableDUPLICATE_PORT(arg0)); + } + + public static Localizable localizableINVALID_SOAPMESSAGE_DISPATCH_BINDING(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.soapmessage.dispatch.binding", arg0, arg1); + } + + /** + * Can not create Dispatch with {0} Binding. Must be: {1} Binding. + * + */ + public static String INVALID_SOAPMESSAGE_DISPATCH_BINDING(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_SOAPMESSAGE_DISPATCH_BINDING(arg0, arg1)); + } + + public static Localizable localizableINVALID_QUERY_LEADING_CHAR(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.query.leading.char", arg0); + } + + /** + * Leading '?' of MessageContext.QUERY_STRING: {0} is not valid. Remove '?' and run again. + * + */ + public static String INVALID_QUERY_LEADING_CHAR(Object arg0) { + return LOCALIZER.localize(localizableINVALID_QUERY_LEADING_CHAR(arg0)); + } + + public static Localizable localizableINVALID_RESPONSE_DESERIALIZATION() { + return MESSAGE_FACTORY.getMessage("invalid.response.deserialization"); + } + + /** + * Failed to deserialize the response. + * + */ + public static String INVALID_RESPONSE_DESERIALIZATION() { + return LOCALIZER.localize(localizableINVALID_RESPONSE_DESERIALIZATION()); + } + + public static Localizable localizableINVALID_RESPONSE() { + return MESSAGE_FACTORY.getMessage("invalid.response"); + } + + /** + * No response returned. + * + */ + public static String INVALID_RESPONSE() { + return LOCALIZER.localize(localizableINVALID_RESPONSE()); + } + + public static Localizable localizableINVALID_SOAPMESSAGE_DISPATCH_MSGMODE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.soapmessage.dispatch.msgmode", arg0, arg1); + } + + /** + * Can not create Dispatch of {0}. Must be {1}. + * + */ + public static String INVALID_SOAPMESSAGE_DISPATCH_MSGMODE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_SOAPMESSAGE_DISPATCH_MSGMODE(arg0, arg1)); + } + + public static Localizable localizableINVALID_DATASOURCE_DISPATCH_BINDING(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.datasource.dispatch.binding", arg0, arg1); + } + + /** + * Can not create Dispatch with {0}. Must be: {1} + * + */ + public static String INVALID_DATASOURCE_DISPATCH_BINDING(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_DATASOURCE_DISPATCH_BINDING(arg0, arg1)); + } + + public static Localizable localizableINVALID_NULLARG_XMLHTTP_REQUEST_METHOD(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.nullarg.xmlhttp.request.method", arg0, arg1); + } + + /** + * A XML/HTTP request using MessageContext.HTTP_REQUEST_METHOD equals {0} with a Null invocation Argument is not allowed. Must be: {1} + * + */ + public static String INVALID_NULLARG_XMLHTTP_REQUEST_METHOD(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_NULLARG_XMLHTTP_REQUEST_METHOD(arg0, arg1)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/EncodingMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/EncodingMessages.java index ecbf83bbcb7..a4d394d8752 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/EncodingMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/EncodingMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,54 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class EncodingMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.encoding"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, EncodingMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableFAILED_TO_READ_RESPONSE(Object arg0) { - return messageFactory.getMessage("failed.to.read.response", arg0); - } - - /** - * Failed to read a response: {0} - * - */ - public static String FAILED_TO_READ_RESPONSE(Object arg0) { - return localizer.localize(localizableFAILED_TO_READ_RESPONSE(arg0)); - } - - public static Localizable localizableEXCEPTION_INCORRECT_TYPE(Object arg0) { - return messageFactory.getMessage("exception.incorrectType", arg0); - } - - /** - * incorrect type. Expected java.lang.Exception, found {0} - * - */ - public static String EXCEPTION_INCORRECT_TYPE(Object arg0) { - return localizer.localize(localizableEXCEPTION_INCORRECT_TYPE(arg0)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new EncodingMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableEXCEPTION_NOTFOUND(Object arg0) { - return messageFactory.getMessage("exception.notfound", arg0); + return MESSAGE_FACTORY.getMessage("exception.notfound", arg0); } /** @@ -80,47 +54,11 @@ public final class EncodingMessages { * */ public static String EXCEPTION_NOTFOUND(Object arg0) { - return localizer.localize(localizableEXCEPTION_NOTFOUND(arg0)); - } - - public static Localizable localizableXSD_UNEXPECTED_ELEMENT_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("xsd.unexpectedElementName", arg0, arg1); - } - - /** - * unexpected element name: expected={0}, actual: {1} - * - */ - public static String XSD_UNEXPECTED_ELEMENT_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableXSD_UNEXPECTED_ELEMENT_NAME(arg0, arg1)); - } - - public static Localizable localizableNESTED_DESERIALIZATION_ERROR(Object arg0) { - return messageFactory.getMessage("nestedDeserializationError", arg0); - } - - /** - * deserialization error: {0} - * - */ - public static String NESTED_DESERIALIZATION_ERROR(Object arg0) { - return localizer.localize(localizableNESTED_DESERIALIZATION_ERROR(arg0)); - } - - public static Localizable localizableNESTED_ENCODING_ERROR(Object arg0) { - return messageFactory.getMessage("nestedEncodingError", arg0); - } - - /** - * encoding error: {0} - * - */ - public static String NESTED_ENCODING_ERROR(Object arg0) { - return localizer.localize(localizableNESTED_ENCODING_ERROR(arg0)); + return LOCALIZER.localize(localizableEXCEPTION_NOTFOUND(arg0)); } public static Localizable localizableXSD_UNKNOWN_PREFIX(Object arg0) { - return messageFactory.getMessage("xsd.unknownPrefix", arg0); + return MESSAGE_FACTORY.getMessage("xsd.unknownPrefix", arg0); } /** @@ -128,11 +66,59 @@ public final class EncodingMessages { * */ public static String XSD_UNKNOWN_PREFIX(Object arg0) { - return localizer.localize(localizableXSD_UNKNOWN_PREFIX(arg0)); + return LOCALIZER.localize(localizableXSD_UNKNOWN_PREFIX(arg0)); + } + + public static Localizable localizableNESTED_ENCODING_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("nestedEncodingError", arg0); + } + + /** + * encoding error: {0} + * + */ + public static String NESTED_ENCODING_ERROR(Object arg0) { + return LOCALIZER.localize(localizableNESTED_ENCODING_ERROR(arg0)); + } + + public static Localizable localizableNESTED_DESERIALIZATION_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("nestedDeserializationError", arg0); + } + + /** + * deserialization error: {0} + * + */ + public static String NESTED_DESERIALIZATION_ERROR(Object arg0) { + return LOCALIZER.localize(localizableNESTED_DESERIALIZATION_ERROR(arg0)); + } + + public static Localizable localizableXSD_UNEXPECTED_ELEMENT_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("xsd.unexpectedElementName", arg0, arg1); + } + + /** + * unexpected element name: expected={0}, actual: {1} + * + */ + public static String XSD_UNEXPECTED_ELEMENT_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableXSD_UNEXPECTED_ELEMENT_NAME(arg0, arg1)); + } + + public static Localizable localizableFAILED_TO_READ_RESPONSE(Object arg0) { + return MESSAGE_FACTORY.getMessage("failed.to.read.response", arg0); + } + + /** + * Failed to read a response: {0} + * + */ + public static String FAILED_TO_READ_RESPONSE(Object arg0) { + return LOCALIZER.localize(localizableFAILED_TO_READ_RESPONSE(arg0)); } public static Localizable localizableNESTED_SERIALIZATION_ERROR(Object arg0) { - return messageFactory.getMessage("nestedSerializationError", arg0); + return MESSAGE_FACTORY.getMessage("nestedSerializationError", arg0); } /** @@ -140,11 +126,11 @@ public final class EncodingMessages { * */ public static String NESTED_SERIALIZATION_ERROR(Object arg0) { - return localizer.localize(localizableNESTED_SERIALIZATION_ERROR(arg0)); + return LOCALIZER.localize(localizableNESTED_SERIALIZATION_ERROR(arg0)); } public static Localizable localizableNO_SUCH_CONTENT_ID(Object arg0) { - return messageFactory.getMessage("noSuchContentId", arg0); + return MESSAGE_FACTORY.getMessage("noSuchContentId", arg0); } /** @@ -152,7 +138,30 @@ public final class EncodingMessages { * */ public static String NO_SUCH_CONTENT_ID(Object arg0) { - return localizer.localize(localizableNO_SUCH_CONTENT_ID(arg0)); + return LOCALIZER.localize(localizableNO_SUCH_CONTENT_ID(arg0)); + } + + public static Localizable localizableEXCEPTION_INCORRECT_TYPE(Object arg0) { + return MESSAGE_FACTORY.getMessage("exception.incorrectType", arg0); + } + + /** + * incorrect type. Expected java.lang.Exception, found {0} + * + */ + public static String EXCEPTION_INCORRECT_TYPE(Object arg0) { + return LOCALIZER.localize(localizableEXCEPTION_INCORRECT_TYPE(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/HandlerMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/HandlerMessages.java index 2582b89b0c3..6c983def174 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/HandlerMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/HandlerMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,90 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class HandlerMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.handler"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, HandlerMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableHANDLER_MESSAGE_CONTEXT_INVALID_CLASS(Object arg0, Object arg1) { - return messageFactory.getMessage("handler.messageContext.invalid.class", arg0, arg1); - } - - /** - * "{0}" is not an allowed value for the property "{1}" - * - */ - public static String HANDLER_MESSAGE_CONTEXT_INVALID_CLASS(Object arg0, Object arg1) { - return localizer.localize(localizableHANDLER_MESSAGE_CONTEXT_INVALID_CLASS(arg0, arg1)); - } - - public static Localizable localizableCANNOT_EXTEND_HANDLER_DIRECTLY(Object arg0) { - return messageFactory.getMessage("cannot.extend.handler.directly", arg0); - } - - /** - * Handler {0} must implement LogicalHandler or SOAPHandler. - * - */ - public static String CANNOT_EXTEND_HANDLER_DIRECTLY(Object arg0) { - return localizer.localize(localizableCANNOT_EXTEND_HANDLER_DIRECTLY(arg0)); - } - - public static Localizable localizableHANDLER_NOT_VALID_TYPE(Object arg0) { - return messageFactory.getMessage("handler.not.valid.type", arg0); - } - - /** - * {0} does not implement one of the handler interfaces. - * - */ - public static String HANDLER_NOT_VALID_TYPE(Object arg0) { - return localizer.localize(localizableHANDLER_NOT_VALID_TYPE(arg0)); - } - - public static Localizable localizableCANNOT_INSTANTIATE_HANDLER(Object arg0, Object arg1) { - return messageFactory.getMessage("cannot.instantiate.handler", arg0, arg1); - } - - /** - * Unable to instantiate handler: {0} because: {1} - * - */ - public static String CANNOT_INSTANTIATE_HANDLER(Object arg0, Object arg1) { - return localizer.localize(localizableCANNOT_INSTANTIATE_HANDLER(arg0, arg1)); - } - - public static Localizable localizableHANDLER_CHAIN_CONTAINS_HANDLER_ONLY(Object arg0) { - return messageFactory.getMessage("handler.chain.contains.handler.only", arg0); - } - - /** - * A HandlerChain can only contain Handler instances: {0} - * - */ - public static String HANDLER_CHAIN_CONTAINS_HANDLER_ONLY(Object arg0) { - return localizer.localize(localizableHANDLER_CHAIN_CONTAINS_HANDLER_ONLY(arg0)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new HandlerMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableHANDLER_NESTED_ERROR(Object arg0) { - return messageFactory.getMessage("handler.nestedError", arg0); + return MESSAGE_FACTORY.getMessage("handler.nestedError", arg0); } /** @@ -116,11 +54,47 @@ public final class HandlerMessages { * */ public static String HANDLER_NESTED_ERROR(Object arg0) { - return localizer.localize(localizableHANDLER_NESTED_ERROR(arg0)); + return LOCALIZER.localize(localizableHANDLER_NESTED_ERROR(arg0)); + } + + public static Localizable localizableCANNOT_EXTEND_HANDLER_DIRECTLY(Object arg0) { + return MESSAGE_FACTORY.getMessage("cannot.extend.handler.directly", arg0); + } + + /** + * Handler {0} must implement LogicalHandler or SOAPHandler. + * + */ + public static String CANNOT_EXTEND_HANDLER_DIRECTLY(Object arg0) { + return LOCALIZER.localize(localizableCANNOT_EXTEND_HANDLER_DIRECTLY(arg0)); + } + + public static Localizable localizableHANDLER_NOT_VALID_TYPE(Object arg0) { + return MESSAGE_FACTORY.getMessage("handler.not.valid.type", arg0); + } + + /** + * {0} does not implement one of the handler interfaces. + * + */ + public static String HANDLER_NOT_VALID_TYPE(Object arg0) { + return LOCALIZER.localize(localizableHANDLER_NOT_VALID_TYPE(arg0)); + } + + public static Localizable localizableHANDLER_MESSAGE_CONTEXT_INVALID_CLASS(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("handler.messageContext.invalid.class", arg0, arg1); + } + + /** + * "{0}" is not an allowed value for the property "{1}" + * + */ + public static String HANDLER_MESSAGE_CONTEXT_INVALID_CLASS(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableHANDLER_MESSAGE_CONTEXT_INVALID_CLASS(arg0, arg1)); } public static Localizable localizableHANDLER_PREDESTROY_IGNORE(Object arg0) { - return messageFactory.getMessage("handler.predestroy.ignore", arg0); + return MESSAGE_FACTORY.getMessage("handler.predestroy.ignore", arg0); } /** @@ -128,7 +102,42 @@ public final class HandlerMessages { * */ public static String HANDLER_PREDESTROY_IGNORE(Object arg0) { - return localizer.localize(localizableHANDLER_PREDESTROY_IGNORE(arg0)); + return LOCALIZER.localize(localizableHANDLER_PREDESTROY_IGNORE(arg0)); + } + + public static Localizable localizableHANDLER_CHAIN_CONTAINS_HANDLER_ONLY(Object arg0) { + return MESSAGE_FACTORY.getMessage("handler.chain.contains.handler.only", arg0); + } + + /** + * A HandlerChain can only contain Handler instances: {0} + * + */ + public static String HANDLER_CHAIN_CONTAINS_HANDLER_ONLY(Object arg0) { + return LOCALIZER.localize(localizableHANDLER_CHAIN_CONTAINS_HANDLER_ONLY(arg0)); + } + + public static Localizable localizableCANNOT_INSTANTIATE_HANDLER(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("cannot.instantiate.handler", arg0, arg1); + } + + /** + * Unable to instantiate handler: {0} because: {1} + * + */ + public static String CANNOT_INSTANTIATE_HANDLER(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableCANNOT_INSTANTIATE_HANDLER(arg0, arg1)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/HttpserverMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/HttpserverMessages.java index 0a21d3e9784..24f6efea9cb 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/HttpserverMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/HttpserverMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,30 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class HttpserverMessages { - private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.httpserver"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, HttpserverMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.httpserver"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new HttpserverMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableUNEXPECTED_HTTP_METHOD(Object arg0) { - return messageFactory.getMessage("unexpected.http.method", arg0); + return MESSAGE_FACTORY.getMessage("unexpected.http.method", arg0); } /** @@ -56,7 +54,18 @@ public final class HttpserverMessages { * */ public static String UNEXPECTED_HTTP_METHOD(Object arg0) { - return localizer.localize(localizableUNEXPECTED_HTTP_METHOD(arg0)); + return LOCALIZER.localize(localizableUNEXPECTED_HTTP_METHOD(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ManagementMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ManagementMessages.java index ee61ddbfca8..e4102c24ddc 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ManagementMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ManagementMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,30 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class ManagementMessages { - private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.management"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, ManagementMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.management"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ManagementMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableWSM_1008_EXPECTED_INTEGER_DISPOSE_DELAY_VALUE(Object arg0) { - return messageFactory.getMessage("WSM_1008_EXPECTED_INTEGER_DISPOSE_DELAY_VALUE", arg0); + return MESSAGE_FACTORY.getMessage("WSM_1008_EXPECTED_INTEGER_DISPOSE_DELAY_VALUE", arg0); } /** @@ -56,83 +54,11 @@ public final class ManagementMessages { * */ public static String WSM_1008_EXPECTED_INTEGER_DISPOSE_DELAY_VALUE(Object arg0) { - return localizer.localize(localizableWSM_1008_EXPECTED_INTEGER_DISPOSE_DELAY_VALUE(arg0)); - } - - public static Localizable localizableWSM_1004_EXPECTED_XML_TAG(Object arg0, Object arg1) { - return messageFactory.getMessage("WSM_1004_EXPECTED_XML_TAG", arg0, arg1); - } - - /** - * WSM1004: Expected tag <{0}> but instead read <{1}>. - * - */ - public static String WSM_1004_EXPECTED_XML_TAG(Object arg0, Object arg1) { - return localizer.localize(localizableWSM_1004_EXPECTED_XML_TAG(arg0, arg1)); - } - - public static Localizable localizableWSM_1007_FAILED_MODEL_TRANSLATOR_INSTANTIATION() { - return messageFactory.getMessage("WSM_1007_FAILED_MODEL_TRANSLATOR_INSTANTIATION"); - } - - /** - * WSM1007: Failed to create a ModelTranslator instance. - * - */ - public static String WSM_1007_FAILED_MODEL_TRANSLATOR_INSTANTIATION() { - return localizer.localize(localizableWSM_1007_FAILED_MODEL_TRANSLATOR_INSTANTIATION()); - } - - public static Localizable localizableWSM_1002_EXPECTED_MANAGEMENT_ASSERTION(Object arg0) { - return messageFactory.getMessage("WSM_1002_EXPECTED_MANAGEMENT_ASSERTION", arg0); - } - - /** - * WSM1002: Expected policy assertion {0} in this namespace. - * - */ - public static String WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(Object arg0) { - return localizer.localize(localizableWSM_1002_EXPECTED_MANAGEMENT_ASSERTION(arg0)); - } - - public static Localizable localizableWSM_1006_CLIENT_MANAGEMENT_ENABLED() { - return messageFactory.getMessage("WSM_1006_CLIENT_MANAGEMENT_ENABLED"); - } - - /** - * WSM1006: The management property of the ManagedClient policy assertion is set to on. Clients cannot be managed and this setting will be ignored. - * - */ - public static String WSM_1006_CLIENT_MANAGEMENT_ENABLED() { - return localizer.localize(localizableWSM_1006_CLIENT_MANAGEMENT_ENABLED()); - } - - public static Localizable localizableWSM_1001_FAILED_ASSERTION(Object arg0) { - return messageFactory.getMessage("WSM_1001_FAILED_ASSERTION", arg0); - } - - /** - * WSM1001: Failed to get policy assertion {0}. - * - */ - public static String WSM_1001_FAILED_ASSERTION(Object arg0) { - return localizer.localize(localizableWSM_1001_FAILED_ASSERTION(arg0)); - } - - public static Localizable localizableWSM_1005_EXPECTED_COMMUNICATION_CHILD() { - return messageFactory.getMessage("WSM_1005_EXPECTED_COMMUNICATION_CHILD"); - } - - /** - * WSM1005: Expected to find a CommunicationServerImplementation tag as child node of CommunicationServerImplementations. - * - */ - public static String WSM_1005_EXPECTED_COMMUNICATION_CHILD() { - return localizer.localize(localizableWSM_1005_EXPECTED_COMMUNICATION_CHILD()); + return LOCALIZER.localize(localizableWSM_1008_EXPECTED_INTEGER_DISPOSE_DELAY_VALUE(arg0)); } public static Localizable localizableWSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(Object arg0) { - return messageFactory.getMessage("WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID", arg0); + return MESSAGE_FACTORY.getMessage("WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID", arg0); } /** @@ -140,7 +66,90 @@ public final class ManagementMessages { * */ public static String WSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(Object arg0) { - return localizer.localize(localizableWSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(arg0)); + return LOCALIZER.localize(localizableWSM_1003_MANAGEMENT_ASSERTION_MISSING_ID(arg0)); + } + + public static Localizable localizableWSM_1005_EXPECTED_COMMUNICATION_CHILD() { + return MESSAGE_FACTORY.getMessage("WSM_1005_EXPECTED_COMMUNICATION_CHILD"); + } + + /** + * WSM1005: Expected to find a CommunicationServerImplementation tag as child node of CommunicationServerImplementations. + * + */ + public static String WSM_1005_EXPECTED_COMMUNICATION_CHILD() { + return LOCALIZER.localize(localizableWSM_1005_EXPECTED_COMMUNICATION_CHILD()); + } + + public static Localizable localizableWSM_1006_CLIENT_MANAGEMENT_ENABLED() { + return MESSAGE_FACTORY.getMessage("WSM_1006_CLIENT_MANAGEMENT_ENABLED"); + } + + /** + * WSM1006: The management property of the ManagedClient policy assertion is set to on. Clients cannot be managed and this setting will be ignored. + * + */ + public static String WSM_1006_CLIENT_MANAGEMENT_ENABLED() { + return LOCALIZER.localize(localizableWSM_1006_CLIENT_MANAGEMENT_ENABLED()); + } + + public static Localizable localizableWSM_1002_EXPECTED_MANAGEMENT_ASSERTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSM_1002_EXPECTED_MANAGEMENT_ASSERTION", arg0); + } + + /** + * WSM1002: Expected policy assertion {0} in this namespace. + * + */ + public static String WSM_1002_EXPECTED_MANAGEMENT_ASSERTION(Object arg0) { + return LOCALIZER.localize(localizableWSM_1002_EXPECTED_MANAGEMENT_ASSERTION(arg0)); + } + + public static Localizable localizableWSM_1001_FAILED_ASSERTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSM_1001_FAILED_ASSERTION", arg0); + } + + /** + * WSM1001: Failed to get policy assertion {0}. + * + */ + public static String WSM_1001_FAILED_ASSERTION(Object arg0) { + return LOCALIZER.localize(localizableWSM_1001_FAILED_ASSERTION(arg0)); + } + + public static Localizable localizableWSM_1007_FAILED_MODEL_TRANSLATOR_INSTANTIATION() { + return MESSAGE_FACTORY.getMessage("WSM_1007_FAILED_MODEL_TRANSLATOR_INSTANTIATION"); + } + + /** + * WSM1007: Failed to create a ModelTranslator instance. + * + */ + public static String WSM_1007_FAILED_MODEL_TRANSLATOR_INSTANTIATION() { + return LOCALIZER.localize(localizableWSM_1007_FAILED_MODEL_TRANSLATOR_INSTANTIATION()); + } + + public static Localizable localizableWSM_1004_EXPECTED_XML_TAG(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("WSM_1004_EXPECTED_XML_TAG", arg0, arg1); + } + + /** + * WSM1004: Expected tag <{0}> but instead read <{1}>. + * + */ + public static String WSM_1004_EXPECTED_XML_TAG(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSM_1004_EXPECTED_XML_TAG(arg0, arg1)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ModelerMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ModelerMessages.java index 30708d38829..50b2cbfe545 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ModelerMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ModelerMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,330 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class ModelerMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.modeler"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, ModelerMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableNESTED_MODELER_ERROR(Object arg0) { - return messageFactory.getMessage("nestedModelerError", arg0); - } - - /** - * runtime modeler error: {0} - * - */ - public static String NESTED_MODELER_ERROR(Object arg0) { - return localizer.localize(localizableNESTED_MODELER_ERROR(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.wsfeature.no.ftrconstructor", arg0, arg1); - } - - /** - * Annotation {0} is not recognizable, at least one constructor of {1} should be marked with @FeatureConstructor - * - */ - public static String RUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(arg0, arg1)); - } - - public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(Object arg0) { - return messageFactory.getMessage("runtime.modeler.external.metadata.unable.to.read", arg0); - } - - /** - * Unable to read metadata file {0}. Check configuration/deployment. - * - */ - public static String RUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(Object arg0) { - return messageFactory.getMessage("runtime.modeler.webmethod.must.be.public", arg0); - } - - /** - * @WebMethod is not allowed on a non-public method {0} - * - */ - public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("runtime.modeler.wrapper.not.found", arg0); - } - - /** - * Wrapper class {0} is not found. Have you run annotation processing to generate them? - * - */ - public static String RUNTIME_MODELER_WRAPPER_NOT_FOUND(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_MTOM_CONFLICT(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.mtom.conflict", arg0, arg1); - } - - /** - * Error in @BindingType: MTOM Configuration in binding identifier {0} conflicts with feature @MTOM {1} - * - */ - public static String RUNTIME_MODELER_MTOM_CONFLICT(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_MTOM_CONFLICT(arg0, arg1)); - } - - public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(Object arg0) { - return messageFactory.getMessage("runtime.modeler.external.metadata.generic", arg0); - } - - /** - * An error occurred while processing external WS metadata; check configuration/deployment. Nested error: {0}. - * - */ - public static String RUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_FEATURE_CONFLICT(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.feature.conflict", arg0, arg1); - } - - /** - * Feature {0} in implementation conflicts with {1} in WSDL configuration - * - */ - public static String RUNTIME_MODELER_FEATURE_CONFLICT(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_FEATURE_CONFLICT(arg0, arg1)); - } - - public static Localizable localizableRUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.invalid.soapbinding.parameterstyle", arg0, arg1); - } - - /** - * Incorrect usage of Annotation {0} on {1}, ParameterStyle can only be WRAPPED with RPC Style Web service. - * - */ - public static String RUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(arg0, arg1)); - } - - public static Localizable localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.wsfeature.morethanone.ftrconstructor", arg0, arg1); - } - - /** - * Annotation {0} is illegal, Only one constructor of {1} can be marked as @FeatureConstructor - * - */ - public static String RUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(arg0, arg1)); - } - - public static Localizable localizableNOT_A_VALID_BARE_METHOD(Object arg0, Object arg1) { - return messageFactory.getMessage("not.a.valid.bare.method", arg0, arg1); - } - - /** - * SEI {0} has method {1} annotated as BARE but it has more than one parameter bound to body. This is invalid. Please annotate the method with annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED) - * - */ - public static String NOT_A_VALID_BARE_METHOD(Object arg0, Object arg1) { - return localizer.localize(localizableNOT_A_VALID_BARE_METHOD(arg0, arg1)); - } - - public static Localizable localizableRUNTIME_MODELER_NO_PACKAGE(Object arg0) { - return messageFactory.getMessage("runtime.modeler.no.package", arg0); - } - - /** - * A @WebService.targetNamespace must be specified on classes with no package. Class: {0} - * - */ - public static String RUNTIME_MODELER_NO_PACKAGE(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_NO_PACKAGE(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(Object arg0) { - return messageFactory.getMessage("runtime.modeler.no.webservice.annotation", arg0); - } - - /** - * A WebService annotation is not present on class: {0} - * - */ - public static String RUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(Object arg0) { - return messageFactory.getMessage("runtime.modeler.addressing.responses.nosuchmethod", arg0); - } - - /** - * JAX-WS 2.1 API is loaded from {0}, But JAX-WS runtime requires JAX-WS 2.2 API. Use the endorsed standards override mechanism to load JAX-WS 2.2 API - * - */ - public static String RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(Object arg0) { - return messageFactory.getMessage("runtime.modeler.external.metadata.wrong.format", arg0); - } - - /** - * Unable to read metadata from {0}. Is the format correct? - * - */ - public static String RUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.oneway.operation.no.out.parameters", arg0, arg1); - } - - /** - * oneway operation should not have OUT parameters class: {0} method: {1} - * - */ - public static String RUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(arg0, arg1)); - } - - public static Localizable localizableUNABLE_TO_CREATE_JAXB_CONTEXT() { - return messageFactory.getMessage("unable.to.create.JAXBContext"); - } - - /** - * Unable to create JAXBContext - * - */ - public static String UNABLE_TO_CREATE_JAXB_CONTEXT() { - return localizer.localize(localizableUNABLE_TO_CREATE_JAXB_CONTEXT()); - } - - public static Localizable localizableRUNTIME_MODELER_NO_OPERATIONS(Object arg0) { - return messageFactory.getMessage("runtime.modeler.no.operations", arg0); - } - - /** - * The web service defined by the class {0} does not contain any valid WebMethods. - * - */ - public static String RUNTIME_MODELER_NO_OPERATIONS(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_NO_OPERATIONS(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("runtime.modeler.oneway.operation.no.checked.exceptions", arg0, arg1, arg2); - } - - /** - * Oneway operation should not throw any checked exceptions class: {0} method: {1} throws: {2} - * - */ - public static String RUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(arg0, arg1, arg2)); - } - - public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(Object arg0) { - return messageFactory.getMessage("runtime.modeler.webmethod.must.be.nonstatic", arg0); - } - - /** - * @WebMethod is not allowed on a static method {0} - * - */ - public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_METHOD_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.method.not.found", arg0, arg1); - } - - /** - * method: {0} could not be found on class: {1} - * - */ - public static String RUNTIME_MODELER_METHOD_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_METHOD_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableRUNTIME_MODELER_CLASS_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("runtime.modeler.class.not.found", arg0); - } - - /** - * class: {0} could not be found - * - */ - public static String RUNTIME_MODELER_CLASS_NOT_FOUND(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_CLASS_NOT_FOUND(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_SOAPBINDING_CONFLICT(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("runtime.modeler.soapbinding.conflict", arg0, arg1, arg2); - } - - /** - * SOAPBinding Style {0} for method {1} conflicts with global SOAPBinding Style {2} - * - */ - public static String RUNTIME_MODELER_SOAPBINDING_CONFLICT(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableRUNTIME_MODELER_SOAPBINDING_CONFLICT(arg0, arg1, arg2)); - } - - public static Localizable localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(Object arg0) { - return messageFactory.getMessage("runtime.modeler.cannot.get.serviceName.from.interface", arg0); - } - - /** - * The serviceName cannot be retrieved from an interface. class {0} - * - */ - public static String RUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(arg0)); - } - - public static Localizable localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { - return messageFactory.getMessage("runtime.modeler.endpoint.interface.no.webservice", arg0); - } - - /** - * The Endpoint Interface: {0} does not have WebService Annotation - * - */ - public static String RUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(arg0)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ModelerMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.external.metadata.unsupported.schema", arg0, arg1); + return MESSAGE_FACTORY.getMessage("runtime.modeler.external.metadata.unsupported.schema", arg0, arg1); } /** @@ -356,11 +54,59 @@ public final class ModelerMessages { * */ public static String RUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(arg0, arg1)); + return LOCALIZER.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.oneway.operation.no.checked.exceptions", arg0, arg1, arg2); + } + + /** + * Oneway operation should not throw any checked exceptions class: {0} method: {1} throws: {2} + * + */ + public static String RUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(arg0, arg1, arg2)); + } + + public static Localizable localizableRUNTIME_MODELER_NO_PACKAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.no.package", arg0); + } + + /** + * A @WebService.targetNamespace must be specified on classes with no package. Class: {0} + * + */ + public static String RUNTIME_MODELER_NO_PACKAGE(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_NO_PACKAGE(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.external.metadata.unable.to.read", arg0); + } + + /** + * Unable to read metadata file {0}. Check configuration/deployment. + * + */ + public static String RUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.webmethod.must.be.nonstatic", arg0); + } + + /** + * @WebMethod is not allowed on a static method {0} + * + */ + public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(arg0)); } public static Localizable localizableRUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("runtimemodeler.invalid.soapbindingOnMethod", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("runtimemodeler.invalid.soapbindingOnMethod", arg0, arg1, arg2); } /** @@ -368,23 +114,143 @@ public final class ModelerMessages { * */ public static String RUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableRUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableRUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(arg0, arg1, arg2)); } - public static Localizable localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.portname.servicename.namespace.mismatch", arg0, arg1); + public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.external.metadata.wrong.format", arg0); } /** - * The namespace of the serviceName "{0}" and the namespace of the portName "{1}" must match + * Unable to read metadata from {0}. Is the format correct? * */ - public static String RUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(arg0, arg1)); + public static String RUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.no.webservice.annotation", arg0); + } + + /** + * A WebService annotation is not present on class: {0} + * + */ + public static String RUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_SOAPBINDING_CONFLICT(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.soapbinding.conflict", arg0, arg1, arg2); + } + + /** + * SOAPBinding Style {0} for method {1} conflicts with global SOAPBinding Style {2} + * + */ + public static String RUNTIME_MODELER_SOAPBINDING_CONFLICT(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_SOAPBINDING_CONFLICT(arg0, arg1, arg2)); + } + + public static Localizable localizableNESTED_MODELER_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("nestedModelerError", arg0); + } + + /** + * runtime modeler error: {0} + * + */ + public static String NESTED_MODELER_ERROR(Object arg0) { + return LOCALIZER.localize(localizableNESTED_MODELER_ERROR(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_METHOD_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.method.not.found", arg0, arg1); + } + + /** + * method: {0} could not be found on class: {1} + * + */ + public static String RUNTIME_MODELER_METHOD_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_METHOD_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableUNABLE_TO_CREATE_JAXB_CONTEXT() { + return MESSAGE_FACTORY.getMessage("unable.to.create.JAXBContext"); + } + + /** + * Unable to create JAXBContext + * + */ + public static String UNABLE_TO_CREATE_JAXB_CONTEXT() { + return LOCALIZER.localize(localizableUNABLE_TO_CREATE_JAXB_CONTEXT()); + } + + public static Localizable localizableRUNTIME_MODELER_NO_OPERATIONS(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.no.operations", arg0); + } + + /** + * The web service defined by the class {0} does not contain any valid WebMethods. + * + */ + public static String RUNTIME_MODELER_NO_OPERATIONS(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_NO_OPERATIONS(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.wrapper.not.found", arg0); + } + + /** + * Wrapper class {0} is not found. Have you run annotation processing to generate them? + * + */ + public static String RUNTIME_MODELER_WRAPPER_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.invalid.soapbinding.parameterstyle", arg0, arg1); + } + + /** + * Incorrect usage of Annotation {0} on {1}, ParameterStyle can only be WRAPPED with RPC Style Web service. + * + */ + public static String RUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.external.metadata.generic", arg0); + } + + /** + * An error occurred while processing external WS metadata; check configuration/deployment. Nested error: {0}. + * + */ + public static String RUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.addressing.responses.nosuchmethod", arg0); + } + + /** + * JAX-WS 2.1 API is loaded from {0}, But JAX-WS runtime requires JAX-WS 2.2 or newer API. Use the standard override mechanism to load JAX-WS 2.2 or newer API. + * + */ + public static String RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(arg0)); } public static Localizable localizableRUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.modeler.wsfeature.illegal.ftrconstructor", arg0, arg1); + return MESSAGE_FACTORY.getMessage("runtime.modeler.wsfeature.illegal.ftrconstructor", arg0, arg1); } /** @@ -392,11 +258,107 @@ public final class ModelerMessages { * */ public static String RUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(arg0, arg1)); + return LOCALIZER.localize(localizableRUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.webmethod.must.be.public", arg0); + } + + /** + * @WebMethod is not allowed on a non-public method {0} + * + */ + public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.oneway.operation.no.out.parameters", arg0, arg1); + } + + /** + * oneway operation should not have OUT parameters class: {0} method: {1} + * + */ + public static String RUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.endpoint.interface.no.webservice", arg0); + } + + /** + * The Endpoint Interface: {0} does not have WebService Annotation + * + */ + public static String RUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.wsfeature.no.ftrconstructor", arg0, arg1); + } + + /** + * Annotation {0} is not recognizable, at least one constructor of {1} should be marked with @FeatureConstructor + * + */ + public static String RUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_MODELER_MTOM_CONFLICT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.mtom.conflict", arg0, arg1); + } + + /** + * Error in @BindingType: MTOM Configuration in binding identifier {0} conflicts with feature @MTOM {1} + * + */ + public static String RUNTIME_MODELER_MTOM_CONFLICT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_MTOM_CONFLICT(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_MODELER_CLASS_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.class.not.found", arg0); + } + + /** + * class: {0} could not be found + * + */ + public static String RUNTIME_MODELER_CLASS_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_CLASS_NOT_FOUND(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.wsfeature.morethanone.ftrconstructor", arg0, arg1); + } + + /** + * Annotation {0} is illegal, Only one constructor of {1} can be marked as @FeatureConstructor + * + */ + public static String RUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_MODELER_FEATURE_CONFLICT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.feature.conflict", arg0, arg1); + } + + /** + * Feature {0} in implementation conflicts with {1} in WSDL configuration + * + */ + public static String RUNTIME_MODELER_FEATURE_CONFLICT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_FEATURE_CONFLICT(arg0, arg1)); } public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(Object arg0) { - return messageFactory.getMessage("runtime.modeler.webmethod.must.be.nonstaticfinal", arg0); + return MESSAGE_FACTORY.getMessage("runtime.modeler.webmethod.must.be.nonstaticfinal", arg0); } /** @@ -404,7 +366,54 @@ public final class ModelerMessages { * */ public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(Object arg0) { - return localizer.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(arg0)); + return LOCALIZER.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(arg0)); + } + + public static Localizable localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.cannot.get.serviceName.from.interface", arg0); + } + + /** + * The serviceName cannot be retrieved from an interface. class {0} + * + */ + public static String RUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(arg0)); + } + + public static Localizable localizableNOT_A_VALID_BARE_METHOD(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("not.a.valid.bare.method", arg0, arg1); + } + + /** + * SEI {0} has method {1} annotated as BARE but it has more than one parameter bound to body. This is invalid. Please annotate the method with annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED) + * + */ + public static String NOT_A_VALID_BARE_METHOD(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableNOT_A_VALID_BARE_METHOD(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.modeler.portname.servicename.namespace.mismatch", arg0, arg1); + } + + /** + * The namespace of the serviceName "{0}" and the namespace of the portName "{1}" must match + * + */ + public static String RUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(arg0, arg1)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/PolicyMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/PolicyMessages.java index bde32f27132..30e3facafc9 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/PolicyMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/PolicyMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,138 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class PolicyMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.policy"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, PolicyMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableWSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL() { - return messageFactory.getMessage("WSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL"); - } - - /** - * WSP1007: Policy exception occurred when finishing WSDL parsing. - * - */ - public static String WSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL() { - return localizer.localize(localizableWSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL()); - } - - public static Localizable localizableWSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE() { - return messageFactory.getMessage("WSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE"); - } - - /** - * WSP1002: Unable to marshall policy or it's reference. See original exception for more details. - * - */ - public static String WSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE() { - return localizer.localize(localizableWSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE()); - } - - public static Localizable localizableWSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED", arg0, arg1); - } - - /** - * WSP1015: Server side assertion validation failed for "{0}" assertion. Assertion was evaluated as "{1}". - * - */ - public static String WSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(arg0, arg1)); - } - - public static Localizable localizableWSP_1017_MAP_UPDATE_FAILED() { - return messageFactory.getMessage("WSP_1017_MAP_UPDATE_FAILED"); - } - - /** - * WSP1048: Policy map setup failed - exception occurred while trying to modify policy map content. - * - */ - public static String WSP_1017_MAP_UPDATE_FAILED() { - return localizer.localize(localizableWSP_1017_MAP_UPDATE_FAILED()); - } - - public static Localizable localizableWSP_1010_NO_POLICIES_DEFINED() { - return messageFactory.getMessage("WSP_1010_NO_POLICIES_DEFINED"); - } - - /** - * WSP1010: No policies defined. - * - */ - public static String WSP_1010_NO_POLICIES_DEFINED() { - return localizer.localize(localizableWSP_1010_NO_POLICIES_DEFINED()); - } - - public static Localizable localizableWSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(Object arg0) { - return messageFactory.getMessage("WSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL", arg0); - } - - /** - * WSP1008: Not marshalling policy, wsdl subject is null for "{0}". - * - */ - public static String WSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(Object arg0) { - return localizer.localize(localizableWSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(arg0)); - } - - public static Localizable localizableWSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL() { - return messageFactory.getMessage("WSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL"); - } - - /** - * WSP1009: Policy map was null, not marshalling any policies. - * - */ - public static String WSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL() { - return localizer.localize(localizableWSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL()); - } - - public static Localizable localizableWSP_1020_DUPLICATE_ID(Object arg0) { - return messageFactory.getMessage("WSP_1020_DUPLICATE_ID", arg0); - } - - /** - * WSP1020: Found two policies in one document with the same id: "{0}". - * - */ - public static String WSP_1020_DUPLICATE_ID(Object arg0) { - return localizer.localize(localizableWSP_1020_DUPLICATE_ID(arg0)); - } - - public static Localizable localizableWSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("WSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME", arg0, arg1); - } - - /** - * WSP1003: Unable to check element name for class "{0}" and WSDL name "{1}". - * - */ - public static String WSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableWSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(arg0, arg1)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new PolicyMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableWSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(Object arg0) { - return messageFactory.getMessage("WSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT", arg0); + return MESSAGE_FACTORY.getMessage("WSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT", arg0); } /** @@ -164,119 +54,11 @@ public final class PolicyMessages { * */ public static String WSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(Object arg0) { - return localizer.localize(localizableWSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(arg0)); - } - - public static Localizable localizableWSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL() { - return messageFactory.getMessage("WSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL"); - } - - /** - * WSP1006: Policy map extender can not be null. - * - */ - public static String WSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL() { - return localizer.localize(localizableWSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL()); - } - - public static Localizable localizableWSP_1018_FAILED_TO_MARSHALL_POLICY(Object arg0) { - return messageFactory.getMessage("WSP_1018_FAILED_TO_MARSHALL_POLICY", arg0); - } - - /** - * WSP1018: Failed to marshal policy "{0}". - * - */ - public static String WSP_1018_FAILED_TO_MARSHALL_POLICY(Object arg0) { - return localizer.localize(localizableWSP_1018_FAILED_TO_MARSHALL_POLICY(arg0)); - } - - public static Localizable localizableWSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(Object arg0) { - return messageFactory.getMessage("WSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST", arg0); - } - - /** - * WSP1005: Failed to find policy referenced by URI "{0}". - * - */ - public static String WSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(Object arg0) { - return localizer.localize(localizableWSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(arg0)); - } - - public static Localizable localizableWSP_1016_POLICY_ID_NULL_OR_DUPLICATE(Object arg0) { - return messageFactory.getMessage("WSP_1016_POLICY_ID_NULL_OR_DUPLICATE", arg0); - } - - /** - * WSP1016: The policy is not added because it has no ID or a policy with the same ID was already added: {0}. - * - */ - public static String WSP_1016_POLICY_ID_NULL_OR_DUPLICATE(Object arg0) { - return localizer.localize(localizableWSP_1016_POLICY_ID_NULL_OR_DUPLICATE(arg0)); - } - - public static Localizable localizableWSP_1014_CAN_NOT_FIND_POLICY(Object arg0) { - return messageFactory.getMessage("WSP_1014_CAN_NOT_FIND_POLICY", arg0); - } - - /** - * WSP1014: Can not find policy "{0}" that is referenced in from the WSDL. Please, check your policy references in the WSDL. - * - */ - public static String WSP_1014_CAN_NOT_FIND_POLICY(Object arg0) { - return localizer.localize(localizableWSP_1014_CAN_NOT_FIND_POLICY(arg0)); - } - - public static Localizable localizableWSP_1012_FAILED_CONFIGURE_WSDL_MODEL() { - return messageFactory.getMessage("WSP_1012_FAILED_CONFIGURE_WSDL_MODEL"); - } - - /** - * WSP1012: Failed to configure wsdl model. - * - */ - public static String WSP_1012_FAILED_CONFIGURE_WSDL_MODEL() { - return localizer.localize(localizableWSP_1012_FAILED_CONFIGURE_WSDL_MODEL()); - } - - public static Localizable localizableWSP_1021_FAULT_NOT_BOUND(Object arg0) { - return messageFactory.getMessage("WSP_1021_FAULT_NOT_BOUND", arg0); - } - - /** - * WSP1021: Fault "{0}" not bound. Check names in port and binding definitions. - * - */ - public static String WSP_1021_FAULT_NOT_BOUND(Object arg0) { - return localizer.localize(localizableWSP_1021_FAULT_NOT_BOUND(arg0)); - } - - public static Localizable localizableWSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(Object arg0) { - return messageFactory.getMessage("WSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT", arg0); - } - - /** - * WSP1011: Failed to retrieve effective policy for subject: {0}. - * - */ - public static String WSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(Object arg0) { - return localizer.localize(localizableWSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(arg0)); - } - - public static Localizable localizableWSP_1019_CREATE_EMPTY_POLICY_MAP() { - return messageFactory.getMessage("WSP_1019_CREATE_EMPTY_POLICY_MAP"); - } - - /** - * WSP1019: Failed to find any configuration file. Creating new empty policy map. - * - */ - public static String WSP_1019_CREATE_EMPTY_POLICY_MAP() { - return localizer.localize(localizableWSP_1019_CREATE_EMPTY_POLICY_MAP()); + return LOCALIZER.localize(localizableWSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(arg0)); } public static Localizable localizableWSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE() { - return messageFactory.getMessage("WSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE"); + return MESSAGE_FACTORY.getMessage("WSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE"); } /** @@ -284,11 +66,155 @@ public final class PolicyMessages { * */ public static String WSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE() { - return localizer.localize(localizableWSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE()); + return LOCALIZER.localize(localizableWSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE()); + } + + public static Localizable localizableWSP_1014_CAN_NOT_FIND_POLICY(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSP_1014_CAN_NOT_FIND_POLICY", arg0); + } + + /** + * WSP1014: Can not find policy "{0}" that is referenced in from the WSDL. Please, check your policy references in the WSDL. + * + */ + public static String WSP_1014_CAN_NOT_FIND_POLICY(Object arg0) { + return LOCALIZER.localize(localizableWSP_1014_CAN_NOT_FIND_POLICY(arg0)); + } + + public static Localizable localizableWSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL() { + return MESSAGE_FACTORY.getMessage("WSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL"); + } + + /** + * WSP1009: Policy map was null, not marshalling any policies. + * + */ + public static String WSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL() { + return LOCALIZER.localize(localizableWSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL()); + } + + public static Localizable localizableWSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT", arg0); + } + + /** + * WSP1011: Failed to retrieve effective policy for subject: {0}. + * + */ + public static String WSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(Object arg0) { + return LOCALIZER.localize(localizableWSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(arg0)); + } + + public static Localizable localizableWSP_1016_POLICY_ID_NULL_OR_DUPLICATE(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSP_1016_POLICY_ID_NULL_OR_DUPLICATE", arg0); + } + + /** + * WSP1016: The policy is not added because it has no ID or a policy with the same ID was already added: {0}. + * + */ + public static String WSP_1016_POLICY_ID_NULL_OR_DUPLICATE(Object arg0) { + return LOCALIZER.localize(localizableWSP_1016_POLICY_ID_NULL_OR_DUPLICATE(arg0)); + } + + public static Localizable localizableWSP_1021_FAULT_NOT_BOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSP_1021_FAULT_NOT_BOUND", arg0); + } + + /** + * WSP1021: Fault "{0}" not bound. Check names in port and binding definitions. + * + */ + public static String WSP_1021_FAULT_NOT_BOUND(Object arg0) { + return LOCALIZER.localize(localizableWSP_1021_FAULT_NOT_BOUND(arg0)); + } + + public static Localizable localizableWSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("WSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME", arg0, arg1); + } + + /** + * WSP1003: Unable to check element name for class "{0}" and WSDL name "{1}". + * + */ + public static String WSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(arg0, arg1)); + } + + public static Localizable localizableWSP_1019_CREATE_EMPTY_POLICY_MAP() { + return MESSAGE_FACTORY.getMessage("WSP_1019_CREATE_EMPTY_POLICY_MAP"); + } + + /** + * WSP1019: Failed to find any configuration file. Creating new empty policy map. + * + */ + public static String WSP_1019_CREATE_EMPTY_POLICY_MAP() { + return LOCALIZER.localize(localizableWSP_1019_CREATE_EMPTY_POLICY_MAP()); + } + + public static Localizable localizableWSP_1020_DUPLICATE_ID(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSP_1020_DUPLICATE_ID", arg0); + } + + /** + * WSP1020: Found two policies in one document with the same id: "{0}". + * + */ + public static String WSP_1020_DUPLICATE_ID(Object arg0) { + return LOCALIZER.localize(localizableWSP_1020_DUPLICATE_ID(arg0)); + } + + public static Localizable localizableWSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE() { + return MESSAGE_FACTORY.getMessage("WSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE"); + } + + /** + * WSP1002: Unable to marshall policy or it's reference. See original exception for more details. + * + */ + public static String WSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE() { + return LOCALIZER.localize(localizableWSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE()); + } + + public static Localizable localizableWSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL", arg0); + } + + /** + * WSP1008: Not marshalling policy, wsdl subject is null for "{0}". + * + */ + public static String WSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(Object arg0) { + return LOCALIZER.localize(localizableWSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(arg0)); + } + + public static Localizable localizableWSP_1017_MAP_UPDATE_FAILED() { + return MESSAGE_FACTORY.getMessage("WSP_1017_MAP_UPDATE_FAILED"); + } + + /** + * WSP1048: Policy map setup failed - exception occurred while trying to modify policy map content. + * + */ + public static String WSP_1017_MAP_UPDATE_FAILED() { + return LOCALIZER.localize(localizableWSP_1017_MAP_UPDATE_FAILED()); + } + + public static Localizable localizableWSP_1018_FAILED_TO_MARSHALL_POLICY(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSP_1018_FAILED_TO_MARSHALL_POLICY", arg0); + } + + /** + * WSP1018: Failed to marshal policy "{0}". + * + */ + public static String WSP_1018_FAILED_TO_MARSHALL_POLICY(Object arg0) { + return LOCALIZER.localize(localizableWSP_1018_FAILED_TO_MARSHALL_POLICY(arg0)); } public static Localizable localizableWSP_1004_POLICY_URIS_CAN_NOT_BE_NULL() { - return messageFactory.getMessage("WSP_1004_POLICY_URIS_CAN_NOT_BE_NULL"); + return MESSAGE_FACTORY.getMessage("WSP_1004_POLICY_URIS_CAN_NOT_BE_NULL"); } /** @@ -296,7 +222,90 @@ public final class PolicyMessages { * */ public static String WSP_1004_POLICY_URIS_CAN_NOT_BE_NULL() { - return localizer.localize(localizableWSP_1004_POLICY_URIS_CAN_NOT_BE_NULL()); + return LOCALIZER.localize(localizableWSP_1004_POLICY_URIS_CAN_NOT_BE_NULL()); + } + + public static Localizable localizableWSP_1010_NO_POLICIES_DEFINED() { + return MESSAGE_FACTORY.getMessage("WSP_1010_NO_POLICIES_DEFINED"); + } + + /** + * WSP1010: No policies defined. + * + */ + public static String WSP_1010_NO_POLICIES_DEFINED() { + return LOCALIZER.localize(localizableWSP_1010_NO_POLICIES_DEFINED()); + } + + public static Localizable localizableWSP_1012_FAILED_CONFIGURE_WSDL_MODEL() { + return MESSAGE_FACTORY.getMessage("WSP_1012_FAILED_CONFIGURE_WSDL_MODEL"); + } + + /** + * WSP1012: Failed to configure wsdl model. + * + */ + public static String WSP_1012_FAILED_CONFIGURE_WSDL_MODEL() { + return LOCALIZER.localize(localizableWSP_1012_FAILED_CONFIGURE_WSDL_MODEL()); + } + + public static Localizable localizableWSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("WSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED", arg0, arg1); + } + + /** + * WSP1015: Server side assertion validation failed for "{0}" assertion. Assertion was evaluated as "{1}". + * + */ + public static String WSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(arg0, arg1)); + } + + public static Localizable localizableWSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(Object arg0) { + return MESSAGE_FACTORY.getMessage("WSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST", arg0); + } + + /** + * WSP1005: Failed to find policy referenced by URI "{0}". + * + */ + public static String WSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(Object arg0) { + return LOCALIZER.localize(localizableWSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(arg0)); + } + + public static Localizable localizableWSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL() { + return MESSAGE_FACTORY.getMessage("WSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL"); + } + + /** + * WSP1006: Policy map extender can not be null. + * + */ + public static String WSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL() { + return LOCALIZER.localize(localizableWSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL()); + } + + public static Localizable localizableWSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL() { + return MESSAGE_FACTORY.getMessage("WSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL"); + } + + /** + * WSP1007: Policy exception occurred when finishing WSDL parsing. + * + */ + public static String WSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL() { + return LOCALIZER.localize(localizableWSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL()); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ProviderApiMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ProviderApiMessages.java index 347dc7f1864..d20d7e2e18d 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ProviderApiMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ProviderApiMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,54 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class ProviderApiMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.providerApi"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, ProviderApiMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableNULL_ADDRESS_SERVICE_ENDPOINT() { - return messageFactory.getMessage("null.address.service.endpoint"); - } - - /** - * Address in an EPR cannot be null, when serviceName or portName is null - * - */ - public static String NULL_ADDRESS_SERVICE_ENDPOINT() { - return localizer.localize(localizableNULL_ADDRESS_SERVICE_ENDPOINT()); - } - - public static Localizable localizableNO_WSDL_NO_PORT(Object arg0) { - return messageFactory.getMessage("no.wsdl.no.port", arg0); - } - - /** - * WSDL Metadata not available to create the proxy, either Service instance or ServiceEndpointInterface {0} should have WSDL information - * - */ - public static String NO_WSDL_NO_PORT(Object arg0) { - return localizer.localize(localizableNO_WSDL_NO_PORT(arg0)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ProviderApiMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableNULL_SERVICE() { - return messageFactory.getMessage("null.service"); + return MESSAGE_FACTORY.getMessage("null.service"); } /** @@ -80,23 +54,23 @@ public final class ProviderApiMessages { * */ public static String NULL_SERVICE() { - return localizer.localize(localizableNULL_SERVICE()); + return LOCALIZER.localize(localizableNULL_SERVICE()); } - public static Localizable localizableNULL_ADDRESS() { - return messageFactory.getMessage("null.address"); + public static Localizable localizableNULL_ADDRESS_SERVICE_ENDPOINT() { + return MESSAGE_FACTORY.getMessage("null.address.service.endpoint"); } /** - * Address in an EPR cannot be null + * Address in an EPR cannot be null, when serviceName or portName is null * */ - public static String NULL_ADDRESS() { - return localizer.localize(localizableNULL_ADDRESS()); + public static String NULL_ADDRESS_SERVICE_ENDPOINT() { + return LOCALIZER.localize(localizableNULL_ADDRESS_SERVICE_ENDPOINT()); } public static Localizable localizableNULL_PORTNAME() { - return messageFactory.getMessage("null.portname"); + return MESSAGE_FACTORY.getMessage("null.portname"); } /** @@ -104,35 +78,11 @@ public final class ProviderApiMessages { * */ public static String NULL_PORTNAME() { - return localizer.localize(localizableNULL_PORTNAME()); - } - - public static Localizable localizableNOTFOUND_SERVICE_IN_WSDL(Object arg0, Object arg1) { - return messageFactory.getMessage("notfound.service.in.wsdl", arg0, arg1); - } - - /** - * Service: {0} not found in WSDL: {1} - * - */ - public static String NOTFOUND_SERVICE_IN_WSDL(Object arg0, Object arg1) { - return localizer.localize(localizableNOTFOUND_SERVICE_IN_WSDL(arg0, arg1)); - } - - public static Localizable localizableNULL_EPR() { - return messageFactory.getMessage("null.epr"); - } - - /** - * EndpointReference is null - * - */ - public static String NULL_EPR() { - return localizer.localize(localizableNULL_EPR()); + return LOCALIZER.localize(localizableNULL_PORTNAME()); } public static Localizable localizableNULL_WSDL() { - return messageFactory.getMessage("null.wsdl"); + return MESSAGE_FACTORY.getMessage("null.wsdl"); } /** @@ -140,11 +90,23 @@ public final class ProviderApiMessages { * */ public static String NULL_WSDL() { - return localizer.localize(localizableNULL_WSDL()); + return LOCALIZER.localize(localizableNULL_WSDL()); + } + + public static Localizable localizableNO_WSDL_NO_PORT(Object arg0) { + return MESSAGE_FACTORY.getMessage("no.wsdl.no.port", arg0); + } + + /** + * WSDL Metadata not available to create the proxy, either Service instance or ServiceEndpointInterface {0} should have WSDL information + * + */ + public static String NO_WSDL_NO_PORT(Object arg0) { + return LOCALIZER.localize(localizableNO_WSDL_NO_PORT(arg0)); } public static Localizable localizableNOTFOUND_PORT_IN_WSDL(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("notfound.port.in.wsdl", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("notfound.port.in.wsdl", arg0, arg1, arg2); } /** @@ -152,11 +114,47 @@ public final class ProviderApiMessages { * */ public static String NOTFOUND_PORT_IN_WSDL(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableNOTFOUND_PORT_IN_WSDL(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableNOTFOUND_PORT_IN_WSDL(arg0, arg1, arg2)); + } + + public static Localizable localizableNOTFOUND_SERVICE_IN_WSDL(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("notfound.service.in.wsdl", arg0, arg1); + } + + /** + * Service: {0} not found in WSDL: {1} + * + */ + public static String NOTFOUND_SERVICE_IN_WSDL(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableNOTFOUND_SERVICE_IN_WSDL(arg0, arg1)); + } + + public static Localizable localizableNULL_EPR() { + return MESSAGE_FACTORY.getMessage("null.epr"); + } + + /** + * EndpointReference is null + * + */ + public static String NULL_EPR() { + return LOCALIZER.localize(localizableNULL_EPR()); + } + + public static Localizable localizableNULL_ADDRESS() { + return MESSAGE_FACTORY.getMessage("null.address"); + } + + /** + * Address in an EPR cannot be null + * + */ + public static String NULL_ADDRESS() { + return LOCALIZER.localize(localizableNULL_ADDRESS()); } public static Localizable localizableERROR_WSDL(Object arg0) { - return messageFactory.getMessage("error.wsdl", arg0); + return MESSAGE_FACTORY.getMessage("error.wsdl", arg0); } /** @@ -164,7 +162,18 @@ public final class ProviderApiMessages { * */ public static String ERROR_WSDL(Object arg0) { - return localizer.localize(localizableERROR_WSDL(arg0)); + return LOCALIZER.localize(localizableERROR_WSDL(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/SenderMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/SenderMessages.java index c95550e9955..5e94841f005 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/SenderMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/SenderMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,66 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class SenderMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.sender"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, SenderMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableSENDER_REQUEST_ILLEGAL_VALUE_FOR_CONTENT_NEGOTIATION(Object arg0) { - return messageFactory.getMessage("sender.request.illegalValueForContentNegotiation", arg0); - } - - /** - * illegal value for content negotiation property "{0}" - * - */ - public static String SENDER_REQUEST_ILLEGAL_VALUE_FOR_CONTENT_NEGOTIATION(Object arg0) { - return localizer.localize(localizableSENDER_REQUEST_ILLEGAL_VALUE_FOR_CONTENT_NEGOTIATION(arg0)); - } - - public static Localizable localizableSENDER_RESPONSE_CANNOT_DECODE_FAULT_DETAIL() { - return messageFactory.getMessage("sender.response.cannotDecodeFaultDetail"); - } - - /** - * fault detail cannot be decoded - * - */ - public static String SENDER_RESPONSE_CANNOT_DECODE_FAULT_DETAIL() { - return localizer.localize(localizableSENDER_RESPONSE_CANNOT_DECODE_FAULT_DETAIL()); - } - - public static Localizable localizableSENDER_NESTED_ERROR(Object arg0) { - return messageFactory.getMessage("sender.nestedError", arg0); - } - - /** - * sender error: {0} - * - */ - public static String SENDER_NESTED_ERROR(Object arg0) { - return localizer.localize(localizableSENDER_NESTED_ERROR(arg0)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new SenderMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableSENDER_REQUEST_MESSAGE_NOT_READY() { - return messageFactory.getMessage("sender.request.messageNotReady"); + return MESSAGE_FACTORY.getMessage("sender.request.messageNotReady"); } /** @@ -92,7 +54,54 @@ public final class SenderMessages { * */ public static String SENDER_REQUEST_MESSAGE_NOT_READY() { - return localizer.localize(localizableSENDER_REQUEST_MESSAGE_NOT_READY()); + return LOCALIZER.localize(localizableSENDER_REQUEST_MESSAGE_NOT_READY()); + } + + public static Localizable localizableSENDER_RESPONSE_CANNOT_DECODE_FAULT_DETAIL() { + return MESSAGE_FACTORY.getMessage("sender.response.cannotDecodeFaultDetail"); + } + + /** + * fault detail cannot be decoded + * + */ + public static String SENDER_RESPONSE_CANNOT_DECODE_FAULT_DETAIL() { + return LOCALIZER.localize(localizableSENDER_RESPONSE_CANNOT_DECODE_FAULT_DETAIL()); + } + + public static Localizable localizableSENDER_REQUEST_ILLEGAL_VALUE_FOR_CONTENT_NEGOTIATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("sender.request.illegalValueForContentNegotiation", arg0); + } + + /** + * illegal value for content negotiation property "{0}" + * + */ + public static String SENDER_REQUEST_ILLEGAL_VALUE_FOR_CONTENT_NEGOTIATION(Object arg0) { + return LOCALIZER.localize(localizableSENDER_REQUEST_ILLEGAL_VALUE_FOR_CONTENT_NEGOTIATION(arg0)); + } + + public static Localizable localizableSENDER_NESTED_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("sender.nestedError", arg0); + } + + /** + * sender error: {0} + * + */ + public static String SENDER_NESTED_ERROR(Object arg0) { + return LOCALIZER.localize(localizableSENDER_NESTED_ERROR(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ServerMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ServerMessages.java index 9059972ac0d..2c7f065fc93 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ServerMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ServerMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,30 +25,276 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class ServerMessages { - private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.server"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, ServerMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.server"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ServerMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); + + public static Localizable localizableDUPLICATE_ABSTRACT_WSDL(Object arg0) { + return MESSAGE_FACTORY.getMessage("duplicate.abstract.wsdl", arg0); + } + + /** + * Metadata has more than one WSDL that has PortType definition for the endpoint. WSDL={0} is one such WSDL. + * + */ + public static String DUPLICATE_ABSTRACT_WSDL(Object arg0) { + return LOCALIZER.localize(localizableDUPLICATE_ABSTRACT_WSDL(arg0)); + } + + public static Localizable localizableNOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("not.know.HttpContext.type", arg0, arg1, arg2); + } + + /** + * Doesn''t support Endpoint.publish({0}). Known context types are {1}, and {2} + * + */ + public static String NOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableNOT_KNOW_HTTP_CONTEXT_TYPE(arg0, arg1, arg2)); + } + + public static Localizable localizableUNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("unsupported.contentType", arg0, arg1); + } + + /** + * Unsupported Content-Type: {0} Supported ones are: {1} + * + */ + public static String UNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableUNSUPPORTED_CONTENT_TYPE(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.not.found", arg0); + } + + /** + * {0} is not found in the WAR file. Package it in the WAR file or correct it in sun-jaxws.xml. + * + */ + public static String RUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_NOT_FOUND(arg0)); + } + + public static Localizable localizableSOAPENCODER_ERR() { + return MESSAGE_FACTORY.getMessage("soapencoder.err"); + } + + /** + * Error in encoding SOAP Message + * + */ + public static String SOAPENCODER_ERR() { + return LOCALIZER.localize(localizableSOAPENCODER_ERR()); + } + + public static Localizable localizableWSDL_REQUIRED() { + return MESSAGE_FACTORY.getMessage("wsdl.required"); + } + + /** + * wsdl is required + * + */ + public static String WSDL_REQUIRED() { + return LOCALIZER.localize(localizableWSDL_REQUIRED()); + } + + public static Localizable localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.noservice.in.wsdlmodel", arg0); + } + + /** + * There is an error in processing the WSDL {0} and no valid services are found. + * + */ + public static String RUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(arg0)); + } + + public static Localizable localizableNULL_IMPLEMENTOR() { + return MESSAGE_FACTORY.getMessage("null.implementor"); + } + + /** + * Implementor cannot be null + * + */ + public static String NULL_IMPLEMENTOR() { + return LOCALIZER.localize(localizableNULL_IMPLEMENTOR()); + } + + public static Localizable localizableSERVER_RT_ERR(Object arg0) { + return MESSAGE_FACTORY.getMessage("server.rt.err", arg0); + } + + /** + * Server Runtime Error: {0} + * + */ + public static String SERVER_RT_ERR(Object arg0) { + return LOCALIZER.localize(localizableSERVER_RT_ERR(arg0)); + } + + public static Localizable localizableWRONG_PARAMETER_TYPE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wrong.parameter.type", arg0); + } + + /** + * Incorrect argument types for method "{0}" + * + */ + public static String WRONG_PARAMETER_TYPE(Object arg0) { + return LOCALIZER.localize(localizableWRONG_PARAMETER_TYPE(arg0)); + } + + public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.incorrectserviceport", arg0, arg1, arg2); + } + + /** + * could not get binding from WSDL! service: {0} or port {1} not found in the WSDL {2}. + * It could be because service and port names do not match WSDL''s wsdl:service and wsdl:port names: + * 1. service and port names are not there in deployment descriptor OR + * 2. Either there is a typo in deployment descriptor''s service and port names OR + * 3. The computed names from @WebService do not match wsdl:service and wsdl:port names + * Suggest doing the following: + * 1. Add/Correct entries for service and port names in deployment descriptor OR + * 2. Specify targetNamespace, serviceName, portName in @WebService on the endpoint class + * + */ + public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(arg0, arg1, arg2)); + } + + public static Localizable localizableRUNTIME_PARSER_XML_READER(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.parser.xmlReader", arg0); + } + + /** + * error parsing runtime descriptor: {0} + * + */ + public static String RUNTIME_PARSER_XML_READER(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_XML_READER(arg0)); + } + + public static Localizable localizableDD_MTOM_CONFLICT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("dd.mtom.conflict", arg0, arg1); + } + + /** + * Error in Deployment Descriptor : MTOM Configuration in binding {0} conflicts with enable-mtom attribute value {1} + * + */ + public static String DD_MTOM_CONFLICT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableDD_MTOM_CONFLICT(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.parser.invalid.attribute.value", arg0, arg1); + } + + /** + * invalid attribute value "{1}" in runtime descriptor (line {0}) + * + */ + public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.saxparser.exception", arg0, arg1); + } + + /** + * {0} + * {1} + * + */ + public static String RUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_SAXPARSER_EXCEPTION(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER() { + return MESSAGE_FACTORY.getMessage("runtime.parser.invalidVersionNumber"); + } + + /** + * unsupported runtime descriptor version: {2} + * + */ + public static String RUNTIME_PARSER_INVALID_VERSION_NUMBER() { + return LOCALIZER.localize(localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER()); + } + + public static Localizable localizableWRONG_TNS_FOR_PORT(Object arg0) { + return MESSAGE_FACTORY.getMessage("wrong.tns.for.port", arg0); + } + + /** + * Port namespace {0} doesn't match Service namespace {1} + * + */ + public static String WRONG_TNS_FOR_PORT(Object arg0) { + return LOCALIZER.localize(localizableWRONG_TNS_FOR_PORT(arg0)); + } + + public static Localizable localizableANNOTATION_ONLY_ONCE(Object arg0) { + return MESSAGE_FACTORY.getMessage("annotation.only.once", arg0); + } + + /** + * Only one method should have the annotation "{0}" + * + */ + public static String ANNOTATION_ONLY_ONCE(Object arg0) { + return LOCALIZER.localize(localizableANNOTATION_ONLY_ONCE(arg0)); + } + + public static Localizable localizableSTATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("stateful.cookie.header.incorrect", arg0, arg1); + } + + /** + * Invalid/expired {0} header value: {1} + * + */ + public static String STATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableSTATEFUL_COOKIE_HEADER_INCORRECT(arg0, arg1)); + } + + public static Localizable localizableSERVICE_NAME_REQUIRED() { + return MESSAGE_FACTORY.getMessage("service.name.required"); + } + + /** + * Service QName is not found + * + */ + public static String SERVICE_NAME_REQUIRED() { + return LOCALIZER.localize(localizableSERVICE_NAME_REQUIRED()); } public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.parser.wsdl.incorrectservice", arg0, arg1); + return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.incorrectservice", arg0, arg1); } /** @@ -65,559 +311,11 @@ public final class ServerMessages { * */ public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(arg0, arg1)); - } - - public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() { - return messageFactory.getMessage("runtime.parser.missing.attribute.no.line"); - } - - /** - * missing attribute "{2}" in element "{1}" of runtime descriptor - * - */ - public static String RUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() { - return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE()); - } - - public static Localizable localizableSTATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) { - return messageFactory.getMessage("stateful.cookie.header.incorrect", arg0, arg1); - } - - /** - * Invalid/expired {0} header value: {1} - * - */ - public static String STATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) { - return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_INCORRECT(arg0, arg1)); - } - - public static Localizable localizableNOT_IMPLEMENT_PROVIDER(Object arg0) { - return messageFactory.getMessage("not.implement.provider", arg0); - } - - /** - * "{0}" doesn't implement Provider - * - */ - public static String NOT_IMPLEMENT_PROVIDER(Object arg0) { - return localizer.localize(localizableNOT_IMPLEMENT_PROVIDER(arg0)); - } - - public static Localizable localizableSTATEFUL_REQURES_ADDRESSING(Object arg0) { - return messageFactory.getMessage("stateful.requres.addressing", arg0); - } - - /** - * Stateful web service {0} requires the WS-Addressing support to be enabled. Perhaps you are missing @Addressing - * - */ - public static String STATEFUL_REQURES_ADDRESSING(Object arg0) { - return localizer.localize(localizableSTATEFUL_REQURES_ADDRESSING(arg0)); - } - - public static Localizable localizableSOAPDECODER_ERR() { - return messageFactory.getMessage("soapdecoder.err"); - } - - /** - * Error in decoding SOAP Message - * - */ - public static String SOAPDECODER_ERR() { - return localizer.localize(localizableSOAPDECODER_ERR()); - } - - public static Localizable localizableGENERATE_NON_STANDARD_WSDL() { - return messageFactory.getMessage("generate.non.standard.wsdl"); - } - - /** - * Generating non-standard WSDL for the specified binding - * - */ - public static String GENERATE_NON_STANDARD_WSDL() { - return localizer.localize(localizableGENERATE_NON_STANDARD_WSDL()); - } - - public static Localizable localizableDISPATCH_CANNOT_FIND_METHOD(Object arg0) { - return messageFactory.getMessage("dispatch.cannotFindMethod", arg0); - } - - /** - * Cannot find dispatch method for {0} - * - */ - public static String DISPATCH_CANNOT_FIND_METHOD(Object arg0) { - return localizer.localize(localizableDISPATCH_CANNOT_FIND_METHOD(arg0)); - } - - public static Localizable localizableNO_CONTENT_TYPE() { - return messageFactory.getMessage("no.contentType"); - } - - /** - * Request doesn't have a Content-Type - * - */ - public static String NO_CONTENT_TYPE() { - return localizer.localize(localizableNO_CONTENT_TYPE()); - } - - public static Localizable localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER() { - return messageFactory.getMessage("runtime.parser.invalidVersionNumber"); - } - - /** - * unsupported runtime descriptor version: {2} - * - */ - public static String RUNTIME_PARSER_INVALID_VERSION_NUMBER() { - return localizer.localize(localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER()); - } - - public static Localizable localizablePROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("provider.invalid.parameterType", arg0, arg1); - } - - /** - * "{0}" implements Provider but its type parameter {1} is incorrect - * - */ - public static String PROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizablePROVIDER_INVALID_PARAMETER_TYPE(arg0, arg1)); - } - - public static Localizable localizableWRONG_NO_PARAMETERS(Object arg0) { - return messageFactory.getMessage("wrong.no.parameters", arg0); - } - - /** - * Incorrect no of arguments for method "{0}" - * - */ - public static String WRONG_NO_PARAMETERS(Object arg0) { - return localizer.localize(localizableWRONG_NO_PARAMETERS(arg0)); - } - - public static Localizable localizableANNOTATION_ONLY_ONCE(Object arg0) { - return messageFactory.getMessage("annotation.only.once", arg0); - } - - /** - * Only one method should have the annotation "{0}" - * - */ - public static String ANNOTATION_ONLY_ONCE(Object arg0) { - return localizer.localize(localizableANNOTATION_ONLY_ONCE(arg0)); - } - - public static Localizable localizableALREADY_HTTPS_SERVER(Object arg0) { - return messageFactory.getMessage("already.https.server", arg0); - } - - /** - * There is already a HTTPS server at : {0} - * - */ - public static String ALREADY_HTTPS_SERVER(Object arg0) { - return localizer.localize(localizableALREADY_HTTPS_SERVER(arg0)); - } - - public static Localizable localizableRUNTIME_PARSER_XML_READER(Object arg0) { - return messageFactory.getMessage("runtime.parser.xmlReader", arg0); - } - - /** - * error parsing runtime descriptor: {0} - * - */ - public static String RUNTIME_PARSER_XML_READER(Object arg0) { - return localizer.localize(localizableRUNTIME_PARSER_XML_READER(arg0)); - } - - public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("runtime.parser.wsdl.incorrectserviceport", arg0, arg1, arg2); - } - - /** - * could not get binding from WSDL! service: {0} or port {1} not found in the WSDL {2}. - * It could be because service and port names do not match WSDL''s wsdl:service and wsdl:port names: - * 1. service and port names are not there in deployment descriptor OR - * 2. Either there is a typo in deployment descriptor''s service and port names OR - * 3. The computed names from @WebService do not match wsdl:service and wsdl:port names - * Suggest doing the following: - * 1. Add/Correct entries for service and port names in deployment descriptor OR - * 2. Specify targetNamespace, serviceName, portName in @WebService on the endpoint class - * - */ - public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(arg0, arg1, arg2)); - } - - public static Localizable localizableSERVER_RT_ERR(Object arg0) { - return messageFactory.getMessage("server.rt.err", arg0); - } - - /** - * Server Runtime Error: {0} - * - */ - public static String SERVER_RT_ERR(Object arg0) { - return localizer.localize(localizableSERVER_RT_ERR(arg0)); - } - - public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("runtime.parser.invalidAttributeValue", arg0, arg1, arg2); - } - - /** - * invalid value for attribute "{2}" of element "{1}" in runtime descriptor (line {0}) - * - */ - public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1, arg2)); - } - - public static Localizable localizableNO_CURRENT_PACKET() { - return messageFactory.getMessage("no.current.packet"); - } - - /** - * This thread is not currently processing any web service request. - * - */ - public static String NO_CURRENT_PACKET() { - return localizer.localize(localizableNO_CURRENT_PACKET()); - } - - public static Localizable localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) { - return messageFactory.getMessage("runtime.parser.unexpectedContent", arg0); - } - - /** - * unexpected content in runtime descriptor (line {0}) - * - */ - public static String RUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) { - return localizer.localize(localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(arg0)); - } - - public static Localizable localizableSTATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) { - return messageFactory.getMessage("stateful.cookie.header.required", arg0); - } - - /** - * This is a stateful web service and {0} header is required. - * - */ - public static String STATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) { - return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_REQUIRED(arg0)); - } - - public static Localizable localizableNULL_IMPLEMENTOR() { - return messageFactory.getMessage("null.implementor"); - } - - /** - * Implementor cannot be null - * - */ - public static String NULL_IMPLEMENTOR() { - return localizer.localize(localizableNULL_IMPLEMENTOR()); - } - - public static Localizable localizableRUNTIME_PARSER_WSDL(Object arg0) { - return messageFactory.getMessage("runtime.parser.wsdl", arg0); - } - - /** - * exception during WSDL parsing: {0} - * - */ - public static String RUNTIME_PARSER_WSDL(Object arg0) { - return localizer.localize(localizableRUNTIME_PARSER_WSDL(arg0)); - } - - public static Localizable localizableSOAPENCODER_ERR() { - return messageFactory.getMessage("soapencoder.err"); - } - - /** - * Error in encoding SOAP Message - * - */ - public static String SOAPENCODER_ERR() { - return localizer.localize(localizableSOAPENCODER_ERR()); - } - - public static Localizable localizableWSDL_REQUIRED() { - return messageFactory.getMessage("wsdl.required"); - } - - /** - * wsdl is required - * - */ - public static String WSDL_REQUIRED() { - return localizer.localize(localizableWSDL_REQUIRED()); - } - - public static Localizable localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) { - return messageFactory.getMessage("runtime.parser.wsdl.noservice.in.wsdlmodel", arg0); - } - - /** - * There is an error in processing the WSDL {0} and no valid services are found. - * - */ - public static String RUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) { - return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(arg0)); - } - - public static Localizable localizablePORT_NAME_REQUIRED() { - return messageFactory.getMessage("port.name.required"); - } - - /** - * Port QName is not found - * - */ - public static String PORT_NAME_REQUIRED() { - return localizer.localize(localizablePORT_NAME_REQUIRED()); - } - - public static Localizable localizableWRONG_TNS_FOR_PORT(Object arg0) { - return messageFactory.getMessage("wrong.tns.for.port", arg0); - } - - /** - * Port namespace {0} doesn't match Service namespace {1} - * - */ - public static String WRONG_TNS_FOR_PORT(Object arg0) { - return localizer.localize(localizableWRONG_TNS_FOR_PORT(arg0)); - } - - public static Localizable localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("runtime.parser.wsdl.multiplebinding", arg0, arg1, arg2); - } - - /** - * multiple bindings found for binding ID {0} for service {1} in WSDL {2} - * - */ - public static String RUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(arg0, arg1, arg2)); - } - - public static Localizable localizableNOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("not.know.HttpContext.type", arg0, arg1, arg2); - } - - /** - * Doesn''t support Endpoint.publish({0}). Known context types are {1}, and {2} - * - */ - public static String NOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableNOT_KNOW_HTTP_CONTEXT_TYPE(arg0, arg1, arg2)); - } - - public static Localizable localizableNON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) { - return messageFactory.getMessage("non.unique.dispatch.qname", arg0, arg1); - } - - /** - * Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signature on the wire for successful dispatch. Methods {0} have the same request body block {1}. Method dispatching may fail, runtime will try to dispatch using SOAPAction. Another option is to enable AddressingFeature to enabled runtime to uniquely identify WSDL operation using wsa:Action header. - * - */ - public static String NON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) { - return localizer.localize(localizableNON_UNIQUE_DISPATCH_QNAME(arg0, arg1)); - } - - public static Localizable localizableALREADY_HTTP_SERVER(Object arg0) { - return messageFactory.getMessage("already.http.server", arg0); - } - - /** - * There is already a HTTP server at : {0}# {0} - probably URL/port of a server - * - */ - public static String ALREADY_HTTP_SERVER(Object arg0) { - return localizer.localize(localizableALREADY_HTTP_SERVER(arg0)); - } - - public static Localizable localizableCAN_NOT_GENERATE_WSDL(Object arg0) { - return messageFactory.getMessage("can.not.generate.wsdl", arg0); - } - - /** - * Cannot generate WSDL for binding "{0}" - * - */ - public static String CAN_NOT_GENERATE_WSDL(Object arg0) { - return localizer.localize(localizableCAN_NOT_GENERATE_WSDL(arg0)); - } - - public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.parser.invalid.attribute.value", arg0, arg1); - } - - /** - * invalid attribute value "{1}" in runtime descriptor (line {0}) - * - */ - public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1)); - } - - public static Localizable localizableRUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("runtime.parser.wrong.element", arg0, arg1, arg2); - } - - /** - * found element "{1}", expected "{2}" in runtime descriptor (line {0}) - * - */ - public static String RUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableRUNTIME_PARSER_WRONG_ELEMENT(arg0, arg1, arg2)); - } - - public static Localizable localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("runtimemodeler.invalidannotationOnImpl", arg0, arg1, arg2); - } - - /** - * Invalid annotation: {0} on endpoint implementation class "{1}" - will be ignored. "{1}" is annotated with @WebService(endpointInterface="{2}"}, it must not be annotated with {0}, to fix it - put this annotation on the SEI {2}. - * - */ - public static String RUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(arg0, arg1, arg2)); - } - - public static Localizable localizableSERVICE_NAME_REQUIRED() { - return messageFactory.getMessage("service.name.required"); - } - - /** - * Service QName is not found - * - */ - public static String SERVICE_NAME_REQUIRED() { - return localizer.localize(localizableSERVICE_NAME_REQUIRED()); - } - - public static Localizable localizablePROVIDER_NOT_PARAMETERIZED(Object arg0) { - return messageFactory.getMessage("provider.not.parameterized", arg0); - } - - /** - * "{0}" implements Provider but doesn't specify the type parameter - * - */ - public static String PROVIDER_NOT_PARAMETERIZED(Object arg0) { - return localizer.localize(localizablePROVIDER_NOT_PARAMETERIZED(arg0)); - } - - public static Localizable localizableRUNTIME_WSDL_PATCHER() { - return messageFactory.getMessage("runtime.wsdl.patcher"); - } - - /** - * error while patching WSDL related document - * - */ - public static String RUNTIME_WSDL_PATCHER() { - return localizer.localize(localizableRUNTIME_WSDL_PATCHER()); - } - - public static Localizable localizableRUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.saxparser.exception", arg0, arg1); - } - - /** - * {0} - * {1} - * - */ - public static String RUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_SAXPARSER_EXCEPTION(arg0, arg1)); - } - - public static Localizable localizableWRONG_PARAMETER_TYPE(Object arg0) { - return messageFactory.getMessage("wrong.parameter.type", arg0); - } - - /** - * Incorrect argument types for method "{0}" - * - */ - public static String WRONG_PARAMETER_TYPE(Object arg0) { - return localizer.localize(localizableWRONG_PARAMETER_TYPE(arg0)); - } - - public static Localizable localizableRUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("runtime.parser.wsdl.not.found", arg0); - } - - /** - * {0} is not found in the WAR file. Package it in the WAR file or correct it in sun-jaxws.xml. - * - */ - public static String RUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) { - return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOT_FOUND(arg0)); - } - - public static Localizable localizableRUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("runtime.parser.classNotFound", arg0); - } - - /** - * class not found in runtime descriptor: {0} - * - */ - public static String RUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) { - return localizer.localize(localizableRUNTIME_PARSER_CLASS_NOT_FOUND(arg0)); - } - - public static Localizable localizableUNSUPPORTED_CHARSET(Object arg0) { - return messageFactory.getMessage("unsupported.charset", arg0); - } - - /** - * Unsupported charset "{0}" in the received message''s Content-Type - * - */ - public static String UNSUPPORTED_CHARSET(Object arg0) { - return localizer.localize(localizableUNSUPPORTED_CHARSET(arg0)); - } - - public static Localizable localizableSTATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) { - return messageFactory.getMessage("static.resource.injection.only", arg0, arg1); - } - - /** - * Static resource {0} cannot be injected to non-static "{1}" - * - */ - public static String STATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) { - return localizer.localize(localizableSTATIC_RESOURCE_INJECTION_ONLY(arg0, arg1)); - } - - public static Localizable localizableNOT_ZERO_PARAMETERS(Object arg0) { - return messageFactory.getMessage("not.zero.parameters", arg0); - } - - /** - * Method "{0}" shouldn''t have any arguments - * - */ - public static String NOT_ZERO_PARAMETERS(Object arg0) { - return localizer.localize(localizableNOT_ZERO_PARAMETERS(arg0)); + return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(arg0, arg1)); } public static Localizable localizableDUPLICATE_PRIMARY_WSDL(Object arg0) { - return messageFactory.getMessage("duplicate.primary.wsdl", arg0); + return MESSAGE_FACTORY.getMessage("duplicate.primary.wsdl", arg0); } /** @@ -625,59 +323,35 @@ public final class ServerMessages { * */ public static String DUPLICATE_PRIMARY_WSDL(Object arg0) { - return localizer.localize(localizableDUPLICATE_PRIMARY_WSDL(arg0)); + return LOCALIZER.localize(localizableDUPLICATE_PRIMARY_WSDL(arg0)); } - public static Localizable localizableDUPLICATE_ABSTRACT_WSDL(Object arg0) { - return messageFactory.getMessage("duplicate.abstract.wsdl", arg0); + public static Localizable localizableGENERATE_NON_STANDARD_WSDL() { + return MESSAGE_FACTORY.getMessage("generate.non.standard.wsdl"); } /** - * Metadata has more than one WSDL that has PortType definition for the endpoint. WSDL={0} is one such WSDL. + * Generating non-standard WSDL for the specified binding * */ - public static String DUPLICATE_ABSTRACT_WSDL(Object arg0) { - return localizer.localize(localizableDUPLICATE_ABSTRACT_WSDL(arg0)); + public static String GENERATE_NON_STANDARD_WSDL() { + return LOCALIZER.localize(localizableGENERATE_NON_STANDARD_WSDL()); } - public static Localizable localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) { - return messageFactory.getMessage("stateful.invalid.webservice.context", arg0); + public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() { + return MESSAGE_FACTORY.getMessage("runtime.parser.missing.attribute.no.line"); } /** - * Not a WebServiceContext from JAX-WS RI: {0} + * missing attribute "{2}" in element "{1}" of runtime descriptor * */ - public static String STATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) { - return localizer.localize(localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(arg0)); - } - - public static Localizable localizableRUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) { - return messageFactory.getMessage("runtime.parser.invalidElement", arg0, arg1); - } - - /** - * invalid element "{1}" in runtime descriptor (line {0}) - * - */ - public static String RUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) { - return localizer.localize(localizableRUNTIME_PARSER_INVALID_ELEMENT(arg0, arg1)); - } - - public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("runtime.parser.missing.attribute", arg0, arg1, arg2); - } - - /** - * missing attribute "{2}" in element "{1}" of runtime descriptor (line {0}) - * - */ - public static String RUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(arg0, arg1, arg2)); + public static String RUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() { + return LOCALIZER.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE()); } public static Localizable localizableWRONG_FIELD_TYPE(Object arg0) { - return messageFactory.getMessage("wrong.field.type", arg0); + return MESSAGE_FACTORY.getMessage("wrong.field.type", arg0); } /** @@ -685,35 +359,11 @@ public final class ServerMessages { * */ public static String WRONG_FIELD_TYPE(Object arg0) { - return localizer.localize(localizableWRONG_FIELD_TYPE(arg0)); - } - - public static Localizable localizableDUPLICATE_PORT_KNOWN_HEADER(Object arg0) { - return messageFactory.getMessage("duplicate.portKnownHeader", arg0); - } - - /** - * Received SOAP message contains duplicate header: {0} for a bound parameter - * - */ - public static String DUPLICATE_PORT_KNOWN_HEADER(Object arg0) { - return localizer.localize(localizableDUPLICATE_PORT_KNOWN_HEADER(arg0)); - } - - public static Localizable localizableUNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("unsupported.contentType", arg0, arg1); - } - - /** - * Unsupported Content-Type: {0} Supported ones are: {1} - * - */ - public static String UNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableUNSUPPORTED_CONTENT_TYPE(arg0, arg1)); + return LOCALIZER.localize(localizableWRONG_FIELD_TYPE(arg0)); } public static Localizable localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("failed.to.instantiate.instanceResolver", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("failed.to.instantiate.instanceResolver", arg0, arg1, arg2); } /** @@ -721,19 +371,378 @@ public final class ServerMessages { * */ public static String FAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(arg0, arg1, arg2)); } - public static Localizable localizableDD_MTOM_CONFLICT(Object arg0, Object arg1) { - return messageFactory.getMessage("dd.mtom.conflict", arg0, arg1); + public static Localizable localizablePROVIDER_NOT_PARAMETERIZED(Object arg0) { + return MESSAGE_FACTORY.getMessage("provider.not.parameterized", arg0); } /** - * Error in Deployment Descriptor : MTOM Configuration in binding {0} conflicts with enable-mtom attribute value {1} + * "{0}" implements Provider but doesn't specify the type parameter * */ - public static String DD_MTOM_CONFLICT(Object arg0, Object arg1) { - return localizer.localize(localizableDD_MTOM_CONFLICT(arg0, arg1)); + public static String PROVIDER_NOT_PARAMETERIZED(Object arg0) { + return LOCALIZER.localize(localizablePROVIDER_NOT_PARAMETERIZED(arg0)); + } + + public static Localizable localizableDISPATCH_CANNOT_FIND_METHOD(Object arg0) { + return MESSAGE_FACTORY.getMessage("dispatch.cannotFindMethod", arg0); + } + + /** + * Cannot find dispatch method for {0} + * + */ + public static String DISPATCH_CANNOT_FIND_METHOD(Object arg0) { + return LOCALIZER.localize(localizableDISPATCH_CANNOT_FIND_METHOD(arg0)); + } + + public static Localizable localizableRUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("runtime.parser.wrong.element", arg0, arg1, arg2); + } + + /** + * found element "{1}", expected "{2}" in runtime descriptor (line {0}) + * + */ + public static String RUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_WRONG_ELEMENT(arg0, arg1, arg2)); + } + + public static Localizable localizableUNSUPPORTED_CHARSET(Object arg0) { + return MESSAGE_FACTORY.getMessage("unsupported.charset", arg0); + } + + /** + * Unsupported charset "{0}" in the received message''s Content-Type + * + */ + public static String UNSUPPORTED_CHARSET(Object arg0) { + return LOCALIZER.localize(localizableUNSUPPORTED_CHARSET(arg0)); + } + + public static Localizable localizableSTATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) { + return MESSAGE_FACTORY.getMessage("stateful.cookie.header.required", arg0); + } + + /** + * This is a stateful web service and {0} header is required. + * + */ + public static String STATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) { + return LOCALIZER.localize(localizableSTATEFUL_COOKIE_HEADER_REQUIRED(arg0)); + } + + public static Localizable localizableRUNTIME_WSDL_PATCHER() { + return MESSAGE_FACTORY.getMessage("runtime.wsdl.patcher"); + } + + /** + * error while patching WSDL related document + * + */ + public static String RUNTIME_WSDL_PATCHER() { + return LOCALIZER.localize(localizableRUNTIME_WSDL_PATCHER()); + } + + public static Localizable localizableSTATEFUL_REQURES_ADDRESSING(Object arg0) { + return MESSAGE_FACTORY.getMessage("stateful.requres.addressing", arg0); + } + + /** + * Stateful web service {0} requires the WS-Addressing support to be enabled. Perhaps you are missing @Addressing + * + */ + public static String STATEFUL_REQURES_ADDRESSING(Object arg0) { + return LOCALIZER.localize(localizableSTATEFUL_REQURES_ADDRESSING(arg0)); + } + + public static Localizable localizableNON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("non.unique.dispatch.qname", arg0, arg1); + } + + /** + * Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signature on the wire for successful dispatch. Methods {0} have the same request body block {1}. Method dispatching may fail, runtime will try to dispatch using SOAPAction. Another option is to enable AddressingFeature to enabled runtime to uniquely identify WSDL operation using wsa:Action header. + * + */ + public static String NON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableNON_UNIQUE_DISPATCH_QNAME(arg0, arg1)); + } + + public static Localizable localizableALREADY_HTTP_SERVER(Object arg0) { + return MESSAGE_FACTORY.getMessage("already.http.server", arg0); + } + + /** + * There is already a HTTP server at : {0}# {0} - probably URL/port of a server + * + */ + public static String ALREADY_HTTP_SERVER(Object arg0) { + return LOCALIZER.localize(localizableALREADY_HTTP_SERVER(arg0)); + } + + public static Localizable localizableWRONG_NO_PARAMETERS(Object arg0) { + return MESSAGE_FACTORY.getMessage("wrong.no.parameters", arg0); + } + + /** + * Incorrect no of arguments for method "{0}" + * + */ + public static String WRONG_NO_PARAMETERS(Object arg0) { + return LOCALIZER.localize(localizableWRONG_NO_PARAMETERS(arg0)); + } + + public static Localizable localizableNOT_ZERO_PARAMETERS(Object arg0) { + return MESSAGE_FACTORY.getMessage("not.zero.parameters", arg0); + } + + /** + * Method "{0}" shouldn''t have any arguments + * + */ + public static String NOT_ZERO_PARAMETERS(Object arg0) { + return LOCALIZER.localize(localizableNOT_ZERO_PARAMETERS(arg0)); + } + + public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("runtime.parser.invalidAttributeValue", arg0, arg1, arg2); + } + + /** + * invalid value for attribute "{2}" of element "{1}" in runtime descriptor (line {0}) + * + */ + public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1, arg2)); + } + + public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("runtime.parser.missing.attribute", arg0, arg1, arg2); + } + + /** + * missing attribute "{2}" in element "{1}" of runtime descriptor (line {0}) + * + */ + public static String RUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(arg0, arg1, arg2)); + } + + public static Localizable localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.parser.unexpectedContent", arg0); + } + + /** + * unexpected content in runtime descriptor (line {0}) + * + */ + public static String RUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(arg0)); + } + + public static Localizable localizableRUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.parser.classNotFound", arg0); + } + + /** + * class not found in runtime descriptor: {0} + * + */ + public static String RUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_CLASS_NOT_FOUND(arg0)); + } + + public static Localizable localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) { + return MESSAGE_FACTORY.getMessage("stateful.invalid.webservice.context", arg0); + } + + /** + * Not a WebServiceContext from JAX-WS RI: {0} + * + */ + public static String STATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) { + return LOCALIZER.localize(localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(arg0)); + } + + public static Localizable localizableNO_CURRENT_PACKET() { + return MESSAGE_FACTORY.getMessage("no.current.packet"); + } + + /** + * This thread is not currently processing any web service request. + * + */ + public static String NO_CURRENT_PACKET() { + return LOCALIZER.localize(localizableNO_CURRENT_PACKET()); + } + + public static Localizable localizableDUPLICATE_PORT_KNOWN_HEADER(Object arg0) { + return MESSAGE_FACTORY.getMessage("duplicate.portKnownHeader", arg0); + } + + /** + * Received SOAP message contains duplicate header: {0} for a bound parameter + * + */ + public static String DUPLICATE_PORT_KNOWN_HEADER(Object arg0) { + return LOCALIZER.localize(localizableDUPLICATE_PORT_KNOWN_HEADER(arg0)); + } + + public static Localizable localizableSTATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("static.resource.injection.only", arg0, arg1); + } + + /** + * Static resource {0} cannot be injected to non-static "{1}" + * + */ + public static String STATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableSTATIC_RESOURCE_INJECTION_ONLY(arg0, arg1)); + } + + public static Localizable localizableCAN_NOT_GENERATE_WSDL(Object arg0) { + return MESSAGE_FACTORY.getMessage("can.not.generate.wsdl", arg0); + } + + /** + * Cannot generate WSDL for binding "{0}" + * + */ + public static String CAN_NOT_GENERATE_WSDL(Object arg0) { + return LOCALIZER.localize(localizableCAN_NOT_GENERATE_WSDL(arg0)); + } + + public static Localizable localizableALREADY_HTTPS_SERVER(Object arg0) { + return MESSAGE_FACTORY.getMessage("already.https.server", arg0); + } + + /** + * There is already a HTTPS server at : {0} + * + */ + public static String ALREADY_HTTPS_SERVER(Object arg0) { + return LOCALIZER.localize(localizableALREADY_HTTPS_SERVER(arg0)); + } + + public static Localizable localizableRUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("runtime.parser.invalidElement", arg0, arg1); + } + + /** + * invalid element "{1}" in runtime descriptor (line {0}) + * + */ + public static String RUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_INVALID_ELEMENT(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.multiplebinding", arg0, arg1, arg2); + } + + /** + * multiple bindings found for binding ID {0} for service {1} in WSDL {2} + * + */ + public static String RUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(arg0, arg1, arg2)); + } + + public static Localizable localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("runtimemodeler.invalidannotationOnImpl", arg0, arg1, arg2); + } + + /** + * Invalid annotation: {0} on endpoint implementation class "{1}" - will be ignored. "{1}" is annotated with @WebService(endpointInterface="{2}"}, it must not be annotated with {0}, to fix it - put this annotation on the SEI {2}. + * + */ + public static String RUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(arg0, arg1, arg2)); + } + + public static Localizable localizablePROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("provider.invalid.parameterType", arg0, arg1); + } + + /** + * "{0}" implements Provider but its type parameter {1} is incorrect + * + */ + public static String PROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizablePROVIDER_INVALID_PARAMETER_TYPE(arg0, arg1)); + } + + public static Localizable localizableRUNTIME_PARSER_WSDL(Object arg0) { + return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl", arg0); + } + + /** + * exception during WSDL parsing: {0} + * + */ + public static String RUNTIME_PARSER_WSDL(Object arg0) { + return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL(arg0)); + } + + public static Localizable localizableNO_CONTENT_TYPE() { + return MESSAGE_FACTORY.getMessage("no.contentType"); + } + + /** + * Request doesn't have a Content-Type + * + */ + public static String NO_CONTENT_TYPE() { + return LOCALIZER.localize(localizableNO_CONTENT_TYPE()); + } + + public static Localizable localizableNOT_IMPLEMENT_PROVIDER(Object arg0) { + return MESSAGE_FACTORY.getMessage("not.implement.provider", arg0); + } + + /** + * "{0}" doesn't implement Provider + * + */ + public static String NOT_IMPLEMENT_PROVIDER(Object arg0) { + return LOCALIZER.localize(localizableNOT_IMPLEMENT_PROVIDER(arg0)); + } + + public static Localizable localizableSOAPDECODER_ERR() { + return MESSAGE_FACTORY.getMessage("soapdecoder.err"); + } + + /** + * Error in decoding SOAP Message + * + */ + public static String SOAPDECODER_ERR() { + return LOCALIZER.localize(localizableSOAPDECODER_ERR()); + } + + public static Localizable localizablePORT_NAME_REQUIRED() { + return MESSAGE_FACTORY.getMessage("port.name.required"); + } + + /** + * Port QName is not found + * + */ + public static String PORT_NAME_REQUIRED() { + return LOCALIZER.localize(localizablePORT_NAME_REQUIRED()); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/SoapMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/SoapMessages.java index 2710db48539..961660cb6be 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/SoapMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/SoapMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,30 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class SoapMessages { - private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.soap"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, SoapMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.soap"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new SoapMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableSOAP_FAULT_CREATE_ERR(Object arg0) { - return messageFactory.getMessage("soap.fault.create.err", arg0); + return MESSAGE_FACTORY.getMessage("soap.fault.create.err", arg0); } /** @@ -56,47 +54,11 @@ public final class SoapMessages { * */ public static String SOAP_FAULT_CREATE_ERR(Object arg0) { - return localizer.localize(localizableSOAP_FAULT_CREATE_ERR(arg0)); - } - - public static Localizable localizableSOAP_MSG_FACTORY_CREATE_ERR(Object arg0) { - return messageFactory.getMessage("soap.msg.factory.create.err", arg0); - } - - /** - * Couldn''t create SOAP message factory due to exception: {0} - * - */ - public static String SOAP_MSG_FACTORY_CREATE_ERR(Object arg0) { - return localizer.localize(localizableSOAP_MSG_FACTORY_CREATE_ERR(arg0)); - } - - public static Localizable localizableSOAP_MSG_CREATE_ERR(Object arg0) { - return messageFactory.getMessage("soap.msg.create.err", arg0); - } - - /** - * Couldn''t create SOAP message due to exception: {0} - * - */ - public static String SOAP_MSG_CREATE_ERR(Object arg0) { - return localizer.localize(localizableSOAP_MSG_CREATE_ERR(arg0)); - } - - public static Localizable localizableSOAP_FACTORY_CREATE_ERR(Object arg0) { - return messageFactory.getMessage("soap.factory.create.err", arg0); - } - - /** - * Couldn''t create SOAP factory due to exception: {0} - * - */ - public static String SOAP_FACTORY_CREATE_ERR(Object arg0) { - return localizer.localize(localizableSOAP_FACTORY_CREATE_ERR(arg0)); + return LOCALIZER.localize(localizableSOAP_FAULT_CREATE_ERR(arg0)); } public static Localizable localizableSOAP_PROTOCOL_INVALID_FAULT_CODE(Object arg0) { - return messageFactory.getMessage("soap.protocol.invalidFaultCode", arg0); + return MESSAGE_FACTORY.getMessage("soap.protocol.invalidFaultCode", arg0); } /** @@ -104,11 +66,11 @@ public final class SoapMessages { * */ public static String SOAP_PROTOCOL_INVALID_FAULT_CODE(Object arg0) { - return localizer.localize(localizableSOAP_PROTOCOL_INVALID_FAULT_CODE(arg0)); + return LOCALIZER.localize(localizableSOAP_PROTOCOL_INVALID_FAULT_CODE(arg0)); } public static Localizable localizableSOAP_VERSION_MISMATCH_ERR(Object arg0, Object arg1) { - return messageFactory.getMessage("soap.version.mismatch.err", arg0, arg1); + return MESSAGE_FACTORY.getMessage("soap.version.mismatch.err", arg0, arg1); } /** @@ -116,7 +78,54 @@ public final class SoapMessages { * */ public static String SOAP_VERSION_MISMATCH_ERR(Object arg0, Object arg1) { - return localizer.localize(localizableSOAP_VERSION_MISMATCH_ERR(arg0, arg1)); + return LOCALIZER.localize(localizableSOAP_VERSION_MISMATCH_ERR(arg0, arg1)); + } + + public static Localizable localizableSOAP_MSG_FACTORY_CREATE_ERR(Object arg0) { + return MESSAGE_FACTORY.getMessage("soap.msg.factory.create.err", arg0); + } + + /** + * Couldn''t create SOAP message factory due to exception: {0} + * + */ + public static String SOAP_MSG_FACTORY_CREATE_ERR(Object arg0) { + return LOCALIZER.localize(localizableSOAP_MSG_FACTORY_CREATE_ERR(arg0)); + } + + public static Localizable localizableSOAP_MSG_CREATE_ERR(Object arg0) { + return MESSAGE_FACTORY.getMessage("soap.msg.create.err", arg0); + } + + /** + * Couldn''t create SOAP message due to exception: {0} + * + */ + public static String SOAP_MSG_CREATE_ERR(Object arg0) { + return LOCALIZER.localize(localizableSOAP_MSG_CREATE_ERR(arg0)); + } + + public static Localizable localizableSOAP_FACTORY_CREATE_ERR(Object arg0) { + return MESSAGE_FACTORY.getMessage("soap.factory.create.err", arg0); + } + + /** + * Couldn''t create SOAP factory due to exception: {0} + * + */ + public static String SOAP_FACTORY_CREATE_ERR(Object arg0) { + return LOCALIZER.localize(localizableSOAP_FACTORY_CREATE_ERR(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/StreamingMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/StreamingMessages.java index 65ce3fefe26..da66bb6465e 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/StreamingMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/StreamingMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,258 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class StreamingMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.streaming"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, StreamingMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableFASTINFOSET_DECODING_NOT_ACCEPTED() { - return messageFactory.getMessage("fastinfoset.decodingNotAccepted"); - } - - /** - * Fast Infoset decoding is not accepted - * - */ - public static String FASTINFOSET_DECODING_NOT_ACCEPTED() { - return localizer.localize(localizableFASTINFOSET_DECODING_NOT_ACCEPTED()); - } - - public static Localizable localizableSTAX_CANT_CREATE() { - return messageFactory.getMessage("stax.cantCreate"); - } - - /** - * Unable to create StAX reader or writer - * - */ - public static String STAX_CANT_CREATE() { - return localizer.localize(localizableSTAX_CANT_CREATE()); - } - - public static Localizable localizableSTREAMING_IO_EXCEPTION(Object arg0) { - return messageFactory.getMessage("streaming.ioException", arg0); - } - - /** - * XML parsing error: {0} - * - */ - public static String STREAMING_IO_EXCEPTION(Object arg0) { - return localizer.localize(localizableSTREAMING_IO_EXCEPTION(arg0)); - } - - public static Localizable localizableSOURCEREADER_INVALID_SOURCE(Object arg0) { - return messageFactory.getMessage("sourcereader.invalidSource", arg0); - } - - /** - * Unable to create reader from source "{0}" - * - */ - public static String SOURCEREADER_INVALID_SOURCE(Object arg0) { - return localizer.localize(localizableSOURCEREADER_INVALID_SOURCE(arg0)); - } - - public static Localizable localizableXMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) { - return messageFactory.getMessage("xmlreader.unexpectedState", arg0, arg1); - } - - /** - * unexpected XML reader state. expected: {0} but found: {1} - * - */ - public static String XMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) { - return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE(arg0, arg1)); - } - - public static Localizable localizableWOODSTOX_CANT_LOAD(Object arg0) { - return messageFactory.getMessage("woodstox.cant.load", arg0); - } - - /** - * Unable to load Woodstox class {0} - * - */ - public static String WOODSTOX_CANT_LOAD(Object arg0) { - return localizer.localize(localizableWOODSTOX_CANT_LOAD(arg0)); - } - - public static Localizable localizableXMLREADER_IO_EXCEPTION(Object arg0) { - return messageFactory.getMessage("xmlreader.ioException", arg0); - } - - /** - * XML reader error: {0} - * - */ - public static String XMLREADER_IO_EXCEPTION(Object arg0) { - return localizer.localize(localizableXMLREADER_IO_EXCEPTION(arg0)); - } - - public static Localizable localizableFASTINFOSET_NO_IMPLEMENTATION() { - return messageFactory.getMessage("fastinfoset.noImplementation"); - } - - /** - * Unable to locate compatible implementation of Fast Infoset in classpath - * - */ - public static String FASTINFOSET_NO_IMPLEMENTATION() { - return localizer.localize(localizableFASTINFOSET_NO_IMPLEMENTATION()); - } - - public static Localizable localizableINVALID_PROPERTY_VALUE_INTEGER(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("invalid.property.value.integer", arg0, arg1, arg2); - } - - /** - * Ignoring system property "{0}" as value "{1}" is invalid, property value must be a valid integer. Using default value "{2}". - * - */ - public static String INVALID_PROPERTY_VALUE_INTEGER(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableINVALID_PROPERTY_VALUE_INTEGER(arg0, arg1, arg2)); - } - - public static Localizable localizableXMLWRITER_IO_EXCEPTION(Object arg0) { - return messageFactory.getMessage("xmlwriter.ioException", arg0); - } - - /** - * XML writer error: {0} - * - */ - public static String XMLWRITER_IO_EXCEPTION(Object arg0) { - return localizer.localize(localizableXMLWRITER_IO_EXCEPTION(arg0)); - } - - public static Localizable localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) { - return messageFactory.getMessage("xmlreader.unexpectedCharacterContent", arg0); - } - - /** - * XML reader error: unexpected character content: "{0}" - * - */ - public static String XMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) { - return localizer.localize(localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(arg0)); - } - - public static Localizable localizableSTREAMING_PARSE_EXCEPTION(Object arg0) { - return messageFactory.getMessage("streaming.parseException", arg0); - } - - /** - * XML parsing error: {0} - * - */ - public static String STREAMING_PARSE_EXCEPTION(Object arg0) { - return localizer.localize(localizableSTREAMING_PARSE_EXCEPTION(arg0)); - } - - public static Localizable localizableXMLWRITER_NO_PREFIX_FOR_URI(Object arg0) { - return messageFactory.getMessage("xmlwriter.noPrefixForURI", arg0); - } - - /** - * XML writer error: no prefix for URI: "{0}" - * - */ - public static String XMLWRITER_NO_PREFIX_FOR_URI(Object arg0) { - return localizer.localize(localizableXMLWRITER_NO_PREFIX_FOR_URI(arg0)); - } - - public static Localizable localizableXMLREADER_NESTED_ERROR(Object arg0) { - return messageFactory.getMessage("xmlreader.nestedError", arg0); - } - - /** - * XML reader error: {0} - * - */ - public static String XMLREADER_NESTED_ERROR(Object arg0) { - return localizer.localize(localizableXMLREADER_NESTED_ERROR(arg0)); - } - - public static Localizable localizableINVALID_PROPERTY_VALUE_LONG(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("invalid.property.value.long", arg0, arg1, arg2); - } - - /** - * Ignoring system property "{0}" as value "{1}" is invalid, property value must be a valid long. Using default value "{2}". - * - */ - public static String INVALID_PROPERTY_VALUE_LONG(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableINVALID_PROPERTY_VALUE_LONG(arg0, arg1, arg2)); - } - - public static Localizable localizableSTAXREADER_XMLSTREAMEXCEPTION(Object arg0) { - return messageFactory.getMessage("staxreader.xmlstreamexception", arg0); - } - - /** - * XML stream reader exception: {0} - * - */ - public static String STAXREADER_XMLSTREAMEXCEPTION(Object arg0) { - return localizer.localize(localizableSTAXREADER_XMLSTREAMEXCEPTION(arg0)); - } - - public static Localizable localizableXMLWRITER_NESTED_ERROR(Object arg0) { - return messageFactory.getMessage("xmlwriter.nestedError", arg0); - } - - /** - * XML writer error: {0} - * - */ - public static String XMLWRITER_NESTED_ERROR(Object arg0) { - return localizer.localize(localizableXMLWRITER_NESTED_ERROR(arg0)); - } - - public static Localizable localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) { - return messageFactory.getMessage("xmlreader.illegalStateEncountered", arg0); - } - - /** - * XML reader internal error: illegal state ({0}) - * - */ - public static String XMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) { - return localizer.localize(localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(arg0)); - } - - public static Localizable localizableXMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) { - return messageFactory.getMessage("xmlreader.unexpectedState.tag", arg0, arg1); - } - - /** - * unexpected XML tag. expected: {0} but found: {1} - * - */ - public static String XMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) { - return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE_TAG(arg0, arg1)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new StreamingMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableXMLREADER_UNEXPECTED_STATE_MESSAGE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("xmlreader.unexpectedState.message", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("xmlreader.unexpectedState.message", arg0, arg1, arg2); } /** @@ -284,23 +54,11 @@ public final class StreamingMessages { * */ public static String XMLREADER_UNEXPECTED_STATE_MESSAGE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE_MESSAGE(arg0, arg1, arg2)); - } - - public static Localizable localizableXMLREADER_PARSE_EXCEPTION(Object arg0) { - return messageFactory.getMessage("xmlreader.parseException", arg0); - } - - /** - * XML parsing error: {0} - * - */ - public static String XMLREADER_PARSE_EXCEPTION(Object arg0) { - return localizer.localize(localizableXMLREADER_PARSE_EXCEPTION(arg0)); + return LOCALIZER.localize(localizableXMLREADER_UNEXPECTED_STATE_MESSAGE(arg0, arg1, arg2)); } public static Localizable localizableXMLRECORDER_RECORDING_ENDED() { - return messageFactory.getMessage("xmlrecorder.recording.ended"); + return MESSAGE_FACTORY.getMessage("xmlrecorder.recording.ended"); } /** @@ -308,7 +66,258 @@ public final class StreamingMessages { * */ public static String XMLRECORDER_RECORDING_ENDED() { - return localizer.localize(localizableXMLRECORDER_RECORDING_ENDED()); + return LOCALIZER.localize(localizableXMLRECORDER_RECORDING_ENDED()); + } + + public static Localizable localizableXMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("xmlreader.unexpectedState.tag", arg0, arg1); + } + + /** + * unexpected XML tag. expected: {0} but found: {1} + * + */ + public static String XMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableXMLREADER_UNEXPECTED_STATE_TAG(arg0, arg1)); + } + + public static Localizable localizableFASTINFOSET_NO_IMPLEMENTATION() { + return MESSAGE_FACTORY.getMessage("fastinfoset.noImplementation"); + } + + /** + * Unable to locate compatible implementation of Fast Infoset in classpath + * + */ + public static String FASTINFOSET_NO_IMPLEMENTATION() { + return LOCALIZER.localize(localizableFASTINFOSET_NO_IMPLEMENTATION()); + } + + public static Localizable localizableXMLREADER_NESTED_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("xmlreader.nestedError", arg0); + } + + /** + * XML reader error: {0} + * + */ + public static String XMLREADER_NESTED_ERROR(Object arg0) { + return LOCALIZER.localize(localizableXMLREADER_NESTED_ERROR(arg0)); + } + + public static Localizable localizableWOODSTOX_CANT_LOAD(Object arg0) { + return MESSAGE_FACTORY.getMessage("woodstox.cant.load", arg0); + } + + /** + * Unable to load Woodstox class {0} + * + */ + public static String WOODSTOX_CANT_LOAD(Object arg0) { + return LOCALIZER.localize(localizableWOODSTOX_CANT_LOAD(arg0)); + } + + public static Localizable localizableSOURCEREADER_INVALID_SOURCE(Object arg0) { + return MESSAGE_FACTORY.getMessage("sourcereader.invalidSource", arg0); + } + + /** + * Unable to create reader from source "{0}" + * + */ + public static String SOURCEREADER_INVALID_SOURCE(Object arg0) { + return LOCALIZER.localize(localizableSOURCEREADER_INVALID_SOURCE(arg0)); + } + + public static Localizable localizableINVALID_PROPERTY_VALUE_INTEGER(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("invalid.property.value.integer", arg0, arg1, arg2); + } + + /** + * Ignoring system property "{0}" as value "{1}" is invalid, property value must be a valid integer. Using default value "{2}". + * + */ + public static String INVALID_PROPERTY_VALUE_INTEGER(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableINVALID_PROPERTY_VALUE_INTEGER(arg0, arg1, arg2)); + } + + public static Localizable localizableXMLWRITER_NO_PREFIX_FOR_URI(Object arg0) { + return MESSAGE_FACTORY.getMessage("xmlwriter.noPrefixForURI", arg0); + } + + /** + * XML writer error: no prefix for URI: "{0}" + * + */ + public static String XMLWRITER_NO_PREFIX_FOR_URI(Object arg0) { + return LOCALIZER.localize(localizableXMLWRITER_NO_PREFIX_FOR_URI(arg0)); + } + + public static Localizable localizableSTREAMING_PARSE_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("streaming.parseException", arg0); + } + + /** + * XML parsing error: {0} + * + */ + public static String STREAMING_PARSE_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizableSTREAMING_PARSE_EXCEPTION(arg0)); + } + + public static Localizable localizableXMLREADER_IO_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("xmlreader.ioException", arg0); + } + + /** + * XML reader error: {0} + * + */ + public static String XMLREADER_IO_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizableXMLREADER_IO_EXCEPTION(arg0)); + } + + public static Localizable localizableFASTINFOSET_DECODING_NOT_ACCEPTED() { + return MESSAGE_FACTORY.getMessage("fastinfoset.decodingNotAccepted"); + } + + /** + * Fast Infoset decoding is not accepted + * + */ + public static String FASTINFOSET_DECODING_NOT_ACCEPTED() { + return LOCALIZER.localize(localizableFASTINFOSET_DECODING_NOT_ACCEPTED()); + } + + public static Localizable localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) { + return MESSAGE_FACTORY.getMessage("xmlreader.illegalStateEncountered", arg0); + } + + /** + * XML reader internal error: illegal state ({0}) + * + */ + public static String XMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) { + return LOCALIZER.localize(localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(arg0)); + } + + public static Localizable localizableSTAX_CANT_CREATE() { + return MESSAGE_FACTORY.getMessage("stax.cantCreate"); + } + + /** + * Unable to create StAX reader or writer + * + */ + public static String STAX_CANT_CREATE() { + return LOCALIZER.localize(localizableSTAX_CANT_CREATE()); + } + + public static Localizable localizableSTAXREADER_XMLSTREAMEXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("staxreader.xmlstreamexception", arg0); + } + + /** + * XML stream reader exception: {0} + * + */ + public static String STAXREADER_XMLSTREAMEXCEPTION(Object arg0) { + return LOCALIZER.localize(localizableSTAXREADER_XMLSTREAMEXCEPTION(arg0)); + } + + public static Localizable localizableXMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("xmlreader.unexpectedState", arg0, arg1); + } + + /** + * unexpected XML reader state. expected: {0} but found: {1} + * + */ + public static String XMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableXMLREADER_UNEXPECTED_STATE(arg0, arg1)); + } + + public static Localizable localizableINVALID_PROPERTY_VALUE_LONG(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("invalid.property.value.long", arg0, arg1, arg2); + } + + /** + * Ignoring system property "{0}" as value "{1}" is invalid, property value must be a valid long. Using default value "{2}". + * + */ + public static String INVALID_PROPERTY_VALUE_LONG(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableINVALID_PROPERTY_VALUE_LONG(arg0, arg1, arg2)); + } + + public static Localizable localizableSTREAMING_IO_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("streaming.ioException", arg0); + } + + /** + * XML parsing error: {0} + * + */ + public static String STREAMING_IO_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizableSTREAMING_IO_EXCEPTION(arg0)); + } + + public static Localizable localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) { + return MESSAGE_FACTORY.getMessage("xmlreader.unexpectedCharacterContent", arg0); + } + + /** + * XML reader error: unexpected character content: "{0}" + * + */ + public static String XMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) { + return LOCALIZER.localize(localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(arg0)); + } + + public static Localizable localizableXMLWRITER_NESTED_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("xmlwriter.nestedError", arg0); + } + + /** + * XML writer error: {0} + * + */ + public static String XMLWRITER_NESTED_ERROR(Object arg0) { + return LOCALIZER.localize(localizableXMLWRITER_NESTED_ERROR(arg0)); + } + + public static Localizable localizableXMLWRITER_IO_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("xmlwriter.ioException", arg0); + } + + /** + * XML writer error: {0} + * + */ + public static String XMLWRITER_IO_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizableXMLWRITER_IO_EXCEPTION(arg0)); + } + + public static Localizable localizableXMLREADER_PARSE_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("xmlreader.parseException", arg0); + } + + /** + * XML parsing error: {0} + * + */ + public static String XMLREADER_PARSE_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizableXMLREADER_PARSE_EXCEPTION(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/TubelineassemblyMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/TubelineassemblyMessages.java index e1842a79f19..ab5786c75ee 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/TubelineassemblyMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/TubelineassemblyMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,90 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class TubelineassemblyMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.tubelineassembly"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, TubelineassemblyMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableMASM_0019_MSG_LOGGING_SYSTEM_PROPERTY_ILLEGAL_VALUE(Object arg0, Object arg1) { - return messageFactory.getMessage("MASM0019_MSG_LOGGING_SYSTEM_PROPERTY_ILLEGAL_VALUE", arg0, arg1); - } - - /** - * MASM0019: Illegal logging level value "{1}" stored in the {0} message logging system property. Using default logging level. - * - */ - public static String MASM_0019_MSG_LOGGING_SYSTEM_PROPERTY_ILLEGAL_VALUE(Object arg0, Object arg1) { - return localizer.localize(localizableMASM_0019_MSG_LOGGING_SYSTEM_PROPERTY_ILLEGAL_VALUE(arg0, arg1)); - } - - public static Localizable localizableMASM_0009_CANNOT_FORM_VALID_URL(Object arg0) { - return messageFactory.getMessage("MASM0009_CANNOT_FORM_VALID_URL", arg0); - } - - /** - * MASM0009: Cannot form a valid URL from the resource name "{0}". For more details see the nested exception. - * - */ - public static String MASM_0009_CANNOT_FORM_VALID_URL(Object arg0) { - return localizer.localize(localizableMASM_0009_CANNOT_FORM_VALID_URL(arg0)); - } - - public static Localizable localizableMASM_0005_NO_DEFAULT_TUBELINE_IN_DEFAULT_CFG_FILE(Object arg0) { - return messageFactory.getMessage("MASM0005_NO_DEFAULT_TUBELINE_IN_DEFAULT_CFG_FILE", arg0); - } - - /** - * MASM0005: No default tubeline is defined in the default [ {0} ] configuration file - * - */ - public static String MASM_0005_NO_DEFAULT_TUBELINE_IN_DEFAULT_CFG_FILE(Object arg0) { - return localizer.localize(localizableMASM_0005_NO_DEFAULT_TUBELINE_IN_DEFAULT_CFG_FILE(arg0)); - } - - public static Localizable localizableMASM_0003_DEFAULT_CFG_FILE_NOT_LOADED(Object arg0) { - return messageFactory.getMessage("MASM0003_DEFAULT_CFG_FILE_NOT_LOADED", arg0); - } - - /** - * MASM0003: Default [ {0} ] configuration file was not loaded - * - */ - public static String MASM_0003_DEFAULT_CFG_FILE_NOT_LOADED(Object arg0) { - return localizer.localize(localizableMASM_0003_DEFAULT_CFG_FILE_NOT_LOADED(arg0)); - } - - public static Localizable localizableMASM_0018_MSG_LOGGING_SYSTEM_PROPERTY_SET_TO_VALUE(Object arg0, Object arg1) { - return messageFactory.getMessage("MASM0018_MSG_LOGGING_SYSTEM_PROPERTY_SET_TO_VALUE", arg0, arg1); - } - - /** - * MASM0018: Message logging {0} system property detected to be set to value {1} - * - */ - public static String MASM_0018_MSG_LOGGING_SYSTEM_PROPERTY_SET_TO_VALUE(Object arg0, Object arg1) { - return localizer.localize(localizableMASM_0018_MSG_LOGGING_SYSTEM_PROPERTY_SET_TO_VALUE(arg0, arg1)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new TubelineassemblyMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableMASM_0001_DEFAULT_CFG_FILE_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("MASM0001_DEFAULT_CFG_FILE_NOT_FOUND", arg0); + return MESSAGE_FACTORY.getMessage("MASM0001_DEFAULT_CFG_FILE_NOT_FOUND", arg0); } /** @@ -116,155 +54,11 @@ public final class TubelineassemblyMessages { * */ public static String MASM_0001_DEFAULT_CFG_FILE_NOT_FOUND(Object arg0) { - return localizer.localize(localizableMASM_0001_DEFAULT_CFG_FILE_NOT_FOUND(arg0)); - } - - public static Localizable localizableMASM_0020_ERROR_CREATING_URI_FROM_GENERATED_STRING(Object arg0) { - return messageFactory.getMessage("MASM0020_ERROR_CREATING_URI_FROM_GENERATED_STRING", arg0); - } - - /** - * MASM0020: Unable to create a new URI instance for generated endpoint URI string [ {0} ] - * - */ - public static String MASM_0020_ERROR_CREATING_URI_FROM_GENERATED_STRING(Object arg0) { - return localizer.localize(localizableMASM_0020_ERROR_CREATING_URI_FROM_GENERATED_STRING(arg0)); - } - - public static Localizable localizableMASM_0016_UNABLE_TO_INSTANTIATE_TUBE_FACTORY(Object arg0) { - return messageFactory.getMessage("MASM0016_UNABLE_TO_INSTANTIATE_TUBE_FACTORY", arg0); - } - - /** - * MASM0016: Unable to instantiate Tube factory class [ {0} ] - * - */ - public static String MASM_0016_UNABLE_TO_INSTANTIATE_TUBE_FACTORY(Object arg0) { - return localizer.localize(localizableMASM_0016_UNABLE_TO_INSTANTIATE_TUBE_FACTORY(arg0)); - } - - public static Localizable localizableMASM_0012_LOADING_VIA_SERVLET_CONTEXT(Object arg0, Object arg1) { - return messageFactory.getMessage("MASM0012_LOADING_VIA_SERVLET_CONTEXT", arg0, arg1); - } - - /** - * MASM0012: Trying to load [ {0} ] via servlet context [ {1} ] - * - */ - public static String MASM_0012_LOADING_VIA_SERVLET_CONTEXT(Object arg0, Object arg1) { - return localizer.localize(localizableMASM_0012_LOADING_VIA_SERVLET_CONTEXT(arg0, arg1)); - } - - public static Localizable localizableMASM_0010_ERROR_READING_CFG_FILE_FROM_LOCATION(Object arg0) { - return messageFactory.getMessage("MASM0010_ERROR_READING_CFG_FILE_FROM_LOCATION", arg0); - } - - /** - * MASM0010: Unable to unmarshall metro config file from location [ {0} ] - * - */ - public static String MASM_0010_ERROR_READING_CFG_FILE_FROM_LOCATION(Object arg0) { - return localizer.localize(localizableMASM_0010_ERROR_READING_CFG_FILE_FROM_LOCATION(arg0)); - } - - public static Localizable localizableMASM_0004_NO_TUBELINES_SECTION_IN_DEFAULT_CFG_FILE(Object arg0) { - return messageFactory.getMessage("MASM0004_NO_TUBELINES_SECTION_IN_DEFAULT_CFG_FILE", arg0); - } - - /** - * MASM0004: No section found in the default [ {0} ] configuration file - * - */ - public static String MASM_0004_NO_TUBELINES_SECTION_IN_DEFAULT_CFG_FILE(Object arg0) { - return localizer.localize(localizableMASM_0004_NO_TUBELINES_SECTION_IN_DEFAULT_CFG_FILE(arg0)); - } - - public static Localizable localizableMASM_0013_ERROR_INVOKING_SERVLET_CONTEXT_METHOD(Object arg0) { - return messageFactory.getMessage("MASM0013_ERROR_INVOKING_SERVLET_CONTEXT_METHOD", arg0); - } - - /** - * MASM0013: Unable to invoke {0} method on servlet context instance - * - */ - public static String MASM_0013_ERROR_INVOKING_SERVLET_CONTEXT_METHOD(Object arg0) { - return localizer.localize(localizableMASM_0013_ERROR_INVOKING_SERVLET_CONTEXT_METHOD(arg0)); - } - - public static Localizable localizableMASM_0007_APP_CFG_FILE_NOT_FOUND() { - return messageFactory.getMessage("MASM0007_APP_CFG_FILE_NOT_FOUND"); - } - - /** - * MASM0007: No application metro.xml configuration file found. - * - */ - public static String MASM_0007_APP_CFG_FILE_NOT_FOUND() { - return localizer.localize(localizableMASM_0007_APP_CFG_FILE_NOT_FOUND()); - } - - public static Localizable localizableMASM_0002_DEFAULT_CFG_FILE_LOCATED(Object arg0, Object arg1) { - return messageFactory.getMessage("MASM0002_DEFAULT_CFG_FILE_LOCATED", arg0, arg1); - } - - /** - * MASM0002: Default [ {0} ] configuration file located at [ {1} ] - * - */ - public static String MASM_0002_DEFAULT_CFG_FILE_LOCATED(Object arg0, Object arg1) { - return localizer.localize(localizableMASM_0002_DEFAULT_CFG_FILE_LOCATED(arg0, arg1)); - } - - public static Localizable localizableMASM_0014_UNABLE_TO_LOAD_CLASS(Object arg0) { - return messageFactory.getMessage("MASM0014_UNABLE_TO_LOAD_CLASS", arg0); - } - - /** - * MASM0014: Unable to load [ {0} ] class - * - */ - public static String MASM_0014_UNABLE_TO_LOAD_CLASS(Object arg0) { - return localizer.localize(localizableMASM_0014_UNABLE_TO_LOAD_CLASS(arg0)); - } - - public static Localizable localizableMASM_0006_APP_CFG_FILE_LOCATED(Object arg0) { - return messageFactory.getMessage("MASM0006_APP_CFG_FILE_LOCATED", arg0); - } - - /** - * MASM0006: Application metro.xml configuration file located at [ {0} ] - * - */ - public static String MASM_0006_APP_CFG_FILE_LOCATED(Object arg0) { - return localizer.localize(localizableMASM_0006_APP_CFG_FILE_LOCATED(arg0)); - } - - public static Localizable localizableMASM_0017_UNABLE_TO_LOAD_TUBE_FACTORY_CLASS(Object arg0) { - return messageFactory.getMessage("MASM0017_UNABLE_TO_LOAD_TUBE_FACTORY_CLASS", arg0); - } - - /** - * MASM0017: Unable to load Tube factory class [ {0} ] - * - */ - public static String MASM_0017_UNABLE_TO_LOAD_TUBE_FACTORY_CLASS(Object arg0) { - return localizer.localize(localizableMASM_0017_UNABLE_TO_LOAD_TUBE_FACTORY_CLASS(arg0)); - } - - public static Localizable localizableMASM_0008_INVALID_URI_REFERENCE(Object arg0) { - return messageFactory.getMessage("MASM0008_INVALID_URI_REFERENCE", arg0); - } - - /** - * MASM0008: Invalid URI reference [ {0} ] - * - */ - public static String MASM_0008_INVALID_URI_REFERENCE(Object arg0) { - return localizer.localize(localizableMASM_0008_INVALID_URI_REFERENCE(arg0)); + return LOCALIZER.localize(localizableMASM_0001_DEFAULT_CFG_FILE_NOT_FOUND(arg0)); } public static Localizable localizableMASM_0011_LOADING_RESOURCE(Object arg0, Object arg1) { - return messageFactory.getMessage("MASM0011_LOADING_RESOURCE", arg0, arg1); + return MESSAGE_FACTORY.getMessage("MASM0011_LOADING_RESOURCE", arg0, arg1); } /** @@ -272,11 +66,95 @@ public final class TubelineassemblyMessages { * */ public static String MASM_0011_LOADING_RESOURCE(Object arg0, Object arg1) { - return localizer.localize(localizableMASM_0011_LOADING_RESOURCE(arg0, arg1)); + return LOCALIZER.localize(localizableMASM_0011_LOADING_RESOURCE(arg0, arg1)); + } + + public static Localizable localizableMASM_0012_LOADING_VIA_SERVLET_CONTEXT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("MASM0012_LOADING_VIA_SERVLET_CONTEXT", arg0, arg1); + } + + /** + * MASM0012: Trying to load [ {0} ] via servlet context [ {1} ] + * + */ + public static String MASM_0012_LOADING_VIA_SERVLET_CONTEXT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMASM_0012_LOADING_VIA_SERVLET_CONTEXT(arg0, arg1)); + } + + public static Localizable localizableMASM_0002_DEFAULT_CFG_FILE_LOCATED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("MASM0002_DEFAULT_CFG_FILE_LOCATED", arg0, arg1); + } + + /** + * MASM0002: Default [ {0} ] configuration file located at [ {1} ] + * + */ + public static String MASM_0002_DEFAULT_CFG_FILE_LOCATED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMASM_0002_DEFAULT_CFG_FILE_LOCATED(arg0, arg1)); + } + + public static Localizable localizableMASM_0007_APP_CFG_FILE_NOT_FOUND() { + return MESSAGE_FACTORY.getMessage("MASM0007_APP_CFG_FILE_NOT_FOUND"); + } + + /** + * MASM0007: No application metro.xml configuration file found. + * + */ + public static String MASM_0007_APP_CFG_FILE_NOT_FOUND() { + return LOCALIZER.localize(localizableMASM_0007_APP_CFG_FILE_NOT_FOUND()); + } + + public static Localizable localizableMASM_0006_APP_CFG_FILE_LOCATED(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0006_APP_CFG_FILE_LOCATED", arg0); + } + + /** + * MASM0006: Application metro.xml configuration file located at [ {0} ] + * + */ + public static String MASM_0006_APP_CFG_FILE_LOCATED(Object arg0) { + return LOCALIZER.localize(localizableMASM_0006_APP_CFG_FILE_LOCATED(arg0)); + } + + public static Localizable localizableMASM_0018_MSG_LOGGING_SYSTEM_PROPERTY_SET_TO_VALUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("MASM0018_MSG_LOGGING_SYSTEM_PROPERTY_SET_TO_VALUE", arg0, arg1); + } + + /** + * MASM0018: Message logging {0} system property detected to be set to value {1} + * + */ + public static String MASM_0018_MSG_LOGGING_SYSTEM_PROPERTY_SET_TO_VALUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMASM_0018_MSG_LOGGING_SYSTEM_PROPERTY_SET_TO_VALUE(arg0, arg1)); + } + + public static Localizable localizableMASM_0003_DEFAULT_CFG_FILE_NOT_LOADED(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0003_DEFAULT_CFG_FILE_NOT_LOADED", arg0); + } + + /** + * MASM0003: Default [ {0} ] configuration file was not loaded + * + */ + public static String MASM_0003_DEFAULT_CFG_FILE_NOT_LOADED(Object arg0) { + return LOCALIZER.localize(localizableMASM_0003_DEFAULT_CFG_FILE_NOT_LOADED(arg0)); + } + + public static Localizable localizableMASM_0004_NO_TUBELINES_SECTION_IN_DEFAULT_CFG_FILE(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0004_NO_TUBELINES_SECTION_IN_DEFAULT_CFG_FILE", arg0); + } + + /** + * MASM0004: No section found in the default [ {0} ] configuration file + * + */ + public static String MASM_0004_NO_TUBELINES_SECTION_IN_DEFAULT_CFG_FILE(Object arg0) { + return LOCALIZER.localize(localizableMASM_0004_NO_TUBELINES_SECTION_IN_DEFAULT_CFG_FILE(arg0)); } public static Localizable localizableMASM_0015_CLASS_DOES_NOT_IMPLEMENT_INTERFACE(Object arg0, Object arg1) { - return messageFactory.getMessage("MASM0015_CLASS_DOES_NOT_IMPLEMENT_INTERFACE", arg0, arg1); + return MESSAGE_FACTORY.getMessage("MASM0015_CLASS_DOES_NOT_IMPLEMENT_INTERFACE", arg0, arg1); } /** @@ -284,7 +162,138 @@ public final class TubelineassemblyMessages { * */ public static String MASM_0015_CLASS_DOES_NOT_IMPLEMENT_INTERFACE(Object arg0, Object arg1) { - return localizer.localize(localizableMASM_0015_CLASS_DOES_NOT_IMPLEMENT_INTERFACE(arg0, arg1)); + return LOCALIZER.localize(localizableMASM_0015_CLASS_DOES_NOT_IMPLEMENT_INTERFACE(arg0, arg1)); + } + + public static Localizable localizableMASM_0020_ERROR_CREATING_URI_FROM_GENERATED_STRING(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0020_ERROR_CREATING_URI_FROM_GENERATED_STRING", arg0); + } + + /** + * MASM0020: Unable to create a new URI instance for generated endpoint URI string [ {0} ] + * + */ + public static String MASM_0020_ERROR_CREATING_URI_FROM_GENERATED_STRING(Object arg0) { + return LOCALIZER.localize(localizableMASM_0020_ERROR_CREATING_URI_FROM_GENERATED_STRING(arg0)); + } + + public static Localizable localizableMASM_0008_INVALID_URI_REFERENCE(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0008_INVALID_URI_REFERENCE", arg0); + } + + /** + * MASM0008: Invalid URI reference [ {0} ] + * + */ + public static String MASM_0008_INVALID_URI_REFERENCE(Object arg0) { + return LOCALIZER.localize(localizableMASM_0008_INVALID_URI_REFERENCE(arg0)); + } + + public static Localizable localizableMASM_0016_UNABLE_TO_INSTANTIATE_TUBE_FACTORY(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0016_UNABLE_TO_INSTANTIATE_TUBE_FACTORY", arg0); + } + + /** + * MASM0016: Unable to instantiate Tube factory class [ {0} ] + * + */ + public static String MASM_0016_UNABLE_TO_INSTANTIATE_TUBE_FACTORY(Object arg0) { + return LOCALIZER.localize(localizableMASM_0016_UNABLE_TO_INSTANTIATE_TUBE_FACTORY(arg0)); + } + + public static Localizable localizableMASM_0010_ERROR_READING_CFG_FILE_FROM_LOCATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0010_ERROR_READING_CFG_FILE_FROM_LOCATION", arg0); + } + + /** + * MASM0010: Unable to unmarshall metro config file from location [ {0} ] + * + */ + public static String MASM_0010_ERROR_READING_CFG_FILE_FROM_LOCATION(Object arg0) { + return LOCALIZER.localize(localizableMASM_0010_ERROR_READING_CFG_FILE_FROM_LOCATION(arg0)); + } + + public static Localizable localizableMASM_0005_NO_DEFAULT_TUBELINE_IN_DEFAULT_CFG_FILE(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0005_NO_DEFAULT_TUBELINE_IN_DEFAULT_CFG_FILE", arg0); + } + + /** + * MASM0005: No default tubeline is defined in the default [ {0} ] configuration file + * + */ + public static String MASM_0005_NO_DEFAULT_TUBELINE_IN_DEFAULT_CFG_FILE(Object arg0) { + return LOCALIZER.localize(localizableMASM_0005_NO_DEFAULT_TUBELINE_IN_DEFAULT_CFG_FILE(arg0)); + } + + public static Localizable localizableMASM_0014_UNABLE_TO_LOAD_CLASS(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0014_UNABLE_TO_LOAD_CLASS", arg0); + } + + /** + * MASM0014: Unable to load [ {0} ] class + * + */ + public static String MASM_0014_UNABLE_TO_LOAD_CLASS(Object arg0) { + return LOCALIZER.localize(localizableMASM_0014_UNABLE_TO_LOAD_CLASS(arg0)); + } + + public static Localizable localizableMASM_0013_ERROR_INVOKING_SERVLET_CONTEXT_METHOD(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0013_ERROR_INVOKING_SERVLET_CONTEXT_METHOD", arg0); + } + + /** + * MASM0013: Unable to invoke {0} method on servlet context instance + * + */ + public static String MASM_0013_ERROR_INVOKING_SERVLET_CONTEXT_METHOD(Object arg0) { + return LOCALIZER.localize(localizableMASM_0013_ERROR_INVOKING_SERVLET_CONTEXT_METHOD(arg0)); + } + + public static Localizable localizableMASM_0019_MSG_LOGGING_SYSTEM_PROPERTY_ILLEGAL_VALUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("MASM0019_MSG_LOGGING_SYSTEM_PROPERTY_ILLEGAL_VALUE", arg0, arg1); + } + + /** + * MASM0019: Illegal logging level value "{1}" stored in the {0} message logging system property. Using default logging level. + * + */ + public static String MASM_0019_MSG_LOGGING_SYSTEM_PROPERTY_ILLEGAL_VALUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMASM_0019_MSG_LOGGING_SYSTEM_PROPERTY_ILLEGAL_VALUE(arg0, arg1)); + } + + public static Localizable localizableMASM_0009_CANNOT_FORM_VALID_URL(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0009_CANNOT_FORM_VALID_URL", arg0); + } + + /** + * MASM0009: Cannot form a valid URL from the resource name "{0}". For more details see the nested exception. + * + */ + public static String MASM_0009_CANNOT_FORM_VALID_URL(Object arg0) { + return LOCALIZER.localize(localizableMASM_0009_CANNOT_FORM_VALID_URL(arg0)); + } + + public static Localizable localizableMASM_0017_UNABLE_TO_LOAD_TUBE_FACTORY_CLASS(Object arg0) { + return MESSAGE_FACTORY.getMessage("MASM0017_UNABLE_TO_LOAD_TUBE_FACTORY_CLASS", arg0); + } + + /** + * MASM0017: Unable to load Tube factory class [ {0} ] + * + */ + public static String MASM_0017_UNABLE_TO_LOAD_TUBE_FACTORY_CLASS(Object arg0) { + return LOCALIZER.localize(localizableMASM_0017_UNABLE_TO_LOAD_TUBE_FACTORY_CLASS(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/UtilMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/UtilMessages.java index d62c0d8ffa7..574ad6f8ab8 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/UtilMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/UtilMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,114 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class UtilMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.util"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, UtilMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableUTIL_LOCATION(Object arg0, Object arg1) { - return messageFactory.getMessage("util.location", arg0, arg1); - } - - /** - * at line {0} of {1} - * - */ - public static String UTIL_LOCATION(Object arg0, Object arg1) { - return localizer.localize(localizableUTIL_LOCATION(arg0, arg1)); - } - - public static Localizable localizableUTIL_FAILED_TO_PARSE_HANDLERCHAIN_FILE(Object arg0, Object arg1) { - return messageFactory.getMessage("util.failed.to.parse.handlerchain.file", arg0, arg1); - } - - /** - * Could not parse handler chain file {1} for class {0} - * - */ - public static String UTIL_FAILED_TO_PARSE_HANDLERCHAIN_FILE(Object arg0, Object arg1) { - return localizer.localize(localizableUTIL_FAILED_TO_PARSE_HANDLERCHAIN_FILE(arg0, arg1)); - } - - public static Localizable localizableUTIL_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("util.parser.wrong.element", arg0, arg1, arg2); - } - - /** - * found element "{1}", expected "{2}" in handler chain configuration (line {0}) - * - */ - public static String UTIL_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableUTIL_PARSER_WRONG_ELEMENT(arg0, arg1, arg2)); - } - - public static Localizable localizableUTIL_HANDLER_CLASS_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("util.handler.class.not.found", arg0); - } - - /** - * "Class: {0} could not be found" - * - */ - public static String UTIL_HANDLER_CLASS_NOT_FOUND(Object arg0) { - return localizer.localize(localizableUTIL_HANDLER_CLASS_NOT_FOUND(arg0)); - } - - public static Localizable localizableUTIL_HANDLER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { - return messageFactory.getMessage("util.handler.endpoint.interface.no.webservice", arg0); - } - - /** - * "The Endpoint Interface: {0} does not have WebService Annotation" - * - */ - public static String UTIL_HANDLER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { - return localizer.localize(localizableUTIL_HANDLER_ENDPOINT_INTERFACE_NO_WEBSERVICE(arg0)); - } - - public static Localizable localizableUTIL_HANDLER_NO_WEBSERVICE_ANNOTATION(Object arg0) { - return messageFactory.getMessage("util.handler.no.webservice.annotation", arg0); - } - - /** - * "A WebService annotation is not present on class: {0}" - * - */ - public static String UTIL_HANDLER_NO_WEBSERVICE_ANNOTATION(Object arg0) { - return localizer.localize(localizableUTIL_HANDLER_NO_WEBSERVICE_ANNOTATION(arg0)); - } - - public static Localizable localizableUTIL_FAILED_TO_FIND_HANDLERCHAIN_FILE(Object arg0, Object arg1) { - return messageFactory.getMessage("util.failed.to.find.handlerchain.file", arg0, arg1); - } - - /** - * Could not find handler chain file {1} for class {0} - * - */ - public static String UTIL_FAILED_TO_FIND_HANDLERCHAIN_FILE(Object arg0, Object arg1) { - return localizer.localize(localizableUTIL_FAILED_TO_FIND_HANDLERCHAIN_FILE(arg0, arg1)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new UtilMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableUTIL_HANDLER_CANNOT_COMBINE_SOAPMESSAGEHANDLERS() { - return messageFactory.getMessage("util.handler.cannot.combine.soapmessagehandlers"); + return MESSAGE_FACTORY.getMessage("util.handler.cannot.combine.soapmessagehandlers"); } /** @@ -140,7 +54,102 @@ public final class UtilMessages { * */ public static String UTIL_HANDLER_CANNOT_COMBINE_SOAPMESSAGEHANDLERS() { - return localizer.localize(localizableUTIL_HANDLER_CANNOT_COMBINE_SOAPMESSAGEHANDLERS()); + return LOCALIZER.localize(localizableUTIL_HANDLER_CANNOT_COMBINE_SOAPMESSAGEHANDLERS()); + } + + public static Localizable localizableUTIL_LOCATION(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("util.location", arg0, arg1); + } + + /** + * at line {0} of {1} + * + */ + public static String UTIL_LOCATION(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableUTIL_LOCATION(arg0, arg1)); + } + + public static Localizable localizableUTIL_HANDLER_CLASS_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("util.handler.class.not.found", arg0); + } + + /** + * "Class: {0} could not be found" + * + */ + public static String UTIL_HANDLER_CLASS_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableUTIL_HANDLER_CLASS_NOT_FOUND(arg0)); + } + + public static Localizable localizableUTIL_HANDLER_NO_WEBSERVICE_ANNOTATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("util.handler.no.webservice.annotation", arg0); + } + + /** + * "A WebService annotation is not present on class: {0}" + * + */ + public static String UTIL_HANDLER_NO_WEBSERVICE_ANNOTATION(Object arg0) { + return LOCALIZER.localize(localizableUTIL_HANDLER_NO_WEBSERVICE_ANNOTATION(arg0)); + } + + public static Localizable localizableUTIL_HANDLER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { + return MESSAGE_FACTORY.getMessage("util.handler.endpoint.interface.no.webservice", arg0); + } + + /** + * "The Endpoint Interface: {0} does not have WebService Annotation" + * + */ + public static String UTIL_HANDLER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { + return LOCALIZER.localize(localizableUTIL_HANDLER_ENDPOINT_INTERFACE_NO_WEBSERVICE(arg0)); + } + + public static Localizable localizableUTIL_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("util.parser.wrong.element", arg0, arg1, arg2); + } + + /** + * found element "{1}", expected "{2}" in handler chain configuration (line {0}) + * + */ + public static String UTIL_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableUTIL_PARSER_WRONG_ELEMENT(arg0, arg1, arg2)); + } + + public static Localizable localizableUTIL_FAILED_TO_PARSE_HANDLERCHAIN_FILE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("util.failed.to.parse.handlerchain.file", arg0, arg1); + } + + /** + * Could not parse handler chain file {1} for class {0} + * + */ + public static String UTIL_FAILED_TO_PARSE_HANDLERCHAIN_FILE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableUTIL_FAILED_TO_PARSE_HANDLERCHAIN_FILE(arg0, arg1)); + } + + public static Localizable localizableUTIL_FAILED_TO_FIND_HANDLERCHAIN_FILE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("util.failed.to.find.handlerchain.file", arg0, arg1); + } + + /** + * Could not find handler chain file {1} for class {0} + * + */ + public static String UTIL_FAILED_TO_FIND_HANDLERCHAIN_FILE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableUTIL_FAILED_TO_FIND_HANDLERCHAIN_FILE(arg0, arg1)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/WsdlmodelMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/WsdlmodelMessages.java index a431885f204..d6bcbcecfde 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/WsdlmodelMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/WsdlmodelMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,30 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class WsdlmodelMessages { - private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.wsdlmodel"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, WsdlmodelMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.wsdlmodel"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new WsdlmodelMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableWSDL_PORTADDRESS_EPRADDRESS_NOT_MATCH(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdl.portaddress.epraddress.not.match", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("wsdl.portaddress.epraddress.not.match", arg0, arg1, arg2); } /** @@ -56,11 +54,11 @@ public final class WsdlmodelMessages { * */ public static String WSDL_PORTADDRESS_EPRADDRESS_NOT_MATCH(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDL_PORTADDRESS_EPRADDRESS_NOT_MATCH(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSDL_PORTADDRESS_EPRADDRESS_NOT_MATCH(arg0, arg1, arg2)); } public static Localizable localizableWSDL_IMPORT_SHOULD_BE_WSDL(Object arg0) { - return messageFactory.getMessage("wsdl.import.should.be.wsdl", arg0); + return MESSAGE_FACTORY.getMessage("wsdl.import.should.be.wsdl", arg0); } /** @@ -69,11 +67,11 @@ public final class WsdlmodelMessages { * */ public static String WSDL_IMPORT_SHOULD_BE_WSDL(Object arg0) { - return localizer.localize(localizableWSDL_IMPORT_SHOULD_BE_WSDL(arg0)); + return LOCALIZER.localize(localizableWSDL_IMPORT_SHOULD_BE_WSDL(arg0)); } public static Localizable localizableMEX_METADATA_SYSTEMID_NULL() { - return messageFactory.getMessage("Mex.metadata.systemid.null"); + return MESSAGE_FACTORY.getMessage("Mex.metadata.systemid.null"); } /** @@ -81,7 +79,18 @@ public final class WsdlmodelMessages { * */ public static String MEX_METADATA_SYSTEMID_NULL() { - return localizer.localize(localizableMEX_METADATA_SYSTEMID_NULL()); + return LOCALIZER.localize(localizableMEX_METADATA_SYSTEMID_NULL()); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/WsservletMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/WsservletMessages.java index efcdcb72944..51b07ab0c74 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/WsservletMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/WsservletMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,426 +25,52 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class WsservletMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.wsservlet"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, WsservletMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new WsservletMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableERROR_WSDL_PUBLISHER_CANNOT_READ_CONFIGURATION() { - return messageFactory.getMessage("error.wsdlPublisher.cannotReadConfiguration"); + public static Localizable localizableWSSERVLET_23_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET23.diag.cause.1"); } /** - * WSSERVLET46: cannot read configuration + * The request generated no response from the service * */ - public static String ERROR_WSDL_PUBLISHER_CANNOT_READ_CONFIGURATION() { - return localizer.localize(localizableERROR_WSDL_PUBLISHER_CANNOT_READ_CONFIGURATION()); + public static String WSSERVLET_23_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_23_DIAG_CAUSE_1()); } - public static Localizable localizableWSSERVLET_22_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET22.diag.check.1"); + public static Localizable localizableWSSERVLET_30_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET30.diag.check.1"); } /** - * Set endpoint with stub.setTargetEndpoint property + * This could be due to a number of causes. Check the server log file for exceptions. * */ - public static String WSSERVLET_22_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_22_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_33_DIAG_CAUSE_2() { - return messageFactory.getMessage("WSSERVLET33.diag.cause.2"); - } - - /** - * When publishing the service wsdl, the http location is patched with the deployed location/endpoint using XSLT transformation. The transformer could not be created to do the transformation. - * - */ - public static String WSSERVLET_33_DIAG_CAUSE_2() { - return localizer.localize(localizableWSSERVLET_33_DIAG_CAUSE_2()); - } - - public static Localizable localizableWSSERVLET_33_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET33.diag.cause.1"); - } - - /** - * When publishing the service wsdl, the http location is patched with the deployed location/endpoint using XSLT transformation. The transformer could not be created to do the transformation. - * - */ - public static String WSSERVLET_33_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_33_DIAG_CAUSE_1()); - } - - public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_DUPLICATE_NAME(Object arg0) { - return messageFactory.getMessage("error.implementorRegistry.duplicateName", arg0); - } - - /** - * WSSERVLET42: duplicate port name: {0} - * - */ - public static String ERROR_IMPLEMENTOR_REGISTRY_DUPLICATE_NAME(Object arg0) { - return localizer.localize(localizableERROR_IMPLEMENTOR_REGISTRY_DUPLICATE_NAME(arg0)); - } - - public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_FILE_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("error.implementorRegistry.fileNotFound", arg0); - } - - /** - * WSSERVLET45: file not found: {0} - * - */ - public static String ERROR_IMPLEMENTOR_REGISTRY_FILE_NOT_FOUND(Object arg0) { - return localizer.localize(localizableERROR_IMPLEMENTOR_REGISTRY_FILE_NOT_FOUND(arg0)); - } - - public static Localizable localizableSERVLET_TRACE_INVOKING_IMPLEMENTOR(Object arg0) { - return messageFactory.getMessage("servlet.trace.invokingImplementor", arg0); - } - - /** - * WSSERVLET21: invoking implementor: {0} - * - */ - public static String SERVLET_TRACE_INVOKING_IMPLEMENTOR(Object arg0) { - return localizer.localize(localizableSERVLET_TRACE_INVOKING_IMPLEMENTOR(arg0)); - } - - public static Localizable localizableWSSERVLET_17_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET17.diag.cause.1"); - } - - /** - * Two or more endpoints with the same name where found in the jaxrpc-ri.xml runtime descriptor - * - */ - public static String WSSERVLET_17_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_17_DIAG_CAUSE_1()); - } - - public static Localizable localizableHTML_NON_ROOT_PAGE_BODY_2() { - return messageFactory.getMessage("html.nonRootPage.body2"); - } - - /** - *

    Invalid request URI.

    Please check your deployment information.

    - * - */ - public static String HTML_NON_ROOT_PAGE_BODY_2() { - return localizer.localize(localizableHTML_NON_ROOT_PAGE_BODY_2()); - } - - public static Localizable localizableHTML_NON_ROOT_PAGE_BODY_1() { - return messageFactory.getMessage("html.nonRootPage.body1"); - } - - /** - *

    A Web Service is installed at this URL.

    - * - */ - public static String HTML_NON_ROOT_PAGE_BODY_1() { - return localizer.localize(localizableHTML_NON_ROOT_PAGE_BODY_1()); - } - - public static Localizable localizablePUBLISHER_INFO_APPLYING_TRANSFORMATION(Object arg0) { - return messageFactory.getMessage("publisher.info.applyingTransformation", arg0); - } - - /** - * WSSERVLET31: applying transformation with actual address: {0} - * - */ - public static String PUBLISHER_INFO_APPLYING_TRANSFORMATION(Object arg0) { - return localizer.localize(localizablePUBLISHER_INFO_APPLYING_TRANSFORMATION(arg0)); - } - - public static Localizable localizableWSSERVLET_29_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET29.diag.check.1"); - } - - /** - * Is the port valid? Unzip the war file and make sure the tie and serializers are present - * - */ - public static String WSSERVLET_29_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_29_DIAG_CHECK_1()); - } - - public static Localizable localizableSERVLET_TRACE_GOT_REQUEST_FOR_ENDPOINT(Object arg0) { - return messageFactory.getMessage("servlet.trace.gotRequestForEndpoint", arg0); - } - - /** - * WSSERVLET19: got request for endpoint: {0} - * - */ - public static String SERVLET_TRACE_GOT_REQUEST_FOR_ENDPOINT(Object arg0) { - return localizer.localize(localizableSERVLET_TRACE_GOT_REQUEST_FOR_ENDPOINT(arg0)); - } - - public static Localizable localizableERROR_SERVLET_INIT_CONFIG_PARAMETER_MISSING(Object arg0) { - return messageFactory.getMessage("error.servlet.init.config.parameter.missing", arg0); - } - - /** - * WSSERVLET47: cannot find configuration parameter: "{0}" - * - */ - public static String ERROR_SERVLET_INIT_CONFIG_PARAMETER_MISSING(Object arg0) { - return localizer.localize(localizableERROR_SERVLET_INIT_CONFIG_PARAMETER_MISSING(arg0)); - } - - public static Localizable localizableERROR_IMPLEMENTOR_FACTORY_SERVANT_INIT_FAILED(Object arg0) { - return messageFactory.getMessage("error.implementorFactory.servantInitFailed", arg0); - } - - /** - * WSSERVLET44: failed to initialize the service implementor for port "{0}" - * - */ - public static String ERROR_IMPLEMENTOR_FACTORY_SERVANT_INIT_FAILED(Object arg0) { - return localizer.localize(localizableERROR_IMPLEMENTOR_FACTORY_SERVANT_INIT_FAILED(arg0)); - } - - public static Localizable localizableWSSERVLET_13_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET13.diag.check.1"); - } - - /** - * Normal web service shutdown - * - */ - public static String WSSERVLET_13_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_13_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_31_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET31.diag.cause.1"); - } - - /** - * Transformation being applied - * - */ - public static String WSSERVLET_31_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_31_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_50_DIAG_CHECK_3() { - return messageFactory.getMessage("WSSERVLET50.diag.check.3"); - } - - /** - * Check the server.xml file in the domain directory for failures - * - */ - public static String WSSERVLET_50_DIAG_CHECK_3() { - return localizer.localize(localizableWSSERVLET_50_DIAG_CHECK_3()); - } - - public static Localizable localizableERROR_IMPLEMENTOR_FACTORY_NO_INPUT_STREAM() { - return messageFactory.getMessage("error.implementorFactory.noInputStream"); - } - - /** - * WSSERVLET37: no configuration specified - * - */ - public static String ERROR_IMPLEMENTOR_FACTORY_NO_INPUT_STREAM() { - return localizer.localize(localizableERROR_IMPLEMENTOR_FACTORY_NO_INPUT_STREAM()); - } - - public static Localizable localizableWSSERVLET_24_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET24.diag.cause.1"); - } - - /** - * SOAPFault message is being returned to the client. - * - */ - public static String WSSERVLET_24_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_24_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_50_DIAG_CHECK_2() { - return messageFactory.getMessage("WSSERVLET50.diag.check.2"); - } - - /** - * Verify that Application server deployment descriptors are correct in the service war file - * - */ - public static String WSSERVLET_50_DIAG_CHECK_2() { - return localizer.localize(localizableWSSERVLET_50_DIAG_CHECK_2()); - } - - public static Localizable localizableWSSERVLET_50_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET50.diag.check.1"); - } - - /** - * Verify that sun-jaxws.xml and web.xml are correct in the service war file - * - */ - public static String WSSERVLET_50_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_50_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_43_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET43.diag.check.1"); - } - - /** - * Make sure web service is available and public. Examine exception for more details - * - */ - public static String WSSERVLET_43_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_43_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_15_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET15.diag.cause.1"); - } - - /** - * Web Services servlet shutdown. - * - */ - public static String WSSERVLET_15_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_15_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_27_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET27.diag.check.1"); - } - - /** - * Remove the implicit URL - * - */ - public static String WSSERVLET_27_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_27_DIAG_CHECK_1()); - } - - public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_UNKNOWN_NAME(Object arg0) { - return messageFactory.getMessage("error.implementorRegistry.unknownName", arg0); - } - - /** - * WSSERVLET38: unknown port name: {0} - * - */ - public static String ERROR_IMPLEMENTOR_REGISTRY_UNKNOWN_NAME(Object arg0) { - return localizer.localize(localizableERROR_IMPLEMENTOR_REGISTRY_UNKNOWN_NAME(arg0)); - } - - public static Localizable localizableSERVLET_HTML_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("servlet.html.notFound", arg0); - } - - /** - *

    404 Not Found: {0}

    - * - */ - public static String SERVLET_HTML_NOT_FOUND(Object arg0) { - return localizer.localize(localizableSERVLET_HTML_NOT_FOUND(arg0)); - } - - public static Localizable localizableHTML_ROOT_PAGE_TITLE() { - return messageFactory.getMessage("html.rootPage.title"); - } - - /** - * Web Service - * - */ - public static String HTML_ROOT_PAGE_TITLE() { - return localizer.localize(localizableHTML_ROOT_PAGE_TITLE()); - } - - public static Localizable localizableWSSERVLET_20_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET20.diag.check.1"); - } - - /** - * Unzip the war, are the tie and serializer classes found? - * - */ - public static String WSSERVLET_20_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_20_DIAG_CHECK_1()); - } - - public static Localizable localizableJAXRPCSERVLET_11_DIAG_CAUSE_1() { - return messageFactory.getMessage("JAXRPCSERVLET11.diag.cause.1"); - } - - /** - * WSRuntimeInfoParser could not parse sun-jaxws.xml runtime descriptor - * - */ - public static String JAXRPCSERVLET_11_DIAG_CAUSE_1() { - return localizer.localize(localizableJAXRPCSERVLET_11_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_11_DIAG_CHECK_2() { - return messageFactory.getMessage("WSSERVLET11.diag.check.2"); - } - - /** - * Please check the jaxrpc-ri.xml file to make sure it is present in the war file - * - */ - public static String WSSERVLET_11_DIAG_CHECK_2() { - return localizer.localize(localizableWSSERVLET_11_DIAG_CHECK_2()); - } - - public static Localizable localizableWSSERVLET_11_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET11.diag.check.1"); - } - - /** - * Please check the sun-jaxws.xml file to make sure it is correct - * - */ - public static String WSSERVLET_11_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_11_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_22_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET22.diag.cause.1"); - } - - /** - * A request was invoked with no endpoint - * - */ - public static String WSSERVLET_22_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_22_DIAG_CAUSE_1()); + public static String WSSERVLET_30_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_30_DIAG_CHECK_1()); } public static Localizable localizableWSSERVLET_34_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET34.diag.check.1"); + return MESSAGE_FACTORY.getMessage("WSSERVLET34.diag.check.1"); } /** @@ -452,71 +78,143 @@ public final class WsservletMessages { * */ public static String WSSERVLET_34_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_34_DIAG_CHECK_1()); + return LOCALIZER.localize(localizableWSSERVLET_34_DIAG_CHECK_1()); } - public static Localizable localizableERROR_SERVLET_NO_IMPLEMENTOR_FOR_PORT(Object arg0) { - return messageFactory.getMessage("error.servlet.noImplementorForPort", arg0); + public static Localizable localizableSERVLET_FAULTSTRING_INVALID_CONTENT_TYPE() { + return MESSAGE_FACTORY.getMessage("servlet.faultstring.invalidContentType"); } /** - * WSSERVLET52: no implementor registered for port: {0} + * WSSERVLET64: Invalid Content-Type, text/xml required * */ - public static String ERROR_SERVLET_NO_IMPLEMENTOR_FOR_PORT(Object arg0) { - return localizer.localize(localizableERROR_SERVLET_NO_IMPLEMENTOR_FOR_PORT(arg0)); + public static String SERVLET_FAULTSTRING_INVALID_CONTENT_TYPE() { + return LOCALIZER.localize(localizableSERVLET_FAULTSTRING_INVALID_CONTENT_TYPE()); } - public static Localizable localizableWSSERVLET_64_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET64.diag.check.1"); + public static Localizable localizableWSSERVLET_27_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET27.diag.cause.1"); } /** - * Make sure the client request is using text/xml + * Implicit URLS are not supported in this release * */ - public static String WSSERVLET_64_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_64_DIAG_CHECK_1()); + public static String WSSERVLET_27_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_27_DIAG_CAUSE_1()); } - public static Localizable localizableWSSERVLET_18_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET18.diag.check.1"); + public static Localizable localizableHTML_WSDL_PAGE_NO_WSDL() { + return MESSAGE_FACTORY.getMessage("html.wsdlPage.noWsdl"); } /** - * This may or may not be intentional. If not examine client program for errors. + *

    No WSDL document available for publishing.

    Please check your deployment information.

    * */ - public static String WSSERVLET_18_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_18_DIAG_CHECK_1()); + public static String HTML_WSDL_PAGE_NO_WSDL() { + return LOCALIZER.localize(localizableHTML_WSDL_PAGE_NO_WSDL()); } - public static Localizable localizableWSSERVLET_29_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET29.diag.cause.1"); + public static Localizable localizableWSSERVLET_19_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET19.diag.check.1"); } /** - * A port is specified, but a corresponding service implementation is not found + * Informational message only. Normal operation. * */ - public static String WSSERVLET_29_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_29_DIAG_CAUSE_1()); + public static String WSSERVLET_19_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_19_DIAG_CHECK_1()); } - public static Localizable localizableSERVLET_ERROR_NO_RESPONSE_MESSAGE() { - return messageFactory.getMessage("servlet.error.noResponseMessage"); + public static Localizable localizableSERVLET_TRACE_WRITING_FAULT_RESPONSE() { + return MESSAGE_FACTORY.getMessage("servlet.trace.writingFaultResponse"); } /** - * WSSERVLET23: no response message + * WSSERVLET24: writing fault response * */ - public static String SERVLET_ERROR_NO_RESPONSE_MESSAGE() { - return localizer.localize(localizableSERVLET_ERROR_NO_RESPONSE_MESSAGE()); + public static String SERVLET_TRACE_WRITING_FAULT_RESPONSE() { + return LOCALIZER.localize(localizableSERVLET_TRACE_WRITING_FAULT_RESPONSE()); + } + + public static Localizable localizableSERVLET_WARNING_DUPLICATE_ENDPOINT_NAME() { + return MESSAGE_FACTORY.getMessage("servlet.warning.duplicateEndpointName"); + } + + /** + * WSSERVLET17: duplicate endpoint name + * + */ + public static String SERVLET_WARNING_DUPLICATE_ENDPOINT_NAME() { + return LOCALIZER.localize(localizableSERVLET_WARNING_DUPLICATE_ENDPOINT_NAME()); + } + + public static Localizable localizableTRACE_SERVLET_HANDING_REQUEST_OVER_TO_IMPLEMENTOR(Object arg0) { + return MESSAGE_FACTORY.getMessage("trace.servlet.handingRequestOverToImplementor", arg0); + } + + /** + * WSSERVLET59: handing request over to implementor: {0} + * + */ + public static String TRACE_SERVLET_HANDING_REQUEST_OVER_TO_IMPLEMENTOR(Object arg0) { + return LOCALIZER.localize(localizableTRACE_SERVLET_HANDING_REQUEST_OVER_TO_IMPLEMENTOR(arg0)); + } + + public static Localizable localizableWSSERVLET_11_DIAG_CHECK_2() { + return MESSAGE_FACTORY.getMessage("WSSERVLET11.diag.check.2"); + } + + /** + * Please check the jaxrpc-ri.xml file to make sure it is present in the war file + * + */ + public static String WSSERVLET_11_DIAG_CHECK_2() { + return LOCALIZER.localize(localizableWSSERVLET_11_DIAG_CHECK_2()); + } + + public static Localizable localizableWSSERVLET_65_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET65.diag.check.1"); + } + + /** + * Add SOAPAction and appropriate value + * + */ + public static String WSSERVLET_65_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_65_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_11_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET11.diag.check.1"); + } + + /** + * Please check the sun-jaxws.xml file to make sure it is correct + * + */ + public static String WSSERVLET_11_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_11_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_15_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET15.diag.check.1"); + } + + /** + * Normal Web service undeployment. Undeployment complete. + * + */ + public static String WSSERVLET_15_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_15_DIAG_CHECK_1()); } public static Localizable localizableMESSAGE_TOO_LONG(Object arg0) { - return messageFactory.getMessage("message.too.long", arg0); + return MESSAGE_FACTORY.getMessage("message.too.long", arg0); } /** @@ -526,1151 +224,11 @@ public final class WsservletMessages { * */ public static String MESSAGE_TOO_LONG(Object arg0) { - return localizer.localize(localizableMESSAGE_TOO_LONG(arg0)); - } - - public static Localizable localizableLISTENER_INFO_INITIALIZE() { - return messageFactory.getMessage("listener.info.initialize"); - } - - /** - * WSSERVLET12: JAX-WS context listener initializing - * - */ - public static String LISTENER_INFO_INITIALIZE() { - return localizer.localize(localizableLISTENER_INFO_INITIALIZE()); - } - - public static Localizable localizableSERVLET_HTML_NO_INFO_AVAILABLE() { - return messageFactory.getMessage("servlet.html.noInfoAvailable"); - } - - /** - *

    No JAX-WS context information available.

    - * - */ - public static String SERVLET_HTML_NO_INFO_AVAILABLE() { - return localizer.localize(localizableSERVLET_HTML_NO_INFO_AVAILABLE()); - } - - public static Localizable localizableSERVLET_HTML_INFORMATION_TABLE(Object arg0, Object arg1) { - return messageFactory.getMessage("servlet.html.information.table", arg0, arg1); - } - - /** - *
    Address:{0}
    WSDL:{0}?wsdl
    Implementation class:{1}
    - * - */ - public static String SERVLET_HTML_INFORMATION_TABLE(Object arg0, Object arg1) { - return localizer.localize(localizableSERVLET_HTML_INFORMATION_TABLE(arg0, arg1)); - } - - public static Localizable localizableSERVLET_TRACE_WRITING_FAULT_RESPONSE() { - return messageFactory.getMessage("servlet.trace.writingFaultResponse"); - } - - /** - * WSSERVLET24: writing fault response - * - */ - public static String SERVLET_TRACE_WRITING_FAULT_RESPONSE() { - return localizer.localize(localizableSERVLET_TRACE_WRITING_FAULT_RESPONSE()); - } - - public static Localizable localizableSERVLET_ERROR_NO_IMPLEMENTOR_FOR_ENDPOINT(Object arg0) { - return messageFactory.getMessage("servlet.error.noImplementorForEndpoint", arg0); - } - - /** - * WSSERVLET20: no implementor for endpoint: {0} - * - */ - public static String SERVLET_ERROR_NO_IMPLEMENTOR_FOR_ENDPOINT(Object arg0) { - return localizer.localize(localizableSERVLET_ERROR_NO_IMPLEMENTOR_FOR_ENDPOINT(arg0)); - } - - public static Localizable localizableWSSERVLET_13_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET13.diag.cause.1"); - } - - /** - * Context listener shutdown - * - */ - public static String WSSERVLET_13_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_13_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_50_DIAG_CAUSE_3() { - return messageFactory.getMessage("WSSERVLET50.diag.cause.3"); - } - - /** - * There may some Application Server initialization problems - * - */ - public static String WSSERVLET_50_DIAG_CAUSE_3() { - return localizer.localize(localizableWSSERVLET_50_DIAG_CAUSE_3()); - } - - public static Localizable localizableWSSERVLET_32_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET32.diag.check.1"); - } - - /** - * Normal Operation. - * - */ - public static String WSSERVLET_32_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_32_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_50_DIAG_CAUSE_2() { - return messageFactory.getMessage("WSSERVLET50.diag.cause.2"); - } - - /** - * Application server deployment descriptors may be incorrect - * - */ - public static String WSSERVLET_50_DIAG_CAUSE_2() { - return localizer.localize(localizableWSSERVLET_50_DIAG_CAUSE_2()); - } - - public static Localizable localizableWSSERVLET_50_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET50.diag.cause.1"); - } - - /** - * WS runtime sun-jaxws.xml or web.xml may be incorrect - * - */ - public static String WSSERVLET_50_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_50_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_25_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET25.diag.check.1"); - } - - /** - * Tracing message, normal response. - * - */ - public static String WSSERVLET_25_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_25_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_43_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET43.diag.cause.1"); - } - - /** - * Instantiation of the web service failed. - * - */ - public static String WSSERVLET_43_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_43_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_27_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET27.diag.cause.1"); - } - - /** - * Implicit URLS are not supported in this release - * - */ - public static String WSSERVLET_27_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_27_DIAG_CAUSE_1()); - } - - public static Localizable localizableERROR_SERVLET_CAUGHT_THROWABLE_IN_INIT(Object arg0) { - return messageFactory.getMessage("error.servlet.caughtThrowableInInit", arg0); - } - - /** - * WSSERVLET50: caught throwable during servlet initialization: {0} - * - */ - public static String ERROR_SERVLET_CAUGHT_THROWABLE_IN_INIT(Object arg0) { - return localizer.localize(localizableERROR_SERVLET_CAUGHT_THROWABLE_IN_INIT(arg0)); - } - - public static Localizable localizableSERVLET_HTML_ENDPOINT_TABLE(Object arg0, Object arg1) { - return messageFactory.getMessage("servlet.html.endpoint.table", arg0, arg1); - } - - /** - *
    Service Name:{0}
    Port Name:{1}
    - * - */ - public static String SERVLET_HTML_ENDPOINT_TABLE(Object arg0, Object arg1) { - return localizer.localize(localizableSERVLET_HTML_ENDPOINT_TABLE(arg0, arg1)); - } - - public static Localizable localizableERROR_SERVLET_CAUGHT_THROWABLE_WHILE_RECOVERING(Object arg0) { - return messageFactory.getMessage("error.servlet.caughtThrowableWhileRecovering", arg0); - } - - /** - * WSSERVLET51: caught throwable while recovering from a previous exception: {0} - * - */ - public static String ERROR_SERVLET_CAUGHT_THROWABLE_WHILE_RECOVERING(Object arg0) { - return localizer.localize(localizableERROR_SERVLET_CAUGHT_THROWABLE_WHILE_RECOVERING(arg0)); - } - - public static Localizable localizableNO_SUNJAXWS_XML(Object arg0) { - return messageFactory.getMessage("no.sunjaxws.xml", arg0); - } - - /** - * Runtime descriptor "{0}" is missing - * - */ - public static String NO_SUNJAXWS_XML(Object arg0) { - return localizer.localize(localizableNO_SUNJAXWS_XML(arg0)); - } - - public static Localizable localizableSERVLET_HTML_TITLE_2() { - return messageFactory.getMessage("servlet.html.title2"); - } - - /** - *

    Web Services

    - * - */ - public static String SERVLET_HTML_TITLE_2() { - return localizer.localize(localizableSERVLET_HTML_TITLE_2()); - } - - public static Localizable localizableLISTENER_INFO_DESTROY() { - return messageFactory.getMessage("listener.info.destroy"); - } - - /** - * WSSERVLET13: JAX-WS context listener destroyed - * - */ - public static String LISTENER_INFO_DESTROY() { - return localizer.localize(localizableLISTENER_INFO_DESTROY()); - } - - public static Localizable localizableEXCEPTION_TEMPLATE_CREATION_FAILED() { - return messageFactory.getMessage("exception.templateCreationFailed"); - } - - /** - * WSSERVLET35: failed to create a template object - * - */ - public static String EXCEPTION_TEMPLATE_CREATION_FAILED() { - return localizer.localize(localizableEXCEPTION_TEMPLATE_CREATION_FAILED()); - } - - public static Localizable localizableWSSERVLET_20_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET20.diag.cause.1"); - } - - /** - * Implementation for this service can not be found - * - */ - public static String WSSERVLET_20_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_20_DIAG_CAUSE_1()); - } - - public static Localizable localizableTRACE_SERVLET_WRITING_FAULT_RESPONSE() { - return messageFactory.getMessage("trace.servlet.writingFaultResponse"); - } - - /** - * WSSERVLET61: writing fault response - * - */ - public static String TRACE_SERVLET_WRITING_FAULT_RESPONSE() { - return localizer.localize(localizableTRACE_SERVLET_WRITING_FAULT_RESPONSE()); - } - - public static Localizable localizableWSSERVLET_23_DIAG_CHECK_2() { - return messageFactory.getMessage("WSSERVLET23.diag.check.2"); - } - - /** - * The request may be malformed and be accepted by the service, yet did not generate a response - * - */ - public static String WSSERVLET_23_DIAG_CHECK_2() { - return localizer.localize(localizableWSSERVLET_23_DIAG_CHECK_2()); - } - - public static Localizable localizableWSSERVLET_23_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET23.diag.check.1"); - } - - /** - * If a response was expected, check that a request message was actually sent - * - */ - public static String WSSERVLET_23_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_23_DIAG_CHECK_1()); - } - - public static Localizable localizableSERVLET_WARNING_MISSING_CONTEXT_INFORMATION() { - return messageFactory.getMessage("servlet.warning.missingContextInformation"); - } - - /** - * WSSERVLET16: missing context information - * - */ - public static String SERVLET_WARNING_MISSING_CONTEXT_INFORMATION() { - return localizer.localize(localizableSERVLET_WARNING_MISSING_CONTEXT_INFORMATION()); - } - - public static Localizable localizableWSSERVLET_16_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET16.diag.check.1"); - } - - /** - * Unjar the service war file; check to see that the jaxrpc-ri-runtime.xml file is present - * - */ - public static String WSSERVLET_16_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_16_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_34_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET34.diag.cause.1"); - } - - /** - * The location patching on the wsdl failed when attempting to transform. - * - */ - public static String WSSERVLET_34_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_34_DIAG_CAUSE_1()); - } - - public static Localizable localizableHTML_NON_ROOT_PAGE_TITLE() { - return messageFactory.getMessage("html.nonRootPage.title"); - } - - /** - * Web Service - * - */ - public static String HTML_NON_ROOT_PAGE_TITLE() { - return localizer.localize(localizableHTML_NON_ROOT_PAGE_TITLE()); - } - - public static Localizable localizableSERVLET_HTML_COLUMN_HEADER_INFORMATION() { - return messageFactory.getMessage("servlet.html.columnHeader.information"); - } - - /** - * Information - * - */ - public static String SERVLET_HTML_COLUMN_HEADER_INFORMATION() { - return localizer.localize(localizableSERVLET_HTML_COLUMN_HEADER_INFORMATION()); - } - - public static Localizable localizableWSSERVLET_18_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET18.diag.cause.1"); - } - - /** - * Message sent by client is empty - * - */ - public static String WSSERVLET_18_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_18_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_64_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET64.diag.cause.1"); - } - - /** - * Web service requests must be a content type text/xml: WSI BP 1.0 - * - */ - public static String WSSERVLET_64_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_64_DIAG_CAUSE_1()); - } - - public static Localizable localizableINFO_SERVLET_INITIALIZING() { - return messageFactory.getMessage("info.servlet.initializing"); - } - - /** - * WSSERVLET56: JAX-WS servlet: init - * - */ - public static String INFO_SERVLET_INITIALIZING() { - return localizer.localize(localizableINFO_SERVLET_INITIALIZING()); - } - - public static Localizable localizableSERVLET_INFO_EMPTY_REQUEST_MESSAGE() { - return messageFactory.getMessage("servlet.info.emptyRequestMessage"); - } - - /** - * WSSERVLET18: got empty request message - * - */ - public static String SERVLET_INFO_EMPTY_REQUEST_MESSAGE() { - return localizer.localize(localizableSERVLET_INFO_EMPTY_REQUEST_MESSAGE()); - } - - public static Localizable localizableSERVLET_ERROR_NO_ENDPOINT_SPECIFIED() { - return messageFactory.getMessage("servlet.error.noEndpointSpecified"); - } - - /** - * WSSERVLET22: no endpoint specified - * - */ - public static String SERVLET_ERROR_NO_ENDPOINT_SPECIFIED() { - return localizer.localize(localizableSERVLET_ERROR_NO_ENDPOINT_SPECIFIED()); - } - - public static Localizable localizableWSSERVLET_11_DIAG_CAUSE_2() { - return messageFactory.getMessage("WSSERVLET11.diag.cause.2"); - } - - /** - * The sun-jaxws.xml runtime deployment descriptor may be missing - * - */ - public static String WSSERVLET_11_DIAG_CAUSE_2() { - return localizer.localize(localizableWSSERVLET_11_DIAG_CAUSE_2()); - } - - public static Localizable localizableWSSERVLET_30_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET30.diag.check.1"); - } - - /** - * This could be due to a number of causes. Check the server log file for exceptions. - * - */ - public static String WSSERVLET_30_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_30_DIAG_CHECK_1()); - } - - public static Localizable localizableEXCEPTION_CANNOT_CREATE_TRANSFORMER() { - return messageFactory.getMessage("exception.cannotCreateTransformer"); - } - - /** - * WSSERVLET33: cannot create transformer - * - */ - public static String EXCEPTION_CANNOT_CREATE_TRANSFORMER() { - return localizer.localize(localizableEXCEPTION_CANNOT_CREATE_TRANSFORMER()); - } - - public static Localizable localizableSERVLET_FAULTSTRING_INVALID_SOAP_ACTION() { - return messageFactory.getMessage("servlet.faultstring.invalidSOAPAction"); - } - - /** - * WSSERVLET65: Invalid Header SOAPAction required - * - */ - public static String SERVLET_FAULTSTRING_INVALID_SOAP_ACTION() { - return localizer.localize(localizableSERVLET_FAULTSTRING_INVALID_SOAP_ACTION()); - } - - public static Localizable localizableWSSERVLET_14_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET14.diag.check.1"); - } - - /** - * Normal Web Service deployment. Deployment of service complete. - * - */ - public static String WSSERVLET_14_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_14_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_32_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET32.diag.cause.1"); - } - - /** - * WSDL being generated - * - */ - public static String WSSERVLET_32_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_32_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_25_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET25.diag.cause.1"); - } - - /** - * SOAPMessage response is being returned to client - * - */ - public static String WSSERVLET_25_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_25_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_44_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET44.diag.check.1"); - } - - /** - * Check the exception for more details. Make sure all the configuration files are correct. - * - */ - public static String WSSERVLET_44_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_44_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_28_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET28.diag.check.1"); - } - - /** - * Set target endpoint with stub.setTargetEndpoint() property. - * - */ - public static String WSSERVLET_28_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_28_DIAG_CHECK_1()); - } - - public static Localizable localizableSERVLET_INFO_INITIALIZE() { - return messageFactory.getMessage("servlet.info.initialize"); - } - - /** - * WSSERVLET14: JAX-WS servlet initializing - * - */ - public static String SERVLET_INFO_INITIALIZE() { - return localizer.localize(localizableSERVLET_INFO_INITIALIZE()); - } - - public static Localizable localizableERROR_SERVLET_INIT_CONFIG_FILE_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("error.servlet.init.config.fileNotFound", arg0); - } - - /** - * WSSERVLET48: config file: "{0}" not found - * - */ - public static String ERROR_SERVLET_INIT_CONFIG_FILE_NOT_FOUND(Object arg0) { - return localizer.localize(localizableERROR_SERVLET_INIT_CONFIG_FILE_NOT_FOUND(arg0)); - } - - public static Localizable localizableHTML_WSDL_PAGE_TITLE() { - return messageFactory.getMessage("html.wsdlPage.title"); - } - - /** - * Web Service - * - */ - public static String HTML_WSDL_PAGE_TITLE() { - return localizer.localize(localizableHTML_WSDL_PAGE_TITLE()); - } - - public static Localizable localizableSERVLET_HTML_COLUMN_HEADER_PORT_NAME() { - return messageFactory.getMessage("servlet.html.columnHeader.portName"); - } - - /** - * Endpoint - * - */ - public static String SERVLET_HTML_COLUMN_HEADER_PORT_NAME() { - return localizer.localize(localizableSERVLET_HTML_COLUMN_HEADER_PORT_NAME()); - } - - public static Localizable localizableHTML_ROOT_PAGE_BODY_2_B() { - return messageFactory.getMessage("html.rootPage.body2b"); - } - - /** - *

    - * - */ - public static String HTML_ROOT_PAGE_BODY_2_B() { - return localizer.localize(localizableHTML_ROOT_PAGE_BODY_2_B()); - } - - public static Localizable localizableHTML_ROOT_PAGE_BODY_2_A() { - return messageFactory.getMessage("html.rootPage.body2a"); - } - - /** - *

    It supports the following ports: - * - */ - public static String HTML_ROOT_PAGE_BODY_2_A() { - return localizer.localize(localizableHTML_ROOT_PAGE_BODY_2_A()); - } - - public static Localizable localizableWSSERVLET_21_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET21.diag.check.1"); - } - - /** - * Normal web service invocation. - * - */ - public static String WSSERVLET_21_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_21_DIAG_CHECK_1()); - } - - public static Localizable localizableERROR_SERVLET_NO_PORT_SPECIFIED() { - return messageFactory.getMessage("error.servlet.noPortSpecified"); - } - - /** - * WSSERVLET53: no port specified in HTTP POST request URL - * - */ - public static String ERROR_SERVLET_NO_PORT_SPECIFIED() { - return localizer.localize(localizableERROR_SERVLET_NO_PORT_SPECIFIED()); - } - - public static Localizable localizableINFO_SERVLET_GOT_EMPTY_REQUEST_MESSAGE() { - return messageFactory.getMessage("info.servlet.gotEmptyRequestMessage"); - } - - /** - * WSSERVLET55: got empty request message - * - */ - public static String INFO_SERVLET_GOT_EMPTY_REQUEST_MESSAGE() { - return localizer.localize(localizableINFO_SERVLET_GOT_EMPTY_REQUEST_MESSAGE()); - } - - public static Localizable localizableWSSERVLET_51_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET51.diag.check.1"); - } - - /** - * Check the server.xml log file for exception information - * - */ - public static String WSSERVLET_51_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_51_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_23_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET23.diag.cause.1"); - } - - /** - * The request generated no response from the service - * - */ - public static String WSSERVLET_23_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_23_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_16_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET16.diag.cause.1"); - } - - /** - * The jaxrpc-ri.xml file may be missing from the war file - * - */ - public static String WSSERVLET_16_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_16_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_35_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET35.diag.check.1"); - } - - /** - * An exception was thrown during creation of the template. View exception and stacktrace for more details. - * - */ - public static String WSSERVLET_35_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_35_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_65_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET65.diag.check.1"); - } - - /** - * Add SOAPAction and appropriate value - * - */ - public static String WSSERVLET_65_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_65_DIAG_CHECK_1()); - } - - public static Localizable localizableTRACE_SERVLET_HANDING_REQUEST_OVER_TO_IMPLEMENTOR(Object arg0) { - return messageFactory.getMessage("trace.servlet.handingRequestOverToImplementor", arg0); - } - - /** - * WSSERVLET59: handing request over to implementor: {0} - * - */ - public static String TRACE_SERVLET_HANDING_REQUEST_OVER_TO_IMPLEMENTOR(Object arg0) { - return localizer.localize(localizableTRACE_SERVLET_HANDING_REQUEST_OVER_TO_IMPLEMENTOR(arg0)); - } - - public static Localizable localizableWSSERVLET_19_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET19.diag.check.1"); - } - - /** - * Informational message only. Normal operation. - * - */ - public static String WSSERVLET_19_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_19_DIAG_CHECK_1()); - } - - public static Localizable localizablePUBLISHER_INFO_GENERATING_WSDL(Object arg0) { - return messageFactory.getMessage("publisher.info.generatingWSDL", arg0); - } - - /** - * WSSERVLET32: generating WSDL for endpoint: {0} - * - */ - public static String PUBLISHER_INFO_GENERATING_WSDL(Object arg0) { - return localizer.localize(localizablePUBLISHER_INFO_GENERATING_WSDL(arg0)); - } - - public static Localizable localizableSERVLET_WARNING_DUPLICATE_ENDPOINT_URL_PATTERN(Object arg0) { - return messageFactory.getMessage("servlet.warning.duplicateEndpointUrlPattern", arg0); - } - - /** - * WSSERVLET26: duplicate URL pattern in endpoint: {0} - * - */ - public static String SERVLET_WARNING_DUPLICATE_ENDPOINT_URL_PATTERN(Object arg0) { - return localizer.localize(localizableSERVLET_WARNING_DUPLICATE_ENDPOINT_URL_PATTERN(arg0)); - } - - public static Localizable localizableWSSERVLET_49_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET49.diag.check.1"); - } - - /** - * Check the server.xml log file for exception information - * - */ - public static String WSSERVLET_49_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_49_DIAG_CHECK_1()); - } - - public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_CANNOT_READ_CONFIGURATION() { - return messageFactory.getMessage("error.implementorRegistry.cannotReadConfiguration"); - } - - /** - * WSSERVLET39: cannot read configuration - * - */ - public static String ERROR_IMPLEMENTOR_REGISTRY_CANNOT_READ_CONFIGURATION() { - return localizer.localize(localizableERROR_IMPLEMENTOR_REGISTRY_CANNOT_READ_CONFIGURATION()); - } - - public static Localizable localizableTRACE_SERVLET_GOT_RESPONSE_FROM_IMPLEMENTOR(Object arg0) { - return messageFactory.getMessage("trace.servlet.gotResponseFromImplementor", arg0); - } - - /** - * WSSERVLET60: got response from implementor: {0} - * - */ - public static String TRACE_SERVLET_GOT_RESPONSE_FROM_IMPLEMENTOR(Object arg0) { - return localizer.localize(localizableTRACE_SERVLET_GOT_RESPONSE_FROM_IMPLEMENTOR(arg0)); - } - - public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_INCOMPLETE_INFORMATION() { - return messageFactory.getMessage("error.implementorRegistry.incompleteInformation"); - } - - /** - * WSSERVLET41: configuration information is incomplete - * - */ - public static String ERROR_IMPLEMENTOR_REGISTRY_INCOMPLETE_INFORMATION() { - return localizer.localize(localizableERROR_IMPLEMENTOR_REGISTRY_INCOMPLETE_INFORMATION()); - } - - public static Localizable localizableWSSERVLET_12_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET12.diag.check.1"); - } - - /** - * Normal web service startup - * - */ - public static String WSSERVLET_12_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_12_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_30_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET30.diag.cause.1"); - } - - /** - * There was a server error processing the request - * - */ - public static String WSSERVLET_30_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_30_DIAG_CAUSE_1()); - } - - public static Localizable localizableHTML_WSDL_PAGE_NO_WSDL() { - return messageFactory.getMessage("html.wsdlPage.noWsdl"); - } - - /** - *

    No WSDL document available for publishing.

    Please check your deployment information.

    - * - */ - public static String HTML_WSDL_PAGE_NO_WSDL() { - return localizer.localize(localizableHTML_WSDL_PAGE_NO_WSDL()); - } - - public static Localizable localizableWSSERVLET_14_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET14.diag.cause.1"); - } - - /** - * Web Services servlet starting up. - * - */ - public static String WSSERVLET_14_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_14_DIAG_CAUSE_1()); - } - - public static Localizable localizableINFO_SERVLET_DESTROYING() { - return messageFactory.getMessage("info.servlet.destroying"); - } - - /** - * WSSERVLET57: JAX-WS servlet: destroy - * - */ - public static String INFO_SERVLET_DESTROYING() { - return localizer.localize(localizableINFO_SERVLET_DESTROYING()); - } - - public static Localizable localizableERROR_SERVLET_NO_RESPONSE_WAS_PRODUCED() { - return messageFactory.getMessage("error.servlet.noResponseWasProduced"); - } - - /** - * WSSERVLET54: no response was produced (internal error) - * - */ - public static String ERROR_SERVLET_NO_RESPONSE_WAS_PRODUCED() { - return localizer.localize(localizableERROR_SERVLET_NO_RESPONSE_WAS_PRODUCED()); - } - - public static Localizable localizableWSSERVLET_26_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET26.diag.check.1"); - } - - /** - * This may cause a problem, please remove duplicate endpoints - * - */ - public static String WSSERVLET_26_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_26_DIAG_CHECK_1()); - } - - public static Localizable localizableSERVLET_HTML_TITLE() { - return messageFactory.getMessage("servlet.html.title"); - } - - /** - * Web Services - * - */ - public static String SERVLET_HTML_TITLE() { - return localizer.localize(localizableSERVLET_HTML_TITLE()); - } - - public static Localizable localizableWSSERVLET_44_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET44.diag.cause.1"); - } - - /** - * The web service was instantiated, however, it could not be initialized - * - */ - public static String WSSERVLET_44_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_44_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_63_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET63.diag.check.1"); - } - - /** - * Make sure that your HTTP client is using POST requests, not GET requests - * - */ - public static String WSSERVLET_63_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_63_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_28_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET28.diag.cause.1"); - } - - /** - * Target endpoint is null - * - */ - public static String WSSERVLET_28_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_28_DIAG_CAUSE_1()); - } - - public static Localizable localizableERROR_IMPLEMENTOR_FACTORY_NO_CONFIGURATION() { - return messageFactory.getMessage("error.implementorFactory.noConfiguration"); - } - - /** - * WSSERVLET36: no configuration specified - * - */ - public static String ERROR_IMPLEMENTOR_FACTORY_NO_CONFIGURATION() { - return localizer.localize(localizableERROR_IMPLEMENTOR_FACTORY_NO_CONFIGURATION()); - } - - public static Localizable localizableHTML_ROOT_PAGE_BODY_4() { - return messageFactory.getMessage("html.rootPage.body4"); - } - - /** - *

    This endpoint is incorrectly configured. Please check the location and contents of the configuration file.

    - * - */ - public static String HTML_ROOT_PAGE_BODY_4() { - return localizer.localize(localizableHTML_ROOT_PAGE_BODY_4()); - } - - public static Localizable localizableHTML_ROOT_PAGE_BODY_1() { - return messageFactory.getMessage("html.rootPage.body1"); - } - - /** - *

    A Web Service is installed at this URL.

    - * - */ - public static String HTML_ROOT_PAGE_BODY_1() { - return localizer.localize(localizableHTML_ROOT_PAGE_BODY_1()); - } - - public static Localizable localizableEXCEPTION_TRANSFORMATION_FAILED(Object arg0) { - return messageFactory.getMessage("exception.transformationFailed", arg0); - } - - /** - * WSSERVLET34: transformation failed : {0} - * - */ - public static String EXCEPTION_TRANSFORMATION_FAILED(Object arg0) { - return localizer.localize(localizableEXCEPTION_TRANSFORMATION_FAILED(arg0)); - } - - public static Localizable localizableSERVLET_HTML_METHOD() { - return messageFactory.getMessage("servlet.html.method"); - } - - /** - * WSSERVLET63: must use Post for this type of request - * - */ - public static String SERVLET_HTML_METHOD() { - return localizer.localize(localizableSERVLET_HTML_METHOD()); - } - - public static Localizable localizableSERVLET_FAULTSTRING_MISSING_PORT() { - return messageFactory.getMessage("servlet.faultstring.missingPort"); - } - - /** - * WSSERVLET28: Missing port information - * - */ - public static String SERVLET_FAULTSTRING_MISSING_PORT() { - return localizer.localize(localizableSERVLET_FAULTSTRING_MISSING_PORT()); - } - - public static Localizable localizableWSSERVLET_21_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET21.diag.cause.1"); - } - - /** - * The Web service is being invoked - * - */ - public static String WSSERVLET_21_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_21_DIAG_CAUSE_1()); - } - - public static Localizable localizableSERVLET_TRACE_WRITING_SUCCESS_RESPONSE() { - return messageFactory.getMessage("servlet.trace.writingSuccessResponse"); - } - - /** - * WSSERVLET25: writing success response - * - */ - public static String SERVLET_TRACE_WRITING_SUCCESS_RESPONSE() { - return localizer.localize(localizableSERVLET_TRACE_WRITING_SUCCESS_RESPONSE()); - } - - public static Localizable localizableWSSERVLET_33_DIAG_CHECK_2() { - return messageFactory.getMessage("WSSERVLET33.diag.check.2"); - } - - /** - * There maybe a transformation engine may not be supported or compatible. Check the server.xml file for exceptions. - * - */ - public static String WSSERVLET_33_DIAG_CHECK_2() { - return localizer.localize(localizableWSSERVLET_33_DIAG_CHECK_2()); - } - - public static Localizable localizableWSSERVLET_33_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET33.diag.check.1"); - } - - /** - * There maybe a transformation engine being used that is not compatible. Make sure you are using the correct transformer and version. - * - */ - public static String WSSERVLET_33_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_33_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_51_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET51.diag.cause.1"); - } - - /** - * Service processing of the request generated an exception; while attempting to return a SOAPPFaultMessage a throwable was again generated - * - */ - public static String WSSERVLET_51_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_51_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_24_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET24.diag.check.1"); - } - - /** - * Tracing message fault recorded. - * - */ - public static String WSSERVLET_24_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_24_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_17_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET17.diag.check.1"); - } - - /** - * Note that this may cause problems with service deployment - * - */ - public static String WSSERVLET_17_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_17_DIAG_CHECK_1()); - } - - public static Localizable localizableWSSERVLET_35_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET35.diag.cause.1"); - } - - /** - * A XSLT stylesheet template is create for the wsdl location patching using transformation. Template create failed. - * - */ - public static String WSSERVLET_35_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_35_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_19_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET19.diag.cause.1"); - } - - /** - * Client request for this endpoint arrived - * - */ - public static String WSSERVLET_19_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_19_DIAG_CAUSE_1()); - } - - public static Localizable localizableWSSERVLET_65_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET65.diag.cause.1"); - } - - /** - * SOAP Action is required - * - */ - public static String WSSERVLET_65_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_65_DIAG_CAUSE_1()); - } - - public static Localizable localizableLISTENER_PARSING_FAILED(Object arg0) { - return messageFactory.getMessage("listener.parsingFailed", arg0); - } - - /** - * WSSERVLET11: failed to parse runtime descriptor: {0} - * - */ - public static String LISTENER_PARSING_FAILED(Object arg0) { - return localizer.localize(localizableLISTENER_PARSING_FAILED(arg0)); - } - - public static Localizable localizableSERVLET_WARNING_IGNORING_IMPLICIT_URL_PATTERN(Object arg0) { - return messageFactory.getMessage("servlet.warning.ignoringImplicitUrlPattern", arg0); - } - - /** - * WSSERVLET27: unsupported implicit URL pattern in endpoint: {0} - * - */ - public static String SERVLET_WARNING_IGNORING_IMPLICIT_URL_PATTERN(Object arg0) { - return localizer.localize(localizableSERVLET_WARNING_IGNORING_IMPLICIT_URL_PATTERN(arg0)); - } - - public static Localizable localizableWSSERVLET_49_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET49.diag.cause.1"); - } - - /** - * Service processing of the request generated an exception; while attempting to return a SOAPFaultMessage a throwable was again generated - * - */ - public static String WSSERVLET_49_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_49_DIAG_CAUSE_1()); + return LOCALIZER.localize(localizableMESSAGE_TOO_LONG(arg0)); } public static Localizable localizableERROR_IMPLEMENTOR_FACTORY_NEW_INSTANCE_FAILED(Object arg0) { - return messageFactory.getMessage("error.implementorFactory.newInstanceFailed", arg0); + return MESSAGE_FACTORY.getMessage("error.implementorFactory.newInstanceFailed", arg0); } /** @@ -1678,191 +236,83 @@ public final class WsservletMessages { * */ public static String ERROR_IMPLEMENTOR_FACTORY_NEW_INSTANCE_FAILED(Object arg0) { - return localizer.localize(localizableERROR_IMPLEMENTOR_FACTORY_NEW_INSTANCE_FAILED(arg0)); + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_FACTORY_NEW_INSTANCE_FAILED(arg0)); } - public static Localizable localizableWSSERVLET_12_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET12.diag.cause.1"); + public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_CANNOT_READ_CONFIGURATION() { + return MESSAGE_FACTORY.getMessage("error.implementorRegistry.cannotReadConfiguration"); } /** - * Context listener starting + * WSSERVLET39: cannot read configuration * */ - public static String WSSERVLET_12_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_12_DIAG_CAUSE_1()); + public static String ERROR_IMPLEMENTOR_REGISTRY_CANNOT_READ_CONFIGURATION() { + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_REGISTRY_CANNOT_READ_CONFIGURATION()); } - public static Localizable localizableWSSERVLET_31_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET31.diag.check.1"); + public static Localizable localizableWSSERVLET_35_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET35.diag.cause.1"); } /** - * Normal operation + * A XSLT stylesheet template is create for the wsdl location patching using transformation. Template create failed. * */ - public static String WSSERVLET_31_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_31_DIAG_CHECK_1()); + public static String WSSERVLET_35_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_35_DIAG_CAUSE_1()); } - public static Localizable localizableSERVLET_FAULTSTRING_INVALID_CONTENT_TYPE() { - return messageFactory.getMessage("servlet.faultstring.invalidContentType"); + public static Localizable localizableERROR_SERVLET_INIT_CONFIG_FILE_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.servlet.init.config.fileNotFound", arg0); } /** - * WSSERVLET64: Invalid Content-Type, text/xml required + * WSSERVLET48: config file: "{0}" not found * */ - public static String SERVLET_FAULTSTRING_INVALID_CONTENT_TYPE() { - return localizer.localize(localizableSERVLET_FAULTSTRING_INVALID_CONTENT_TYPE()); + public static String ERROR_SERVLET_INIT_CONFIG_FILE_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableERROR_SERVLET_INIT_CONFIG_FILE_NOT_FOUND(arg0)); } - public static Localizable localizableERROR_SERVLET_CAUGHT_THROWABLE(Object arg0) { - return messageFactory.getMessage("error.servlet.caughtThrowable", arg0); + public static Localizable localizableWSSERVLET_34_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET34.diag.cause.1"); } /** - * WSSERVLET49: caught throwable: {0} + * The location patching on the wsdl failed when attempting to transform. * */ - public static String ERROR_SERVLET_CAUGHT_THROWABLE(Object arg0) { - return localizer.localize(localizableERROR_SERVLET_CAUGHT_THROWABLE(arg0)); + public static String WSSERVLET_34_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_34_DIAG_CAUSE_1()); } - public static Localizable localizableTRACE_SERVLET_WRITING_SUCCESS_RESPONSE() { - return messageFactory.getMessage("trace.servlet.writingSuccessResponse"); + public static Localizable localizableERROR_SERVLET_CAUGHT_THROWABLE_IN_INIT(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.servlet.caughtThrowableInInit", arg0); } /** - * WSSERVLET62: writing success response + * WSSERVLET50: caught throwable during servlet initialization: {0} * */ - public static String TRACE_SERVLET_WRITING_SUCCESS_RESPONSE() { - return localizer.localize(localizableTRACE_SERVLET_WRITING_SUCCESS_RESPONSE()); + public static String ERROR_SERVLET_CAUGHT_THROWABLE_IN_INIT(Object arg0) { + return LOCALIZER.localize(localizableERROR_SERVLET_CAUGHT_THROWABLE_IN_INIT(arg0)); } - public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_CLASS_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("error.implementorRegistry.classNotFound", arg0); + public static Localizable localizableSERVLET_ERROR_NO_RESPONSE_MESSAGE() { + return MESSAGE_FACTORY.getMessage("servlet.error.noResponseMessage"); } /** - * WSSERVLET40: class not found: {0} + * WSSERVLET23: no response message * */ - public static String ERROR_IMPLEMENTOR_REGISTRY_CLASS_NOT_FOUND(Object arg0) { - return localizer.localize(localizableERROR_IMPLEMENTOR_REGISTRY_CLASS_NOT_FOUND(arg0)); - } - - public static Localizable localizableWSSERVLET_15_DIAG_CHECK_1() { - return messageFactory.getMessage("WSSERVLET15.diag.check.1"); - } - - /** - * Normal Web service undeployment. Undeployment complete. - * - */ - public static String WSSERVLET_15_DIAG_CHECK_1() { - return localizer.localize(localizableWSSERVLET_15_DIAG_CHECK_1()); - } - - public static Localizable localizableSERVLET_FAULTSTRING_PORT_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("servlet.faultstring.portNotFound", arg0); - } - - /** - * WSSERVLET29: Port not found ({0}) - * - */ - public static String SERVLET_FAULTSTRING_PORT_NOT_FOUND(Object arg0) { - return localizer.localize(localizableSERVLET_FAULTSTRING_PORT_NOT_FOUND(arg0)); - } - - public static Localizable localizableSERVLET_INFO_DESTROY() { - return messageFactory.getMessage("servlet.info.destroy"); - } - - /** - * WSSERVLET15: JAX-WS servlet destroyed - * - */ - public static String SERVLET_INFO_DESTROY() { - return localizer.localize(localizableSERVLET_INFO_DESTROY()); - } - - public static Localizable localizableSERVLET_FAULTSTRING_INTERNAL_SERVER_ERROR(Object arg0) { - return messageFactory.getMessage("servlet.faultstring.internalServerError", arg0); - } - - /** - * WSSERVLET30: Internal server error ({0}) - * - */ - public static String SERVLET_FAULTSTRING_INTERNAL_SERVER_ERROR(Object arg0) { - return localizer.localize(localizableSERVLET_FAULTSTRING_INTERNAL_SERVER_ERROR(arg0)); - } - - public static Localizable localizableWSSERVLET_26_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET26.diag.cause.1"); - } - - /** - * The endpoint URL is a duplicate - * - */ - public static String WSSERVLET_26_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_26_DIAG_CAUSE_1()); - } - - public static Localizable localizableSERVLET_HTML_COLUMN_HEADER_STATUS() { - return messageFactory.getMessage("servlet.html.columnHeader.status"); - } - - /** - * Status - * - */ - public static String SERVLET_HTML_COLUMN_HEADER_STATUS() { - return localizer.localize(localizableSERVLET_HTML_COLUMN_HEADER_STATUS()); - } - - public static Localizable localizableWSSERVLET_63_DIAG_CAUSE_1() { - return messageFactory.getMessage("WSSERVLET63.diag.cause.1"); - } - - /** - * Web service requests must use HTTP POST method: WSI BP 1.0 - * - */ - public static String WSSERVLET_63_DIAG_CAUSE_1() { - return localizer.localize(localizableWSSERVLET_63_DIAG_CAUSE_1()); - } - - public static Localizable localizableSERVLET_WARNING_DUPLICATE_ENDPOINT_NAME() { - return messageFactory.getMessage("servlet.warning.duplicateEndpointName"); - } - - /** - * WSSERVLET17: duplicate endpoint name - * - */ - public static String SERVLET_WARNING_DUPLICATE_ENDPOINT_NAME() { - return localizer.localize(localizableSERVLET_WARNING_DUPLICATE_ENDPOINT_NAME()); - } - - public static Localizable localizableTRACE_SERVLET_REQUEST_FOR_PORT_NAMED(Object arg0) { - return messageFactory.getMessage("trace.servlet.requestForPortNamed", arg0); - } - - /** - * WSSERVLET58: got request for port: {0} - * - */ - public static String TRACE_SERVLET_REQUEST_FOR_PORT_NAMED(Object arg0) { - return localizer.localize(localizableTRACE_SERVLET_REQUEST_FOR_PORT_NAMED(arg0)); + public static String SERVLET_ERROR_NO_RESPONSE_MESSAGE() { + return LOCALIZER.localize(localizableSERVLET_ERROR_NO_RESPONSE_MESSAGE()); } public static Localizable localizableSERVLET_NO_ADDRESS_AVAILABLE(Object arg0) { - return messageFactory.getMessage("servlet.no.address.available", arg0); + return MESSAGE_FACTORY.getMessage("servlet.no.address.available", arg0); } /** @@ -1870,7 +320,1566 @@ public final class WsservletMessages { * */ public static String SERVLET_NO_ADDRESS_AVAILABLE(Object arg0) { - return localizer.localize(localizableSERVLET_NO_ADDRESS_AVAILABLE(arg0)); + return LOCALIZER.localize(localizableSERVLET_NO_ADDRESS_AVAILABLE(arg0)); + } + + public static Localizable localizableWSSERVLET_31_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET31.diag.cause.1"); + } + + /** + * Transformation being applied + * + */ + public static String WSSERVLET_31_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_31_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_30_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET30.diag.cause.1"); + } + + /** + * There was a server error processing the request + * + */ + public static String WSSERVLET_30_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_30_DIAG_CAUSE_1()); + } + + public static Localizable localizableINFO_SERVLET_DESTROYING() { + return MESSAGE_FACTORY.getMessage("info.servlet.destroying"); + } + + /** + * WSSERVLET57: JAX-WS servlet: destroy + * + */ + public static String INFO_SERVLET_DESTROYING() { + return LOCALIZER.localize(localizableINFO_SERVLET_DESTROYING()); + } + + public static Localizable localizableWSSERVLET_22_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET22.diag.cause.1"); + } + + /** + * A request was invoked with no endpoint + * + */ + public static String WSSERVLET_22_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_22_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_26_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET26.diag.cause.1"); + } + + /** + * The endpoint URL is a duplicate + * + */ + public static String WSSERVLET_26_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_26_DIAG_CAUSE_1()); + } + + public static Localizable localizableSERVLET_HTML_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("servlet.html.notFound", arg0); + } + + /** + *

    404 Not Found: {0}

    + * + */ + public static String SERVLET_HTML_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableSERVLET_HTML_NOT_FOUND(arg0)); + } + + public static Localizable localizableNO_SUNJAXWS_XML(Object arg0) { + return MESSAGE_FACTORY.getMessage("no.sunjaxws.xml", arg0); + } + + /** + * Runtime descriptor "{0}" is missing + * + */ + public static String NO_SUNJAXWS_XML(Object arg0) { + return LOCALIZER.localize(localizableNO_SUNJAXWS_XML(arg0)); + } + + public static Localizable localizableWSSERVLET_18_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET18.diag.check.1"); + } + + /** + * This may or may not be intentional. If not examine client program for errors. + * + */ + public static String WSSERVLET_18_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_18_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_24_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET24.diag.cause.1"); + } + + /** + * SOAPFault message is being returned to the client. + * + */ + public static String WSSERVLET_24_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_24_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_51_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET51.diag.cause.1"); + } + + /** + * Service processing of the request generated an exception; while attempting to return a SOAPPFaultMessage a throwable was again generated + * + */ + public static String WSSERVLET_51_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_51_DIAG_CAUSE_1()); + } + + public static Localizable localizableERROR_SERVLET_NO_PORT_SPECIFIED() { + return MESSAGE_FACTORY.getMessage("error.servlet.noPortSpecified"); + } + + /** + * WSSERVLET53: no port specified in HTTP POST request URL + * + */ + public static String ERROR_SERVLET_NO_PORT_SPECIFIED() { + return LOCALIZER.localize(localizableERROR_SERVLET_NO_PORT_SPECIFIED()); + } + + public static Localizable localizableWSSERVLET_43_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET43.diag.cause.1"); + } + + /** + * Instantiation of the web service failed. + * + */ + public static String WSSERVLET_43_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_43_DIAG_CAUSE_1()); + } + + public static Localizable localizableTRACE_SERVLET_WRITING_SUCCESS_RESPONSE() { + return MESSAGE_FACTORY.getMessage("trace.servlet.writingSuccessResponse"); + } + + /** + * WSSERVLET62: writing success response + * + */ + public static String TRACE_SERVLET_WRITING_SUCCESS_RESPONSE() { + return LOCALIZER.localize(localizableTRACE_SERVLET_WRITING_SUCCESS_RESPONSE()); + } + + public static Localizable localizableINFO_SERVLET_GOT_EMPTY_REQUEST_MESSAGE() { + return MESSAGE_FACTORY.getMessage("info.servlet.gotEmptyRequestMessage"); + } + + /** + * WSSERVLET55: got empty request message + * + */ + public static String INFO_SERVLET_GOT_EMPTY_REQUEST_MESSAGE() { + return LOCALIZER.localize(localizableINFO_SERVLET_GOT_EMPTY_REQUEST_MESSAGE()); + } + + public static Localizable localizableERROR_SERVLET_CAUGHT_THROWABLE_WHILE_RECOVERING(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.servlet.caughtThrowableWhileRecovering", arg0); + } + + /** + * WSSERVLET51: caught throwable while recovering from a previous exception: {0} + * + */ + public static String ERROR_SERVLET_CAUGHT_THROWABLE_WHILE_RECOVERING(Object arg0) { + return LOCALIZER.localize(localizableERROR_SERVLET_CAUGHT_THROWABLE_WHILE_RECOVERING(arg0)); + } + + public static Localizable localizableWSSERVLET_12_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET12.diag.check.1"); + } + + /** + * Normal web service startup + * + */ + public static String WSSERVLET_12_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_12_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_16_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET16.diag.check.1"); + } + + /** + * Unjar the service war file; check to see that the jaxrpc-ri-runtime.xml file is present + * + */ + public static String WSSERVLET_16_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_16_DIAG_CHECK_1()); + } + + public static Localizable localizableSERVLET_INFO_EMPTY_REQUEST_MESSAGE() { + return MESSAGE_FACTORY.getMessage("servlet.info.emptyRequestMessage"); + } + + /** + * WSSERVLET18: got empty request message + * + */ + public static String SERVLET_INFO_EMPTY_REQUEST_MESSAGE() { + return LOCALIZER.localize(localizableSERVLET_INFO_EMPTY_REQUEST_MESSAGE()); + } + + public static Localizable localizableSERVLET_WARNING_IGNORING_IMPLICIT_URL_PATTERN(Object arg0) { + return MESSAGE_FACTORY.getMessage("servlet.warning.ignoringImplicitUrlPattern", arg0); + } + + /** + * WSSERVLET27: unsupported implicit URL pattern in endpoint: {0} + * + */ + public static String SERVLET_WARNING_IGNORING_IMPLICIT_URL_PATTERN(Object arg0) { + return LOCALIZER.localize(localizableSERVLET_WARNING_IGNORING_IMPLICIT_URL_PATTERN(arg0)); + } + + public static Localizable localizableWSSERVLET_14_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET14.diag.check.1"); + } + + /** + * Normal Web Service deployment. Deployment of service complete. + * + */ + public static String WSSERVLET_14_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_14_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_20_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET20.diag.cause.1"); + } + + /** + * Implementation for this service can not be found + * + */ + public static String WSSERVLET_20_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_20_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_14_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET14.diag.cause.1"); + } + + /** + * Web Services servlet starting up. + * + */ + public static String WSSERVLET_14_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_14_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_28_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET28.diag.check.1"); + } + + /** + * Set target endpoint with stub.setTargetEndpoint() property. + * + */ + public static String WSSERVLET_28_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_28_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_26_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET26.diag.check.1"); + } + + /** + * This may cause a problem, please remove duplicate endpoints + * + */ + public static String WSSERVLET_26_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_26_DIAG_CHECK_1()); + } + + public static Localizable localizableHTML_ROOT_PAGE_TITLE() { + return MESSAGE_FACTORY.getMessage("html.rootPage.title"); + } + + /** + * Web Service + * + */ + public static String HTML_ROOT_PAGE_TITLE() { + return LOCALIZER.localize(localizableHTML_ROOT_PAGE_TITLE()); + } + + public static Localizable localizableWSSERVLET_18_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET18.diag.cause.1"); + } + + /** + * Message sent by client is empty + * + */ + public static String WSSERVLET_18_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_18_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_63_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET63.diag.cause.1"); + } + + /** + * Web service requests must use HTTP POST method: WSI BP 1.0 + * + */ + public static String WSSERVLET_63_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_63_DIAG_CAUSE_1()); + } + + public static Localizable localizableHTML_NON_ROOT_PAGE_TITLE() { + return MESSAGE_FACTORY.getMessage("html.nonRootPage.title"); + } + + /** + * Web Service + * + */ + public static String HTML_NON_ROOT_PAGE_TITLE() { + return LOCALIZER.localize(localizableHTML_NON_ROOT_PAGE_TITLE()); + } + + public static Localizable localizableSERVLET_INFO_DESTROY() { + return MESSAGE_FACTORY.getMessage("servlet.info.destroy"); + } + + /** + * WSSERVLET15: JAX-WS servlet destroyed + * + */ + public static String SERVLET_INFO_DESTROY() { + return LOCALIZER.localize(localizableSERVLET_INFO_DESTROY()); + } + + public static Localizable localizableSERVLET_FAULTSTRING_INVALID_SOAP_ACTION() { + return MESSAGE_FACTORY.getMessage("servlet.faultstring.invalidSOAPAction"); + } + + /** + * WSSERVLET65: Invalid Header SOAPAction required + * + */ + public static String SERVLET_FAULTSTRING_INVALID_SOAP_ACTION() { + return LOCALIZER.localize(localizableSERVLET_FAULTSTRING_INVALID_SOAP_ACTION()); + } + + public static Localizable localizableWSSERVLET_16_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET16.diag.cause.1"); + } + + /** + * The jaxrpc-ri.xml file may be missing from the war file + * + */ + public static String WSSERVLET_16_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_16_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_63_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET63.diag.check.1"); + } + + /** + * Make sure that your HTTP client is using POST requests, not GET requests + * + */ + public static String WSSERVLET_63_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_63_DIAG_CHECK_1()); + } + + public static Localizable localizableEXCEPTION_TRANSFORMATION_FAILED(Object arg0) { + return MESSAGE_FACTORY.getMessage("exception.transformationFailed", arg0); + } + + /** + * WSSERVLET34: transformation failed : {0} + * + */ + public static String EXCEPTION_TRANSFORMATION_FAILED(Object arg0) { + return LOCALIZER.localize(localizableEXCEPTION_TRANSFORMATION_FAILED(arg0)); + } + + public static Localizable localizableWSSERVLET_28_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET28.diag.cause.1"); + } + + /** + * Target endpoint is null + * + */ + public static String WSSERVLET_28_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_28_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_20_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET20.diag.check.1"); + } + + /** + * Unzip the war, are the tie and serializer classes found? + * + */ + public static String WSSERVLET_20_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_20_DIAG_CHECK_1()); + } + + public static Localizable localizableERROR_SERVLET_NO_IMPLEMENTOR_FOR_PORT(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.servlet.noImplementorForPort", arg0); + } + + /** + * WSSERVLET52: no implementor registered for port: {0} + * + */ + public static String ERROR_SERVLET_NO_IMPLEMENTOR_FOR_PORT(Object arg0) { + return LOCALIZER.localize(localizableERROR_SERVLET_NO_IMPLEMENTOR_FOR_PORT(arg0)); + } + + public static Localizable localizablePUBLISHER_INFO_GENERATING_WSDL(Object arg0) { + return MESSAGE_FACTORY.getMessage("publisher.info.generatingWSDL", arg0); + } + + /** + * WSSERVLET32: generating WSDL for endpoint: {0} + * + */ + public static String PUBLISHER_INFO_GENERATING_WSDL(Object arg0) { + return LOCALIZER.localize(localizablePUBLISHER_INFO_GENERATING_WSDL(arg0)); + } + + public static Localizable localizableWSSERVLET_22_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET22.diag.check.1"); + } + + /** + * Set endpoint with stub.setTargetEndpoint property + * + */ + public static String WSSERVLET_22_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_22_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_24_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET24.diag.check.1"); + } + + /** + * Tracing message fault recorded. + * + */ + public static String WSSERVLET_24_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_24_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_12_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET12.diag.cause.1"); + } + + /** + * Context listener starting + * + */ + public static String WSSERVLET_12_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_12_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_65_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET65.diag.cause.1"); + } + + /** + * SOAP Action is required + * + */ + public static String WSSERVLET_65_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_65_DIAG_CAUSE_1()); + } + + public static Localizable localizableSERVLET_TRACE_INVOKING_IMPLEMENTOR(Object arg0) { + return MESSAGE_FACTORY.getMessage("servlet.trace.invokingImplementor", arg0); + } + + /** + * WSSERVLET21: invoking implementor: {0} + * + */ + public static String SERVLET_TRACE_INVOKING_IMPLEMENTOR(Object arg0) { + return LOCALIZER.localize(localizableSERVLET_TRACE_INVOKING_IMPLEMENTOR(arg0)); + } + + public static Localizable localizableWSSERVLET_21_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET21.diag.cause.1"); + } + + /** + * The Web service is being invoked + * + */ + public static String WSSERVLET_21_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_21_DIAG_CAUSE_1()); + } + + public static Localizable localizableTRACE_SERVLET_REQUEST_FOR_PORT_NAMED(Object arg0) { + return MESSAGE_FACTORY.getMessage("trace.servlet.requestForPortNamed", arg0); + } + + /** + * WSSERVLET58: got request for port: {0} + * + */ + public static String TRACE_SERVLET_REQUEST_FOR_PORT_NAMED(Object arg0) { + return LOCALIZER.localize(localizableTRACE_SERVLET_REQUEST_FOR_PORT_NAMED(arg0)); + } + + public static Localizable localizablePUBLISHER_INFO_APPLYING_TRANSFORMATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("publisher.info.applyingTransformation", arg0); + } + + /** + * WSSERVLET31: applying transformation with actual address: {0} + * + */ + public static String PUBLISHER_INFO_APPLYING_TRANSFORMATION(Object arg0) { + return LOCALIZER.localize(localizablePUBLISHER_INFO_APPLYING_TRANSFORMATION(arg0)); + } + + public static Localizable localizableERROR_IMPLEMENTOR_FACTORY_SERVANT_INIT_FAILED(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.implementorFactory.servantInitFailed", arg0); + } + + /** + * WSSERVLET44: failed to initialize the service implementor for port "{0}" + * + */ + public static String ERROR_IMPLEMENTOR_FACTORY_SERVANT_INIT_FAILED(Object arg0) { + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_FACTORY_SERVANT_INIT_FAILED(arg0)); + } + + public static Localizable localizableWSSERVLET_17_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET17.diag.check.1"); + } + + /** + * Note that this may cause problems with service deployment + * + */ + public static String WSSERVLET_17_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_17_DIAG_CHECK_1()); + } + + public static Localizable localizableERROR_SERVLET_CAUGHT_THROWABLE(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.servlet.caughtThrowable", arg0); + } + + /** + * WSSERVLET49: caught throwable: {0} + * + */ + public static String ERROR_SERVLET_CAUGHT_THROWABLE(Object arg0) { + return LOCALIZER.localize(localizableERROR_SERVLET_CAUGHT_THROWABLE(arg0)); + } + + public static Localizable localizableWSSERVLET_25_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET25.diag.cause.1"); + } + + /** + * SOAPMessage response is being returned to client + * + */ + public static String WSSERVLET_25_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_25_DIAG_CAUSE_1()); + } + + public static Localizable localizableSERVLET_HTML_METHOD() { + return MESSAGE_FACTORY.getMessage("servlet.html.method"); + } + + /** + * WSSERVLET63: must use Post for this type of request + * + */ + public static String SERVLET_HTML_METHOD() { + return LOCALIZER.localize(localizableSERVLET_HTML_METHOD()); + } + + public static Localizable localizableERROR_IMPLEMENTOR_FACTORY_NO_INPUT_STREAM() { + return MESSAGE_FACTORY.getMessage("error.implementorFactory.noInputStream"); + } + + /** + * WSSERVLET37: no configuration specified + * + */ + public static String ERROR_IMPLEMENTOR_FACTORY_NO_INPUT_STREAM() { + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_FACTORY_NO_INPUT_STREAM()); + } + + public static Localizable localizableWSSERVLET_51_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET51.diag.check.1"); + } + + /** + * Check the server.xml log file for exception information + * + */ + public static String WSSERVLET_51_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_51_DIAG_CHECK_1()); + } + + public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_UNKNOWN_NAME(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.implementorRegistry.unknownName", arg0); + } + + /** + * WSSERVLET38: unknown port name: {0} + * + */ + public static String ERROR_IMPLEMENTOR_REGISTRY_UNKNOWN_NAME(Object arg0) { + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_REGISTRY_UNKNOWN_NAME(arg0)); + } + + public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_INCOMPLETE_INFORMATION() { + return MESSAGE_FACTORY.getMessage("error.implementorRegistry.incompleteInformation"); + } + + /** + * WSSERVLET41: configuration information is incomplete + * + */ + public static String ERROR_IMPLEMENTOR_REGISTRY_INCOMPLETE_INFORMATION() { + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_REGISTRY_INCOMPLETE_INFORMATION()); + } + + public static Localizable localizableWSSERVLET_13_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET13.diag.check.1"); + } + + /** + * Normal web service shutdown + * + */ + public static String WSSERVLET_13_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_13_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_32_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET32.diag.check.1"); + } + + /** + * Normal Operation. + * + */ + public static String WSSERVLET_32_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_32_DIAG_CHECK_1()); + } + + public static Localizable localizableSERVLET_HTML_TITLE_2() { + return MESSAGE_FACTORY.getMessage("servlet.html.title2"); + } + + /** + *

    Web Services

    + * + */ + public static String SERVLET_HTML_TITLE_2() { + return LOCALIZER.localize(localizableSERVLET_HTML_TITLE_2()); + } + + public static Localizable localizableSERVLET_HTML_COLUMN_HEADER_PORT_NAME() { + return MESSAGE_FACTORY.getMessage("servlet.html.columnHeader.portName"); + } + + /** + * Endpoint + * + */ + public static String SERVLET_HTML_COLUMN_HEADER_PORT_NAME() { + return LOCALIZER.localize(localizableSERVLET_HTML_COLUMN_HEADER_PORT_NAME()); + } + + public static Localizable localizableSERVLET_HTML_COLUMN_HEADER_STATUS() { + return MESSAGE_FACTORY.getMessage("servlet.html.columnHeader.status"); + } + + /** + * Status + * + */ + public static String SERVLET_HTML_COLUMN_HEADER_STATUS() { + return LOCALIZER.localize(localizableSERVLET_HTML_COLUMN_HEADER_STATUS()); + } + + public static Localizable localizableWSSERVLET_43_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET43.diag.check.1"); + } + + /** + * Make sure web service is available and public. Examine exception for more details + * + */ + public static String WSSERVLET_43_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_43_DIAG_CHECK_1()); + } + + public static Localizable localizableINFO_SERVLET_INITIALIZING() { + return MESSAGE_FACTORY.getMessage("info.servlet.initializing"); + } + + /** + * WSSERVLET56: JAX-WS servlet: init + * + */ + public static String INFO_SERVLET_INITIALIZING() { + return LOCALIZER.localize(localizableINFO_SERVLET_INITIALIZING()); + } + + public static Localizable localizableWSSERVLET_32_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET32.diag.cause.1"); + } + + /** + * WSDL being generated + * + */ + public static String WSSERVLET_32_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_32_DIAG_CAUSE_1()); + } + + public static Localizable localizableJAXRPCSERVLET_11_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("JAXRPCSERVLET11.diag.cause.1"); + } + + /** + * WSRuntimeInfoParser could not parse sun-jaxws.xml runtime descriptor + * + */ + public static String JAXRPCSERVLET_11_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableJAXRPCSERVLET_11_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_33_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET33.diag.cause.1"); + } + + /** + * When publishing the service wsdl, the http location is patched with the deployed location/endpoint using XSLT transformation. The transformer could not be created to do the transformation. + * + */ + public static String WSSERVLET_33_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_33_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_44_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET44.diag.check.1"); + } + + /** + * Check the exception for more details. Make sure all the configuration files are correct. + * + */ + public static String WSSERVLET_44_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_44_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_33_DIAG_CAUSE_2() { + return MESSAGE_FACTORY.getMessage("WSSERVLET33.diag.cause.2"); + } + + /** + * When publishing the service wsdl, the http location is patched with the deployed location/endpoint using XSLT transformation. The transformer could not be created to do the transformation. + * + */ + public static String WSSERVLET_33_DIAG_CAUSE_2() { + return LOCALIZER.localize(localizableWSSERVLET_33_DIAG_CAUSE_2()); + } + + public static Localizable localizableERROR_IMPLEMENTOR_FACTORY_NO_CONFIGURATION() { + return MESSAGE_FACTORY.getMessage("error.implementorFactory.noConfiguration"); + } + + /** + * WSSERVLET36: no configuration specified + * + */ + public static String ERROR_IMPLEMENTOR_FACTORY_NO_CONFIGURATION() { + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_FACTORY_NO_CONFIGURATION()); + } + + public static Localizable localizableWSSERVLET_44_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET44.diag.cause.1"); + } + + /** + * The web service was instantiated, however, it could not be initialized + * + */ + public static String WSSERVLET_44_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_44_DIAG_CAUSE_1()); + } + + public static Localizable localizableHTML_WSDL_PAGE_TITLE() { + return MESSAGE_FACTORY.getMessage("html.wsdlPage.title"); + } + + /** + * Web Service + * + */ + public static String HTML_WSDL_PAGE_TITLE() { + return LOCALIZER.localize(localizableHTML_WSDL_PAGE_TITLE()); + } + + public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_DUPLICATE_NAME(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.implementorRegistry.duplicateName", arg0); + } + + /** + * WSSERVLET42: duplicate port name: {0} + * + */ + public static String ERROR_IMPLEMENTOR_REGISTRY_DUPLICATE_NAME(Object arg0) { + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_REGISTRY_DUPLICATE_NAME(arg0)); + } + + public static Localizable localizableSERVLET_WARNING_DUPLICATE_ENDPOINT_URL_PATTERN(Object arg0) { + return MESSAGE_FACTORY.getMessage("servlet.warning.duplicateEndpointUrlPattern", arg0); + } + + /** + * WSSERVLET26: duplicate URL pattern in endpoint: {0} + * + */ + public static String SERVLET_WARNING_DUPLICATE_ENDPOINT_URL_PATTERN(Object arg0) { + return LOCALIZER.localize(localizableSERVLET_WARNING_DUPLICATE_ENDPOINT_URL_PATTERN(arg0)); + } + + public static Localizable localizableSERVLET_HTML_NO_INFO_AVAILABLE() { + return MESSAGE_FACTORY.getMessage("servlet.html.noInfoAvailable"); + } + + /** + *

    No JAX-WS context information available.

    + * + */ + public static String SERVLET_HTML_NO_INFO_AVAILABLE() { + return LOCALIZER.localize(localizableSERVLET_HTML_NO_INFO_AVAILABLE()); + } + + public static Localizable localizableWSSERVLET_49_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET49.diag.cause.1"); + } + + /** + * Service processing of the request generated an exception; while attempting to return a SOAPFaultMessage a throwable was again generated + * + */ + public static String WSSERVLET_49_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_49_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_33_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET33.diag.check.1"); + } + + /** + * There maybe a transformation engine being used that is not compatible. Make sure you are using the correct transformer and version. + * + */ + public static String WSSERVLET_33_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_33_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_35_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET35.diag.check.1"); + } + + /** + * An exception was thrown during creation of the template. View exception and stacktrace for more details. + * + */ + public static String WSSERVLET_35_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_35_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_33_DIAG_CHECK_2() { + return MESSAGE_FACTORY.getMessage("WSSERVLET33.diag.check.2"); + } + + /** + * There maybe a transformation engine may not be supported or compatible. Check the server.xml file for exceptions. + * + */ + public static String WSSERVLET_33_DIAG_CHECK_2() { + return LOCALIZER.localize(localizableWSSERVLET_33_DIAG_CHECK_2()); + } + + public static Localizable localizableSERVLET_HTML_INFORMATION_TABLE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("servlet.html.information.table", arg0, arg1); + } + + /** + *
    Address:{0}
    WSDL:{0}?wsdl
    Implementation class:{1}
    + * + */ + public static String SERVLET_HTML_INFORMATION_TABLE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableSERVLET_HTML_INFORMATION_TABLE(arg0, arg1)); + } + + public static Localizable localizableERROR_WSDL_PUBLISHER_CANNOT_READ_CONFIGURATION() { + return MESSAGE_FACTORY.getMessage("error.wsdlPublisher.cannotReadConfiguration"); + } + + /** + * WSSERVLET46: cannot read configuration + * + */ + public static String ERROR_WSDL_PUBLISHER_CANNOT_READ_CONFIGURATION() { + return LOCALIZER.localize(localizableERROR_WSDL_PUBLISHER_CANNOT_READ_CONFIGURATION()); + } + + public static Localizable localizableEXCEPTION_CANNOT_CREATE_TRANSFORMER() { + return MESSAGE_FACTORY.getMessage("exception.cannotCreateTransformer"); + } + + /** + * WSSERVLET33: cannot create transformer + * + */ + public static String EXCEPTION_CANNOT_CREATE_TRANSFORMER() { + return LOCALIZER.localize(localizableEXCEPTION_CANNOT_CREATE_TRANSFORMER()); + } + + public static Localizable localizableHTML_NON_ROOT_PAGE_BODY_2() { + return MESSAGE_FACTORY.getMessage("html.nonRootPage.body2"); + } + + /** + *

    Invalid request URI.

    Please check your deployment information.

    + * + */ + public static String HTML_NON_ROOT_PAGE_BODY_2() { + return LOCALIZER.localize(localizableHTML_NON_ROOT_PAGE_BODY_2()); + } + + public static Localizable localizableLISTENER_PARSING_FAILED(Object arg0) { + return MESSAGE_FACTORY.getMessage("listener.parsingFailed", arg0); + } + + /** + * WSSERVLET11: failed to parse runtime descriptor: {0} + * + */ + public static String LISTENER_PARSING_FAILED(Object arg0) { + return LOCALIZER.localize(localizableLISTENER_PARSING_FAILED(arg0)); + } + + public static Localizable localizableLISTENER_INFO_DESTROY() { + return MESSAGE_FACTORY.getMessage("listener.info.destroy"); + } + + /** + * WSSERVLET13: JAX-WS context listener destroyed + * + */ + public static String LISTENER_INFO_DESTROY() { + return LOCALIZER.localize(localizableLISTENER_INFO_DESTROY()); + } + + public static Localizable localizableHTML_NON_ROOT_PAGE_BODY_1() { + return MESSAGE_FACTORY.getMessage("html.nonRootPage.body1"); + } + + /** + *

    A Web Service is installed at this URL.

    + * + */ + public static String HTML_NON_ROOT_PAGE_BODY_1() { + return LOCALIZER.localize(localizableHTML_NON_ROOT_PAGE_BODY_1()); + } + + public static Localizable localizableSERVLET_INFO_INITIALIZE() { + return MESSAGE_FACTORY.getMessage("servlet.info.initialize"); + } + + /** + * WSSERVLET14: JAX-WS servlet initializing + * + */ + public static String SERVLET_INFO_INITIALIZE() { + return LOCALIZER.localize(localizableSERVLET_INFO_INITIALIZE()); + } + + public static Localizable localizableSERVLET_WARNING_MISSING_CONTEXT_INFORMATION() { + return MESSAGE_FACTORY.getMessage("servlet.warning.missingContextInformation"); + } + + /** + * WSSERVLET16: missing context information + * + */ + public static String SERVLET_WARNING_MISSING_CONTEXT_INFORMATION() { + return LOCALIZER.localize(localizableSERVLET_WARNING_MISSING_CONTEXT_INFORMATION()); + } + + public static Localizable localizableWSSERVLET_64_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET64.diag.check.1"); + } + + /** + * Make sure the client request is using text/xml + * + */ + public static String WSSERVLET_64_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_64_DIAG_CHECK_1()); + } + + public static Localizable localizableSERVLET_FAULTSTRING_PORT_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("servlet.faultstring.portNotFound", arg0); + } + + /** + * WSSERVLET29: Port not found ({0}) + * + */ + public static String SERVLET_FAULTSTRING_PORT_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableSERVLET_FAULTSTRING_PORT_NOT_FOUND(arg0)); + } + + public static Localizable localizableWSSERVLET_49_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET49.diag.check.1"); + } + + /** + * Check the server.xml log file for exception information + * + */ + public static String WSSERVLET_49_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_49_DIAG_CHECK_1()); + } + + public static Localizable localizableSERVLET_TRACE_WRITING_SUCCESS_RESPONSE() { + return MESSAGE_FACTORY.getMessage("servlet.trace.writingSuccessResponse"); + } + + /** + * WSSERVLET25: writing success response + * + */ + public static String SERVLET_TRACE_WRITING_SUCCESS_RESPONSE() { + return LOCALIZER.localize(localizableSERVLET_TRACE_WRITING_SUCCESS_RESPONSE()); + } + + public static Localizable localizableWSSERVLET_50_DIAG_CHECK_2() { + return MESSAGE_FACTORY.getMessage("WSSERVLET50.diag.check.2"); + } + + /** + * Verify that Application server deployment descriptors are correct in the service war file + * + */ + public static String WSSERVLET_50_DIAG_CHECK_2() { + return LOCALIZER.localize(localizableWSSERVLET_50_DIAG_CHECK_2()); + } + + public static Localizable localizableSERVLET_FAULTSTRING_INTERNAL_SERVER_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("servlet.faultstring.internalServerError", arg0); + } + + /** + * WSSERVLET30: Internal server error ({0}) + * + */ + public static String SERVLET_FAULTSTRING_INTERNAL_SERVER_ERROR(Object arg0) { + return LOCALIZER.localize(localizableSERVLET_FAULTSTRING_INTERNAL_SERVER_ERROR(arg0)); + } + + public static Localizable localizableWSSERVLET_50_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET50.diag.check.1"); + } + + /** + * Verify that sun-jaxws.xml and web.xml are correct in the service war file + * + */ + public static String WSSERVLET_50_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_50_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_31_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET31.diag.check.1"); + } + + /** + * Normal operation + * + */ + public static String WSSERVLET_31_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_31_DIAG_CHECK_1()); + } + + public static Localizable localizableEXCEPTION_TEMPLATE_CREATION_FAILED() { + return MESSAGE_FACTORY.getMessage("exception.templateCreationFailed"); + } + + /** + * WSSERVLET35: failed to create a template object + * + */ + public static String EXCEPTION_TEMPLATE_CREATION_FAILED() { + return LOCALIZER.localize(localizableEXCEPTION_TEMPLATE_CREATION_FAILED()); + } + + public static Localizable localizableSERVLET_ERROR_NO_IMPLEMENTOR_FOR_ENDPOINT(Object arg0) { + return MESSAGE_FACTORY.getMessage("servlet.error.noImplementorForEndpoint", arg0); + } + + /** + * WSSERVLET20: no implementor for endpoint: {0} + * + */ + public static String SERVLET_ERROR_NO_IMPLEMENTOR_FOR_ENDPOINT(Object arg0) { + return LOCALIZER.localize(localizableSERVLET_ERROR_NO_IMPLEMENTOR_FOR_ENDPOINT(arg0)); + } + + public static Localizable localizableWSSERVLET_50_DIAG_CHECK_3() { + return MESSAGE_FACTORY.getMessage("WSSERVLET50.diag.check.3"); + } + + /** + * Check the server.xml file in the domain directory for failures + * + */ + public static String WSSERVLET_50_DIAG_CHECK_3() { + return LOCALIZER.localize(localizableWSSERVLET_50_DIAG_CHECK_3()); + } + + public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_FILE_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.implementorRegistry.fileNotFound", arg0); + } + + /** + * WSSERVLET45: file not found: {0} + * + */ + public static String ERROR_IMPLEMENTOR_REGISTRY_FILE_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_REGISTRY_FILE_NOT_FOUND(arg0)); + } + + public static Localizable localizableWSSERVLET_13_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET13.diag.cause.1"); + } + + /** + * Context listener shutdown + * + */ + public static String WSSERVLET_13_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_13_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_27_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET27.diag.check.1"); + } + + /** + * Remove the implicit URL + * + */ + public static String WSSERVLET_27_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_27_DIAG_CHECK_1()); + } + + public static Localizable localizableHTML_ROOT_PAGE_BODY_2_B() { + return MESSAGE_FACTORY.getMessage("html.rootPage.body2b"); + } + + /** + *

    + * + */ + public static String HTML_ROOT_PAGE_BODY_2_B() { + return LOCALIZER.localize(localizableHTML_ROOT_PAGE_BODY_2_B()); + } + + public static Localizable localizableWSSERVLET_15_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET15.diag.cause.1"); + } + + /** + * Web Services servlet shutdown. + * + */ + public static String WSSERVLET_15_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_15_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_29_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET29.diag.check.1"); + } + + /** + * Is the port valid? Unzip the war file and make sure the tie and serializers are present + * + */ + public static String WSSERVLET_29_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_29_DIAG_CHECK_1()); + } + + public static Localizable localizableERROR_SERVLET_INIT_CONFIG_PARAMETER_MISSING(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.servlet.init.config.parameter.missing", arg0); + } + + /** + * WSSERVLET47: cannot find configuration parameter: "{0}" + * + */ + public static String ERROR_SERVLET_INIT_CONFIG_PARAMETER_MISSING(Object arg0) { + return LOCALIZER.localize(localizableERROR_SERVLET_INIT_CONFIG_PARAMETER_MISSING(arg0)); + } + + public static Localizable localizableWSSERVLET_25_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET25.diag.check.1"); + } + + /** + * Tracing message, normal response. + * + */ + public static String WSSERVLET_25_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_25_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_64_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET64.diag.cause.1"); + } + + /** + * Web service requests must be a content type text/xml: WSI BP 1.0 + * + */ + public static String WSSERVLET_64_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_64_DIAG_CAUSE_1()); + } + + public static Localizable localizableHTML_ROOT_PAGE_BODY_2_A() { + return MESSAGE_FACTORY.getMessage("html.rootPage.body2a"); + } + + /** + *

    It supports the following ports: + * + */ + public static String HTML_ROOT_PAGE_BODY_2_A() { + return LOCALIZER.localize(localizableHTML_ROOT_PAGE_BODY_2_A()); + } + + public static Localizable localizableWSSERVLET_19_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET19.diag.cause.1"); + } + + /** + * Client request for this endpoint arrived + * + */ + public static String WSSERVLET_19_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_19_DIAG_CAUSE_1()); + } + + public static Localizable localizableHTML_ROOT_PAGE_BODY_4() { + return MESSAGE_FACTORY.getMessage("html.rootPage.body4"); + } + + /** + *

    This endpoint is incorrectly configured. Please check the location and contents of the configuration file.

    + * + */ + public static String HTML_ROOT_PAGE_BODY_4() { + return LOCALIZER.localize(localizableHTML_ROOT_PAGE_BODY_4()); + } + + public static Localizable localizableSERVLET_FAULTSTRING_MISSING_PORT() { + return MESSAGE_FACTORY.getMessage("servlet.faultstring.missingPort"); + } + + /** + * WSSERVLET28: Missing port information + * + */ + public static String SERVLET_FAULTSTRING_MISSING_PORT() { + return LOCALIZER.localize(localizableSERVLET_FAULTSTRING_MISSING_PORT()); + } + + public static Localizable localizableHTML_ROOT_PAGE_BODY_1() { + return MESSAGE_FACTORY.getMessage("html.rootPage.body1"); + } + + /** + *

    A Web Service is installed at this URL.

    + * + */ + public static String HTML_ROOT_PAGE_BODY_1() { + return LOCALIZER.localize(localizableHTML_ROOT_PAGE_BODY_1()); + } + + public static Localizable localizableTRACE_SERVLET_WRITING_FAULT_RESPONSE() { + return MESSAGE_FACTORY.getMessage("trace.servlet.writingFaultResponse"); + } + + /** + * WSSERVLET61: writing fault response + * + */ + public static String TRACE_SERVLET_WRITING_FAULT_RESPONSE() { + return LOCALIZER.localize(localizableTRACE_SERVLET_WRITING_FAULT_RESPONSE()); + } + + public static Localizable localizableTRACE_SERVLET_GOT_RESPONSE_FROM_IMPLEMENTOR(Object arg0) { + return MESSAGE_FACTORY.getMessage("trace.servlet.gotResponseFromImplementor", arg0); + } + + /** + * WSSERVLET60: got response from implementor: {0} + * + */ + public static String TRACE_SERVLET_GOT_RESPONSE_FROM_IMPLEMENTOR(Object arg0) { + return LOCALIZER.localize(localizableTRACE_SERVLET_GOT_RESPONSE_FROM_IMPLEMENTOR(arg0)); + } + + public static Localizable localizableWSSERVLET_17_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET17.diag.cause.1"); + } + + /** + * Two or more endpoints with the same name where found in the jaxrpc-ri.xml runtime descriptor + * + */ + public static String WSSERVLET_17_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_17_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_50_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET50.diag.cause.1"); + } + + /** + * WS runtime sun-jaxws.xml or web.xml may be incorrect + * + */ + public static String WSSERVLET_50_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_50_DIAG_CAUSE_1()); + } + + public static Localizable localizableSERVLET_HTML_ENDPOINT_TABLE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("servlet.html.endpoint.table", arg0, arg1); + } + + /** + *
    Service Name:{0}
    Port Name:{1}
    + * + */ + public static String SERVLET_HTML_ENDPOINT_TABLE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableSERVLET_HTML_ENDPOINT_TABLE(arg0, arg1)); + } + + public static Localizable localizableSERVLET_TRACE_GOT_REQUEST_FOR_ENDPOINT(Object arg0) { + return MESSAGE_FACTORY.getMessage("servlet.trace.gotRequestForEndpoint", arg0); + } + + /** + * WSSERVLET19: got request for endpoint: {0} + * + */ + public static String SERVLET_TRACE_GOT_REQUEST_FOR_ENDPOINT(Object arg0) { + return LOCALIZER.localize(localizableSERVLET_TRACE_GOT_REQUEST_FOR_ENDPOINT(arg0)); + } + + public static Localizable localizableSERVLET_HTML_COLUMN_HEADER_INFORMATION() { + return MESSAGE_FACTORY.getMessage("servlet.html.columnHeader.information"); + } + + /** + * Information + * + */ + public static String SERVLET_HTML_COLUMN_HEADER_INFORMATION() { + return LOCALIZER.localize(localizableSERVLET_HTML_COLUMN_HEADER_INFORMATION()); + } + + public static Localizable localizableLISTENER_INFO_INITIALIZE() { + return MESSAGE_FACTORY.getMessage("listener.info.initialize"); + } + + /** + * WSSERVLET12: JAX-WS context listener initializing + * + */ + public static String LISTENER_INFO_INITIALIZE() { + return LOCALIZER.localize(localizableLISTENER_INFO_INITIALIZE()); + } + + public static Localizable localizableERROR_SERVLET_NO_RESPONSE_WAS_PRODUCED() { + return MESSAGE_FACTORY.getMessage("error.servlet.noResponseWasProduced"); + } + + /** + * WSSERVLET54: no response was produced (internal error) + * + */ + public static String ERROR_SERVLET_NO_RESPONSE_WAS_PRODUCED() { + return LOCALIZER.localize(localizableERROR_SERVLET_NO_RESPONSE_WAS_PRODUCED()); + } + + public static Localizable localizableSERVLET_ERROR_NO_ENDPOINT_SPECIFIED() { + return MESSAGE_FACTORY.getMessage("servlet.error.noEndpointSpecified"); + } + + /** + * WSSERVLET22: no endpoint specified + * + */ + public static String SERVLET_ERROR_NO_ENDPOINT_SPECIFIED() { + return LOCALIZER.localize(localizableSERVLET_ERROR_NO_ENDPOINT_SPECIFIED()); + } + + public static Localizable localizableSERVLET_HTML_TITLE() { + return MESSAGE_FACTORY.getMessage("servlet.html.title"); + } + + /** + * Web Services + * + */ + public static String SERVLET_HTML_TITLE() { + return LOCALIZER.localize(localizableSERVLET_HTML_TITLE()); + } + + public static Localizable localizableWSSERVLET_50_DIAG_CAUSE_2() { + return MESSAGE_FACTORY.getMessage("WSSERVLET50.diag.cause.2"); + } + + /** + * Application server deployment descriptors may be incorrect + * + */ + public static String WSSERVLET_50_DIAG_CAUSE_2() { + return LOCALIZER.localize(localizableWSSERVLET_50_DIAG_CAUSE_2()); + } + + public static Localizable localizableWSSERVLET_50_DIAG_CAUSE_3() { + return MESSAGE_FACTORY.getMessage("WSSERVLET50.diag.cause.3"); + } + + /** + * There may some Application Server initialization problems + * + */ + public static String WSSERVLET_50_DIAG_CAUSE_3() { + return LOCALIZER.localize(localizableWSSERVLET_50_DIAG_CAUSE_3()); + } + + public static Localizable localizableWSSERVLET_21_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET21.diag.check.1"); + } + + /** + * Normal web service invocation. + * + */ + public static String WSSERVLET_21_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_21_DIAG_CHECK_1()); + } + + public static Localizable localizableERROR_IMPLEMENTOR_REGISTRY_CLASS_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("error.implementorRegistry.classNotFound", arg0); + } + + /** + * WSSERVLET40: class not found: {0} + * + */ + public static String ERROR_IMPLEMENTOR_REGISTRY_CLASS_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableERROR_IMPLEMENTOR_REGISTRY_CLASS_NOT_FOUND(arg0)); + } + + public static Localizable localizableWSSERVLET_29_DIAG_CAUSE_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET29.diag.cause.1"); + } + + /** + * A port is specified, but a corresponding service implementation is not found + * + */ + public static String WSSERVLET_29_DIAG_CAUSE_1() { + return LOCALIZER.localize(localizableWSSERVLET_29_DIAG_CAUSE_1()); + } + + public static Localizable localizableWSSERVLET_11_DIAG_CAUSE_2() { + return MESSAGE_FACTORY.getMessage("WSSERVLET11.diag.cause.2"); + } + + /** + * The sun-jaxws.xml runtime deployment descriptor may be missing + * + */ + public static String WSSERVLET_11_DIAG_CAUSE_2() { + return LOCALIZER.localize(localizableWSSERVLET_11_DIAG_CAUSE_2()); + } + + public static Localizable localizableWSSERVLET_23_DIAG_CHECK_1() { + return MESSAGE_FACTORY.getMessage("WSSERVLET23.diag.check.1"); + } + + /** + * If a response was expected, check that a request message was actually sent + * + */ + public static String WSSERVLET_23_DIAG_CHECK_1() { + return LOCALIZER.localize(localizableWSSERVLET_23_DIAG_CHECK_1()); + } + + public static Localizable localizableWSSERVLET_23_DIAG_CHECK_2() { + return MESSAGE_FACTORY.getMessage("WSSERVLET23.diag.check.2"); + } + + /** + * The request may be malformed and be accepted by the service, yet did not generate a response + * + */ + public static String WSSERVLET_23_DIAG_CHECK_2() { + return LOCALIZER.localize(localizableWSSERVLET_23_DIAG_CHECK_2()); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/XmlmessageMessages.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/XmlmessageMessages.java index 3680416d951..318387a336b 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/XmlmessageMessages.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/XmlmessageMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,150 +25,28 @@ package com.sun.xml.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import javax.annotation.Generated; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** * Defines string formatting method for each constant in the resource file * */ +@Generated("com.sun.istack.internal.maven.ResourceGenMojo") public final class XmlmessageMessages { + private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.xmlmessage"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, XmlmessageMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableXML_NULL_HEADERS() { - return messageFactory.getMessage("xml.null.headers"); - } - - /** - * Invalid argument. MimeHeaders=null - * - */ - public static String XML_NULL_HEADERS() { - return localizer.localize(localizableXML_NULL_HEADERS()); - } - - public static Localizable localizableXML_SET_PAYLOAD_ERR() { - return messageFactory.getMessage("xml.set.payload.err"); - } - - /** - * Couldn't set Payload in XMLMessage - * - */ - public static String XML_SET_PAYLOAD_ERR() { - return localizer.localize(localizableXML_SET_PAYLOAD_ERR()); - } - - public static Localizable localizableXML_CONTENT_TYPE_MUSTBE_MULTIPART() { - return messageFactory.getMessage("xml.content-type.mustbe.multipart"); - } - - /** - * Content-Type needs to be Multipart/Related and with type=text/xml - * - */ - public static String XML_CONTENT_TYPE_MUSTBE_MULTIPART() { - return localizer.localize(localizableXML_CONTENT_TYPE_MUSTBE_MULTIPART()); - } - - public static Localizable localizableXML_UNKNOWN_CONTENT_TYPE() { - return messageFactory.getMessage("xml.unknown.Content-Type"); - } - - /** - * Unrecognized Content-Type - * - */ - public static String XML_UNKNOWN_CONTENT_TYPE() { - return localizer.localize(localizableXML_UNKNOWN_CONTENT_TYPE()); - } - - public static Localizable localizableXML_GET_DS_ERR() { - return messageFactory.getMessage("xml.get.ds.err"); - } - - /** - * Couldn't get DataSource - * - */ - public static String XML_GET_DS_ERR() { - return localizer.localize(localizableXML_GET_DS_ERR()); - } - - public static Localizable localizableXML_CONTENT_TYPE_PARSE_ERR() { - return messageFactory.getMessage("xml.Content-Type.parse.err"); - } - - /** - * Error while parsing MimeHeaders for Content-Type - * - */ - public static String XML_CONTENT_TYPE_PARSE_ERR() { - return localizer.localize(localizableXML_CONTENT_TYPE_PARSE_ERR()); - } - - public static Localizable localizableXML_GET_SOURCE_ERR() { - return messageFactory.getMessage("xml.get.source.err"); - } - - /** - * Couldn't return Source - * - */ - public static String XML_GET_SOURCE_ERR() { - return localizer.localize(localizableXML_GET_SOURCE_ERR()); - } - - public static Localizable localizableXML_CANNOT_INTERNALIZE_MESSAGE() { - return messageFactory.getMessage("xml.cannot.internalize.message"); - } - - /** - * Cannot create XMLMessage - * - */ - public static String XML_CANNOT_INTERNALIZE_MESSAGE() { - return localizer.localize(localizableXML_CANNOT_INTERNALIZE_MESSAGE()); - } - - public static Localizable localizableXML_NO_CONTENT_TYPE() { - return messageFactory.getMessage("xml.no.Content-Type"); - } - - /** - * MimeHeaders doesn't contain Content-Type header - * - */ - public static String XML_NO_CONTENT_TYPE() { - return localizer.localize(localizableXML_NO_CONTENT_TYPE()); - } - - public static Localizable localizableXML_ROOT_PART_INVALID_CONTENT_TYPE(Object arg0) { - return messageFactory.getMessage("xml.root.part.invalid.Content-Type", arg0); - } - - /** - * Bad Content-Type for Root Part : {0} - * - */ - public static String XML_ROOT_PART_INVALID_CONTENT_TYPE(Object arg0) { - return localizer.localize(localizableXML_ROOT_PART_INVALID_CONTENT_TYPE(arg0)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new XmlmessageMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableXML_INVALID_CONTENT_TYPE(Object arg0) { - return messageFactory.getMessage("xml.invalid.content-type", arg0); + return MESSAGE_FACTORY.getMessage("xml.invalid.content-type", arg0); } /** @@ -176,7 +54,138 @@ public final class XmlmessageMessages { * */ public static String XML_INVALID_CONTENT_TYPE(Object arg0) { - return localizer.localize(localizableXML_INVALID_CONTENT_TYPE(arg0)); + return LOCALIZER.localize(localizableXML_INVALID_CONTENT_TYPE(arg0)); + } + + public static Localizable localizableXML_GET_SOURCE_ERR() { + return MESSAGE_FACTORY.getMessage("xml.get.source.err"); + } + + /** + * Couldn't return Source + * + */ + public static String XML_GET_SOURCE_ERR() { + return LOCALIZER.localize(localizableXML_GET_SOURCE_ERR()); + } + + public static Localizable localizableXML_UNKNOWN_CONTENT_TYPE() { + return MESSAGE_FACTORY.getMessage("xml.unknown.Content-Type"); + } + + /** + * Unrecognized Content-Type + * + */ + public static String XML_UNKNOWN_CONTENT_TYPE() { + return LOCALIZER.localize(localizableXML_UNKNOWN_CONTENT_TYPE()); + } + + public static Localizable localizableXML_SET_PAYLOAD_ERR() { + return MESSAGE_FACTORY.getMessage("xml.set.payload.err"); + } + + /** + * Couldn't set Payload in XMLMessage + * + */ + public static String XML_SET_PAYLOAD_ERR() { + return LOCALIZER.localize(localizableXML_SET_PAYLOAD_ERR()); + } + + public static Localizable localizableXML_ROOT_PART_INVALID_CONTENT_TYPE(Object arg0) { + return MESSAGE_FACTORY.getMessage("xml.root.part.invalid.Content-Type", arg0); + } + + /** + * Bad Content-Type for Root Part : {0} + * + */ + public static String XML_ROOT_PART_INVALID_CONTENT_TYPE(Object arg0) { + return LOCALIZER.localize(localizableXML_ROOT_PART_INVALID_CONTENT_TYPE(arg0)); + } + + public static Localizable localizableXML_GET_DS_ERR() { + return MESSAGE_FACTORY.getMessage("xml.get.ds.err"); + } + + /** + * Couldn't get DataSource + * + */ + public static String XML_GET_DS_ERR() { + return LOCALIZER.localize(localizableXML_GET_DS_ERR()); + } + + public static Localizable localizableXML_CANNOT_INTERNALIZE_MESSAGE() { + return MESSAGE_FACTORY.getMessage("xml.cannot.internalize.message"); + } + + /** + * Cannot create XMLMessage + * + */ + public static String XML_CANNOT_INTERNALIZE_MESSAGE() { + return LOCALIZER.localize(localizableXML_CANNOT_INTERNALIZE_MESSAGE()); + } + + public static Localizable localizableXML_CONTENT_TYPE_PARSE_ERR() { + return MESSAGE_FACTORY.getMessage("xml.Content-Type.parse.err"); + } + + /** + * Error while parsing MimeHeaders for Content-Type + * + */ + public static String XML_CONTENT_TYPE_PARSE_ERR() { + return LOCALIZER.localize(localizableXML_CONTENT_TYPE_PARSE_ERR()); + } + + public static Localizable localizableXML_NULL_HEADERS() { + return MESSAGE_FACTORY.getMessage("xml.null.headers"); + } + + /** + * Invalid argument. MimeHeaders=null + * + */ + public static String XML_NULL_HEADERS() { + return LOCALIZER.localize(localizableXML_NULL_HEADERS()); + } + + public static Localizable localizableXML_NO_CONTENT_TYPE() { + return MESSAGE_FACTORY.getMessage("xml.no.Content-Type"); + } + + /** + * MimeHeaders doesn't contain Content-Type header + * + */ + public static String XML_NO_CONTENT_TYPE() { + return LOCALIZER.localize(localizableXML_NO_CONTENT_TYPE()); + } + + public static Localizable localizableXML_CONTENT_TYPE_MUSTBE_MULTIPART() { + return MESSAGE_FACTORY.getMessage("xml.content-type.mustbe.multipart"); + } + + /** + * Content-Type needs to be Multipart/Related and with type=text/xml + * + */ + public static String XML_CONTENT_TYPE_MUSTBE_MULTIPART() { + return LOCALIZER.localize(localizableXML_CONTENT_TYPE_MUSTBE_MULTIPART()); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler.properties index 545570e86c2..fff23f10b6a 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -51,8 +51,8 @@ runtime.modeler.mtom.conflict = Error in @BindingType: MTOM Configuration in bi # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= Feature {0} in implementation conflicts with {1} in WSDL configuration # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API is loaded from {0}, But JAX-WS runtime requires JAX-WS 2.2 API. \ - Use the endorsed standards override mechanism to load JAX-WS 2.2 API +runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API is loaded from {0}, But JAX-WS runtime requires JAX-WS 2.2 or newer API. \ + Use the standard override mechanism to load JAX-WS 2.2 or newer API. runtime.modeler.wsfeature.no.ftrconstructor=Annotation {0} is not recognizable, at least one constructor of {1} should be marked with @FeatureConstructor runtime.modeler.wsfeature.morethanone.ftrconstructor=Annotation {0} is illegal, Only one constructor of {1} can be marked as @FeatureConstructor runtime.modeler.wsfeature.illegal.ftrconstructor=Annotation {0} is illegal, In {1} @FeatureConstructor value doesn't match the constructor parameters diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_de.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_de.properties index 52c9c712b24..c2d5374723c 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_de.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_de.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -47,7 +47,7 @@ runtime.modeler.mtom.conflict = Fehler bei @BindingType: MTOM-Konfiguration in B # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= Feature {0} in Implementierung ist nicht mit {1} in WSDL-Konfiguration vereinbar # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API wird aus {0} geladen, die JAX-WS-Laufzeitumgebung erfordert jedoch JAX-WS 2.2 API. Verwenden Sie das "Endorsed Standards Override Mechanism"-Verfahren, um JAX-WS 2.2 API zu laden +runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1-API wird aus {0} geladen, die JAX-WS-Laufzeit erfordert jedoch JAX-WS 2.2 oder eine neuere API. Verwenden Sie das Standard-Override-Verfahren, um JAX-WS 2.2 oder eine neuere API zu laden. runtime.modeler.wsfeature.no.ftrconstructor=Annotation {0} kann nicht erkannt werden, mindestens ein Konstruktor von {1} muss mit @FeatureConstructor markiert werden runtime.modeler.wsfeature.morethanone.ftrconstructor=Annotation {0} ist unzul\u00E4ssig. Nur ein Konstruktor von {1} kann als @FeatureConstructor markiert werden runtime.modeler.wsfeature.illegal.ftrconstructor=Annotation {0} ist unzul\u00E4ssig. In {1} stimmt der @FeatureConstructor-Wert nicht mit den Konstruktorparametern \u00FCberein diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_es.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_es.properties index 0317823ef75..26ee36aade8 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_es.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_es.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -47,7 +47,7 @@ runtime.modeler.mtom.conflict = Error en @BindingType: la configuraci\u00F3n de # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= La funci\u00F3n {0} de la implantaci\u00F3n entra en conflicto con {1} en la configuraci\u00F3n de WSDL # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = La API de JAX-WS 2.1 se ha cargado desde {0}, pero JAX-WS en tiempo de ejecuci\u00F3n necesita la API JAX-WS 2.2. Utilice el mecanismo de sustituci\u00F3n de est\u00E1ndares aprobado para cargar la API JAX-WS 2.2 +runtime.modeler.addressing.responses.nosuchmethod = La API de JAX-WS 2.1 se ha cargado desde {0}, pero JAX-WS en tiempo de ejecuci\u00F3n necesita la API de JAX-WS 2.2 o una versi\u00F3n posterior. Utilice el mecanismo de sustituci\u00F3n de est\u00E1ndares para cargar la API de JAX-WS 2.2 o una versi\u00F3n posterior. runtime.modeler.wsfeature.no.ftrconstructor=La anotaci\u00F3n {0} no es reconocible. Al menos un constructor de {1} se deber\u00EDa marcar con @FeatureConstructor runtime.modeler.wsfeature.morethanone.ftrconstructor=La anotaci\u00F3n {0} no es v\u00E1lida. S\u00F3lo un constructor de {1} se puede marcar como @FeatureConstructor runtime.modeler.wsfeature.illegal.ftrconstructor=La anotaci\u00F3n {0} no es v\u00E1lida. En {1}, el valor de @FeatureConstructor no coincide con los par\u00E1metros del constructor diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_fr.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_fr.properties index 980e2dbb19b..4487ad86139 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_fr.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_fr.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -47,7 +47,7 @@ runtime.modeler.mtom.conflict = Erreur dans @BindingType : la configuration MTOM # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= La fonctionnalit\u00E9 {0} dans l''impl\u00E9mentation est en conflit avec {1} dans la configuration WSDL # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = L''API JAX-WS 2.1 est charg\u00E9 \u00E0 partir de {0}, mais le runtime JAX-WS exige l''API JAX-WS 2.2. Utilisez le m\u00E9canisme Endorsed Standards Override Mechanism pour charger l''API JAX-WS 2.2 +runtime.modeler.addressing.responses.nosuchmethod = L''API JAX-WS 2.1 est charg\u00E9e \u00E0 partir de {0}, mais le runtime JAX-WS exige l''API JAX-WS 2.2 ou une version plus r\u00E9cente. Utilisez le m\u00E9canisme Standard Override Mechanism pour charger l''API JAX-WS 2.2 ou une version plus r\u00E9cente. runtime.modeler.wsfeature.no.ftrconstructor=L''annotation {0} n''est pas reconnaissable, au moins un constructeur de {1} doit \u00EAtre marqu\u00E9 avec @FeatureConstructor runtime.modeler.wsfeature.morethanone.ftrconstructor=L''annotation {0} est interdite, seul un constructeur de {1} peut \u00EAtre marqu\u00E9 comme @FeatureConstructor runtime.modeler.wsfeature.illegal.ftrconstructor=L''annotation {0} est interdite ; dans {1}, la valeur @FeatureConstructor ne correspond pas aux param\u00E8tres constructeur diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_it.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_it.properties index c8bc8c4c9b0..e1c32e6c4bf 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_it.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_it.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -47,7 +47,7 @@ runtime.modeler.mtom.conflict = Errore in @BindingType: la configurazione MTOM n # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= La funzione {0} nell''implementazione \u00E8 in conflitto con {1} nella configurazione WSDL # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = L''API JAX-WS 2.1 viene caricata da {0} ma il runtime JAX-WS richiede l''API JAX-WS 2.2. Usare il meccanismo Endorsed Standards Override Mechanism per caricare l''API JAX-WS 2.2 +runtime.modeler.addressing.responses.nosuchmethod = L''API JAX-WS 2.1 viene caricata da {0} ma il runtime JAX-WS richiede l''API JAX-WS 2.2 o versione successiva. Usare il meccanismo di sostituzione standard per caricare l''API JAX-WS 2.2 o versione successiva. runtime.modeler.wsfeature.no.ftrconstructor=L''annotazione {0} non \u00E8 riconoscibile. Almeno un costruttore di {1} deve essere contrassegnato con @FeatureConstructor runtime.modeler.wsfeature.morethanone.ftrconstructor=L''annotazione {0} non \u00E8 valida. Solo un costruttore di {1} pu\u00F2 essere contrassegnato come @FeatureConstructor runtime.modeler.wsfeature.illegal.ftrconstructor=L''annotazione {0} non \u00E8 valida. Il valore {1} @FeatureConstructor non corrisponde ai parametri del costruttore diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_ja.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_ja.properties index 94495904454..5e495b64f6b 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_ja.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_ja.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -47,7 +47,7 @@ runtime.modeler.mtom.conflict = @BindingType\u306E\u30A8\u30E9\u30FC: \u30D0\u30 # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= \u5B9F\u88C5\u306E\u6A5F\u80FD{0}\u304CWSDL\u69CB\u6210\u306E{1}\u3068\u7AF6\u5408\u3057\u3066\u3044\u307E\u3059 # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API\u306F{0}\u304B\u3089\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3059\u304C\u3001JAX-WS\u30E9\u30F3\u30BF\u30A4\u30E0\u306B\u306FJAX-WS 2.2 API\u304C\u5FC5\u8981\u3067\u3059\u3002JAX-WS 2.2 API\u3092\u30ED\u30FC\u30C9\u3059\u308B\u306B\u306F\u3001Endorsed Standards Override Mechanism\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044 +runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API\u306F{0}\u304B\u3089\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3059\u304C\u3001JAX-WS\u30E9\u30F3\u30BF\u30A4\u30E0\u306B\u306FJAX-WS 2.2\u4EE5\u4E0A\u306EAPI\u304C\u5FC5\u8981\u3067\u3059\u3002JAX-WS 2.2\u4EE5\u4E0A\u306EAPI\u3092\u30ED\u30FC\u30C9\u3059\u308B\u306B\u306F\u3001Standards Override Mechanism\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002 runtime.modeler.wsfeature.no.ftrconstructor=\u6CE8\u91C8{0}\u3092\u8A8D\u8B58\u3067\u304D\u307E\u305B\u3093\u3002{1}\u306E\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u306E\u5C11\u306A\u304F\u3068\u30821\u3064\u304C@FeatureConstructor\u3067\u30DE\u30FC\u30AF\u3055\u308C\u3066\u3044\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059 runtime.modeler.wsfeature.morethanone.ftrconstructor=\u6CE8\u91C8{0}\u304C\u4E0D\u6B63\u3067\u3059\u3002@FeatureConstructor\u3068\u3057\u3066\u30DE\u30FC\u30AF\u3067\u304D\u308B{1}\u306E\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u306F\u30011\u3064\u306E\u307F\u3067\u3059 runtime.modeler.wsfeature.illegal.ftrconstructor=\u6CE8\u91C8{0}\u304C\u4E0D\u6B63\u3067\u3059\u3002{1}\u3067\u3001@FeatureConstructor\u306E\u5024\u304C\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FB\u30D1\u30E9\u30E1\u30FC\u30BF\u3068\u4E00\u81F4\u3057\u307E\u305B\u3093 diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_ko.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_ko.properties index f51d783a1b1..0912cd30b48 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_ko.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_ko.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -47,7 +47,7 @@ runtime.modeler.mtom.conflict = @BindingType\uC5D0 \uC624\uB958 \uBC1C\uC0DD: \u # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= \uAD6C\uD604\uC758 {0} \uAE30\uB2A5\uC774 WSDL \uAD6C\uC131\uC758 {1}\uACFC(\uC640) \uCDA9\uB3CC\uD569\uB2C8\uB2E4. # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API\uAC00 {0}\uC5D0\uC11C \uB85C\uB4DC\uB418\uC5C8\uC9C0\uB9CC JAX-WS \uB7F0\uD0C0\uC784\uC5D0 JAX-WS 2.2 API\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uC778\uC99D\uB41C \uD45C\uC900 \uBB34\uD6A8\uD654 \uBC29\uC2DD\uC744 \uC0AC\uC6A9\uD558\uC5EC AX-WS 2.2 API\uB97C \uB85C\uB4DC\uD558\uC2ED\uC2DC\uC624. +runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API\uAC00 {0}\uC5D0\uC11C \uB85C\uB4DC\uB418\uC5C8\uC9C0\uB9CC JAX-WS \uB7F0\uD0C0\uC784\uC5D0 JAX-WS 2.2 \uC774\uC0C1 API\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uD45C\uC900 \uBB34\uD6A8\uD654 \uBC29\uC2DD\uC744 \uC0AC\uC6A9\uD558\uC5EC JAX-WS 2.2 \uC774\uC0C1 API\uB97C \uB85C\uB4DC\uD558\uC2ED\uC2DC\uC624. runtime.modeler.wsfeature.no.ftrconstructor={0} \uC8FC\uC11D\uC744 \uC778\uC2DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uD558\uB098 \uC774\uC0C1\uC758 {1} \uC0DD\uC131\uC790\uAC00 @FeatureConstructor\uB85C \uD45C\uC2DC\uB418\uC5B4\uC57C \uD569\uB2C8\uB2E4. runtime.modeler.wsfeature.morethanone.ftrconstructor={0} \uC8FC\uC11D\uC774 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uD558\uB098\uC758 {1} \uC0DD\uC131\uC790\uB9CC @FeatureConstructor\uB85C \uD45C\uC2DC\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4. runtime.modeler.wsfeature.illegal.ftrconstructor={0} \uC8FC\uC11D\uC774 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4. {1}\uC5D0\uC11C @FeatureConstructor \uAC12\uC774 \uC0DD\uC131\uC790 \uB9E4\uAC1C\uBCC0\uC218\uC640 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_pt_BR.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_pt_BR.properties index d6bfc767594..57d9f50b2b3 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_pt_BR.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_pt_BR.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -47,7 +47,7 @@ runtime.modeler.mtom.conflict = Erro em @BindingType: a Configura\u00E7\u00E3o d # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= O recurso {0} na implementa\u00E7\u00E3o est\u00E1 em conflito com {1} na configura\u00E7\u00E3o do WSDL # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = A API de JAX-WS 2.1 foi carregada de {0}, mas o runtime de JAX-WS requer a API JAX-WS 2.2. Use o mecanismo de substitui\u00E7\u00E3o de padr\u00F5es endossados para carregar a API de JAX-WS 2.2 +runtime.modeler.addressing.responses.nosuchmethod = A API de JAX-WS 2.1 foi carregada de {0}, mas o runtime de JAX-WS requer a API JAX-WS 2.2 ou mais recente. Use o mecanismo de substitui\u00E7\u00E3o de padr\u00F5es para carregar a API de JAX-WS 2.2 ou mais recente. runtime.modeler.wsfeature.no.ftrconstructor=A anota\u00E7\u00E3o {0} n\u00E3o \u00E9 reconhec\u00EDvel, pelo menos um construtor de {1} deve ser marcado com @FeatureConstructor runtime.modeler.wsfeature.morethanone.ftrconstructor=A anota\u00E7\u00E3o {0} \u00E9 inv\u00E1lida. Somente um construtor de {1} pode ser marcado como @FeatureConstructor runtime.modeler.wsfeature.illegal.ftrconstructor=A anota\u00E7\u00E3o {0} \u00E9 inv\u00E1lida. No {1} o valor de @FeatureConstructor n\u00E3o corresponde aos par\u00E2metros do construtor diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_zh_CN.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_zh_CN.properties index be9b1b7e9a3..56a8d496f6d 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_zh_CN.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_zh_CN.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -47,7 +47,7 @@ runtime.modeler.mtom.conflict = @BindingType \u4E2D\u51FA\u9519: \u7ED1\u5B9A\u6 # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= \u5B9E\u73B0\u4E2D\u7684\u529F\u80FD{0}\u4E0E WSDL \u914D\u7F6E\u4E2D\u7684{1}\u53D1\u751F\u51B2\u7A81 # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API \u5DF2\u4ECE{0}\u4E2D\u52A0\u8F7D, \u4F46 JAX-WS \u8FD0\u884C\u65F6\u9700\u8981 JAX-WS 2.2 API\u3002\u8BF7\u4F7F\u7528\u6388\u6743\u6807\u51C6\u8986\u76D6\u673A\u5236\u6765\u52A0\u8F7D JAX-WS 2.2 API +runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API \u5DF2\u4ECE {0} \u4E2D\u52A0\u8F7D, \u4F46 JAX-WS \u8FD0\u884C\u65F6\u9700\u8981 JAX-WS 2.2 \u6216\u66F4\u65B0\u7684 API\u3002\u8BF7\u4F7F\u7528\u6807\u51C6\u8986\u76D6\u673A\u5236\u6765\u52A0\u8F7D JAX-WS 2.2 \u6216\u66F4\u65B0\u7684 API\u3002 runtime.modeler.wsfeature.no.ftrconstructor=\u65E0\u6CD5\u8BC6\u522B\u6CE8\u91CA{0}, \u5E94\u4F7F\u7528 @FeatureConstructor \u81F3\u5C11\u6807\u8BB0{1}\u7684\u4E00\u4E2A\u6784\u9020\u5668 runtime.modeler.wsfeature.morethanone.ftrconstructor=\u6CE8\u91CA{0}\u662F\u975E\u6CD5\u7684, \u53EA\u80FD\u5C06{1}\u7684\u4E00\u4E2A\u6784\u9020\u5668\u6807\u8BB0\u4E3A @FeatureConstructor runtime.modeler.wsfeature.illegal.ftrconstructor=\u6CE8\u91CA{0}\u662F\u975E\u6CD5\u7684, \u5728{1}\u4E2D, @FeatureConstructor \u503C\u4E0E\u6784\u9020\u5668\u53C2\u6570\u4E0D\u5339\u914D diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_zh_TW.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_zh_TW.properties index 055d6da0d57..372512643f1 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_zh_TW.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/modeler_zh_TW.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1997, 2017, 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 @@ -47,7 +47,7 @@ runtime.modeler.mtom.conflict = @BindingType \u767C\u751F\u932F\u8AA4: \u9023\u7 # {0} - feature class name, {1} - feature class name runtime.modeler.feature.conflict= \u5BE6\u884C\u4E2D\u7684\u529F\u80FD {0} \u8207 WSDL \u7D44\u614B\u4E2D\u7684 {1} \u767C\u751F\u885D\u7A81 # {0} - absolute class location -runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API \u5DF2\u5F9E {0} \u8F09\u5165, \u4F46 JAX-WS \u7A0B\u5F0F\u5BE6\u969B\u57F7\u884C\u9700\u8981 JAX-WS 2.2 API. \u8ACB\u4F7F\u7528\u8A8D\u53EF\u7684\u6A19\u6E96\u8986\u5BEB\u6A5F\u5236\u4F86\u8F09\u5165 JAX-WS 2.2 API +runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API \u5F9E {0} \u8F09\u5165\uFF0C\u4F46\u662F JAX-WS \u7A0B\u5F0F\u5BE6\u969B\u57F7\u884C\u9700\u8981 JAX-WS 2.2 \u6216\u66F4\u65B0\u7248\u672C\u7684 API\u3002\u8ACB\u4F7F\u7528\u6A19\u6E96\u8986\u5BEB\u6A5F\u5236\u4F86\u8F09\u5165 JAX-WS 2.2 \u6216\u66F4\u65B0\u7248\u672C\u7684 API\u3002 runtime.modeler.wsfeature.no.ftrconstructor=\u8A3B\u89E3 {0} \u7121\u6CD5\u8FA8\u8B58, \u81F3\u5C11\u4E00\u500B {1} \u7684\u5EFA\u69CB\u5B50\u61C9\u6A19\u793A @FeatureConstructor runtime.modeler.wsfeature.morethanone.ftrconstructor=\u8A3B\u89E3 {0} \u7121\u6548, \u53EA\u80FD\u6709\u4E00\u500B {1} \u7684\u5EFA\u69CB\u5B50\u6A19\u793A\u70BA @FeatureConstructor runtime.modeler.wsfeature.illegal.ftrconstructor=\u8A3B\u89E3 {0} \u7121\u6548, \u5728 {1} \u4E2D, @FeatureConstructor \u503C\u8207\u5EFA\u69CB\u5B50\u53C3\u6578\u4E0D\u7B26 diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/HandlerAnnotationProcessor.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/HandlerAnnotationProcessor.java index 53d37f3dee8..df549c0249c 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/HandlerAnnotationProcessor.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/HandlerAnnotationProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -45,6 +45,7 @@ import javax.xml.ws.Provider; import javax.xml.ws.Service; import java.io.IOException; import java.io.InputStream; +import java.lang.reflect.Method; import java.net.URL; import java.util.logging.Logger; diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/MrJarUtil.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/MrJarUtil.java new file mode 100644 index 00000000000..7b6b5c2b649 --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/MrJarUtil.java @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2017, 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.xml.internal.ws.util; + +import java.security.AccessController; +import java.security.PrivilegedAction; + +/** + * Utility class used as a JEP 238 multi release jar versioned class. + * + * Version for {@code runtime >= 9}. + */ +public class MrJarUtil { + + /** + * Get property used for disabling instance pooling of xml readers / writers. + * + * @param baseName Name of a {@linkplain com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory} class or + * {@linkplain com.sun.xml.internal.ws.api.streaming.XMLStreamWriterFactory} class. + * + * @return true if *.noPool system property is not set or is set to true. + */ + public static boolean getNoPoolProperty(String baseName) { + return AccessController.doPrivileged(new PrivilegedAction() { + @Override + public Boolean run() { + String noPool = System.getProperty(baseName + ".noPool"); + return noPool == null || Boolean.parseBoolean(noPool); + } + }); + } +} diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/Pool.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/Pool.java index 3c6e544167f..dd426f491d0 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/Pool.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/Pool.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -30,8 +30,10 @@ import com.sun.xml.internal.ws.api.pipe.TubeCloner; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; + import java.util.concurrent.ConcurrentLinkedQueue; -import java.lang.ref.WeakReference; +import java.lang.ref.SoftReference; + /** * General-purpose object pool. @@ -50,7 +52,7 @@ import java.lang.ref.WeakReference; public abstract class Pool { // volatile since multiple threads may access queue reference - private volatile WeakReference> queue; + private volatile SoftReference> queue; /** * Gets a new object from the pool. @@ -69,7 +71,7 @@ public abstract class Pool { } private ConcurrentLinkedQueue getQueue() { - WeakReference> q = queue; + SoftReference> q = queue; if (q != null) { ConcurrentLinkedQueue d = q.get(); if (d != null) @@ -78,7 +80,7 @@ public abstract class Pool { // overwrite the queue ConcurrentLinkedQueue d = new ConcurrentLinkedQueue(); - queue = new WeakReference>(d); + queue = new SoftReference>(d); return d; } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/exception/JAXWSExceptionBase.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/exception/JAXWSExceptionBase.java index c2ec0fc4013..e7977c05e77 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/exception/JAXWSExceptionBase.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/exception/JAXWSExceptionBase.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -45,7 +45,7 @@ import javax.xml.ws.WebServiceException; * @author WS Development Team */ public abstract class JAXWSExceptionBase - extends WebServiceException implements Localizable { + extends WebServiceException implements Localizable, LocalizableMessageFactory.ResourceBundleSupplier { //Don't worry about previous serialVersionUID = 4818235090198755494L;, this class was not serializable before. private static final long serialVersionUID = 1L; @@ -53,12 +53,14 @@ public abstract class JAXWSExceptionBase private transient Localizable msg; /** - * @deprecated - * Should use the localizable constructor instead. + * @param key + * @param args + * @deprecated Should use the localizable constructor instead. */ + @Deprecated protected JAXWSExceptionBase(String key, Object... args) { super(findNestedException(args)); - this.msg = new LocalizableMessage(getDefaultResourceBundleName(), key, args); + this.msg = new LocalizableMessage(getDefaultResourceBundleName(), this, key, args); } @@ -68,6 +70,7 @@ public abstract class JAXWSExceptionBase /** * Creates a new exception that wraps the specified exception. + * @param throwable */ protected JAXWSExceptionBase(Throwable throwable) { this(new NullLocalizable(throwable.toString()),throwable); @@ -127,8 +130,7 @@ public abstract class JAXWSExceptionBase args[i] = in.readObject(); } } - msg = new LocalizableMessageFactory(resourceBundleName, this::getResourceBundle) - .getMessage(key,args); + msg = new LocalizableMessageFactory(resourceBundleName).getMessage(key,args); } private static Throwable findNestedException(Object[] args) { @@ -141,6 +143,7 @@ public abstract class JAXWSExceptionBase return null; } + @Override public String getMessage() { Localizer localizer = new Localizer(); return localizer.localize(this); @@ -149,31 +152,31 @@ public abstract class JAXWSExceptionBase /** * Gets the default resource bundle name for this kind of exception. * Used for {@link #JAXWSExceptionBase(String, Object[])}. + * @return */ protected abstract String getDefaultResourceBundleName(); - /* - * Returns the ResourceBundle in this module. - * - * Subclasses in a different module has to override this method. - */ +// +// Localizable delegation +// + @Override + public final String getKey() { + return msg.getKey(); + } + + @Override + public final Object[] getArguments() { + return msg.getArguments(); + } + + @Override + public final String getResourceBundleName() { + return msg.getResourceBundleName(); + } + @Override public ResourceBundle getResourceBundle(Locale locale) { return ResourceBundle.getBundle(getDefaultResourceBundleName(), locale); } -// -// Localizable delegation -// - public final String getKey() { - return msg.getKey(); - } - - public final Object[] getArguments() { - return msg.getArguments(); - } - - public final String getResourceBundleName() { - return msg.getResourceBundleName(); - } } diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.java b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.java index 234d05eae54..783eab51dcb 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.java +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -483,7 +483,7 @@ public abstract class AbstractSchemaValidationTube extends AbstractFilterTubeImp assert docs.size() > 1; final StringBuilder sb = new StringBuilder("\n"); diff --git a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/version.properties b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/version.properties index 82452acb3d7..88eace686b6 100644 --- a/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/version.properties +++ b/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/version.properties @@ -26,4 +26,4 @@ build-id=2.3.0-SNAPSHOT build-version=JAX-WS RI 2.3.0-SNAPSHOT major-version=2.3.0 -svn-revision=e8c5e9697d9b27d83ff35d767939b2f55e667621 +svn-revision=3012ef421cf43774943c57736dac2207aeea9f07 diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/AttachmentPart.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/AttachmentPart.java index 5b90f85e2dc..4770665d8f3 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/AttachmentPart.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/AttachmentPart.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -26,7 +26,6 @@ package javax.xml.soap; import java.io.InputStream; -import java.io.Reader; import java.util.Iterator; import javax.activation.DataHandler; @@ -499,7 +498,7 @@ public abstract class AttachmentPart { * @return an {@code Iterator} object with all of the Mime * headers for this {@code AttachmentPart} object */ - public abstract Iterator getAllMimeHeaders(); + public abstract Iterator getAllMimeHeaders(); /** * Retrieves all {@code MimeHeader} objects that match a name in @@ -510,7 +509,7 @@ public abstract class AttachmentPart { * @return all of the MIME headers that match one of the names in the * given array as an {@code Iterator} object */ - public abstract Iterator getMatchingMimeHeaders(String[] names); + public abstract Iterator getMatchingMimeHeaders(String[] names); /** * Retrieves all {@code MimeHeader} objects whose name does @@ -523,5 +522,5 @@ public abstract class AttachmentPart { * given array. The nonmatching MIME headers are returned as an * {@code Iterator} object. */ - public abstract Iterator getNonMatchingMimeHeaders(String[] names); + public abstract Iterator getNonMatchingMimeHeaders(String[] names); } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/Detail.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/Detail.java index 78ad9f323dc..8b823e1aeeb 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/Detail.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/Detail.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -68,6 +68,9 @@ public interface Detail extends SOAPFaultElement { * @param name a {@code Name} object identifying the * new {@code DetailEntry} object * + * @return the new {@code DetailEntry} object that was + * created + * * @exception SOAPException thrown when there is a problem in adding a * DetailEntry object to this Detail object. * @@ -83,6 +86,9 @@ public interface Detail extends SOAPFaultElement { * @param qname a {@code QName} object identifying the * new {@code DetailEntry} object * + * @return the new {@code DetailEntry} object that was + * created + * * @exception SOAPException thrown when there is a problem in adding a * DetailEntry object to this Detail object. * @@ -97,5 +103,5 @@ public interface Detail extends SOAPFaultElement { * @return an {@code Iterator} object over the {@code DetailEntry} * objects in this {@code Detail} object */ - public Iterator getDetailEntries(); + public Iterator getDetailEntries(); } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/MimeHeaders.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/MimeHeaders.java index d84d6b77255..85046ca9a3a 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/MimeHeaders.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/MimeHeaders.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -42,14 +42,14 @@ import java.util.Vector; * @since 1.6 */ public class MimeHeaders { - private Vector headers; + private Vector headers; /** * Constructs a default {@code MimeHeaders} object initialized with * an empty {@code Vector} object. */ public MimeHeaders() { - headers = new Vector(); + headers = new Vector<>(); } /** @@ -62,10 +62,10 @@ public class MimeHeaders { * @see #setHeader */ public String[] getHeader(String name) { - Vector values = new Vector(); + Vector values = new Vector<>(); for(int i = 0; i < headers.size(); i++) { - MimeHeader hdr = (MimeHeader) headers.elementAt(i); + MimeHeader hdr = headers.elementAt(i); if (hdr.getName().equalsIgnoreCase(name) && hdr.getValue() != null) values.addElement(hdr.getValue()); @@ -103,7 +103,7 @@ public class MimeHeaders { throw new IllegalArgumentException("Illegal MimeHeader name"); for(int i = 0; i < headers.size(); i++) { - MimeHeader hdr = (MimeHeader) headers.elementAt(i); + MimeHeader hdr = headers.elementAt(i); if (hdr.getName().equalsIgnoreCase(name)) { if (!found) { headers.setElementAt(new MimeHeader(hdr.getName(), @@ -141,7 +141,7 @@ public class MimeHeaders { int pos = headers.size(); for(int i = pos - 1 ; i >= 0; i--) { - MimeHeader hdr = (MimeHeader) headers.elementAt(i); + MimeHeader hdr = headers.elementAt(i); if (hdr.getName().equalsIgnoreCase(name)) { headers.insertElementAt(new MimeHeader(name, value), i+1); @@ -160,7 +160,7 @@ public class MimeHeaders { */ public void removeHeader(String name) { for(int i = 0; i < headers.size(); i++) { - MimeHeader hdr = (MimeHeader) headers.elementAt(i); + MimeHeader hdr = headers.elementAt(i); if (hdr.getName().equalsIgnoreCase(name)) headers.removeElementAt(i--); } @@ -180,26 +180,26 @@ public class MimeHeaders { * @return an {@code Iterator} object over this {@code MimeHeaders} * object's list of {@code MimeHeader} objects */ - public Iterator getAllHeaders() { + public Iterator getAllHeaders() { return headers.iterator(); } - class MatchingIterator implements Iterator { - private boolean match; - private Iterator iterator; - private String[] names; - private Object nextHeader; + static class MatchingIterator implements Iterator { + private final boolean match; + private final Iterator iterator; + private final String[] names; + private MimeHeader nextHeader; - MatchingIterator(String[] names, boolean match) { + MatchingIterator(String[] names, boolean match, Iterator i) { this.match = match; this.names = names; - this.iterator = headers.iterator(); + this.iterator = i; } - private Object nextMatch() { + private MimeHeader nextMatch() { next: while (iterator.hasNext()) { - MimeHeader hdr = (MimeHeader) iterator.next(); + MimeHeader hdr = iterator.next(); if (names == null) return match ? null : hdr; @@ -217,17 +217,19 @@ public class MimeHeaders { } + @Override public boolean hasNext() { if (nextHeader == null) nextHeader = nextMatch(); return nextHeader != null; } - public Object next() { + @Override + public MimeHeader next() { // hasNext should've prefetched the header for us, // return it. if (nextHeader != null) { - Object ret = nextHeader; + MimeHeader ret = nextHeader; nextHeader = null; return ret; } @@ -236,6 +238,7 @@ public class MimeHeaders { return null; } + @Override public void remove() { iterator.remove(); } @@ -251,8 +254,8 @@ public class MimeHeaders { * @return an {@code Iterator} object over the {@code MimeHeader} * objects whose name matches one of the names in the given list */ - public Iterator getMatchingHeaders(String[] names) { - return new MatchingIterator(names, true); + public Iterator getMatchingHeaders(String[] names) { + return new MatchingIterator(names, true, headers.iterator()); } /** @@ -264,7 +267,7 @@ public class MimeHeaders { * @return an {@code Iterator} object over the {@code MimeHeader} * objects whose name does not match one of the names in the given list */ - public Iterator getNonMatchingHeaders(String[] names) { - return new MatchingIterator(names, false); + public Iterator getNonMatchingHeaders(String[] names) { + return new MatchingIterator(names, false, headers.iterator()); } } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/Node.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/Node.java index 221255e422d..164658fb663 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/Node.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/Node.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -27,7 +27,7 @@ package javax.xml.soap; /** * A representation of a node (element) in an XML document. - * This interface extnends the standard DOM Node interface with methods for + * This interface extends the standard DOM Node interface with methods for * getting and setting the value of a node, for * getting and setting the parent of a node, and for removing a node. * @@ -59,6 +59,7 @@ public interface Node extends org.w3c.dom.Node { * there are no children in which case a child {@code Text} node will be * created. * + * @param value {@code value} to set on the {@code Text} node * @exception IllegalStateException if the node is not a {@code Text} * node and either has more than one child node or has a child * node that is not a {@code Text} node. diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SAAJMetaFactory.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SAAJMetaFactory.java index 4734e5689d1..109bc02e3ba 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SAAJMetaFactory.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SAAJMetaFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -29,7 +29,7 @@ package javax.xml.soap; * The access point for the implementation classes of the factories defined in the * SAAJ API. The {@code newInstance} methods defined on factories {@link SOAPFactory} and * {@link MessageFactory} in SAAJ 1.3 defer to instances of this class to do the actual object creation. -* The implementations of {@code newInstance()} methods (in SOAPFactory and MessageFactory) +* The implementations of {@code newInstance()} methods (in {@link SOAPFactory} and {@link MessageFactory}) * that existed in SAAJ 1.2 have been updated to also delegate to the SAAJMetaFactory when the SAAJ 1.2 * defined lookup fails to locate the Factory implementation class name. * @@ -94,7 +94,7 @@ public abstract class SAAJMetaFactory { } catch (Exception e) { throw new SOAPException( - "Unable to create SAAJ meta-factory" + e.getMessage()); + "Unable to create SAAJ meta-factory: " + e.getMessage()); } } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElement.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElement.java index 76ef0fb8ce7..c773003d6c5 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElement.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElement.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -277,7 +277,7 @@ public interface SOAPElement extends Node, org.w3c.dom.Element { * @see SOAPElement#getAllAttributesAsQNames() * @return an iterator over the names of the attributes */ - public Iterator getAllAttributes(); + public Iterator getAllAttributes(); /** * Returns an {@code Iterator} over all of the attributes @@ -290,7 +290,7 @@ public interface SOAPElement extends Node, org.w3c.dom.Element { * @see SOAPElement#getAllAttributes() * @since 1.6, SAAJ 1.3 */ - public Iterator getAllAttributesAsQNames(); + public Iterator getAllAttributesAsQNames(); /** @@ -312,7 +312,7 @@ public interface SOAPElement extends Node, org.w3c.dom.Element { * @return an iterator over the namespace prefixes in this * {@code SOAPElement} object */ - public Iterator getNamespacePrefixes(); + public Iterator getNamespacePrefixes(); /** * Returns an {@code Iterator} over the namespace prefix @@ -325,7 +325,7 @@ public interface SOAPElement extends Node, org.w3c.dom.Element { * * @since 1.6, SAAJ 1.2 */ - public Iterator getVisibleNamespacePrefixes(); + public Iterator getVisibleNamespacePrefixes(); /** * Creates a {@code QName} whose namespace URI is the one associated @@ -429,7 +429,7 @@ public interface SOAPElement extends Node, org.w3c.dom.Element { * {@link Node}s of this element. This includes {@code javax.xml.soap.Text} * objects as well as {@code SOAPElement} objects. *

    - * Calling this method may cause child {@code Element}, + * Calling this method must cause child {@code Element}, * {@code SOAPElement} and {@code org.w3c.dom.Text} nodes to be * replaced by {@code SOAPElement}, {@code SOAPHeaderElement}, * {@code SOAPBodyElement} or {@code javax.xml.soap.Text} nodes as @@ -444,14 +444,14 @@ public interface SOAPElement extends Node, org.w3c.dom.Element { * @return an iterator with the content of this {@code SOAPElement} * object */ - public Iterator getChildElements(); + public Iterator getChildElements(); /** * Returns an {@code Iterator} over all the immediate child * {@link Node}s of this element with the specified name. All of these * children will be {@code SOAPElement} nodes. *

    - * Calling this method may cause child {@code Element}, + * Calling this method must cause child {@code Element}, * {@code SOAPElement} and {@code org.w3c.dom.Text} nodes to be * replaced by {@code SOAPElement}, {@code SOAPHeaderElement}, * {@code SOAPBodyElement} or {@code javax.xml.soap.Text} nodes as @@ -471,14 +471,14 @@ public interface SOAPElement extends Node, org.w3c.dom.Element { * specified name * @see SOAPElement#getChildElements(javax.xml.namespace.QName) */ - public Iterator getChildElements(Name name); + public Iterator getChildElements(Name name); /** * Returns an {@code Iterator} over all the immediate child * {@link Node}s of this element with the specified qname. All of these * children will be {@code SOAPElement} nodes. *

    - * Calling this method may cause child {@code Element}, + * Calling this method must cause child {@code Element}, * {@code SOAPElement} and {@code org.w3c.dom.Text} nodes to be * replaced by {@code SOAPElement}, {@code SOAPHeaderElement}, * {@code SOAPBodyElement} or {@code javax.xml.soap.Text} nodes as @@ -499,7 +499,7 @@ public interface SOAPElement extends Node, org.w3c.dom.Element { * @see SOAPElement#getChildElements(Name) * @since 1.6, SAAJ 1.3 */ - public Iterator getChildElements(QName qname); + public Iterator getChildElements(QName qname); /** * Sets the encoding style for this {@code SOAPElement} object diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElementFactory.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElementFactory.java index 40b1b5e3af1..9be7c2cc301 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElementFactory.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPElementFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -103,6 +103,9 @@ public class SOAPElementFactory { * @param uri a {@code String} giving the URI of the * namespace to which the new element belongs * + * @return the new {@code SOAPElement} object that was + * created + * * @exception SOAPException if there is an error in creating the * {@code SOAPElement} object * diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPException.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPException.java index 5d76bf0d289..4e10e63af48 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPException.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -83,6 +83,9 @@ public class SOAPException extends Exception { /** * Constructs a {@code SOAPException} object initialized * with the given {@code Throwable} object. + * + * @param cause a {@code Throwable} object that is to + * be embedded in this {@code SOAPException} object */ public SOAPException(Throwable cause) { super(cause.toString()); @@ -103,6 +106,7 @@ public class SOAPException extends Exception { * message of the embedded {@code Throwable} object, * if there is one */ + @Override public String getMessage() { String message = super.getMessage(); if (message == null && cause != null) { @@ -121,6 +125,7 @@ public class SOAPException extends Exception { * if there is none */ + @Override public Throwable getCause() { return cause; } @@ -151,6 +156,7 @@ public class SOAPException extends Exception { * @throws IllegalStateException if the cause for this {@code SOAPException} object * has already been initialized */ + @Override public synchronized Throwable initCause(Throwable cause) { if (this.cause != null) { throw new IllegalStateException("Can't override cause"); diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPFactory.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPFactory.java index 8509bda21f1..14397cf8276 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPFactory.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -150,6 +150,8 @@ public abstract class SOAPFactory { * @param prefix the prefix for this {@code SOAPElement} * @param uri a {@code String} giving the URI of the * namespace to which the new element belongs + * @return the new {@code SOAPElement} object that was + * created * * @exception SOAPException if there is an error in creating the * {@code SOAPElement} object diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPFault.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPFault.java index dd99c64841e..6ec2d3e774c 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPFault.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPFault.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -162,7 +162,7 @@ public interface SOAPFault extends SOAPBodyElement { * * @since 1.6, SAAJ 1.3 */ - public Iterator getFaultSubcodes(); + public Iterator getFaultSubcodes(); /** * Removes any Subcodes that may be contained by this @@ -381,7 +381,7 @@ public interface SOAPFault extends SOAPBodyElement { * * @since 1.6, SAAJ 1.3 */ - public Iterator getFaultReasonLocales() throws SOAPException; + public Iterator getFaultReasonLocales() throws SOAPException; /** * Returns an {@code Iterator} over a sequence of @@ -397,7 +397,7 @@ public interface SOAPFault extends SOAPBodyElement { * * @since 1.6, SAAJ 1.3 */ - public Iterator getFaultReasonTexts() throws SOAPException; + public Iterator getFaultReasonTexts() throws SOAPException; /** * Returns the Reason Text associated with the given {@code Locale}. @@ -468,6 +468,8 @@ public interface SOAPFault extends SOAPBodyElement { * this {@code SOAPFault} object. The Node element * is optional in SOAP 1.2. * + * @param uri - the URI of the Node + * * @exception SOAPException if there was an error in setting the * Node for this {@code SOAPFault} object. * @exception UnsupportedOperationException if this message does not diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPHeader.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPHeader.java index e555c3b5f4f..494cb21b073 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPHeader.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPHeader.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -118,7 +118,7 @@ public interface SOAPHeader extends SOAPElement { * * @since 1.6, SAAJ 1.2 */ - public Iterator examineMustUnderstandHeaderElements(String actor); + public Iterator examineMustUnderstandHeaderElements(String actor); /** * Returns an {@code Iterator} over all the {@code SOAPHeaderElement} objects @@ -144,7 +144,7 @@ public interface SOAPHeader extends SOAPElement { * @see #extractHeaderElements * @see SOAPConstants#URI_SOAP_ACTOR_NEXT */ - public Iterator examineHeaderElements(String actor); + public Iterator examineHeaderElements(String actor); /** * Returns an {@code Iterator} over all the {@code SOAPHeaderElement} objects @@ -168,7 +168,7 @@ public interface SOAPHeader extends SOAPElement { * @see #examineHeaderElements * @see SOAPConstants#URI_SOAP_ACTOR_NEXT */ - public Iterator extractHeaderElements(String actor); + public Iterator extractHeaderElements(String actor); /** * Creates a new NotUnderstood {@code SOAPHeaderElement} object initialized @@ -188,18 +188,18 @@ public interface SOAPHeader extends SOAPElement { /** * Creates a new Upgrade {@code SOAPHeaderElement} object initialized - * with the specified List of supported SOAP URIs and adds it to this - * {@code SOAPHeader} object. + * with the specified String Iterator of supported SOAP URIs and adds + * it to this {@code SOAPHeader} object. * This operation is supported on both SOAP 1.1 and SOAP 1.2 header. * - * @param supportedSOAPURIs an {@code Iterator} object with the URIs of SOAP + * @param supportedSOAPURIs an URI Strings {@code Iterator} of SOAP * versions supported. * @return the new {@code SOAPHeaderElement} object that was * inserted into this {@code SOAPHeader} object * @exception SOAPException if a SOAP error occurs. * @since 1.6, SAAJ 1.3 */ - public SOAPHeaderElement addUpgradeHeaderElement(Iterator supportedSOAPURIs) + public SOAPHeaderElement addUpgradeHeaderElement(Iterator supportedSOAPURIs) throws SOAPException; /** @@ -243,7 +243,7 @@ public interface SOAPHeader extends SOAPElement { * * @since 1.6, SAAJ 1.2 */ - public Iterator examineAllHeaderElements(); + public Iterator examineAllHeaderElements(); /** * Returns an {@code Iterator} over all the {@code SOAPHeaderElement} objects @@ -258,6 +258,6 @@ public interface SOAPHeader extends SOAPElement { * * @since 1.6, SAAJ 1.2 */ - public Iterator extractAllHeaderElements(); + public Iterator extractAllHeaderElements(); } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPMessage.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPMessage.java index d0476a65cb9..daa6e5b64fe 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPMessage.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPMessage.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -205,7 +205,7 @@ public abstract class SOAPMessage { * * @return an iterator over all the attachments in this message */ - public abstract Iterator getAttachments(); + public abstract Iterator getAttachments(); /** * Retrieves all the {@code AttachmentPart} objects that have header @@ -217,7 +217,7 @@ public abstract class SOAPMessage { * @return an iterator over all attachments that have a header that matches * one of the given headers */ - public abstract Iterator getAttachments(MimeHeaders headers); + public abstract Iterator getAttachments(MimeHeaders headers); /** * Removes all the {@code AttachmentPart} objects that have header @@ -266,12 +266,14 @@ public abstract class SOAPMessage { * object. An {@code AttachmentPart} object must be created before * it can be added to a message. * - * @param AttachmentPart - * an {@code AttachmentPart} object that is to become part + * @param attachmentPart + * an {@code attachmentPart} object that is to become part * of this {@code SOAPMessage} object * @exception IllegalArgumentException + * if there was a problem with the specified {@code attachmentPart} + * object */ - public abstract void addAttachmentPart(AttachmentPart AttachmentPart); + public abstract void addAttachmentPart(AttachmentPart attachmentPart); /** * Creates a new empty {@code AttachmentPart} object. Note that the diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPPart.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPPart.java index 099a2e9caba..811a8702585 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPPart.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPPart.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2017, 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 @@ -213,7 +213,7 @@ public abstract class SOAPPart implements org.w3c.dom.Document, Node { * @return an {@code Iterator} object with all of the Mime * headers for this {@code SOAPPart} object */ - public abstract Iterator getAllMimeHeaders(); + public abstract Iterator getAllMimeHeaders(); /** * Retrieves all {@code MimeHeader} objects that match a name in @@ -224,7 +224,7 @@ public abstract class SOAPPart implements org.w3c.dom.Document, Node { * @return all of the MIME headers that match one of the names in the * given array, returned as an {@code Iterator} object */ - public abstract Iterator getMatchingMimeHeaders(String[] names); + public abstract Iterator getMatchingMimeHeaders(String[] names); /** * Retrieves all {@code MimeHeader} objects whose name does @@ -237,7 +237,7 @@ public abstract class SOAPPart implements org.w3c.dom.Document, Node { * given array. The nonmatching MIME headers are returned as an * {@code Iterator} object. */ - public abstract Iterator getNonMatchingMimeHeaders(String[] names); + public abstract Iterator getNonMatchingMimeHeaders(String[] names); /** * Sets the content of the {@code SOAPEnvelope} object with the data diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/ServiceLoaderUtil.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/ServiceLoaderUtil.java index ebd4bdc3a95..ae78cd883a9 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/ServiceLoaderUtil.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/ServiceLoaderUtil.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -46,8 +46,7 @@ class ServiceLoaderUtil { ServiceLoader

    serviceLoader = ServiceLoader.load(spiClass); for (P impl : serviceLoader) { - logger.fine("ServiceProvider loading Facility used; returning object [" + - impl.getClass().getName() + "]"); + logger.log(Level.FINE, "ServiceProvider loading Facility used; returning object [{0}]", impl.getClass().getName()); return impl; } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/package-info.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/package-info.java index 678635a67f9..51d856f646d 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/package-info.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -25,8 +25,7 @@ /** * Provides the API for creating and building SOAP messages. This package - * is defined in the SOAP with Attachments API for JavaTM - * (SAAJ) 1.4 specification. + * is defined in the SOAP with Attachments API for Java™ (SAAJ) 1.4 specification. * *

    The API in the javax.xml.soap package allows you to do the following: * diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Action.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Action.java index 445f651c893..a54fd50c070 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Action.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Action.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -129,12 +129,16 @@ public @interface Action { /** * Explicit value of the WS-Addressing {@code Action} message addressing property for the {@code input} * message of the operation. + * + * @return {@code Action} message addressing property for the {@code input} message */ String input() default ""; /** * Explicit value of the WS-Addressing {@code Action} message addressing property for the {@code output} * message of the operation. + * + * @return {@code Action} message addressing property for the {@code output} message */ String output() default ""; @@ -143,6 +147,8 @@ public @interface Action { * message(s) of the operation. Each exception that is mapped to a fault and requires an explicit WS-Addressing * {@code Action} message addressing property, needs to be specified as a value in this property * using {@link FaultAction} annotation. + * + * @return {@code Action} message addressing property for the {@code fault} message(s) */ FaultAction[] fault() default { }; } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/AsyncHandler.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/AsyncHandler.java index dd9c9a547a1..7b887cd1d0e 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/AsyncHandler.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/AsyncHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -29,6 +29,7 @@ package javax.xml.ws; * clients that wish to receive callback notification of the completion of * service endpoint operations invoked asynchronously. * + * @param The type of the message or payload * @since 1.6, JAX-WS 2.0 **/ public interface AsyncHandler { diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/BindingProvider.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/BindingProvider.java index 2dd90644670..607d067cb9c 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/BindingProvider.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/BindingProvider.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -164,6 +164,7 @@ public interface BindingProvider { * this {@code BindingProvider} instance. The instance * returned will be of type {@code clazz}. * + * @param the type of {@code EndpointReference} * @param clazz Specifies the type of {@code EndpointReference} * that MUST be returned. diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/BindingType.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/BindingType.java index 00e7b69cc6a..ff823800514 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/BindingType.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/BindingType.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -30,13 +30,15 @@ import java.lang.annotation.Target; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import javax.xml.ws.http.HTTPBinding; +import javax.xml.ws.soap.SOAPBinding; /** * The {@code BindingType} annotation is used to * specify the binding to use for a web service * endpoint implementation class. *

    - * This annotation may be overriden programmatically or via + * This annotation may be overridden programmatically or via * deployment descriptors, depending on the platform in use. * * @since 1.6, JAX-WS 2.0 @@ -47,12 +49,11 @@ import java.lang.annotation.RetentionPolicy; @Documented public @interface BindingType { /** - * A binding identifier (a URI). - * If not specified, the default is the SOAP 1.1 / HTTP binding. - *

    - * See the {@code SOAPBinding} and {@code HTTPBinding} + * A binding identifier (a URI). If not specified, the default is the SOAP 1.1 / HTTP binding.
    + * See the {@link SOAPBinding} and {@link HTTPBinding} * for the definition of the standard binding identifiers. * + * @return A binding identifier (a URI) * @see javax.xml.ws.Binding * @see javax.xml.ws.soap.SOAPBinding#SOAP11HTTP_BINDING * @see javax.xml.ws.soap.SOAPBinding#SOAP12HTTP_BINDING diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Dispatch.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Dispatch.java index 8bef4ee4cf5..f15163ec569 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Dispatch.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Dispatch.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -27,12 +27,14 @@ package javax.xml.ws; import java.util.concurrent.Future; + /** The {@code Dispatch} interface provides support * for the dynamic invocation of a service endpoint operations. The * {@code javax.xml.ws.Service} * class acts as a factory for the creation of {@code Dispatch} * instances. * + * @param The type of the message or payload * @since 1.6, JAX-WS 2.0 **/ public interface Dispatch extends BindingProvider { diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Endpoint.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Endpoint.java index f588409759e..78b8a72ea85 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Endpoint.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Endpoint.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -81,7 +81,6 @@ public abstract class Endpoint { **/ public static final String WSDL_PORT = "javax.xml.ws.wsdl.port"; - /** * Creates an endpoint with the specified implementor object. If there is * a binding specified via a BindingType annotation then it MUST be used else @@ -272,7 +271,6 @@ public abstract class Endpoint { return Provider.provider().createAndPublishEndpoint(address, implementor, features); } - /** * Publishes this endpoint at the provided server context. * A server context encapsulates the server infrastructure @@ -406,7 +404,6 @@ public abstract class Endpoint { **/ public abstract void setExecutor(java.util.concurrent.Executor executor); - /** * Returns the property bag for this {@code Endpoint} instance. * @@ -450,11 +447,11 @@ public abstract class Endpoint { **/ public abstract EndpointReference getEndpointReference(Element... referenceParameters); - /** * Returns the {@code EndpointReference} associated with * this {@code Endpoint} instance. * + * @param The type of EndpointReference. * @param clazz Specifies the type of EndpointReference that MUST be returned. * @param referenceParameters Reference parameters to be associated with the * returned {@code EndpointReference} instance. @@ -478,7 +475,7 @@ public abstract class Endpoint { Element... referenceParameters); /** - * By settng a {@code EndpointContext}, JAX-WS runtime knows about + * By setting a {@code EndpointContext}, JAX-WS runtime knows about * addresses of other endpoints in an application. If multiple endpoints * share different ports of a WSDL, then the multiple port addresses * are patched when the WSDL is accessed. diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/EndpointReference.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/EndpointReference.java index 163cfbdfd61..46d2317a5eb 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/EndpointReference.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/EndpointReference.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -88,6 +88,10 @@ public abstract class EndpointReference { // //Default constructor to be only called by derived types. // + + /** + * Default constructor. + */ protected EndpointReference(){} /** @@ -150,6 +154,7 @@ public abstract class EndpointReference { * method can be used to manually configure handlers for this port. * * + * @param Service endpoint interface * @param serviceEndpointInterface Service endpoint interface * @param features An array of {@code WebServiceFeatures} to configure on the * proxy. Supported features not in the {@code features @@ -183,7 +188,10 @@ public abstract class EndpointReference { /** * Displays EPR infoset for debugging convenience. + * + * @return a string representation of the object */ + @Override public String toString() { StringWriter w = new StringWriter(); writeTo(new StreamResult(w)); diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/FaultAction.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/FaultAction.java index 7fd4eff7f7e..9b654837a4a 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/FaultAction.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/FaultAction.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -153,12 +153,16 @@ import java.lang.annotation.Target; @Target(ElementType.METHOD) public @interface FaultAction { /** - * Name of the exception class + * Name of the exception class. + * + * @return the name of the exception class */ Class className(); /** - * Value of WS-Addressing {@code Action} message addressing property for the exception + * Value of WS-Addressing {@code Action} message addressing property for the exception. + * + * @return WS-Addressing {@code Action} message addressing property for the exception */ String value() default ""; } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Holder.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Holder.java index 9b489750d4d..f2f77dba0f1 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Holder.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Holder.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -30,6 +30,7 @@ import java.io.Serializable; /** * Holds a value of type {@code T}. * + * @param Type of the value in the holder. * @since 1.6, JAX-WS 2.0 */ public final class Holder implements Serializable { diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Provider.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Provider.java index e9772efc0dc..a9b8dc26120 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Provider.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Provider.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -38,6 +38,7 @@ package javax.xml.ws; * the {@code Provider} instance will receive entire protocol messages * or just message payloads. * + * @param The type of the request * @since 1.6, JAX-WS 2.0 * * @see javax.xml.transform.Source @@ -46,7 +47,7 @@ package javax.xml.ws; **/ public interface Provider { - /** Invokes an operation occording to the contents of the request + /** Invokes an operation according to the contents of the request * message. * * @param request The request message or message payload. diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/RequestWrapper.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/RequestWrapper.java index becf6057842..9466f5fae47 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/RequestWrapper.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/RequestWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -49,22 +49,26 @@ import java.lang.annotation.RetentionPolicy; public @interface RequestWrapper { /** * Element's local name. + * @return local name */ public String localName() default ""; /** * Element's namespace name. + * @return target namespace name */ public String targetNamespace() default ""; /** * Request wrapper bean name. + * @return bean name */ public String className() default ""; /** * wsdl:part name for the wrapper part * + * @return wsdl:part name * @since 1.7, JAX-WS 2.2 */ public String partName() default ""; diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/RespectBinding.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/RespectBinding.java index d50de4830f6..24f38c0140c 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/RespectBinding.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/RespectBinding.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -63,6 +63,8 @@ import javax.xml.ws.spi.WebServiceFeatureAnnotation; public @interface RespectBinding { /** * Specifies if this feature is enabled or disabled. + * + * @return {@code true} if this feature is enabled, {@code false} otherwise */ boolean enabled() default true; } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Response.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Response.java index 2b91ad51793..294b555c71d 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Response.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Response.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -36,9 +36,10 @@ import java.util.concurrent.Future; * to check the status of the request. The {@code get(...)} methods may * throw the standard * set of exceptions and their cause may be a {@code RemoteException} or a - * {@link WebServiceException} that represents the error that occured during the + * {@link WebServiceException} that represents the error that occurred during the * asynchronous method invocation.

    * + * @param The type of the response * @since 1.6, JAX-WS 2.0 **/ public interface Response extends Future { diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/ResponseWrapper.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/ResponseWrapper.java index 77e7fc26999..9c139cc99f3 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/ResponseWrapper.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/ResponseWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -49,22 +49,26 @@ public @interface ResponseWrapper { /** * Element's local name. + * @return local name */ public String localName() default ""; /** * Element's namespace name. + * @return target namespace name */ public String targetNamespace() default ""; /** * Response wrapper bean name. + * @return bean name */ public String className() default ""; /** * wsdl:part name for the wrapper part * + * @return wsdl:part name * @since 1.7, JAX-WS 2.2 */ public String partName() default ""; diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Service.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Service.java index 7ce118698d1..1c1267429ca 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Service.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Service.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -71,14 +71,48 @@ public class Service { * access to entire protocol message, {@code PAYLOAD} to protocol message * payload only. **/ - public enum Mode { MESSAGE, PAYLOAD } + public enum Mode { + /** + * Message mode. + */ + MESSAGE, + + /** + * Payload mode. + */ + PAYLOAD } + + /** + * Creates a {@code Service}. + * + * The specified WSDL document location and service qualified name MUST + * uniquely identify a {@code wsdl:service} element. + * + * @param wsdlDocumentLocation {@code URL} for the WSDL document location + * for the service + * @param serviceName {@code QName} for the service + */ protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); } + /** + * Creates a {@code Service}. The created instance is + * configured with the web service features. + * + * The specified WSDL document location and service qualified name MUST + * uniquely identify a {@code wsdl:service} element. + * + * @param wsdlDocumentLocation {@code URL} for the WSDL document location + * for the service + * @param serviceName {@code QName} for the service + * @param features Web Service features that must be configured on + * the service. If the provider doesn't understand a feature, + * it must throw a WebServiceException. + */ protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, @@ -93,6 +127,7 @@ public class Service { * specifies the service endpoint interface that is supported by * the created dynamic proxy instance. * + * @param Service endpoint interface. * @param portName Qualified name of the service endpoint in * the WSDL service description. * @param serviceEndpointInterface Service endpoint interface @@ -126,6 +161,7 @@ public class Service { * specifies the service endpoint interface that is supported by * the created dynamic proxy instance. * + * @param Service endpoint interface. * @param portName Qualified name of the service endpoint in * the WSDL service description. * @param serviceEndpointInterface Service endpoint interface @@ -170,6 +206,7 @@ public class Service { * binding (and a port) and configuring the proxy accordingly. * The returned proxy should not be reconfigured by the client. * + * @param Service endpoint interface. * @param serviceEndpointInterface Service endpoint interface. * @return Object instance that supports the * specified service endpoint interface. @@ -198,6 +235,7 @@ public class Service { * binding (and a port) and configuring the proxy accordingly. * The returned proxy should not be reconfigured by the client. * + * @param Service endpoint interface. * @param serviceEndpointInterface Service endpoint interface. * @param features A list of WebServiceFeatures to configure on the * proxy. Supported features not in the {@code features @@ -267,6 +305,7 @@ public class Service { * {@code serviceEndpointInterface} and the WSDL * associated with this {@code Service} instance. * + * @param Service endpoint interface. * @param endpointReference The {@code EndpointReference} * for the target service endpoint that will be invoked by the * returned proxy. @@ -328,6 +367,7 @@ public class Service { * Creates a {@code Dispatch} instance for use with objects of * the client's choosing. * + * @param The type of the message or payload * @param portName Qualified name for the target service endpoint * @param type The class of object used for messages or message * payloads. Implementations are required to support @@ -357,6 +397,7 @@ public class Service { * Creates a {@code Dispatch} instance for use with objects of * the client's choosing. * + * @param The type of the message or payload * @param portName Qualified name for the target service endpoint * @param type The class of object used for messages or message * payloads. Implementations are required to support @@ -419,6 +460,7 @@ public class Service { * where the {@code portName} is retrieved from the * WSDL or {@code EndpointReference} metadata. * + * @param The type of the message or payload * @param endpointReference The {@code EndpointReference} * for the target service endpoint that will be invoked by the * returned {@code Dispatch} object. @@ -698,6 +740,7 @@ public class Service { * @param wsdlDocumentLocation {@code URL} for the WSDL document location * for the service * @param serviceName {@code QName} for the service + * @return Service instance * @throws WebServiceException If any error in creation of the * specified service. **/ @@ -720,6 +763,7 @@ public class Service { * @param features Web Service features that must be configured on * the service. If the provider doesn't understand a feature, * it must throw a WebServiceException. + * @return Service instance configured with requested web service features * @throws WebServiceException If any error in creation of the * specified service. * @since 1.7, JAX-WS 2.2 @@ -734,6 +778,7 @@ public class Service { * Creates a {@code Service} instance. * * @param serviceName {@code QName} for the service + * @return Service instance * @throws WebServiceException If any error in creation of the * specified service */ @@ -749,6 +794,7 @@ public class Service { * @param features Web Service features that must be configured on * the service. If the provider doesn't understand a feature, * it must throw a WebServiceException. + * @return Service instance configured with requested web service features * @throws WebServiceException If any error in creation of the * specified service * diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/ServiceMode.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/ServiceMode.java index 5d0cb135918..de20e4479d9 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/ServiceMode.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/ServiceMode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -48,6 +48,8 @@ public @interface ServiceMode { * wishes to work with protocol message payloads only. {@code MESSAGE} indicates * that the {@code Provider} implementation wishes to work with entire protocol * messages. - **/ + * + * @return Service mode. + **/ public Service.Mode value() default Service.Mode.PAYLOAD; } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebEndpoint.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebEndpoint.java index f51d570643d..9978f0b1519 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebEndpoint.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -51,6 +51,8 @@ import java.lang.annotation.RetentionPolicy; public @interface WebEndpoint { /** * The local name of the endpoint. + * + * @return ocal name of the endpoint **/ String name() default ""; } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceClient.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceClient.java index a37e4e84ee5..1bbd5d5bfa7 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceClient.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -46,18 +46,24 @@ import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) @Documented public @interface WebServiceClient { - /** - * The local name of the Web service. - **/ - String name() default ""; + /** + * The local name of the Web service. + * + * @return local name + */ + String name() default ""; - /** - * The namespace for the Web service. - **/ - String targetNamespace() default ""; + /** + * The namespace for the Web service. + * + * @return target namespace name + */ + String targetNamespace() default ""; - /** - * The location of the WSDL document for the service (a URL). - **/ - String wsdlLocation() default ""; + /** + * The location of the WSDL document for the service (a URL). + * + * @return location of the WSDL document (a URL) + */ + String wsdlLocation() default ""; } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceContext.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceContext.java index 0af63723568..77c4775eeb8 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceContext.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceContext.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -128,6 +128,7 @@ public interface WebServiceContext { * Returns the {@code EndpointReference} associated with * this endpoint. * + * @param The type of {@code EndpointReference}. * @param clazz The type of {@code EndpointReference} that * MUST be returned. * @param referenceParameters Reference parameters to be associated with the diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceFeature.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceFeature.java index 8f4c6875d6c..745f03f8534 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceFeature.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceFeature.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -66,9 +66,10 @@ public abstract class WebServiceFeature { */ protected boolean enabled = false; - - protected WebServiceFeature(){} - + /** + * Default constructor. + */ + protected WebServiceFeature() {} /** * Returns {@code true} if this feature is enabled. diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceProvider.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceProvider.java index c2d48d2f5b9..67e39cd6554 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceProvider.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceProvider.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -42,21 +42,29 @@ import java.lang.annotation.RetentionPolicy; public @interface WebServiceProvider { /** * Location of the WSDL description for the service. + * + * @return location of the WSDL description */ String wsdlLocation() default ""; /** * Service name. + * + * @return service name */ String serviceName() default ""; /** * Target namespace for the service + * + * @return target namespace */ String targetNamespace() default ""; /** * Port name. + * + * @return port name */ String portName() default ""; } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceRef.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceRef.java index 477133fb039..3111ce4dbec 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceRef.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceRef.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -30,8 +30,10 @@ import javax.xml.ws.spi.WebServiceFeatureAnnotation; import java.lang.annotation.Documented; import java.lang.annotation.Target; import java.lang.annotation.ElementType; +import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; +import javax.annotation.Resource; /** * The {@code WebServiceRef} annotation is used to @@ -72,16 +74,17 @@ import java.lang.annotation.RetentionPolicy; * annotation annotated with the {@code WebServiceFeatureAnnotation} * that is specified with {@code WebServiceRef}, an ERROR MUST be given. * - * @see javax.annotation.Resource + * @see Resource * @see WebServiceFeatureAnnotation * * @since 1.6, JAX-WS 2.0 * -**/ + **/ @Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @Documented +@Repeatable(WebServiceRefs.class) public @interface WebServiceRef { /** * The JNDI name of the resource. For field annotations, @@ -92,6 +95,8 @@ public @interface WebServiceRef { * * The JNDI name can be absolute(with any logical namespace) or relative * to JNDI {@code java:comp/env} namespace. + * + * @return absolute or relative JNDI name */ String name() default ""; @@ -101,6 +106,8 @@ public @interface WebServiceRef { * the default is the type of the JavaBeans property. * For class annotations, there is no default and this MUST be * specified. + * + * @return type of the resource */ Class type() default Object.class; @@ -119,6 +126,8 @@ public @interface WebServiceRef { * form or type of mapped name, nor the ability to use mapped names. * The mapped name is product-dependent and often installation-dependent. * No use of a mapped name is portable. + * + * @return product specific resource name */ String mappedName() default ""; @@ -126,16 +135,20 @@ public @interface WebServiceRef { * The service class, always a type extending * {@code javax.xml.ws.Service}. This element MUST be specified * whenever the type of the reference is a service endpoint interface. + * + * @return the service class extending {@code javax.xml.ws.Service} */ - // 2.1 has Class value() default Object.class; - // Fixing this raw Class type correctly in 2.2 API. This shouldn't cause - // any compatibility issues for applications. + // 2.1 has Class value() default Object.class; + // Fixing this raw Class type correctly in 2.2 API. This shouldn't cause + // any compatibility issues for applications. Class value() default Service.class; /** * A URL pointing to the WSDL document for the web service. * If not specified, the WSDL location specified by annotations * on the resource type is used instead. + * + * @return a URL pointing to the WSDL document */ String wsdlLocation() default ""; @@ -143,6 +156,7 @@ public @interface WebServiceRef { * A portable JNDI lookup name that resolves to the target * web service reference. * + * @return portable JNDI lookup name * @since 1.7, JAX-WS 2.2 */ String lookup() default ""; diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceRefs.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceRefs.java index fd29f4f5219..0cba6457f67 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceRefs.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/WebServiceRefs.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -78,6 +78,8 @@ import static java.lang.annotation.RetentionPolicy.*; public @interface WebServiceRefs { /** * Array used for multiple web service reference declarations. + * + * @return multiple web service reference declarations */ WebServiceRef[] value(); } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/Handler.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/Handler.java index 045413ec8c3..25a7dbeaa59 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/Handler.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/Handler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -26,11 +26,11 @@ package javax.xml.ws.handler; import javax.xml.ws.ProtocolException; -import javax.xml.ws.handler.MessageContext; /** The {@code Handler} interface * is the base interface for JAX-WS handlers. * + * @param message context * @since 1.6, JAX-WS 2.0 **/ public interface Handler { diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/LogicalHandler.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/LogicalHandler.java index 8c713a819c1..c13712a0ffe 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/LogicalHandler.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/LogicalHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -28,6 +28,7 @@ package javax.xml.ws.handler; /** The {@code LogicalHandler} extends * Handler to provide typesafety for the message context parameter. * + * @param message context * @since 1.6, JAX-WS 2.0 **/ public interface LogicalHandler extends Handler { diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/MessageContext.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/MessageContext.java index aab8550dead..76c5e5e1d54 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/MessageContext.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/MessageContext.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -180,7 +180,17 @@ public interface MessageContext extends Map { * {@code HANDLER} * are only normally visible to handlers. */ - public enum Scope {APPLICATION, HANDLER}; + public enum Scope { + + /** + * Application visibility. + */ + APPLICATION, + + /** + * Handler visibility. + */ + HANDLER}; /** * Sets the scope of a property. diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/package-info.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/package-info.java new file mode 100644 index 00000000000..08c9db7e079 --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/package-info.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, 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. + */ + +/** + * This package defines APIs for message handlers. + */ +package javax.xml.ws.handler; diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/package.html b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/package.html deleted file mode 100644 index 483b45ec7e9..00000000000 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/package.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - -This package defines APIs for message handlers. - - diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/SOAPHandler.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/SOAPHandler.java index 742c5335098..d76ff9b9364 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/SOAPHandler.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/SOAPHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -33,6 +33,7 @@ import java.util.Set; * to provide typesafety for the message context parameter and add a method * to obtain access to the headers that may be processed by the handler. * + * @param message context * @since 1.6, JAX-WS 2.0 **/ public interface SOAPHandler diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/package-info.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/package-info.java new file mode 100644 index 00000000000..ed794064096 --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/package-info.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, 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. + */ + +/** + * This package defines APIs for SOAP message handlers. + */ +package javax.xml.ws.handler.soap; diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/package.html b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/package.html deleted file mode 100644 index 862b416b167..00000000000 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/handler/soap/package.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - -This package defines APIs for SOAP message handlers. - - diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/http/package-info.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/http/package-info.java new file mode 100644 index 00000000000..8c0e4b09979 --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/http/package-info.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, 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. + */ + +/** + * This package defines APIs specific to the HTTP binding. + */ +package javax.xml.ws.http; diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/http/package.html b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/http/package.html deleted file mode 100644 index bc9020d3a3d..00000000000 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/http/package.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - -This package defines APIs specific to the HTTP binding. - - diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/Addressing.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/Addressing.java index fd26ba1dfe6..0c79833556e 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/Addressing.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/Addressing.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -31,9 +31,7 @@ import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; -import javax.xml.ws.BindingProvider; import javax.xml.ws.WebServiceRef; -import javax.xml.ws.WebServiceRefs; import javax.xml.ws.WebServiceProvider; import javax.xml.ws.soap.AddressingFeature.Responses; import javax.xml.ws.spi.WebServiceFeatureAnnotation; @@ -44,7 +42,7 @@ import javax.xml.ws.spi.WebServiceFeatureAnnotation; * with any other binding is undefined. *

    * This annotation MUST only be used in conjunction with the - * {@link javax.jws.WebService}, {@link WebServiceProvider}, + * {@code javax.jws.WebService}, {@link WebServiceProvider}, * and {@link WebServiceRef} annotations. * When used with a {@code javax.jws.WebService} annotation, this * annotation MUST only be used on the service endpoint implementation @@ -70,6 +68,8 @@ public @interface Addressing { * Corresponding * * 3.1.1 Addressing Assertion must be generated in the generated WSDL. + * + * @return {@code true} if endpoint supports WS-Addressing, {@code false} otherwise */ boolean enabled() default true; @@ -80,6 +80,8 @@ public @interface Addressing { * be present on incoming messages. A corresponding * * 3.1.1 Addressing Assertion must be generated in the WSDL. + * + * @return {@code true} if endpoint requires WS-Addressing, {@code false} otherwise */ boolean required() default false; @@ -106,6 +108,7 @@ public @interface Addressing { * * 3.1.3 NonAnonymousResponses Assertion in the generated WSDL. * + * @return supported response types * @since 1.7, JAX-WS 2.2 */ Responses responses() default Responses.ALL; diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/MTOM.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/MTOM.java index cd59f0ffcbb..b3d2f0dc56f 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/MTOM.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/MTOM.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -63,6 +63,8 @@ import javax.xml.ws.WebServiceProvider; public @interface MTOM { /** * Specifies if this feature is enabled or disabled. + * + * @return {@code true} if MTOM is supported, {@code false} otherwise */ boolean enabled() default true; @@ -70,6 +72,8 @@ public @interface MTOM { * Property for MTOM threshold value. When MTOM is enabled, binary data above this * size in bytes will be XOP encoded or sent as attachment. The value of this property * MUST always be {@literal >=} 0. Default value is 0. + * + * @return MTOM threshold in bytes */ int threshold() default 0; } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/package-info.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/package-info.java new file mode 100644 index 00000000000..fc7f3859bbf --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/package-info.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, 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. + */ + +/** + * This package defines APIs specific to the SOAP binding. + */ +package javax.xml.ws.soap; diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/package.html b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/package.html deleted file mode 100644 index abc85e703ee..00000000000 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/soap/package.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - -This package defines APIs specific to the SOAP binding. - - diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/Provider.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/Provider.java index 121409f7413..de8a01f111a 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/Provider.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/Provider.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -25,11 +25,8 @@ package javax.xml.ws.spi; -import java.net.URL; import java.util.List; -import java.util.Iterator; import java.util.Map; -import java.util.ServiceLoader; import javax.xml.namespace.QName; import javax.xml.ws.*; import javax.xml.ws.wsaddressing.W3CEndpointReference; @@ -77,6 +74,7 @@ public abstract class Provider { *

  • Finally, a platform default implementation is used. * * + * @return provider object */ public static Provider provider() { try { @@ -123,7 +121,6 @@ public abstract class Provider { throw new UnsupportedOperationException("JAX-WS 2.2 implementation must override this default behaviour."); } - /** * * Creates an endpoint object with the provided binding and implementation @@ -139,7 +136,6 @@ public abstract class Provider { public abstract Endpoint createEndpoint(String bindingId, Object implementor); - /** * Creates and publishes an endpoint object with the specified * address and implementation object. @@ -199,6 +195,7 @@ public abstract class Provider { * {@code serviceName} metadata. * * + * @param Service endpoint interface * @param endpointReference the EndpointReference that will * be invoked by the returned proxy. * @param serviceEndpointInterface Service endpoint interface diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/ServiceDelegate.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/ServiceDelegate.java index 49954ba8d88..d3127f301d6 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/ServiceDelegate.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/ServiceDelegate.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -51,6 +51,9 @@ import javax.xml.ws.WebServiceException; */ public abstract class ServiceDelegate { + /** + * Default constructor. + */ protected ServiceDelegate() { } @@ -61,6 +64,7 @@ public abstract class ServiceDelegate { * specifies the service endpoint interface that is supported by * the created dynamic proxy instance. * + * @param Service endpoint interface * @param portName Qualified name of the service endpoint in * the WSDL service description * @param serviceEndpointInterface Service endpoint interface @@ -92,6 +96,7 @@ public abstract class ServiceDelegate { * specifies the service endpoint interface that is supported by * the created dynamic proxy instance. * + * @param Service endpoint interface * @param portName Qualified name of the service endpoint in * the WSDL service description * @param serviceEndpointInterface Service endpoint interface @@ -164,6 +169,7 @@ public abstract class ServiceDelegate { * {@code serviceEndpointInterface} and the WSDL * associated with this {@code Service} instance. * + * @param Service endpoint interface. * @param endpointReference The {@code EndpointReference} * for the target service endpoint that will be invoked by the * returned proxy. @@ -209,6 +215,7 @@ public abstract class ServiceDelegate { * binding (and a port) and configuring the proxy accordingly. * The returned proxy should not be reconfigured by the client. * + * @param Service endpoint interface * @param serviceEndpointInterface Service endpoint interface * @return Object instance that supports the * specified service endpoint interface @@ -235,6 +242,7 @@ public abstract class ServiceDelegate { * binding (and a port) and configuring the proxy accordingly. * The returned proxy should not be reconfigured by the client. * + * @param Service endpoint interface * @param serviceEndpointInterface Service endpoint interface * @param features An array of {@code WebServiceFeatures} to configure on the * proxy. Supported features not in the {@code features @@ -286,6 +294,8 @@ public abstract class ServiceDelegate { * Creates a {@code Dispatch} instance for use with objects of * the user's choosing. * + * @param type used for messages or message payloads. Implementations are required to + * support {@code javax.xml.transform.Source} and {@code javax.xml.soap.SOAPMessage}. * @param portName Qualified name for the target service endpoint * @param type The class of object used for messages or message * payloads. Implementations are required to support @@ -310,6 +320,8 @@ public abstract class ServiceDelegate { * Creates a {@code Dispatch} instance for use with objects of * the user's choosing. * + * @param type used for messages or message payloads. Implementations are required to + * support {@code javax.xml.transform.Source} and {@code javax.xml.soap.SOAPMessage}. * @param portName Qualified name for the target service endpoint * @param type The class of object used for messages or message * payloads. Implementations are required to support @@ -369,6 +381,9 @@ public abstract class ServiceDelegate { * where the {@code portName} is retrieved from the * WSDL or {@code EndpointReference} metadata. * + * @param type of object used to messages or message + * payloads. Implementations are required to support + * {@code javax.xml.transform.Source} and {@code javax.xml.soap.SOAPMessage}. * @param endpointReference The {@code EndpointReference} * for the target service endpoint that will be invoked by the * returned {@code Dispatch} object. diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/WebServiceFeatureAnnotation.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/WebServiceFeatureAnnotation.java index 74423670e4e..a60784edebb 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/WebServiceFeatureAnnotation.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/WebServiceFeatureAnnotation.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -32,7 +32,6 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.xml.ws.WebServiceFeature; import javax.xml.ws.WebServiceRef; -import javax.xml.ws.WebServiceRefs; import javax.xml.ws.RespectBinding; import javax.xml.ws.soap.Addressing; import javax.xml.ws.soap.MTOM; @@ -74,12 +73,14 @@ public @interface WebServiceFeatureAnnotation { * Unique identifier for the WebServiceFeature. This * identifier MUST be unique across all implementations * of JAX-WS. + * @return unique identifier for the WebServiceFeature */ String id(); /** * The {@code WebServiceFeature} bean that is associated * with the {@code WebServiceFeature} annotation + * @return the {@code WebServiceFeature} bean */ Class bean(); } diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/http/HttpContext.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/http/HttpContext.java index f62458455ac..211e9441161 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/http/HttpContext.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/http/HttpContext.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2017, 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 @@ -41,6 +41,9 @@ import java.util.Set; */ public abstract class HttpContext { + /** + * The handler to set for this context. + */ protected HttpHandler handler; /** diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/package-info.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/package-info.java new file mode 100644 index 00000000000..ec642e76331 --- /dev/null +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/package-info.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, 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. + */ + +/** + * This package defines SPIs for JAX-WS. + */ +package javax.xml.ws.spi; diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/package.html b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/package.html deleted file mode 100644 index e269ef9b53c..00000000000 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/spi/package.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - -This package defines SPIs for JAX-WS. - - diff --git a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/wsaddressing/W3CEndpointReference.java b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/wsaddressing/W3CEndpointReference.java index 0a9a0cfe429..b3638847e51 100644 --- a/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/wsaddressing/W3CEndpointReference.java +++ b/jaxws/src/java.xml.ws/share/classes/javax/xml/ws/wsaddressing/W3CEndpointReference.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2017, 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 @@ -72,10 +72,18 @@ public final class W3CEndpointReference extends EndpointReference { private final JAXBContext w3cjc = getW3CJaxbContext(); // should be changed to package private, keeping original modifier to keep backwards compatibility + + /** + * Addressing namespace. + */ protected static final String NS = "http://www.w3.org/2005/08/addressing"; // default constructor forbidden ... // should be private, keeping original modifier to keep backwards compatibility + + /** + * Default constructor. + */ protected W3CEndpointReference() { } @@ -110,6 +118,7 @@ public final class W3CEndpointReference extends EndpointReference { /** * {@inheritDoc} */ + @Override public void writeTo(Result result){ try { Marshaller marshaller = w3cjc.createMarshaller(); diff --git a/jaxws/src/java.xml.ws/share/classes/module-info.java b/jaxws/src/java.xml.ws/share/classes/module-info.java index a9313c30fb8..fa16a92cc39 100644 --- a/jaxws/src/java.xml.ws/share/classes/module-info.java +++ b/jaxws/src/java.xml.ws/share/classes/module-info.java @@ -122,9 +122,19 @@ module java.xml.ws { // com.sun.xml.internal.ws.fault.SOAPFaultBuilder uses JAXBContext.newInstance opens com.sun.xml.internal.ws.fault to java.xml.bind; - // classes passed to JAXBContext.newInstance for deep reflection + // com.sun.xml.internal.ws.addressing.WsaTubeHelperImpl uses JAXBContext.newInstance opens com.sun.xml.internal.ws.addressing to java.xml.bind; + // com.sun.xml.internal.ws.addressing.v200408.WsaTubeHelperImpl uses JAXBContext.newInstance + opens com.sun.xml.internal.ws.addressing.v200408 to java.xml.bind; + + // com.sun.xml.ws.developer.MemberSubmissionEndpointReference uses JAXBContext.newInstance + opens com.sun.xml.internal.ws.developer to java.xml.bind; + + // com.sun.xml.ws.model.ExternalMetadataReader uses JAXBContext.newInstance + opens com.oracle.xmlns.internal.webservices.jaxws_databinding to java.xml.bind; + + uses javax.xml.ws.spi.Provider; uses javax.xml.soap.MessageFactory; uses javax.xml.soap.SAAJMetaFactory; diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JModuleDirective.java b/jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JModuleDirective.java index af71cbd9218..5c22491eb3b 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JModuleDirective.java +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JModuleDirective.java @@ -94,14 +94,17 @@ public abstract class JModuleDirective { /** * Returns a hash code for this module directive based on directive type and name. - * The hash code for a module directive is computed as
    -     * 97 * Integer.hashCode(type_ordinal_value + 1) + name.hashCode()
    -     * 
    using {@code int} arithmetic. + * The hash code for a module directive is computed as + *
    +     *     {@code 97 * (type_ordinal_value + 1) + name.hashCode()}
    +     * 
    + * using {@code int} arithmetic. + * * @return a hash code value for this object. */ @Override public int hashCode() { - return 97 * (Integer.valueOf(getType().ordinal() + 1)).hashCode() + name.hashCode(); + return 97 * (getType().ordinal() + 1) + name.hashCode(); } /** diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle.properties index 0f2b377cc5b..aecb2773243 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle.properties @@ -30,10 +30,10 @@ BASEDIR_DOESNT_EXIST = \ Non-existent directory: {0} VERSION = \ - schemagen 2.3.0-b170215.1712 + schemagen 2.3.0-b170531.0717 FULLVERSION = \ - schemagen full version "2.3.0-b170215.1712" + schemagen full version "2.3.0-b170531.0717" USAGE = \ Usage: schemagen [-options ...] \n\ diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_de.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_de.properties index be77744f1df..f826e6297d5 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_de.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_de.properties @@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = Nicht erkanntes {0} in Zeile {1} Spalte {2} BASEDIR_DOESNT_EXIST = Nicht vorhandenes Verzeichnis: {0} -VERSION = schemagen 2.3.0-b170215.1712 +VERSION = schemagen 2.3.0-b170531.0717 -FULLVERSION = schemagen vollst\u00E4ndige Version "2.3.0-b170215.1712" +FULLVERSION = schemagen vollst\u00E4ndige Version "2.3.0-b170531.0717" USAGE = Verwendung: schemagen [-options ...] \nOptionen: \n\\ \\ \\ \\ -d : Gibt an, wo die von Prozessor und javac generierten Klassendateien gespeichert werden sollen\n\\ \\ \\ \\ -cp : Gibt an, wo die vom Benutzer angegebenen Dateien gespeichert sind\n\\ \\ \\ \\ -classpath : Gibt an, wo die vom Benutzer angegebenen Dateien gespeichert sind\n\\ \\ \\ \\ -encoding : Gibt die Codierung f\u00FCr die Annotationsverarbeitung/den javac-Aufruf an \n\\ \\ \\ \\ -episode : Generiert Episodendatei f\u00FCr separate Kompilierung\n\\ \\ \\ \\ -version : Zeigt Versionsinformation an\n\\ \\ \\ \\ -fullversion : Zeigt vollst\u00E4ndige Versionsinformationen an\n\\ \\ \\ \\ -help : Zeigt diese Verwendungsmeldung an diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_es.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_es.properties index 632f594e2b5..063d107a602 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_es.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_es.properties @@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = Aparece un {0} inesperado en la l\u00EDnea {1} y la colu BASEDIR_DOESNT_EXIST = Directorio no existente: {0} -VERSION = schemagen 2.3.0-b170215.1712 +VERSION = schemagen 2.3.0-b170531.0717 -FULLVERSION = versi\u00F3n completa de schemagen "2.3.0-b170215.1712" +FULLVERSION = versi\u00F3n completa de schemagen "2.3.0-b170531.0717" USAGE = Sintaxis: schemagen [-options ...] \nOpciones: \n\\ \\ \\ \\ -d : especifique d\u00F3nde se colocan los archivos de clase generados por javac y el procesador\n\\ \\ \\ \\ -cp : especifique d\u00F3nde se encuentran los archivos especificados por el usuario\n\\ \\ \\ \\ -encoding : especifique la codificaci\u00F3n que se va a utilizar para el procesamiento de anotaciones/llamada de javac\n\\ \\ \\ \\ -episode : genera un archivo de episodio para una compilaci\u00F3n diferente\n\\ \\ \\ \\ -version : muestra la informaci\u00F3n de la versi\u00F3n\n\\ \\ \\ \\ -fullversion : muestra la informaci\u00F3n completa de la versi\u00F3n\n\\ \\ \\ \\ -help : muestra este mensaje de sintaxis diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_fr.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_fr.properties index 6acdbba38d8..b3f913c9772 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_fr.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_fr.properties @@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = Un \u00E9l\u00E9ment {0} inattendu appara\u00EEt \u00E0 BASEDIR_DOESNT_EXIST = R\u00E9pertoire {0} inexistant -VERSION = schemagen 2.3.0-b170215.1712 +VERSION = schemagen 2.3.0-b170531.0717 -FULLVERSION = version compl\u00E8te de schemagen "2.3.0-b170215.1712" +FULLVERSION = version compl\u00E8te de schemagen "2.3.0-b170531.0717" USAGE = Syntaxe : schemagen [-options ...] \nOptions : \n\ \ \ \ -d : indiquez o\u00F9 placer les fichiers de classe g\u00E9n\u00E9r\u00E9s par le processeur et le compilateur javac\n\ \ \ \ -cp : indiquez o\u00F9 trouver les fichiers sp\u00E9cifi\u00E9s par l'utilisateur\n\ \ \ \ -classpath : indiquez o\u00F9 trouver les fichiers sp\u00E9cifi\u00E9s par l'utilisateur\n\ \ \ \ -encoding : indiquez l'encodage \u00E0 utiliser pour l'appel de javac/traitement de l'annotation \n\ \ \ \ -episode : g\u00E9n\u00E9rez un fichier d'\u00E9pisode pour la compilation s\u00E9par\u00E9e\n\ \ \ \ -version : affichez les informations de version\n\ \ \ \ -fullversion : affichez les informations compl\u00E8tes de version\n\ \ \ \ -help : affichez ce message de syntaxe diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_it.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_it.properties index 00fe597645f..37360925c4a 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_it.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_it.properties @@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = {0} imprevisto visualizzato sulla riga {1} colonna {2} BASEDIR_DOESNT_EXIST = Directory non esistente: {0} -VERSION = schemagen 2.3.0-b170215.1712 +VERSION = schemagen 2.3.0-b170531.0717 -FULLVERSION = versione completa schemagen "2.3.0-b170215.1712" +FULLVERSION = versione completa schemagen "2.3.0-b170531.0717" USAGE = Uso: schemagen [-options ...] \nOpzioni: \n\ \ \ \ -d : specifica dove posizionare il processore e i file della classe generata javac\n\ \ \ \ -cp : specifica dove trovare i file specificati dall'utente\n\ \ \ \ -classpath : specifica dove trovare i file specificati dall'utente\n\ \ \ \ -encoding : specifica la codifica da usare per l'elaborazione dell'annotazione/richiamo javac \n\ \ \ \ -episode : genera il file di episodio per la compilazione separata\n\ \ \ \ -version : visualizza le informazioni sulla versione\n\ \ \ \ -fullversion : visualizza le informazioni sulla versione completa\n\ \ \ \ -help : visualizza questo messaggio sull'uso diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_ja.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_ja.properties index 638e47d9ce5..0acac182736 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_ja.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_ja.properties @@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = \u4E88\u671F\u3057\u306A\u3044{0}\u304C\u884C{1}\u3001\u BASEDIR_DOESNT_EXIST = \u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u304C\u5B58\u5728\u3057\u307E\u305B\u3093: {0} -VERSION = schemagen 2.3.0-b170215.1712 +VERSION = schemagen 2.3.0-b170531.0717 -FULLVERSION = schemagen\u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3"2.3.0-b170215.1712" +FULLVERSION = schemagen\u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3"2.3.0-b170531.0717" USAGE = \u4F7F\u7528\u65B9\u6CD5: schemagen [-options ...] \n\u30AA\u30D7\u30B7\u30E7\u30F3: \n\ \ \ \ -d : \u30D7\u30ED\u30BB\u30C3\u30B5\u304A\u3088\u3073javac\u304C\u751F\u6210\u3057\u305F\u30AF\u30E9\u30B9\u30FB\u30D5\u30A1\u30A4\u30EB\u3092\u7F6E\u304F\u4F4D\u7F6E\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -cp : \u30E6\u30FC\u30B6\u30FC\u304C\u6307\u5B9A\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u691C\u7D22\u3059\u308B\u4F4D\u7F6E\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -classpath : \u30E6\u30FC\u30B6\u30FC\u304C\u6307\u5B9A\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u691C\u7D22\u3059\u308B\u4F4D\u7F6E\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -encoding : \u6CE8\u91C8\u51E6\u7406/javac\u547C\u51FA\u3057\u306B\u4F7F\u7528\u3059\u308B\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -episode : \u30B3\u30F3\u30D1\u30A4\u30EB\u3054\u3068\u306B\u30A8\u30D4\u30BD\u30FC\u30C9\u30FB\u30D5\u30A1\u30A4\u30EB\u3092\u751F\u6210\u3057\u307E\u3059\n\ \ \ \ -version : \u30D0\u30FC\u30B8\u30E7\u30F3\u60C5\u5831\u3092\u8868\u793A\u3057\u307E\u3059\n\ \ \ \ -fullversion : \u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3\u60C5\u5831\u3092\u8868\u793A\u3057\u307E\u3059\n\ \ \ \ -help : \u3053\u306E\u4F7F\u7528\u4F8B\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u8868\u793A\u3057\u307E\u3059 diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_ko.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_ko.properties index 416931124b3..4b585c25816 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_ko.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_ko.properties @@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = \uC608\uC0C1\uCE58 \uC54A\uC740 {0}\uC774(\uAC00) {1}\uD BASEDIR_DOESNT_EXIST = \uC874\uC7AC\uD558\uC9C0 \uC54A\uB294 \uB514\uB809\uD1A0\uB9AC: {0} -VERSION = schemagen 2.3.0-b170215.1712 +VERSION = schemagen 2.3.0-b170531.0717 -FULLVERSION = schemagen \uC815\uC2DD \uBC84\uC804 "2.3.0-b170215.1712" +FULLVERSION = schemagen \uC815\uC2DD \uBC84\uC804 "2.3.0-b170531.0717" USAGE = \uC0AC\uC6A9\uBC95: schemagen [-options ...] \n\uC635\uC158: \n\ \ \ \ -d : \uD504\uB85C\uC138\uC11C \uBC0F javac\uC5D0\uC11C \uC0DD\uC131\uD55C \uD074\uB798\uC2A4 \uD30C\uC77C\uC744 \uBC30\uCE58\uD560 \uC704\uCE58\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4.\n\ \ \ \ -cp : \uC0AC\uC6A9\uC790\uAC00 \uC9C0\uC815\uD55C \uD30C\uC77C\uC744 \uCC3E\uC744 \uC704\uCE58\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4.\n\ \ \ \ -classpath : \uC0AC\uC6A9\uC790\uAC00 \uC9C0\uC815\uD55C \uD30C\uC77C\uC744 \uCC3E\uC744 \uC704\uCE58\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4.\n\ \ \ \ -encoding : \uC8FC\uC11D \uCC98\uB9AC/javac \uD638\uCD9C\uC5D0 \uC0AC\uC6A9\uD560 \uC778\uCF54\uB529\uC744 \uC9C0\uC815\uD569\uB2C8\uB2E4. \n\ \ \ \ -episode : \uBCC4\uB3C4 \uCEF4\uD30C\uC77C\uC744 \uC704\uD574 episode \uD30C\uC77C\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4.\n\ \ \ \ -version : \uBC84\uC804 \uC815\uBCF4\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4.\n\ \ \ \ -fullversion : \uC815\uC2DD \uBC84\uC804 \uC815\uBCF4\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4.\n\ \ \ \ -help : \uC774 \uC0AC\uC6A9\uBC95 \uBA54\uC2DC\uC9C0\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_pt_BR.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_pt_BR.properties index 6da2bc93337..38d6da28b9b 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_pt_BR.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_pt_BR.properties @@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = {0} inesperado aparece na linha {1} coluna {2} BASEDIR_DOESNT_EXIST = Diret\u00F3rio n\u00E3o existente: {0} -VERSION = gera\u00E7\u00E3o do esquema 2.3.0-b170215.1712 +VERSION = gera\u00E7\u00E3o do esquema 2.3.0-b170531.0717 -FULLVERSION = vers\u00E3o completa da gera\u00E7\u00E3o do esquema "2.3.0-b170215.1712" +FULLVERSION = vers\u00E3o completa da gera\u00E7\u00E3o do esquema "2.3.0-b170531.0717" USAGE = Uso: gera\u00E7\u00E3o do esquema [-options ...] \nOp\u00E7\u00F5es: \n\\ \\ \\ \\ -d : especificar onde colocar o processador e os arquivos da classe gerados por javac\n\\ \\ \\ \\ -cp : especificar onde localizar arquivos especificados pelo usu\u00E1rio\n\\ \\ \\ \\ -classpath : especificar onde localizar os arquivos especificados pelo usu\u00E1rio\n\\ \\ \\ \\ -encoding : especificar codifica\u00E7\u00E3o a ser usada para processamento de anota\u00E7\u00E3o/chamada javac \n\\ \\ \\ \\ -episode : gerar arquivo do epis\u00F3dio para compila\u00E7\u00E3o separada\n\\ \\ \\ \\ -version : exibir informa\u00E7\u00F5es da vers\u00E3o\n\\ \\ \\ \\ -fullversion : exibir informa\u00E7\u00F5es da vers\u00E3o completa\n\\ \\ \\ \\ -help : exibir esta mensagem de uso diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_zh_CN.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_zh_CN.properties index beed169c9ae..896dc2d5480 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_zh_CN.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_zh_CN.properties @@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = \u5728\u7B2C {1} \u884C, \u7B2C {2} \u5217\u51FA\u73B0\u BASEDIR_DOESNT_EXIST = \u4E0D\u5B58\u5728\u7684\u76EE\u5F55: {0} -VERSION = schemagen 2.3.0-b170215.1712 +VERSION = schemagen 2.3.0-b170531.0717 -FULLVERSION = schemagen \u5B8C\u6574\u7248\u672C "2.3.0-b170215.1712" +FULLVERSION = schemagen \u5B8C\u6574\u7248\u672C "2.3.0-b170531.0717" USAGE = \u7528\u6CD5: schemagen [-options ...] \n\u9009\u9879: \n\ \ \ \ -d : \u6307\u5B9A\u653E\u7F6E\u5904\u7406\u7A0B\u5E8F\u548C javac \u751F\u6210\u7684\u7C7B\u6587\u4EF6\u7684\u4F4D\u7F6E\n\ \ \ \ -cp : \u6307\u5B9A\u67E5\u627E\u7528\u6237\u6307\u5B9A\u6587\u4EF6\u7684\u4F4D\u7F6E\n\ \ \ \ -classpath : \u6307\u5B9A\u67E5\u627E\u7528\u6237\u6307\u5B9A\u6587\u4EF6\u7684\u4F4D\u7F6E\n\ \ \ \ -encoding : \u6307\u5B9A\u7528\u4E8E\u6CE8\u91CA\u5904\u7406/javac \u8C03\u7528\u7684\u7F16\u7801\n\ \ \ \ -episode : \u751F\u6210\u7247\u6BB5\u6587\u4EF6\u4EE5\u4F9B\u5355\u72EC\u7F16\u8BD1\n\ \ \ \ -version : \u663E\u793A\u7248\u672C\u4FE1\u606F\n\ \ \ \ -fullversion : \u663E\u793A\u5B8C\u6574\u7684\u7248\u672C\u4FE1\u606F\n\ \ \ \ -help : \u663E\u793A\u6B64\u7528\u6CD5\u6D88\u606F diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_zh_TW.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_zh_TW.properties index 01744696586..6ffd45d8984 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_zh_TW.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/MessageBundle_zh_TW.properties @@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = \u672A\u9810\u671F\u7684 {0} \u986F\u793A\u65BC\u884C {1 BASEDIR_DOESNT_EXIST = \u4E0D\u5B58\u5728\u7684\u76EE\u9304: {0} -VERSION = schemagen 2.3.0-b170215.1712 +VERSION = schemagen 2.3.0-b170531.0717 -FULLVERSION = schemagen \u5B8C\u6574\u7248\u672C "2.3.0-b170215.1712" +FULLVERSION = schemagen \u5B8C\u6574\u7248\u672C "2.3.0-b170531.0717" USAGE = \u7528\u6CD5: schemagen [-options ...] \n\u9078\u9805: \n\\ \\ \\ \\ -d : \u6307\u5B9A\u8655\u7406\u5668\u4EE5\u53CA javac \u7522\u751F\u7684\u985E\u5225\u6A94\u6848\u653E\u7F6E\u4F4D\u7F6E\n\\ \\ \\ \\ -cp : \u6307\u5B9A\u8981\u5C0B\u627E\u4F7F\u7528\u8005\u6307\u5B9A\u6A94\u6848\u7684\u4F4D\u7F6E\n\\ \\ \\ \\ -classpath : \u6307\u5B9A\u8981\u5C0B\u627E\u4F7F\u7528\u8005\u6307\u5B9A\u6A94\u6848\u7684\u4F4D\u7F6E\n\\ \\ \\ \\ -encoding : \u6307\u5B9A\u8981\u7528\u65BC\u8A3B\u89E3\u8655\u7406/javac \u547C\u53EB\u7684\u7DE8\u78BC \n\\ \\ \\ \\ -episode : \u7522\u751F\u7368\u7ACB\u7DE8\u8B6F\u7684\u4E8B\u4EF6 (episode) \u6A94\u6848\n\\ \\ \\ \\ -version : \u986F\u793A\u7248\u672C\u8CC7\u8A0A\n\\ \\ \\ \\ -fullversion : \u986F\u793A\u5B8C\u6574\u7248\u672C\u8CC7\u8A0A\n\\ \\ \\ \\ -help : \u986F\u793A\u6B64\u7528\u6CD5\u8A0A\u606F diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle.properties index fa3f5b2f8f3..4231c45b6e4 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle.properties @@ -173,23 +173,23 @@ Driver.CompilingSchema = \ Driver.FailedToGenerateCode = \ Failed to produce code. -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn Driver.FilePrologComment = \ - This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0-b170215.1712 \n\ + This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0-b170531.0717 \n\ See https://jaxb.java.net/ \n\ Any modifications to this file will be lost upon recompilation of the source schema. \n\ Generated on: {0} \n Driver.Version = \ - xjc 2.3.0-b170215.1712 + xjc 2.3.0-b170531.0717 Driver.FullVersion = \ - xjc full version "2.3.0-b170215.1712" + xjc full version "2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_de.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_de.properties index 57e1bb38224..83a0e115a21 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_de.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_de.properties @@ -127,17 +127,17 @@ Driver.CompilingSchema = Ein Schema wird kompiliert ... Driver.FailedToGenerateCode = Code konnte nicht erzeugt werden. -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn -Driver.FilePrologComment = Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0-b170215.1712 generiert \nSiehe https://jaxb.java.net/ \n\u00c4nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. \nGeneriert: {0} \n +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn +Driver.FilePrologComment = Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0-b170531.0717 generiert \nSiehe https://jaxb.java.net/ \n\u00c4nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. \nGeneriert: {0} \n -Driver.Version = xjc 2.3.0-b170215.1712 +Driver.Version = xjc 2.3.0-b170531.0717 -Driver.FullVersion = xjc vollst\u00E4ndige Version "2.3.0-b170215.1712" +Driver.FullVersion = xjc vollst\u00E4ndige Version "2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_es.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_es.properties index 63de1fab45b..178f0ec7b39 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_es.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_es.properties @@ -127,17 +127,17 @@ Driver.CompilingSchema = Compilando un esquema... Driver.FailedToGenerateCode = Fallo al producir c\u00f3digo. -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn -Driver.FilePrologComment = Este archivo ha sido generado por la arquitectura JavaTM para la implantaci\u00f3n de la referencia de enlace (JAXB) XML v2.3.0-b170215.1712 \nVisite https://jaxb.java.net/ \nTodas las modificaciones realizadas en este archivo se perder\u00e1n si se vuelve a compilar el esquema de origen. \nGenerado el: {0} \n +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn +Driver.FilePrologComment = Este archivo ha sido generado por la arquitectura JavaTM para la implantaci\u00f3n de la referencia de enlace (JAXB) XML v2.3.0-b170531.0717 \nVisite https://jaxb.java.net/ \nTodas las modificaciones realizadas en este archivo se perder\u00e1n si se vuelve a compilar el esquema de origen. \nGenerado el: {0} \n -Driver.Version = xjc 2.3.0-b170215.1712 +Driver.Version = xjc 2.3.0-b170531.0717 -Driver.FullVersion = versi\u00F3n completa de xjc "2.3.0-b170215.1712" +Driver.FullVersion = versi\u00F3n completa de xjc "2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_fr.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_fr.properties index 5ad5ff87055..5bd13440b3f 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_fr.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_fr.properties @@ -131,17 +131,17 @@ Driver.CompilingSchema = compilation d'un sch\u00e9ma... Driver.FailedToGenerateCode = Echec de la production du code. -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn -Driver.FilePrologComment = Ce fichier a \u00e9t\u00e9 g\u00e9n\u00e9r\u00e9 par l''impl\u00e9mentation de r\u00e9f\u00e9rence JavaTM Architecture for XML Binding (JAXB), v2.3.0-b170215.1712 \nVoir https://jaxb.java.net/ \nToute modification apport\u00e9e \u00e0 ce fichier sera perdue lors de la recompilation du sch\u00e9ma source. \nG\u00e9n\u00e9r\u00e9 le : {0} \n +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn +Driver.FilePrologComment = Ce fichier a \u00e9t\u00e9 g\u00e9n\u00e9r\u00e9 par l''impl\u00e9mentation de r\u00e9f\u00e9rence JavaTM Architecture for XML Binding (JAXB), v2.3.0-b170531.0717 \nVoir https://jaxb.java.net/ \nToute modification apport\u00e9e \u00e0 ce fichier sera perdue lors de la recompilation du sch\u00e9ma source. \nG\u00e9n\u00e9r\u00e9 le : {0} \n -Driver.Version = xjc 2.3.0-b170215.1712 +Driver.Version = xjc 2.3.0-b170531.0717 -Driver.FullVersion = version compl\u00E8te xjc "2.3.0-b170215.1712" +Driver.FullVersion = version compl\u00E8te xjc "2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_it.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_it.properties index 9d00dd77f4e..aad9f6bca1d 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_it.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_it.properties @@ -127,17 +127,17 @@ Driver.CompilingSchema = compilazione di uno schema in corso... Driver.FailedToGenerateCode = Produzione del codice non riuscita. -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn -Driver.FilePrologComment = Questo file \u00e8 stato generato dall''architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.3.0-b170215.1712 \nVedere https://jaxb.java.net/ \nQualsiasi modifica a questo file andr\u00e0 persa durante la ricompilazione dello schema di origine. \nGenerato il: {0} \n +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn +Driver.FilePrologComment = Questo file \u00e8 stato generato dall''architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.3.0-b170531.0717 \nVedere https://jaxb.java.net/ \nQualsiasi modifica a questo file andr\u00e0 persa durante la ricompilazione dello schema di origine. \nGenerato il: {0} \n -Driver.Version = xjc 2.3.0-b170215.1712 +Driver.Version = xjc 2.3.0-b170531.0717 -Driver.FullVersion = versione completa xjc "2.3.0-b170215.1712" +Driver.FullVersion = versione completa xjc "2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_ja.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_ja.properties index c7a60c6e59a..ceb952818eb 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_ja.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_ja.properties @@ -127,17 +127,17 @@ Driver.CompilingSchema = \u30b9\u30ad\u30fc\u30de\u306e\u30b3\u30f3\u30d1\u30a4\ Driver.FailedToGenerateCode = \u30b3\u30fc\u30c9\u306e\u751f\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002 -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn -Driver.FilePrologComment = \u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001JavaTM Architecture for XML Binding(JAXB) Reference Implementation\u3001v2.3.0-b170215.1712\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u307e\u3057\u305f \nhttps://jaxb.java.net/\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044 \n\u30bd\u30fc\u30b9\u30fb\u30b9\u30ad\u30fc\u30de\u306e\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u306f\u5931\u308f\u308c\u307e\u3059\u3002 \n\u751f\u6210\u65e5: {0} \n +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn +Driver.FilePrologComment = \u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001JavaTM Architecture for XML Binding(JAXB) Reference Implementation\u3001v2.3.0-b170531.0717\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u307e\u3057\u305f \nhttps://jaxb.java.net/\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044 \n\u30bd\u30fc\u30b9\u30fb\u30b9\u30ad\u30fc\u30de\u306e\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u306f\u5931\u308f\u308c\u307e\u3059\u3002 \n\u751f\u6210\u65e5: {0} \n -Driver.Version = xjc 2.3.0-b170215.1712 +Driver.Version = xjc 2.3.0-b170531.0717 -Driver.FullVersion = xjc\u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3"2.3.0-b170215.1712" +Driver.FullVersion = xjc\u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3"2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_ko.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_ko.properties index 31018022265..275be7748b0 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_ko.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_ko.properties @@ -127,17 +127,17 @@ Driver.CompilingSchema = \uc2a4\ud0a4\ub9c8\ub97c \ucef4\ud30c\uc77c\ud558\ub294 Driver.FailedToGenerateCode = \ucf54\ub4dc \uc0dd\uc131\uc744 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4. -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn -Driver.FilePrologComment = \uc774 \ud30c\uc77c\uc740 JAXB(JavaTM Architecture for XML Binding) \ucc38\uc870 \uad6c\ud604 2.3.0-b170215.1712 \ubc84\uc804\uc744 \ud1b5\ud574 \uc0dd\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \nhttps://jaxb.java.net/\ub97c \ucc38\uc870\ud558\uc2ed\uc2dc\uc624. \n\uc774 \ud30c\uc77c\uc744 \uc218\uc815\ud558\uba74 \uc18c\uc2a4 \uc2a4\ud0a4\ub9c8\ub97c \uc7ac\ucef4\ud30c\uc77c\ud560 \ub54c \uc218\uc815 \uc0ac\ud56d\uc774 \uc190\uc2e4\ub429\ub2c8\ub2e4. \n\uc0dd\uc131 \ub0a0\uc9dc: {0} \n +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn +Driver.FilePrologComment = \uc774 \ud30c\uc77c\uc740 JAXB(JavaTM Architecture for XML Binding) \ucc38\uc870 \uad6c\ud604 2.3.0-b170531.0717 \ubc84\uc804\uc744 \ud1b5\ud574 \uc0dd\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \nhttps://jaxb.java.net/\ub97c \ucc38\uc870\ud558\uc2ed\uc2dc\uc624. \n\uc774 \ud30c\uc77c\uc744 \uc218\uc815\ud558\uba74 \uc18c\uc2a4 \uc2a4\ud0a4\ub9c8\ub97c \uc7ac\ucef4\ud30c\uc77c\ud560 \ub54c \uc218\uc815 \uc0ac\ud56d\uc774 \uc190\uc2e4\ub429\ub2c8\ub2e4. \n\uc0dd\uc131 \ub0a0\uc9dc: {0} \n -Driver.Version = XJC 2.3.0-b170215.1712 +Driver.Version = XJC 2.3.0-b170531.0717 -Driver.FullVersion = XJC \uC815\uC2DD \uBC84\uC804 "2.3.0-b170215.1712" +Driver.FullVersion = XJC \uC815\uC2DD \uBC84\uC804 "2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_pt_BR.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_pt_BR.properties index 71c827a099b..7926f4d5331 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_pt_BR.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_pt_BR.properties @@ -127,17 +127,17 @@ Driver.CompilingSchema = compilando um esquema... Driver.FailedToGenerateCode = Falha ao produzir o c\u00f3digo. -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn -Driver.FilePrologComment = Este arquivo foi gerado pela Arquitetura JavaTM para Implementa\u00e7\u00e3o de Refer\u00eancia (JAXB) de Bind XML, v2.3.0-b170215.1712 \nConsulte https://jaxb.java.net/ \nTodas as modifica\u00e7\u00f5es neste arquivo ser\u00e3o perdidas ap\u00f3s a recompila\u00e7\u00e3o do esquema de origem. \nGerado em: {0} \n +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn +Driver.FilePrologComment = Este arquivo foi gerado pela Arquitetura JavaTM para Implementa\u00e7\u00e3o de Refer\u00eancia (JAXB) de Bind XML, v2.3.0-b170531.0717 \nConsulte https://jaxb.java.net/ \nTodas as modifica\u00e7\u00f5es neste arquivo ser\u00e3o perdidas ap\u00f3s a recompila\u00e7\u00e3o do esquema de origem. \nGerado em: {0} \n -Driver.Version = xjc 2.3.0-b170215.1712 +Driver.Version = xjc 2.3.0-b170531.0717 -Driver.FullVersion = vers\u00E3o completa de xjc "2.3.0-b170215.1712" +Driver.FullVersion = vers\u00E3o completa de xjc "2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_zh_CN.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_zh_CN.properties index efd45c540e8..daad91ff9e2 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_zh_CN.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_zh_CN.properties @@ -131,17 +131,17 @@ Driver.CompilingSchema = \u6b63\u5728\u7f16\u8bd1\u6a21\u5f0f... Driver.FailedToGenerateCode = \u65e0\u6cd5\u751f\u6210\u4ee3\u7801\u3002 -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn -Driver.FilePrologComment = \u6b64\u6587\u4ef6\u662f\u7531 JavaTM Architecture for XML Binding (JAXB) \u5f15\u7528\u5b9e\u73b0 v2.3.0-b170215.1712 \u751f\u6210\u7684\n\u8bf7\u8bbf\u95ee https://jaxb.java.net/ \n\u5728\u91cd\u65b0\u7f16\u8bd1\u6e90\u6a21\u5f0f\u65f6, \u5bf9\u6b64\u6587\u4ef6\u7684\u6240\u6709\u4fee\u6539\u90fd\u5c06\u4e22\u5931\u3002\n\u751f\u6210\u65f6\u95f4: {0} \n +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn +Driver.FilePrologComment = \u6b64\u6587\u4ef6\u662f\u7531 JavaTM Architecture for XML Binding (JAXB) \u5f15\u7528\u5b9e\u73b0 v2.3.0-b170531.0717 \u751f\u6210\u7684\n\u8bf7\u8bbf\u95ee https://jaxb.java.net/ \n\u5728\u91cd\u65b0\u7f16\u8bd1\u6e90\u6a21\u5f0f\u65f6, \u5bf9\u6b64\u6587\u4ef6\u7684\u6240\u6709\u4fee\u6539\u90fd\u5c06\u4e22\u5931\u3002\n\u751f\u6210\u65f6\u95f4: {0} \n -Driver.Version = xjc 2.3.0-b170215.1712 +Driver.Version = xjc 2.3.0-b170531.0717 -Driver.FullVersion = xjc \u5B8C\u6574\u7248\u672C "2.3.0-b170215.1712" +Driver.FullVersion = xjc \u5B8C\u6574\u7248\u672C "2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_zh_TW.properties b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_zh_TW.properties index 4889fc512ae..d0282b8efc7 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_zh_TW.properties +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/MessageBundle_zh_TW.properties @@ -127,17 +127,17 @@ Driver.CompilingSchema = \u6b63\u5728\u7de8\u8b6f\u7db1\u8981... Driver.FailedToGenerateCode = \u7121\u6cd5\u7522\u751f\u7a0b\u5f0f\u78bc. -# DO NOT localize the 2.3.0-b170215.1712 string - it is a token for an mvn -Driver.FilePrologComment = \u6b64\u6a94\u6848\u662f\u7531 JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0-b170215.1712 \u6240\u7522\u751f \n\u8acb\u53c3\u95b1 https://jaxb.java.net/ \n\u4e00\u65e6\u91cd\u65b0\u7de8\u8b6f\u4f86\u6e90\u7db1\u8981, \u5c0d\u6b64\u6a94\u6848\u6240\u505a\u7684\u4efb\u4f55\u4fee\u6539\u90fd\u5c07\u6703\u907a\u5931. \n\u7522\u751f\u6642\u9593: {0} \n +# DO NOT localize the 2.3.0-b170531.0717 string - it is a token for an mvn +Driver.FilePrologComment = \u6b64\u6a94\u6848\u662f\u7531 JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0-b170531.0717 \u6240\u7522\u751f \n\u8acb\u53c3\u95b1 https://jaxb.java.net/ \n\u4e00\u65e6\u91cd\u65b0\u7de8\u8b6f\u4f86\u6e90\u7db1\u8981, \u5c0d\u6b64\u6a94\u6848\u6240\u505a\u7684\u4efb\u4f55\u4fee\u6539\u90fd\u5c07\u6703\u907a\u5931. \n\u7522\u751f\u6642\u9593: {0} \n -Driver.Version = xjc 2.3.0-b170215.1712 +Driver.Version = xjc 2.3.0-b170531.0717 -Driver.FullVersion = xjc \u5B8C\u6574\u7248\u672C "2.3.0-b170215.1712" +Driver.FullVersion = xjc \u5B8C\u6574\u7248\u672C "2.3.0-b170531.0717" -Driver.BuildID = 2.3.0-b170215.1712 +Driver.BuildID = 2.3.0-b170531.0717 # for JDK integration - include version in source zip -jaxb.jdk.version=@@JAXB_JDK_VERSION@@ +jaxb.jdk.version=2.3.0-b170531.0717 # see java.text.SimpleDateFormat for format syntax # DO NOT LOCALIZE, Format should not be changed, English locale is used to transform this string into a real date. diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/Options.java b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/Options.java index e1603cb9aaa..c1136f45f65 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/Options.java +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/Options.java @@ -77,37 +77,53 @@ import org.xml.sax.InputSource; * The configuration in this class should be abstract enough so that * it could be parsed from both command-line or Ant. */ -public class Options -{ - /** If "-debug" is specified. */ +public class Options { + /** + * If "-debug" is specified. + */ public boolean debugMode; - /** If the "-verbose" option is specified. */ + /** + * If the "-verbose" option is specified. + */ public boolean verbose; - /** If the "-quiet" option is specified. */ + /** + * If the "-quiet" option is specified. + */ public boolean quiet; - /** If the -readOnly option is specified. */ + /** + * If the -readOnly option is specified. + */ public boolean readOnly; - /** No file header comment (to be more friendly with diff.) */ + /** + * No file header comment (to be more friendly with diff.) + */ public boolean noFileHeader; - /** When on, fixes getter/setter generation to match the Bean Introspection API */ + /** + * When on, fixes getter/setter generation to match the Bean Introspection API + */ public boolean enableIntrospection; - /** When on, generates content property for types with multiple xs:any derived elements (which is supposed to be correct behaviour) */ + /** + * When on, generates content property for types with multiple xs:any derived elements (which is supposed to be correct behaviour) + */ public boolean contentForWildcard; - /** Encoding to be used by generated java sources, null for platform default. */ + /** + * Encoding to be used by generated java sources, null for platform default. + */ public String encoding; /** * If true XML security features when parsing XML documents will be disabled. * The default value is false. - * + *

    * Boolean + * * @since 2.2.6 */ public boolean disableXmlSecurity; @@ -116,7 +132,7 @@ public class Options * Check the source schemas with extra scrutiny. * The exact meaning depends on the schema language. */ - public boolean strictCheck =true; + public boolean strictCheck = true; /** * If -explicit-annotation option is specified. @@ -149,7 +165,7 @@ public class Options public int compatibilityMode = STRICT; public boolean isExtensionMode() { - return compatibilityMode==EXTENSION; + return compatibilityMode == EXTENSION; } private static final Logger logger = com.sun.xml.internal.bind.Util.getClassLogger(); @@ -277,30 +293,26 @@ public class Options /** * Sets the {@link FieldRendererFactory}. - * + *

    *

    * This method is for plugins to call to set a custom {@link FieldRendererFactory}. * - * @param frf - * The {@link FieldRendererFactory} to be installed. Must not be null. - * @param owner - * Identifies the plugin that owns this {@link FieldRendererFactory}. - * When two {@link Plugin}s try to call this method, this allows XJC - * to report it as a user-friendly error message. - * - * @throws BadCommandLineException - * If a conflit happens, this exception carries a user-friendly error - * message, indicating a conflict. + * @param frf The {@link FieldRendererFactory} to be installed. Must not be null. + * @param owner Identifies the plugin that owns this {@link FieldRendererFactory}. + * When two {@link Plugin}s try to call this method, this allows XJC + * to report it as a user-friendly error message. + * @throws BadCommandLineException If a conflit happens, this exception carries a user-friendly error + * message, indicating a conflict. */ public void setFieldRendererFactory(FieldRendererFactory frf, Plugin owner) throws BadCommandLineException { // since this method is for plugins, make it bit more fool-proof than usual - if(frf==null) + if (frf == null) throw new IllegalArgumentException(); - if(fieldRendererFactoryOwner!=null) { + if (fieldRendererFactoryOwner != null) { throw new BadCommandLineException( Messages.format(Messages.FIELD_RENDERER_CONFLICT, fieldRendererFactoryOwner.getOptionName(), - owner.getOptionName() )); + owner.getOptionName())); } this.fieldRendererFactoryOwner = owner; this.fieldRendererFactory = frf; @@ -318,30 +330,26 @@ public class Options /** * Sets the {@link NameConverter}. - * + *

    *

    * This method is for plugins to call to set a custom {@link NameConverter}. * - * @param nc - * The {@link NameConverter} to be installed. Must not be null. - * @param owner - * Identifies the plugin that owns this {@link NameConverter}. - * When two {@link Plugin}s try to call this method, this allows XJC - * to report it as a user-friendly error message. - * - * @throws BadCommandLineException - * If a conflit happens, this exception carries a user-friendly error - * message, indicating a conflict. + * @param nc The {@link NameConverter} to be installed. Must not be null. + * @param owner Identifies the plugin that owns this {@link NameConverter}. + * When two {@link Plugin}s try to call this method, this allows XJC + * to report it as a user-friendly error message. + * @throws BadCommandLineException If a conflit happens, this exception carries a user-friendly error + * message, indicating a conflict. */ public void setNameConverter(NameConverter nc, Plugin owner) throws BadCommandLineException { // since this method is for plugins, make it bit more fool-proof than usual - if(nc==null) + if (nc == null) throw new IllegalArgumentException(); - if(nameConverter!=null) { + if (nameConverter != null) { throw new BadCommandLineException( Messages.format(Messages.NAME_CONVERTER_CONFLICT, nameConverterOwner.getOptionName(), - owner.getOptionName() )); + owner.getOptionName())); } this.nameConverterOwner = owner; this.nameConverter = nc; @@ -349,15 +357,16 @@ public class Options /** * Gets all the {@link Plugin}s discovered so far. - * + *

    *

    * A plugins are enumerated when this method is called for the first time, * by taking {@link #classpaths} into account. That means * "-cp plugin.jar" has to come before you specify options to enable it. + * * @return */ public List getAllPlugins() { - if(allPlugins==null) { + if (allPlugins == null) { allPlugins = findServices(Plugin.class); } @@ -365,29 +374,34 @@ public class Options } public Language getSchemaLanguage() { - if( schemaLanguage==null) + if (schemaLanguage == null) schemaLanguage = guessSchemaLanguage(); return schemaLanguage; } + public void setSchemaLanguage(Language _schemaLanguage) { this.schemaLanguage = _schemaLanguage; } - /** Input schema files. - * @return */ + /** + * Input schema files. + * + * @return + */ public InputSource[] getGrammars() { return grammars.toArray(new InputSource[grammars.size()]); } /** * Adds a new input schema. + * * @param is */ - public void addGrammar( InputSource is ) { + public void addGrammar(InputSource is) { grammars.add(absolutize(is)); } - private InputSource fileToInputSource( File source ) { + private InputSource fileToInputSource(File source) { try { String url = source.toURL().toExternalForm(); return new InputSource(Util.escapeSpace(url)); @@ -396,27 +410,27 @@ public class Options } } - public void addGrammar( File source ) { + public void addGrammar(File source) { addGrammar(fileToInputSource(source)); } /** * Recursively scan directories and add all XSD files in it. + * * @param dir */ - public void addGrammarRecursive( File dir ) { - addRecursive(dir,".xsd",grammars); + public void addGrammarRecursive(File dir) { + addRecursive(dir, ".xsd", grammars); } - private void addRecursive( File dir, String suffix, List result ) { + private void addRecursive(File dir, String suffix, List result) { File[] files = dir.listFiles(); - if(files==null) return; // work defensively + if (files == null) return; // work defensively - for( File f : files ) { - if(f.isDirectory()) - addRecursive(f,suffix,result); - else - if(f.getPath().endsWith(suffix)) + for (File f : files) { + if (f.isDirectory()) + addRecursive(f, suffix, result); + else if (f.getPath().endsWith(suffix)) result.add(absolutize(fileToInputSource(f))); } } @@ -426,59 +440,68 @@ public class Options // absolutize all the system IDs in the input, so that we can map system IDs to DOM trees. try { URL baseURL = new File(".").getCanonicalFile().toURL(); - is.setSystemId( new URL(baseURL,is.getSystemId()).toExternalForm() ); - } catch( IOException e ) { + is.setSystemId(new URL(baseURL, is.getSystemId()).toExternalForm()); + } catch (IOException e) { logger.log(Level.FINE, "{0}, {1}", new Object[]{is.getSystemId(), e.getLocalizedMessage()}); } return is; } - /** Input external binding files. - * @return */ + /** + * Input external binding files. + * + * @return + */ public InputSource[] getBindFiles() { return bindFiles.toArray(new InputSource[bindFiles.size()]); } /** * Adds a new binding file. + * * @param is */ - public void addBindFile( InputSource is ) { + public void addBindFile(InputSource is) { bindFiles.add(absolutize(is)); } /** * Adds a new binding file. + * * @param bindFile */ - public void addBindFile( File bindFile ) { + public void addBindFile(File bindFile) { bindFiles.add(fileToInputSource(bindFile)); } /** * Recursively scan directories and add all ".xjb" files in it. + * * @param dir */ - public void addBindFileRecursive( File dir ) { - addRecursive(dir,".xjb",bindFiles); + public void addBindFileRecursive(File dir) { + addRecursive(dir, ".xjb", bindFiles); } public final List classpaths = new ArrayList<>(); + /** * Gets a classLoader that can load classes specified via the * -classpath option. + * * @param parent * @return */ - public ClassLoader getUserClassLoader( ClassLoader parent ) { + public ClassLoader getUserClassLoader(ClassLoader parent) { if (classpaths.isEmpty()) return parent; return new URLClassLoader( - classpaths.toArray(new URL[classpaths.size()]),parent); + classpaths.toArray(new URL[classpaths.size()]), parent); } /** * Gets Java module name option. + * * @return Java module name option or {@code null} if this option was not set. */ public String getModuleName() { @@ -491,13 +514,11 @@ public class Options * * @param args * @param i - * @return - * 0 if the argument is not understood. Returning 0 - * will let the caller report an error. - * @exception BadCommandLineException - * If the callee wants to provide a custom message for an error. + * @return 0 if the argument is not understood. Returning 0 + * will let the caller report an error. + * @throws BadCommandLineException If the callee wants to provide a custom message for an error. */ - public int parseArgument( String[] args, int i ) throws BadCommandLineException { + public int parseArgument(String[] args, int i) throws BadCommandLineException { if (args[i].equals("-classpath") || args[i].equals("-cp")) { String a = requireArgument(args[i], args, ++i); for (String p : a.split(File.pathSeparator)) { @@ -506,16 +527,16 @@ public class Options classpaths.add(file.toURL()); } catch (MalformedURLException e) { throw new BadCommandLineException( - Messages.format(Messages.NOT_A_VALID_FILENAME,file),e); + Messages.format(Messages.NOT_A_VALID_FILENAME, file), e); } } return 2; } if (args[i].equals("-d")) { - targetDir = new File(requireArgument("-d",args,++i)); - if( !targetDir.exists() ) + targetDir = new File(requireArgument("-d", args, ++i)); + if (!targetDir.exists()) throw new BadCommandLineException( - Messages.format(Messages.NON_EXISTENT_DIR,targetDir)); + Messages.format(Messages.NON_EXISTENT_DIR, targetDir)); return 2; } if (args[i].equals("-readOnly")) { @@ -523,8 +544,8 @@ public class Options return 1; } if (args[i].equals("-p")) { - defaultPackage = requireArgument("-p",args,++i); - if(defaultPackage.length()==0) { // user specified default package + defaultPackage = requireArgument("-p", args, ++i); + if (defaultPackage.length() == 0) { // user specified default package // there won't be any package to annotate, so disable them // automatically as a usability feature packageLevelAnnotations = false; @@ -544,11 +565,11 @@ public class Options strictCheck = false; return 1; } - if( args[i].equals("-npa")) { + if (args[i].equals("-npa")) { packageLevelAnnotations = false; return 1; } - if( args[i].equals("-no-header")) { + if (args[i].equals("-no-header")) { noFileHeader = true; return 1; } @@ -581,7 +602,7 @@ public class Options return 1; } if (args[i].equals("-b")) { - addFile(requireArgument("-b",args,++i),bindFiles,".xjb"); + addFile(requireArgument("-b", args, ++i), bindFiles, ".xjb"); return 2; } if (args[i].equals("-dtd")) { @@ -601,10 +622,10 @@ public class Options return 1; } if (args[i].equals("-target")) { - String token = requireArgument("-target",args,++i); + String token = requireArgument("-target", args, ++i); target = SpecVersion.parse(token); - if(target==null) - throw new BadCommandLineException(Messages.format(Messages.ILLEGAL_TARGET_VERSION,token)); + if (target == null) + throw new BadCommandLineException(Messages.format(Messages.ILLEGAL_TARGET_VERSION, token)); return 2; } if (args[i].equals("-httpproxyfile")) { @@ -614,16 +635,16 @@ public class Options } File file = new File(args[++i]); - if(!file.exists()) { + if (!file.exists()) { throw new BadCommandLineException( - Messages.format(Messages.NO_SUCH_FILE,file)); + Messages.format(Messages.NO_SUCH_FILE, file)); } - try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file),"UTF-8"))) { + try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"))) { parseProxy(in.readLine()); } catch (IOException e) { throw new BadCommandLineException( - Messages.format(Messages.FAILED_TO_PARSE,file,e.getMessage()),e); + Messages.format(Messages.FAILED_TO_PARSE, file, e.getMessage()), e); } return 2; @@ -638,33 +659,33 @@ public class Options return 2; } if (args[i].equals("-host")) { - proxyHost = requireArgument("-host",args,++i); + proxyHost = requireArgument("-host", args, ++i); return 2; } if (args[i].equals("-port")) { - proxyPort = requireArgument("-port",args,++i); + proxyPort = requireArgument("-port", args, ++i); return 2; } - if( args[i].equals("-catalog") ) { + if (args[i].equals("-catalog")) { // use Sun's "XML Entity and URI Resolvers" by Norman Walsh // to resolve external entities. // https://xerces.apache.org/xml-commons/components/resolver/resolver-article.html - File catalogFile = new File(requireArgument("-catalog",args,++i)); + File catalogFile = new File(requireArgument("-catalog", args, ++i)); try { addCatalog(catalogFile); } catch (IOException e) { throw new BadCommandLineException( - Messages.format(Messages.FAILED_TO_PARSE,catalogFile,e.getMessage()),e); + Messages.format(Messages.FAILED_TO_PARSE, catalogFile, e.getMessage()), e); } return 2; } - if( args[i].equals("-Xtest-class-name-allocator") ) { + if (args[i].equals("-Xtest-class-name-allocator")) { classNameAllocator = new ClassNameAllocator() { @Override public String assignClassName(String packageName, String className) { - System.out.printf("assignClassName(%s,%s)\n",packageName,className); - return className+"_Type"; + System.out.printf("assignClassName(%s,%s)\n", packageName, className); + return className + "_Type"; } }; return 1; @@ -685,9 +706,9 @@ public class Options } // see if this is one of the extensions - for( Plugin plugin : getAllPlugins() ) { + for (Plugin plugin : getAllPlugins()) { try { - if( ('-'+plugin.getOptionName()).equals(args[i]) ) { + if (('-' + plugin.getOptionName()).equals(args[i])) { activePlugins.add(plugin); plugin.onActivated(this); pluginURIs.addAll(plugin.getCustomizationURIs()); @@ -696,17 +717,17 @@ public class Options // this is new in 2.1, and due to the backward compatibility reason, // if plugin didn't understand it, we still return 1 to indicate // that this option is consumed. - int r = plugin.parseArgument(this,args,i); - if(r!=0) + int r = plugin.parseArgument(this, args, i); + if (r != 0) return r; else return 1; } - int r = plugin.parseArgument(this,args,i); - if(r!=0) return r; + int r = plugin.parseArgument(this, args, i); + if (r != 0) return r; } catch (IOException e) { - throw new BadCommandLineException(e.getMessage(),e); + throw new BadCommandLineException(e.getMessage(), e); } } @@ -740,12 +761,13 @@ public class Options try { Integer.valueOf(proxyPort); } catch (NumberFormatException e) { - throw new BadCommandLineException(Messages.format(Messages.ILLEGAL_PROXY,text)); + throw new BadCommandLineException(Messages.format(Messages.ILLEGAL_PROXY, text)); } } /** * Obtains an operand and reports an error if it's not there. + * * @param optionName * @param args * @param i @@ -755,7 +777,7 @@ public class Options public String requireArgument(String optionName, String[] args, int i) throws BadCommandLineException { if (i == args.length || args[i].startsWith("-")) { throw new BadCommandLineException( - Messages.format(Messages.MISSING_OPERAND,optionName)); + Messages.format(Messages.MISSING_OPERAND, optionName)); } return args[i]; } @@ -764,9 +786,8 @@ public class Options * Parses a token to a file (or a set of files) * and add them as {@link InputSource} to the specified list. * - * @param suffix - * If the given token is a directory name, we do a recursive search - * and find all files that have the given suffix. + * @param suffix If the given token is a directory name, we do a recursive search + * and find all files that have the given suffix. */ private void addFile(String name, List target, String suffix) throws BadCommandLineException { Object src; @@ -774,14 +795,14 @@ public class Options src = Util.getFileOrURL(name); } catch (IOException e) { throw new BadCommandLineException( - Messages.format(Messages.NOT_A_FILE_NOR_URL,name)); + Messages.format(Messages.NOT_A_FILE_NOR_URL, name)); } - if(src instanceof URL) { - target.add(absolutize(new InputSource(Util.escapeSpace(((URL)src).toExternalForm())))); + if (src instanceof URL) { + target.add(absolutize(new InputSource(Util.escapeSpace(((URL) src).toExternalForm())))); } else { - File fsrc = (File)src; - if(fsrc.isDirectory()) { - addRecursive(fsrc,suffix,target); + File fsrc = (File) src; + if (fsrc.isDirectory()) { + addRecursive(fsrc, suffix, target); } else { target.add(absolutize(fileToInputSource(fsrc))); } @@ -794,6 +815,7 @@ public class Options /** * Adds a new catalog file.Use created or existed resolver to parse new catalog file. + * * @param catalogFile * @throws java.io.IOException */ @@ -809,25 +831,24 @@ public class Options * Parses arguments and fill fields of this object. * * @param args - * @exception BadCommandLineException - * thrown when there's a problem in the command-line arguments + * @throws BadCommandLineException thrown when there's a problem in the command-line arguments */ - public void parseArguments( String[] args ) throws BadCommandLineException { + public void parseArguments(String[] args) throws BadCommandLineException { for (int i = 0; i < args.length; i++) { - if(args[i].length()==0) + if (args[i].length() == 0) throw new BadCommandLineException(); if (args[i].charAt(0) == '-') { - int j = parseArgument(args,i); - if(j==0) + int j = parseArgument(args, i); + if (j == 0) throw new BadCommandLineException( Messages.format(Messages.UNRECOGNIZED_PARAMETER, args[i])); - i += (j-1); + i += (j - 1); } else { - if(args[i].endsWith(".jar")) + if (args[i].endsWith(".jar")) scanEpisodeFile(new File(args[i])); else - addFile(args[i],grammars,".xsd"); + addFile(args[i], grammars, ".xsd"); } } @@ -854,7 +875,7 @@ public class Options throw new BadCommandLineException( Messages.format(Messages.MISSING_GRAMMAR)); - if( schemaLanguage==null ) + if (schemaLanguage == null) schemaLanguage = guessSchemaLanguage(); // if(target==SpecVersion.V2_2 && !isExtensionMode()) @@ -862,13 +883,14 @@ public class Options // "Currently 2.2 is still not finalized yet, so using it requires the -extension switch." + // "NOTE THAT 2.2 SPEC MAY CHANGE BEFORE IT BECOMES FINAL."); - if(pluginLoadFailure!=null) + if (pluginLoadFailure != null) throw new BadCommandLineException( - Messages.format(Messages.PLUGIN_LOAD_FAILURE,pluginLoadFailure)); + Messages.format(Messages.PLUGIN_LOAD_FAILURE, pluginLoadFailure)); } /** * Finds the {@code META-INF/sun-jaxb.episode} file to add as a binding customization. + * * @param jar * @throws com.sun.tools.internal.xjc.BadCommandLineException */ @@ -882,13 +904,14 @@ public class Options } } catch (IOException e) { throw new BadCommandLineException( - Messages.format(Messages.FAILED_TO_LOAD,jar,e.getMessage()), e); + Messages.format(Messages.FAILED_TO_LOAD, jar, e.getMessage()), e); } } /** * Guesses the schema language. + * * @return */ public Language guessSchemaLanguage() { @@ -910,27 +933,30 @@ public class Options /** * Creates a configured CodeWriter that produces files into the specified directory. + * * @return * @throws java.io.IOException */ public CodeWriter createCodeWriter() throws IOException { - return createCodeWriter(new FileCodeWriter( targetDir, readOnly, encoding )); + return createCodeWriter(new FileCodeWriter(targetDir, readOnly, encoding)); } /** * Creates a configured CodeWriter that produces files into the specified directory. + * * @param core * @return */ - public CodeWriter createCodeWriter( CodeWriter core ) { - if(noFileHeader) + public CodeWriter createCodeWriter(CodeWriter core) { + if (noFileHeader) return core; - return new PrologCodeWriter( core,getPrologComment() ); + return new PrologCodeWriter(core, getPrologComment()); } /** * Gets the string suitable to be used as the prolog comment baked into artifacts.This is the string like "This file was generated by the JAXB RI on YYYY/mm/dd..." + * * @return */ public String getPrologComment() { @@ -957,7 +983,7 @@ public class Options * Looks for all "META-INF/services/[className]" files and * create one instance for each class name found inside this file. */ - private List findServices( Class clazz) { + private List findServices(Class clazz) { final List result = new ArrayList<>(); final boolean debug = getDebugPropertyValue(); try { @@ -967,12 +993,12 @@ public class Options final ServiceLoader sl = ServiceLoader.load(clazz, tccl); for (T t : sl) result.add(t); - } catch( Throwable e ) { + } catch (Throwable e) { // ignore any error StringWriter w = new StringWriter(); e.printStackTrace(new PrintWriter(w)); pluginLoadFailure = w.toString(); - if(debug) + if (debug) System.out.println(pluginLoadFailure); } return result; diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/api/SpecVersion.java b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/api/SpecVersion.java index 2bd07fb7f01..03454af445a 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/api/SpecVersion.java +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/api/SpecVersion.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -55,5 +55,21 @@ public enum SpecVersion { return null; } + /** + * Gives the String representation of the {@link SpecVersion} + */ + public String getVersion(){ + switch(this){ + case V2_0: + return "2.0"; + case V2_1: + return "2.1"; + case V2_2: + return "2.2"; + default: + return null; + } + } + public static final SpecVersion LATEST = V2_2; } diff --git a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/reader/internalizer/DOMForest.java b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/reader/internalizer/DOMForest.java index 37a0b40e1dd..51ac49302eb 100644 --- a/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/reader/internalizer/DOMForest.java +++ b/jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/xjc/reader/internalizer/DOMForest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -85,7 +85,7 @@ import static javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI; */ public final class DOMForest { /** actual data storage {@code map}. */ - private final Map core = new HashMap(); + private final Map core = new LinkedHashMap<>(); /** * To correctly feed documents to a schema parser, we need to remember diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/processor/ProcessorException.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/processor/ProcessorException.java index eb8fe7bcd0e..77108990cb6 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/processor/ProcessorException.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/processor/ProcessorException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -27,9 +27,6 @@ package com.sun.tools.internal.ws.processor; import com.sun.xml.internal.ws.util.exception.JAXWSExceptionBase; -import java.util.Locale; -import java.util.ResourceBundle; - /** * ProcessorException represents an exception that occurred while processing * a web service. @@ -55,9 +52,4 @@ public class ProcessorException extends JAXWSExceptionBase { public String getDefaultResourceBundleName() { return "com.sun.tools.internal.ws.resources.processor"; } - - @Override - public ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(getDefaultResourceBundleName(), locale); - } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ConfigurationMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ConfigurationMessages.java index d46e6cf9271..22bf34ee7ae 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ConfigurationMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ConfigurationMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,12 +25,12 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -38,26 +38,32 @@ import java.util.ResourceBundle; * */ public final class ConfigurationMessages { - private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.configuration"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, ConfigurationMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.configuration"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ConfigurationMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableCONFIGURATION_NOT_BINDING_FILE(Object arg0) { - return messageFactory.getMessage("configuration.notBindingFile", arg0); + return MESSAGE_FACTORY.getMessage("configuration.notBindingFile", arg0); } - /** * Ignoring: binding file "{0}". It is not a jaxws or a jaxb binding file. * */ public static String CONFIGURATION_NOT_BINDING_FILE(Object arg0) { - return localizer.localize(localizableCONFIGURATION_NOT_BINDING_FILE(arg0)); + return LOCALIZER.localize(localizableCONFIGURATION_NOT_BINDING_FILE(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/GeneratorMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/GeneratorMessages.java index a750a5741fd..5ab2dc817b1 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/GeneratorMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/GeneratorMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,12 +25,12 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -38,65 +38,13 @@ import java.util.ResourceBundle; * */ public final class GeneratorMessages { + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.generator"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, GeneratorMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableGENERATOR_SERVICE_CLASS_ALREADY_EXIST(Object arg0, Object arg1) { - return messageFactory.getMessage("generator.service.classAlreadyExist", arg0, arg1); - } - - /** - * Could not generate Service, class: {0} already exists. Rename wsdl:Service "{1}" using JAX-WS customization - * - */ - public static String GENERATOR_SERVICE_CLASS_ALREADY_EXIST(Object arg0, Object arg1) { - return localizer.localize(localizableGENERATOR_SERVICE_CLASS_ALREADY_EXIST(arg0, arg1)); - } - - public static Localizable localizableGENERATOR_SEI_CLASS_ALREADY_EXIST(Object arg0, Object arg1) { - return messageFactory.getMessage("generator.sei.classAlreadyExist", arg0, arg1); - } - - /** - * Could not generate SEI, class: {0} already exists. Rename wsdl:portType "{1}" using JAX-WS customization - * - */ - public static String GENERATOR_SEI_CLASS_ALREADY_EXIST(Object arg0, Object arg1) { - return localizer.localize(localizableGENERATOR_SEI_CLASS_ALREADY_EXIST(arg0, arg1)); - } - - public static Localizable localizableGENERATOR_NESTED_GENERATOR_ERROR(Object arg0) { - return messageFactory.getMessage("generator.nestedGeneratorError", arg0); - } - - /** - * generator error: {0} - * - */ - public static String GENERATOR_NESTED_GENERATOR_ERROR(Object arg0) { - return localizer.localize(localizableGENERATOR_NESTED_GENERATOR_ERROR(arg0)); - } - - public static Localizable localizableGENERATOR_INTERNAL_ERROR_SHOULD_NOT_HAPPEN(Object arg0) { - return messageFactory.getMessage("generator.internal.error.should.not.happen", arg0); - } - - /** - * internal error (should not happen): {0} - * - */ - public static String GENERATOR_INTERNAL_ERROR_SHOULD_NOT_HAPPEN(Object arg0) { - return localizer.localize(localizableGENERATOR_INTERNAL_ERROR_SHOULD_NOT_HAPPEN(arg0)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new GeneratorMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableGENERATOR_INDENTINGWRITER_CHARSET_CANTENCODE(Object arg0) { - return messageFactory.getMessage("generator.indentingwriter.charset.cantencode", arg0); + return MESSAGE_FACTORY.getMessage("generator.indentingwriter.charset.cantencode", arg0); } /** @@ -104,11 +52,11 @@ public final class GeneratorMessages { * */ public static String GENERATOR_INDENTINGWRITER_CHARSET_CANTENCODE(Object arg0) { - return localizer.localize(localizableGENERATOR_INDENTINGWRITER_CHARSET_CANTENCODE(arg0)); + return LOCALIZER.localize(localizableGENERATOR_INDENTINGWRITER_CHARSET_CANTENCODE(arg0)); } public static Localizable localizableGENERATOR_CANNOT_CREATE_DIR(Object arg0) { - return messageFactory.getMessage("generator.cannot.create.dir", arg0); + return MESSAGE_FACTORY.getMessage("generator.cannot.create.dir", arg0); } /** @@ -116,7 +64,66 @@ public final class GeneratorMessages { * */ public static String GENERATOR_CANNOT_CREATE_DIR(Object arg0) { - return localizer.localize(localizableGENERATOR_CANNOT_CREATE_DIR(arg0)); + return LOCALIZER.localize(localizableGENERATOR_CANNOT_CREATE_DIR(arg0)); + } + + public static Localizable localizableGENERATOR_INTERNAL_ERROR_SHOULD_NOT_HAPPEN(Object arg0) { + return MESSAGE_FACTORY.getMessage("generator.internal.error.should.not.happen", arg0); + } + + /** + * internal error (should not happen): {0} + * + */ + public static String GENERATOR_INTERNAL_ERROR_SHOULD_NOT_HAPPEN(Object arg0) { + return LOCALIZER.localize(localizableGENERATOR_INTERNAL_ERROR_SHOULD_NOT_HAPPEN(arg0)); + } + + public static Localizable localizableGENERATOR_NESTED_GENERATOR_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("generator.nestedGeneratorError", arg0); + } + + /** + * generator error: {0} + * + */ + public static String GENERATOR_NESTED_GENERATOR_ERROR(Object arg0) { + return LOCALIZER.localize(localizableGENERATOR_NESTED_GENERATOR_ERROR(arg0)); + } + + public static Localizable localizableGENERATOR_SEI_CLASS_ALREADY_EXIST(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("generator.sei.classAlreadyExist", arg0, arg1); + } + + /** + * Could not generate SEI, class: {0} already exists. Rename wsdl:portType "{1}" using JAX-WS customization + * + */ + public static String GENERATOR_SEI_CLASS_ALREADY_EXIST(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableGENERATOR_SEI_CLASS_ALREADY_EXIST(arg0, arg1)); + } + + public static Localizable localizableGENERATOR_SERVICE_CLASS_ALREADY_EXIST(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("generator.service.classAlreadyExist", arg0, arg1); + } + + /** + * Could not generate Service, class: {0} already exists. Rename wsdl:Service "{1}" using JAX-WS customization + * + */ + public static String GENERATOR_SERVICE_CLASS_ALREADY_EXIST(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableGENERATOR_SERVICE_CLASS_ALREADY_EXIST(arg0, arg1)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/JavacompilerMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/JavacompilerMessages.java index 8c72a46ce9c..dda631c0873 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/JavacompilerMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/JavacompilerMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,12 +25,12 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -38,17 +38,13 @@ import java.util.ResourceBundle; * */ public final class JavacompilerMessages { - private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.javacompiler"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, JavacompilerMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.javacompiler"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new JavacompilerMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableNO_JAVACOMPILER_ERROR() { - return messageFactory.getMessage("no.javacompiler.error"); + return MESSAGE_FACTORY.getMessage("no.javacompiler.error"); } /** @@ -56,7 +52,18 @@ public final class JavacompilerMessages { * */ public static String NO_JAVACOMPILER_ERROR() { - return localizer.localize(localizableNO_JAVACOMPILER_ERROR()); + return LOCALIZER.localize(localizableNO_JAVACOMPILER_ERROR()); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ModelMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ModelMessages.java index 722a0a74a14..7fc93f86381 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ModelMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ModelMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,12 +25,12 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -38,161 +38,61 @@ import java.util.ResourceBundle; * */ public final class ModelMessages { + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.model"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, ModelMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ModelMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableMODEL_NESTED_MODEL_ERROR(Object arg0) { - return messageFactory.getMessage("model.nestedModelError", arg0); + public static Localizable localizableMODEL_IMPORTER_INVALID_MINOR_MINOR_OR_PATCH_VERSION(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("model.importer.invalidMinorMinorOrPatchVersion", arg0, arg1, arg2); } /** - * model error: {0} + * model version "{1}" newer than runtime version "{2}" (line {0}): need to upgrade to a newer runtime * */ - public static String MODEL_NESTED_MODEL_ERROR(Object arg0) { - return localizer.localize(localizableMODEL_NESTED_MODEL_ERROR(arg0)); + public static String MODEL_IMPORTER_INVALID_MINOR_MINOR_OR_PATCH_VERSION(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableMODEL_IMPORTER_INVALID_MINOR_MINOR_OR_PATCH_VERSION(arg0, arg1, arg2)); } - public static Localizable localizableMODEL_EXCEPTION_NOTUNIQUE(Object arg0, Object arg1) { - return messageFactory.getMessage("model.exception.notunique", arg0, arg1); + public static Localizable localizableMODEL_SCHEMA_UNSUPPORTED_TYPE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("model.schema.unsupportedType", arg0, arg1, arg2); } /** - * Failed to generate Java signature: duplicate exception names {0}. Use JAXWS binding customization to rename the wsdl:part "{1}" + * unsupported type ({0}): "{1}" (namespace: {2}) * */ - public static String MODEL_EXCEPTION_NOTUNIQUE(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_EXCEPTION_NOTUNIQUE(arg0, arg1)); + public static String MODEL_SCHEMA_UNSUPPORTED_TYPE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_UNSUPPORTED_TYPE(arg0, arg1, arg2)); } - public static Localizable localizableMODEL_SCHEMA_INVALID_WILDCARD_ALL_COMPOSITOR(Object arg0) { - return messageFactory.getMessage("model.schema.invalidWildcard.allCompositor", arg0); + public static Localizable localizableMODEL_IMPORTER_INVALID_CLASS(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("model.importer.invalidClass", arg0, arg1); } /** - * xsd:all compositor not supported for the wildcard in schema type: "{0}" + * invalid class name "{1}" in model document (line {0}) * */ - public static String MODEL_SCHEMA_INVALID_WILDCARD_ALL_COMPOSITOR(Object arg0) { - return localizer.localize(localizableMODEL_SCHEMA_INVALID_WILDCARD_ALL_COMPOSITOR(arg0)); + public static String MODEL_IMPORTER_INVALID_CLASS(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMODEL_IMPORTER_INVALID_CLASS(arg0, arg1)); } - public static Localizable localizableMODEL_SCHEMA_SIMPLE_TYPE_WITH_FACETS(Object arg0) { - return messageFactory.getMessage("model.schema.simpleTypeWithFacets", arg0); + public static Localizable localizableMODEL_ARRAYWRAPPER_NO_SUBTYPES() { + return MESSAGE_FACTORY.getMessage("model.arraywrapper.no.subtypes"); } /** - * facet "{0}" not supported on simple type: "{0}" + * LiteralArrayWrapper cannot have subtypes * */ - public static String MODEL_SCHEMA_SIMPLE_TYPE_WITH_FACETS(Object arg0) { - return localizer.localize(localizableMODEL_SCHEMA_SIMPLE_TYPE_WITH_FACETS(arg0)); - } - - public static Localizable localizableMODEL_SCHEMA_UNION_NOT_SUPPORTED(Object arg0) { - return messageFactory.getMessage("model.schema.unionNotSupported", arg0); - } - - /** - * simpleType: "{0}" derivation by xsd:union not supported - * - */ - public static String MODEL_SCHEMA_UNION_NOT_SUPPORTED(Object arg0) { - return localizer.localize(localizableMODEL_SCHEMA_UNION_NOT_SUPPORTED(arg0)); - } - - public static Localizable localizableMODEL_COMPLEX_TYPE_SIMPLE_CONTENT_RESERVED_NAME(Object arg0) { - return messageFactory.getMessage("model.complexType.simpleContent.reservedName", arg0); - } - - /** - * invalid attribute name: "_value" in complexType: "{0}", _value is JAXWS reserved name, this name is generated in the generated javabean class to hold content value in the generated javabean class for complexType/simpleContent. - * - */ - public static String MODEL_COMPLEX_TYPE_SIMPLE_CONTENT_RESERVED_NAME(Object arg0) { - return localizer.localize(localizableMODEL_COMPLEX_TYPE_SIMPLE_CONTENT_RESERVED_NAME(arg0)); - } - - public static Localizable localizableMODEL_IMPORTER_INVALID_ID(Object arg0, Object arg1) { - return messageFactory.getMessage("model.importer.invalidId", arg0, arg1); - } - - /** - * invalid id "{1} in model document (line {0}) - * - */ - public static String MODEL_IMPORTER_INVALID_ID(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_IMPORTER_INVALID_ID(arg0, arg1)); - } - - public static Localizable localizableMODEL_SCHEMA_JAXB_EXCEPTION_MESSAGE(Object arg0) { - return messageFactory.getMessage("model.schema.jaxbException.message", arg0); - } - - /** - * "{0}" - * - */ - public static String MODEL_SCHEMA_JAXB_EXCEPTION_MESSAGE(Object arg0) { - return localizer.localize(localizableMODEL_SCHEMA_JAXB_EXCEPTION_MESSAGE(arg0)); - } - - public static Localizable localizableMODEL_INVALID_MESSAGE_TYPE(Object arg0) { - return messageFactory.getMessage("model.invalid.message.type", arg0); - } - - /** - * invalid message type: {0} - * - */ - public static String MODEL_INVALID_MESSAGE_TYPE(Object arg0) { - return localizer.localize(localizableMODEL_INVALID_MESSAGE_TYPE(arg0)); - } - - public static Localizable localizableCONSOLE_ERROR_REPORTER_UNKNOWN_LOCATION() { - return messageFactory.getMessage("ConsoleErrorReporter.UnknownLocation"); - } - - /** - * unknown location - * - */ - public static String CONSOLE_ERROR_REPORTER_UNKNOWN_LOCATION() { - return localizer.localize(localizableCONSOLE_ERROR_REPORTER_UNKNOWN_LOCATION()); - } - - public static Localizable localizableMODEL_EXPORTER_UNSUPPORTED_CLASS(Object arg0) { - return messageFactory.getMessage("model.exporter.unsupportedClass", arg0); - } - - /** - * model exporter: unsupported class: {0} - * - */ - public static String MODEL_EXPORTER_UNSUPPORTED_CLASS(Object arg0) { - return localizer.localize(localizableMODEL_EXPORTER_UNSUPPORTED_CLASS(arg0)); - } - - public static Localizable localizableMODEL_SCHEMA_ELEMENT_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("model.schema.elementNotFound", arg0); - } - - /** - * Element "{0}" not found. - * - */ - public static String MODEL_SCHEMA_ELEMENT_NOT_FOUND(Object arg0) { - return localizer.localize(localizableMODEL_SCHEMA_ELEMENT_NOT_FOUND(arg0)); + public static String MODEL_ARRAYWRAPPER_NO_SUBTYPES() { + return LOCALIZER.localize(localizableMODEL_ARRAYWRAPPER_NO_SUBTYPES()); } public static Localizable localizableMODEL_UNIQUENESS_JAVASTRUCTURETYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("model.uniqueness.javastructuretype", arg0, arg1); + return MESSAGE_FACTORY.getMessage("model.uniqueness.javastructuretype", arg0, arg1); } /** @@ -200,11 +100,83 @@ public final class ModelMessages { * */ public static String MODEL_UNIQUENESS_JAVASTRUCTURETYPE(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_UNIQUENESS_JAVASTRUCTURETYPE(arg0, arg1)); + return LOCALIZER.localize(localizableMODEL_UNIQUENESS_JAVASTRUCTURETYPE(arg0, arg1)); + } + + public static Localizable localizableMODEL_SCHEMA_INVALID_SIMPLE_TYPE_INVALID_ITEM_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("model.schema.invalidSimpleType.invalidItemType", arg0, arg1); + } + + /** + * in simpleType: "{0}", itemType "{1}" can not be derived by list + * + */ + public static String MODEL_SCHEMA_INVALID_SIMPLE_TYPE_INVALID_ITEM_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_INVALID_SIMPLE_TYPE_INVALID_ITEM_TYPE(arg0, arg1)); + } + + public static Localizable localizableMODEL_IMPORTER_INVALID_VERSION(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("model.importer.invalidVersion", arg0, arg1); + } + + /** + * invalid version "{1}" in model document (line {0}) + * + */ + public static String MODEL_IMPORTER_INVALID_VERSION(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMODEL_IMPORTER_INVALID_VERSION(arg0, arg1)); + } + + public static Localizable localizableMODEL_EXPORTER_UNSUPPORTED_CLASS(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.exporter.unsupportedClass", arg0); + } + + /** + * model exporter: unsupported class: {0} + * + */ + public static String MODEL_EXPORTER_UNSUPPORTED_CLASS(Object arg0) { + return LOCALIZER.localize(localizableMODEL_EXPORTER_UNSUPPORTED_CLASS(arg0)); + } + + public static Localizable localizableMODEL_NESTED_MODEL_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.nestedModelError", arg0); + } + + /** + * model error: {0} + * + */ + public static String MODEL_NESTED_MODEL_ERROR(Object arg0) { + return LOCALIZER.localize(localizableMODEL_NESTED_MODEL_ERROR(arg0)); + } + + public static Localizable localizableMODEL_EXCEPTION_NOTUNIQUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("model.exception.notunique", arg0, arg1); + } + + /** + * Failed to generate Java signature: duplicate exception names {0}. Use JAXWS binding customization to rename the wsdl:part "{1}" + * + */ + public static String MODEL_EXCEPTION_NOTUNIQUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMODEL_EXCEPTION_NOTUNIQUE(arg0, arg1)); + } + + public static Localizable localizableMODEL_ARRAYWRAPPER_ONLY_ONE_MEMBER() { + return MESSAGE_FACTORY.getMessage("model.arraywrapper.only.one.member"); + } + + /** + * LiteralArrayWrapper may only have one element member. + * + */ + public static String MODEL_ARRAYWRAPPER_ONLY_ONE_MEMBER() { + return LOCALIZER.localize(localizableMODEL_ARRAYWRAPPER_ONLY_ONE_MEMBER()); } public static Localizable localizableMODEL_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { - return messageFactory.getMessage("model.saxparser.exception", arg0, arg1); + return MESSAGE_FACTORY.getMessage("model.saxparser.exception", arg0, arg1); } /** @@ -213,217 +185,23 @@ public final class ModelMessages { * */ public static String MODEL_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_SAXPARSER_EXCEPTION(arg0, arg1)); + return LOCALIZER.localize(localizableMODEL_SAXPARSER_EXCEPTION(arg0, arg1)); } - public static Localizable localizableMODEL_SCHEMA_UNSUPPORTED_TYPE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("model.schema.unsupportedType", arg0, arg1, arg2); + public static Localizable localizableMODEL_IMPORTER_INVALID_ID(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("model.importer.invalidId", arg0, arg1); } /** - * unsupported type ({0}): "{1}" (namespace: {2}) + * invalid id "{1} in model document (line {0}) * */ - public static String MODEL_SCHEMA_UNSUPPORTED_TYPE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableMODEL_SCHEMA_UNSUPPORTED_TYPE(arg0, arg1, arg2)); - } - - public static Localizable localizableMODEL_SCHEMA_LIST_NOT_SUPPORTED(Object arg0) { - return messageFactory.getMessage("model.schema.listNotSupported", arg0); - } - - /** - * simpleType: "{0}" derivation by xsd:list not supported - * - */ - public static String MODEL_SCHEMA_LIST_NOT_SUPPORTED(Object arg0) { - return localizer.localize(localizableMODEL_SCHEMA_LIST_NOT_SUPPORTED(arg0)); - } - - public static Localizable localizableMODEL_ARRAYWRAPPER_NO_PARENT() { - return messageFactory.getMessage("model.arraywrapper.no.parent"); - } - - /** - * LiteralArrayWrapper cannot have a parent type - * - */ - public static String MODEL_ARRAYWRAPPER_NO_PARENT() { - return localizer.localize(localizableMODEL_ARRAYWRAPPER_NO_PARENT()); - } - - public static Localizable localizableMODEL_PARENT_TYPE_ALREADY_SET(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("model.parent.type.already.set", arg0, arg1, arg2); - } - - /** - * parent of type "{0}" already set to "{1}", new value = "{2}" - * - */ - public static String MODEL_PARENT_TYPE_ALREADY_SET(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableMODEL_PARENT_TYPE_ALREADY_SET(arg0, arg1, arg2)); - } - - public static Localizable localizableMODEL_ARRAYWRAPPER_NO_SUBTYPES() { - return messageFactory.getMessage("model.arraywrapper.no.subtypes"); - } - - /** - * LiteralArrayWrapper cannot have subtypes - * - */ - public static String MODEL_ARRAYWRAPPER_NO_SUBTYPES() { - return localizer.localize(localizableMODEL_ARRAYWRAPPER_NO_SUBTYPES()); - } - - public static Localizable localizableMODEL_IMPORTER_INVALID_MINOR_MINOR_OR_PATCH_VERSION(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("model.importer.invalidMinorMinorOrPatchVersion", arg0, arg1, arg2); - } - - /** - * model version "{1}" newer than runtime version "{2}" (line {0}): need to upgrade to a newer runtime - * - */ - public static String MODEL_IMPORTER_INVALID_MINOR_MINOR_OR_PATCH_VERSION(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableMODEL_IMPORTER_INVALID_MINOR_MINOR_OR_PATCH_VERSION(arg0, arg1, arg2)); - } - - public static Localizable localizableMODEL_SCHEMA_CIRCULARITY(Object arg0) { - return messageFactory.getMessage("model.schema.circularity", arg0); - } - - /** - * circularity detected in schema: "{0}" - * - */ - public static String MODEL_SCHEMA_CIRCULARITY(Object arg0) { - return localizer.localize(localizableMODEL_SCHEMA_CIRCULARITY(arg0)); - } - - public static Localizable localizableMODEL_ARRAYWRAPPER_MEMBER_ALREADY_SET() { - return messageFactory.getMessage("model.arraywrapper.member.already.set"); - } - - /** - * LiteralArrayWrapper element member already set. - * - */ - public static String MODEL_ARRAYWRAPPER_MEMBER_ALREADY_SET() { - return localizer.localize(localizableMODEL_ARRAYWRAPPER_MEMBER_ALREADY_SET()); - } - - public static Localizable localizableMODEL_IMPORTER_INVALID_CLASS(Object arg0, Object arg1) { - return messageFactory.getMessage("model.importer.invalidClass", arg0, arg1); - } - - /** - * invalid class name "{1}" in model document (line {0}) - * - */ - public static String MODEL_IMPORTER_INVALID_CLASS(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_IMPORTER_INVALID_CLASS(arg0, arg1)); - } - - public static Localizable localizableMODEL_IMPORTER_INVALID_VERSION(Object arg0, Object arg1) { - return messageFactory.getMessage("model.importer.invalidVersion", arg0, arg1); - } - - /** - * invalid version "{1}" in model document (line {0}) - * - */ - public static String MODEL_IMPORTER_INVALID_VERSION(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_IMPORTER_INVALID_VERSION(arg0, arg1)); - } - - public static Localizable localizableCONSOLE_ERROR_REPORTER_LINE_X_OF_Y(Object arg0, Object arg1) { - return messageFactory.getMessage("ConsoleErrorReporter.LineXOfY", arg0, arg1); - } - - /** - * line {0} of {1} - * - */ - public static String CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(Object arg0, Object arg1) { - return localizer.localize(localizableCONSOLE_ERROR_REPORTER_LINE_X_OF_Y(arg0, arg1)); - } - - public static Localizable localizableMODEL_PARAMETER_NOTUNIQUE(Object arg0, Object arg1) { - return messageFactory.getMessage("model.parameter.notunique", arg0, arg1); - } - - /** - * Failed to generate Java signature: duplicate parameter name "{0}". Try one of these - * 1. Use JAXWS binding customization to rename the wsdl:part "{1}" - * 2. Run wsimport with -extension switch. - * - */ - public static String MODEL_PARAMETER_NOTUNIQUE(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_PARAMETER_NOTUNIQUE(arg0, arg1)); - } - - public static Localizable localizableMODEL_SCHEMA_INVALID_SIMPLE_TYPE_INVALID_ITEM_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("model.schema.invalidSimpleType.invalidItemType", arg0, arg1); - } - - /** - * in simpleType: "{0}", itemType "{1}" can not be derived by list - * - */ - public static String MODEL_SCHEMA_INVALID_SIMPLE_TYPE_INVALID_ITEM_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_SCHEMA_INVALID_SIMPLE_TYPE_INVALID_ITEM_TYPE(arg0, arg1)); - } - - public static Localizable localizableMODEL_UNIQUENESS() { - return messageFactory.getMessage("model.uniqueness"); - } - - /** - * uniqueness constraint violation - * - */ - public static String MODEL_UNIQUENESS() { - return localizer.localize(localizableMODEL_UNIQUENESS()); - } - - public static Localizable localizable_002F_002F_REPLACEMENT() { - return messageFactory.getMessage("//replacement"); - } - - /** - * for Uxxx codes - * - */ - public static String _002F_002F_REPLACEMENT() { - return localizer.localize(localizable_002F_002F_REPLACEMENT()); - } - - public static Localizable localizableMODEL_SCHEMA_INVALID_SIMPLE_TYPE_NO_ITEM_LITERAL_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("model.schema.invalidSimpleType.noItemLiteralType", arg0, arg1); - } - - /** - * in simpleType: "{0}", xsd:list itemType "{1}" is invalid - * - */ - public static String MODEL_SCHEMA_INVALID_SIMPLE_TYPE_NO_ITEM_LITERAL_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_SCHEMA_INVALID_SIMPLE_TYPE_NO_ITEM_LITERAL_TYPE(arg0, arg1)); - } - - public static Localizable localizableMODEL_ARRAYWRAPPER_ONLY_ONE_MEMBER() { - return messageFactory.getMessage("model.arraywrapper.only.one.member"); - } - - /** - * LiteralArrayWrapper may only have one element member. - * - */ - public static String MODEL_ARRAYWRAPPER_ONLY_ONE_MEMBER() { - return localizer.localize(localizableMODEL_ARRAYWRAPPER_ONLY_ONE_MEMBER()); + public static String MODEL_IMPORTER_INVALID_ID(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMODEL_IMPORTER_INVALID_ID(arg0, arg1)); } public static Localizable localizableMODEL_PARAMETER_NOTUNIQUE_WRAPPER(Object arg0, Object arg1) { - return messageFactory.getMessage("model.parameter.notunique.wrapper", arg0, arg1); + return MESSAGE_FACTORY.getMessage("model.parameter.notunique.wrapper", arg0, arg1); } /** @@ -434,23 +212,47 @@ public final class ModelMessages { * */ public static String MODEL_PARAMETER_NOTUNIQUE_WRAPPER(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_PARAMETER_NOTUNIQUE_WRAPPER(arg0, arg1)); + return LOCALIZER.localize(localizableMODEL_PARAMETER_NOTUNIQUE_WRAPPER(arg0, arg1)); } - public static Localizable localizableMODEL_SCHEMA_NOT_IMPLEMENTED(Object arg0) { - return messageFactory.getMessage("model.schema.notImplemented", arg0); + public static Localizable localizableMODEL_SCHEMA_ELEMENT_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.schema.elementNotFound", arg0); } /** - * unsupported XML Schema feature ({0}) + * Element "{0}" not found. * */ - public static String MODEL_SCHEMA_NOT_IMPLEMENTED(Object arg0) { - return localizer.localize(localizableMODEL_SCHEMA_NOT_IMPLEMENTED(arg0)); + public static String MODEL_SCHEMA_ELEMENT_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_ELEMENT_NOT_FOUND(arg0)); + } + + public static Localizable localizableMODEL_SCHEMA_UNION_NOT_SUPPORTED(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.schema.unionNotSupported", arg0); + } + + /** + * simpleType: "{0}" derivation by xsd:union not supported + * + */ + public static String MODEL_SCHEMA_UNION_NOT_SUPPORTED(Object arg0) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_UNION_NOT_SUPPORTED(arg0)); + } + + public static Localizable localizableCONSOLE_ERROR_REPORTER_UNKNOWN_LOCATION() { + return MESSAGE_FACTORY.getMessage("ConsoleErrorReporter.UnknownLocation"); + } + + /** + * unknown location + * + */ + public static String CONSOLE_ERROR_REPORTER_UNKNOWN_LOCATION() { + return LOCALIZER.localize(localizableCONSOLE_ERROR_REPORTER_UNKNOWN_LOCATION()); } public static Localizable localizableMODEL_SCHEMA_INVALID_LITERAL_IN_ENUMERATION_ANONYMOUS(Object arg0) { - return messageFactory.getMessage("model.schema.invalidLiteralInEnumeration.anonymous", arg0); + return MESSAGE_FACTORY.getMessage("model.schema.invalidLiteralInEnumeration.anonymous", arg0); } /** @@ -458,23 +260,11 @@ public final class ModelMessages { * */ public static String MODEL_SCHEMA_INVALID_LITERAL_IN_ENUMERATION_ANONYMOUS(Object arg0) { - return localizer.localize(localizableMODEL_SCHEMA_INVALID_LITERAL_IN_ENUMERATION_ANONYMOUS(arg0)); - } - - public static Localizable localizableMODEL_PART_NOT_UNIQUE(Object arg0, Object arg1) { - return messageFactory.getMessage("model.part.notUnique", arg0, arg1); - } - - /** - * parts in wsdl:message "{0}", reference "{1}", they must reference unique global elements. - * - */ - public static String MODEL_PART_NOT_UNIQUE(Object arg0, Object arg1) { - return localizer.localize(localizableMODEL_PART_NOT_UNIQUE(arg0, arg1)); + return LOCALIZER.localize(localizableMODEL_SCHEMA_INVALID_LITERAL_IN_ENUMERATION_ANONYMOUS(arg0)); } public static Localizable localizableMODEL_ARRAYWRAPPER_NO_CONTENT_MEMBER() { - return messageFactory.getMessage("model.arraywrapper.no.content.member"); + return MESSAGE_FACTORY.getMessage("model.arraywrapper.no.content.member"); } /** @@ -482,7 +272,224 @@ public final class ModelMessages { * */ public static String MODEL_ARRAYWRAPPER_NO_CONTENT_MEMBER() { - return localizer.localize(localizableMODEL_ARRAYWRAPPER_NO_CONTENT_MEMBER()); + return LOCALIZER.localize(localizableMODEL_ARRAYWRAPPER_NO_CONTENT_MEMBER()); + } + + public static Localizable localizableMODEL_ARRAYWRAPPER_MEMBER_ALREADY_SET() { + return MESSAGE_FACTORY.getMessage("model.arraywrapper.member.already.set"); + } + + /** + * LiteralArrayWrapper element member already set. + * + */ + public static String MODEL_ARRAYWRAPPER_MEMBER_ALREADY_SET() { + return LOCALIZER.localize(localizableMODEL_ARRAYWRAPPER_MEMBER_ALREADY_SET()); + } + + public static Localizable localizableMODEL_INVALID_MESSAGE_TYPE(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.invalid.message.type", arg0); + } + + /** + * invalid message type: {0} + * + */ + public static String MODEL_INVALID_MESSAGE_TYPE(Object arg0) { + return LOCALIZER.localize(localizableMODEL_INVALID_MESSAGE_TYPE(arg0)); + } + + public static Localizable localizableMODEL_SCHEMA_CIRCULARITY(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.schema.circularity", arg0); + } + + /** + * circularity detected in schema: "{0}" + * + */ + public static String MODEL_SCHEMA_CIRCULARITY(Object arg0) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_CIRCULARITY(arg0)); + } + + public static Localizable localizableMODEL_SCHEMA_INVALID_SIMPLE_TYPE_NO_ITEM_LITERAL_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("model.schema.invalidSimpleType.noItemLiteralType", arg0, arg1); + } + + /** + * in simpleType: "{0}", xsd:list itemType "{1}" is invalid + * + */ + public static String MODEL_SCHEMA_INVALID_SIMPLE_TYPE_NO_ITEM_LITERAL_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_INVALID_SIMPLE_TYPE_NO_ITEM_LITERAL_TYPE(arg0, arg1)); + } + + public static Localizable localizableMODEL_SCHEMA_LIST_NOT_SUPPORTED(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.schema.listNotSupported", arg0); + } + + /** + * simpleType: "{0}" derivation by xsd:list not supported + * + */ + public static String MODEL_SCHEMA_LIST_NOT_SUPPORTED(Object arg0) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_LIST_NOT_SUPPORTED(arg0)); + } + + public static Localizable localizable_002F_002F_REPLACEMENT() { + return MESSAGE_FACTORY.getMessage("//replacement"); + } + + /** + * for Uxxx codes + * + */ + public static String _002F_002F_REPLACEMENT() { + return LOCALIZER.localize(localizable_002F_002F_REPLACEMENT()); + } + + public static Localizable localizableMODEL_PART_NOT_UNIQUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("model.part.notUnique", arg0, arg1); + } + + /** + * parts in wsdl:message "{0}", reference "{1}", they must reference unique global elements. + * + */ + public static String MODEL_PART_NOT_UNIQUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMODEL_PART_NOT_UNIQUE(arg0, arg1)); + } + + public static Localizable localizableMODEL_ARRAYWRAPPER_NO_PARENT() { + return MESSAGE_FACTORY.getMessage("model.arraywrapper.no.parent"); + } + + /** + * LiteralArrayWrapper cannot have a parent type + * + */ + public static String MODEL_ARRAYWRAPPER_NO_PARENT() { + return LOCALIZER.localize(localizableMODEL_ARRAYWRAPPER_NO_PARENT()); + } + + public static Localizable localizableMODEL_COMPLEX_TYPE_SIMPLE_CONTENT_RESERVED_NAME(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.complexType.simpleContent.reservedName", arg0); + } + + /** + * invalid attribute name: "_value" in complexType: "{0}", _value is JAXWS reserved name, this name is generated in the generated javabean class to hold content value in the generated javabean class for complexType/simpleContent. + * + */ + public static String MODEL_COMPLEX_TYPE_SIMPLE_CONTENT_RESERVED_NAME(Object arg0) { + return LOCALIZER.localize(localizableMODEL_COMPLEX_TYPE_SIMPLE_CONTENT_RESERVED_NAME(arg0)); + } + + public static Localizable localizableMODEL_SCHEMA_SIMPLE_TYPE_WITH_FACETS(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.schema.simpleTypeWithFacets", arg0); + } + + /** + * facet "{0}" not supported on simple type: "{0}" + * + */ + public static String MODEL_SCHEMA_SIMPLE_TYPE_WITH_FACETS(Object arg0) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_SIMPLE_TYPE_WITH_FACETS(arg0)); + } + + public static Localizable localizableMODEL_SCHEMA_NOT_IMPLEMENTED(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.schema.notImplemented", arg0); + } + + /** + * unsupported XML Schema feature ({0}) + * + */ + public static String MODEL_SCHEMA_NOT_IMPLEMENTED(Object arg0) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_NOT_IMPLEMENTED(arg0)); + } + + public static Localizable localizableMODEL_SCHEMA_JAXB_EXCEPTION_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.schema.jaxbException.message", arg0); + } + + /** + * "{0}" + * + */ + public static String MODEL_SCHEMA_JAXB_EXCEPTION_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_JAXB_EXCEPTION_MESSAGE(arg0)); + } + + public static Localizable localizableMODEL_UNIQUENESS() { + return MESSAGE_FACTORY.getMessage("model.uniqueness"); + } + + /** + * uniqueness constraint violation + * + */ + public static String MODEL_UNIQUENESS() { + return LOCALIZER.localize(localizableMODEL_UNIQUENESS()); + } + + public static Localizable localizableMODEL_SCHEMA_INVALID_WILDCARD_ALL_COMPOSITOR(Object arg0) { + return MESSAGE_FACTORY.getMessage("model.schema.invalidWildcard.allCompositor", arg0); + } + + /** + * xsd:all compositor not supported for the wildcard in schema type: "{0}" + * + */ + public static String MODEL_SCHEMA_INVALID_WILDCARD_ALL_COMPOSITOR(Object arg0) { + return LOCALIZER.localize(localizableMODEL_SCHEMA_INVALID_WILDCARD_ALL_COMPOSITOR(arg0)); + } + + public static Localizable localizableCONSOLE_ERROR_REPORTER_LINE_X_OF_Y(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("ConsoleErrorReporter.LineXOfY", arg0, arg1); + } + + /** + * line {0} of {1} + * + */ + public static String CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableCONSOLE_ERROR_REPORTER_LINE_X_OF_Y(arg0, arg1)); + } + + public static Localizable localizableMODEL_PARENT_TYPE_ALREADY_SET(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("model.parent.type.already.set", arg0, arg1, arg2); + } + + /** + * parent of type "{0}" already set to "{1}", new value = "{2}" + * + */ + public static String MODEL_PARENT_TYPE_ALREADY_SET(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableMODEL_PARENT_TYPE_ALREADY_SET(arg0, arg1, arg2)); + } + + public static Localizable localizableMODEL_PARAMETER_NOTUNIQUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("model.parameter.notunique", arg0, arg1); + } + + /** + * Failed to generate Java signature: duplicate parameter name "{0}". Try one of these + * 1. Use JAXWS binding customization to rename the wsdl:part "{1}" + * 2. Run wsimport with -extension switch. + * + */ + public static String MODEL_PARAMETER_NOTUNIQUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMODEL_PARAMETER_NOTUNIQUE(arg0, arg1)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ModelerMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ModelerMessages.java index 708ffc37008..542aa686d73 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ModelerMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ModelerMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,12 +25,12 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -38,401 +38,13 @@ import java.util.ResourceBundle; * */ public final class ModelerMessages { + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.modeler"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, ModelerMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_INVALID_SCHEMA_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("mimemodeler.invalidMimeContent.invalidSchemaType", arg0, arg1); - } - - /** - * Ignoring the mime:part. mime part: {0} can not be mapped to schema type: {1} - * - */ - public static String MIMEMODELER_INVALID_MIME_CONTENT_INVALID_SCHEMA_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_INVALID_SCHEMA_TYPE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_PARAMETERORDER_PARAMETER(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.parameterorder.parameter", arg0, arg1); - } - - /** - * "{0}" specified in the parameterOrder attribute of operation "{1}" is not a valid part of the message. - * - */ - public static String WSDLMODELER_INVALID_PARAMETERORDER_PARAMETER(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_PARAMETERORDER_PARAMETER(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_NO_SOAP_FAULT_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingFault.noSoapFaultName", arg0, arg1); - } - - /** - * soap:fault name not specified, wsdl:fault "{0}" in operation "{1}" - * - */ - public static String WSDLMODELER_INVALID_BINDING_FAULT_NO_SOAP_FAULT_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_NO_SOAP_FAULT_NAME(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_IMPORT() { - return messageFactory.getMessage("wsdlmodeler.warning.nonconforming.wsdl.import"); - } - - /** - * Non conforming WS-I WSDL used for wsdl:import - * - */ - public static String WSDLMODELER_WARNING_NONCONFORMING_WSDL_IMPORT() { - return localizer.localize(localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_IMPORT()); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_SOAP_BODY_MISSING_NAMESPACE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.outputSoapBody.missingNamespace", arg0); - } - - /** - * output message of binding operation "{0}" must specify a value for the "namespace" attribute - * - */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_SOAP_BODY_MISSING_NAMESPACE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_SOAP_BODY_MISSING_NAMESPACE(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_OPERATION_FAULT_NOT_LITERAL(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.operation.fault.notLiteral", arg0, arg1); - } - - /** - * ignoring encoded fault "{0}" in literal binding operation "{1}" - * - */ - public static String WSDLMODELER_INVALID_OPERATION_FAULT_NOT_LITERAL(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_OPERATION_FAULT_NOT_LITERAL(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_MISSING_SOAP_BODY(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.inputMissingSoapBody", arg0); - } - - /** - * input message of binding operation "{0}" does not have a SOAP body extension - * - */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_INPUT_MISSING_SOAP_BODY(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_MISSING_SOAP_BODY(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringSOAPBinding.nonHTTPTransport", arg0); - } - - /** - * ignoring SOAP port "{0}": unrecognized transport. try running wsimport with -extension switch. - * - */ - public static String WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.notFound", arg0, arg1); - } - - /** - * in binding "{1}", operation "{0}" does not match any operation in the corresponding port type - * - */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_UNSUPPORTED_BINDING_MIME() { - return messageFactory.getMessage("wsdlmodeler.unsupportedBinding.mime"); - } - - /** - * WSDL MIME binding is not currently supported! - * - */ - public static String WSDLMODELER_UNSUPPORTED_BINDING_MIME() { - return localizer.localize(localizableWSDLMODELER_UNSUPPORTED_BINDING_MIME()); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NO_ELEMENT_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeaderFault.noElementAttribute", arg0, arg1, arg2); - } - - /** - * ignoring header fault part="{0}" message="{1}" of operation {2} - * - */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NO_ELEMENT_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NO_ELEMENT_ATTRIBUTE(arg0, arg1, arg2)); - } - - public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.nonWrapperStyle", arg0, arg1, arg2); - } - - /** - * Invalid operation "{0}", can''t generate java method. Parameter: part "{2}" in wsdl:message "{1}", is a java keyword. Use customization to change the parameter name or change the wsdl:part name. - * - */ - public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(arg0, arg1, arg2)); - } - - public static Localizable localizableWSDLMODELER_INVALID_HEADERFAULT_NOT_LITERAL(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.headerfault.notLiteral", arg0, arg1); - } - - /** - * Invalid headerfault "{0}" of binding operation "{1}": not literal - * - */ - public static String WSDLMODELER_INVALID_HEADERFAULT_NOT_LITERAL(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_HEADERFAULT_NOT_LITERAL(arg0, arg1)); - } - - public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_DIFFERENT_PART() { - return messageFactory.getMessage("mimemodeler.invalidMimeContent.differentPart"); - } - - /** - * Ignoring the mime:part. Invalid mime:part, the mime:content has different part attribute. - * - */ - public static String MIMEMODELER_INVALID_MIME_CONTENT_DIFFERENT_PART() { - return localizer.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_DIFFERENT_PART()); - } - - public static Localizable localizableWSDLMODELER_ERROR_PART_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.error.partNotFound", arg0, arg1); - } - - /** - * part "{1}" of operation "{0}" could not be resolved! - * - */ - public static String WSDLMODELER_ERROR_PART_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_ERROR_PART_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.header.message.partMustHaveElementDescriptor", arg0, arg1); - } - - /** - * Invalid header "{0}" in operation {1}: part must specify a "element" attribute - * - */ - public static String WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.operationName", arg0); - } - - /** - * Invalid operation "{0}", it''s java reserved word, can''t generate java method. Use customization to change the operation name. - * - */ - public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_OUTPUT_MISSING_SOAP_FAULT(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingFault.outputMissingSoapFault", arg0, arg1); - } - - /** - * fault "{0}" in operation "{1}" does not have a SOAP fault extension - * - */ - public static String WSDLMODELER_INVALID_BINDING_FAULT_OUTPUT_MISSING_SOAP_FAULT(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_OUTPUT_MISSING_SOAP_FAULT(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_ELEMENT_MESSAGE_PART(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleElementMessagePart", arg0); - } - - /** - * ignoring operation "{0}": message part does not refer to a schema type declaration - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_ELEMENT_MESSAGE_PART(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_ELEMENT_MESSAGE_PART(arg0)); - } - - public static Localizable localizableWSDLMODLER_WARNING_OPERATION_USE() { - return messageFactory.getMessage("wsdlmodler.warning.operation.use"); - } - - /** - * The WSDL used has operations with literal and encoded use. -f:searchschema is not supported for this scenario. - * - */ - public static String WSDLMODLER_WARNING_OPERATION_USE() { - return localizer.localize(localizableWSDLMODLER_WARNING_OPERATION_USE()); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringNonSOAPPort", arg0); - } - - /** - * ignoring port "{0}": not a standard SOAP port. try running wsimport with -extension switch. - * - */ - public static String WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_MESSAGE_HAS_MORE_THAN_ONE_PART(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingFault.messageHasMoreThanOnePart", arg0, arg1); - } - - /** - * fault "{0}" refers to message "{1}", but the message has more than one parts - * - */ - public static String WSDLMODELER_INVALID_BINDING_FAULT_MESSAGE_HAS_MORE_THAN_ONE_PART(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_MESSAGE_HAS_MORE_THAN_ONE_PART(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_NO_SERVICE_DEFINITIONS_FOUND() { - return messageFactory.getMessage("wsdlmodeler.warning.noServiceDefinitionsFound"); - } - - /** - * WSDL document does not define any services - * - */ - public static String WSDLMODELER_WARNING_NO_SERVICE_DEFINITIONS_FOUND() { - return localizer.localize(localizableWSDLMODELER_WARNING_NO_SERVICE_DEFINITIONS_FOUND()); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_FAULT_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringFault.cant.resolve.message", arg0, arg1); - } - - /** - * ignoring fault "{0}" of binding operation "{1}": cannot resolve message - * - */ - public static String WSDLMODELER_WARNING_IGNORING_FAULT_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULT_CANT_RESOLVE_MESSAGE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_JAXB_JAVATYPE_NOTFOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.jaxb.javatype.notfound", arg0, arg1); - } - - /** - * Schema descriptor {0} in message part "{1}" is not defined and could not be bound to Java. Perhaps the schema descriptor {0} is not defined in the schema imported/included in the WSDL. You can either add such imports/includes or run wsimport and provide the schema location using -b switch. - * - */ - public static String WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_JAXB_JAVATYPE_NOTFOUND(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_PORT_SOAP_BINDING_MIXED_STYLE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.port.SOAPBinding.mixedStyle", arg0); - } - - /** - * not a WS-I BP1.1 compliant SOAP port "{0}": the WSDL binding has mixed style, it must be rpc-literal or document-literal operation! - * - */ - public static String WSDLMODELER_WARNING_PORT_SOAP_BINDING_MIXED_STYLE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_PORT_SOAP_BINDING_MIXED_STYLE(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_DOCLITOPERATION(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.doclitoperation", arg0); - } - - /** - * Invalid wsdl:operation "{0}": its a document-literal operation, message part must refer to a schema element declaration - * - */ - public static String WSDLMODELER_INVALID_DOCLITOPERATION(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_DOCLITOPERATION(arg0)); - } - - public static Localizable localizableMODELER_NESTED_MODEL_ERROR(Object arg0) { - return messageFactory.getMessage("modeler.nestedModelError", arg0); - } - - /** - * modeler error: {0} - * - */ - public static String MODELER_NESTED_MODEL_ERROR(Object arg0) { - return localizer.localize(localizableMODELER_NESTED_MODEL_ERROR(arg0)); - } - - public static Localizable localizableWSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.duplicate.fault.soap.name", arg0, arg1, arg2); - } - - /** - * ignoring fault "{0}" of operation "{1}", soap:fault name "{2}" is not unique - * - */ - public static String WSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(arg0, arg1, arg2)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_WRONG_SOAP_FAULT_NAME(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingFault.wrongSoapFaultName", arg0, arg1, arg2); - } - - /** - * name of soap:fault "{0}" doesn''t match the name of wsdl:fault "{1}" in operation "{2}" - * - */ - public static String WSDLMODELER_INVALID_BINDING_FAULT_WRONG_SOAP_FAULT_NAME(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_WRONG_SOAP_FAULT_NAME(arg0, arg1, arg2)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_LITERAL(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.notLiteral", arg0); - } - - /** - * ignoring document-style operation "{0}": parameters are not literal - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_NOT_LITERAL(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_LITERAL(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_DOCUMENT_STYLE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleDocumentStyle", arg0); - } - - /** - * ignoring operation "{0}": cannot handle document-style operations - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_DOCUMENT_STYLE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_DOCUMENT_STYLE(arg0)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ModelerMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableWSDLMODELER_WARNING_IGNORING_FAULT_NOT_LITERAL(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringFault.notLiteral", arg0, arg1); + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringFault.notLiteral", arg0, arg1); } /** @@ -440,359 +52,11 @@ public final class ModelerMessages { * */ public static String WSDLMODELER_WARNING_IGNORING_FAULT_NOT_LITERAL(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULT_NOT_LITERAL(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_RPCLITOPERATION(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.rpclitoperation", arg0); - } - - /** - * Invalid wsdl:operation "{0}": its a rpc-literal operation, message part must refer to a schema type declaration - * - */ - public static String WSDLMODELER_INVALID_RPCLITOPERATION(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_RPCLITOPERATION(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.customName", arg0, arg1); - } - - /** - * Invalid operation "{0}", can''t generate java method. Parameter,customized name "{1}" is a java keyword. - * - */ - public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_MEMBER_SUBMISSION_ADDRESSING_USED(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.memberSubmissionAddressingUsed", arg0, arg1); - } - - /** - * obsolete addressing version 08-2004:"{0}" used; version "{1}" should be used instead. - * - */ - public static String WSDLMODELER_WARNING_MEMBER_SUBMISSION_ADDRESSING_USED(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_MEMBER_SUBMISSION_ADDRESSING_USED(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_BINDING_OPERATION_MULTIPLE_PART_BINDING(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.bindingOperation.multiplePartBinding", arg0, arg1); - } - - /** - * Check the abstract operation "{0}" binding, part "{1}" has multiple binding. Will try to generated artifacts anyway... - * - */ - public static String WSDLMODELER_WARNING_BINDING_OPERATION_MULTIPLE_PART_BINDING(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_BINDING_OPERATION_MULTIPLE_PART_BINDING(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_PORT_SOAP_BINDING_12(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.port.SOAPBinding12", arg0); - } - - /** - * SOAP port "{0}": uses a non-standard SOAP 1.2 binding. - * - */ - public static String WSDLMODELER_WARNING_PORT_SOAP_BINDING_12(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_PORT_SOAP_BINDING_12(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.portTypeFault.notFound", arg0, arg1); - } - - /** - * fault "{0}" in portType operation "{1}" does not match any fault in the corresponding binding operation - * - */ - public static String WSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableMIMEMODELER_INVALID_MIME_PART_NAME_NOT_ALLOWED(Object arg0) { - return messageFactory.getMessage("mimemodeler.invalidMimePart.nameNotAllowed", arg0); - } - - /** - * name attribute on wsdl:part in Operation "{0}" is ignored. Its not allowed as per WS-I AP 1.0. - * - */ - public static String MIMEMODELER_INVALID_MIME_PART_NAME_NOT_ALLOWED(Object arg0) { - return localizer.localize(localizableMIMEMODELER_INVALID_MIME_PART_NAME_NOT_ALLOWED(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_MIME_PART_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringMimePart.notFound", arg0, arg1); - } - - /** - * ignoring mime:part, cannot find part "{0}" referenced by the mime:content in the wsdl:operation "{1}" - * - */ - public static String WSDLMODELER_WARNING_IGNORING_MIME_PART_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_MIME_PART_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.operation.MoreThanOnePartInMessage", arg0); - } - - /** - * Ignoring operation "{0}": more than one part bound to body - * - */ - public static String WSDLMODELER_WARNING_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.nonWrapperStyle", arg0, arg1, arg2); - } - - /** - * Ignoring operation "{0}", can''t generate java method. Parameter: part "{2}" in wsdl:message "{1}", is a java keyword. Use customization to change the parameter name or change the wsdl:part name. - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(arg0, arg1, arg2)); - } - - public static Localizable localizableWSDLMODELER_INVALID_FAULT_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.fault.cant.resolve.message", arg0, arg1); - } - - /** - * fault message "{0}" in binding operation "{1}" could not be resolved - * - */ - public static String WSDLMODELER_INVALID_FAULT_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_FAULT_CANT_RESOLVE_MESSAGE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingFault.emptyMessage", arg0, arg1); - } - - /** - * fault "{0}" refers to message "{1}", but the message has no parts - * - */ - public static String WSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_RPCLIT_UNKOWNSCHEMATYPE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.rpclit.unkownschematype", arg0, arg1, arg2); - } - - /** - * XML type "{0}" could not be resolved, XML to JAVA binding failed! Please check the wsdl:part "{1}" in the wsdl:message "{2}". - * - */ - public static String WSDLMODELER_RPCLIT_UNKOWNSCHEMATYPE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_RPCLIT_UNKOWNSCHEMATYPE(arg0, arg1, arg2)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_BODY_PARTS_ATTRIBUTE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleBodyPartsAttribute", arg0); - } - - /** - * ignoring operation "{0}": cannot handle "parts" attribute of "soap:body" element - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_BODY_PARTS_ATTRIBUTE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_BODY_PARTS_ATTRIBUTE(arg0)); - } - - public static Localizable localizableWSDLMODELER_NON_UNIQUE_BODY_ERROR(Object arg0, Object arg1, Object arg2, Object arg3) { - return messageFactory.getMessage("wsdlmodeler.nonUnique.body.error", arg0, arg1, arg2, arg3); - } - - /** - * Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signature on the wire for successful dispatch. In port {0}, Operations "{1}" and "{2}" have the same request body block {3}. Try running wsimport with -extension switch, runtime will try to dispatch using SOAPAction - * - */ - public static String WSDLMODELER_NON_UNIQUE_BODY_ERROR(Object arg0, Object arg1, Object arg2, Object arg3) { - return localizer.localize(localizableWSDLMODELER_NON_UNIQUE_BODY_ERROR(arg0, arg1, arg2, arg3)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_MIXED_STYLE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringSOAPBinding.mixedStyle", arg0); - } - - /** - * ignoring port "{0}", its not WS-I BP 1.1 compliant: the wsdl binding has mixed style, it must be rpc-literal or document-literal operation. try running wsimport with -extension switch. - * - */ - public static String WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_MIXED_STYLE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_MIXED_STYLE(arg0)); - } - - public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_MISSING_TYPE_ATTRIBUTE(Object arg0) { - return messageFactory.getMessage("mimemodeler.invalidMimeContent.missingTypeAttribute", arg0); - } - - /** - * Missing type attribute in mime:content in operation "{0}". part attribute must be present in mime:content declaration. - * - */ - public static String MIMEMODELER_INVALID_MIME_CONTENT_MISSING_TYPE_ATTRIBUTE(Object arg0) { - return localizer.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_MISSING_TYPE_ATTRIBUTE(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_INPUT_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleEmptyInputMessage", arg0); - } - - /** - * ignoring operation "{0}": input message is empty - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_INPUT_MESSAGE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_INPUT_MESSAGE(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_NO_PORTS_IN_SERVICE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.noPortsInService", arg0); - } - - /** - * Service "{0}" does not contain any usable ports. try running wsimport with -extension switch. - * - */ - public static String WSDLMODELER_WARNING_NO_PORTS_IN_SERVICE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_NO_PORTS_IN_SERVICE(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_PARAMETER_ORDER_TOO_MANY_UNMENTIONED_PARTS(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.parameterOrder.tooManyUnmentionedParts", arg0); - } - - /** - * more than one part left out in the parameterOrder attribute of operation "{0}" - * - */ - public static String WSDLMODELER_INVALID_PARAMETER_ORDER_TOO_MANY_UNMENTIONED_PARTS(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_PARAMETER_ORDER_TOO_MANY_UNMENTIONED_PARTS(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_SOAP_BODY_MISSING_NAMESPACE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.inputSoapBody.missingNamespace", arg0); - } - - /** - * input message of binding operation "{0}" must specify a value for the "namespace" attribute - * - */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_INPUT_SOAP_BODY_MISSING_NAMESPACE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_SOAP_BODY_MISSING_NAMESPACE(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeader", arg0, arg1); - } - - /** - * ignoring header "{0}" of binding operation "{1}" - * - */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_RESPONSEBEAN_NOTFOUND(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.responsebean.notfound", arg0); - } - - /** - * wsimport failed to generate async response bean for operation: {0} - * - */ - public static String WSDLMODELER_RESPONSEBEAN_NOTFOUND(Object arg0) { - return localizer.localize(localizableWSDLMODELER_RESPONSEBEAN_NOTFOUND(arg0)); - } - - public static Localizable localizableWSDLMODELER_20_RPCENC_NOT_SUPPORTED() { - return messageFactory.getMessage("wsdlmodeler20.rpcenc.not.supported"); - } - - /** - * rpc/encoded wsdl's are not supported in JAXWS 2.0. - * - */ - public static String WSDLMODELER_20_RPCENC_NOT_SUPPORTED() { - return localizer.localize(localizableWSDLMODELER_20_RPCENC_NOT_SUPPORTED()); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_PART_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.partNotFound", arg0, arg1); - } - - /** - * ignoring operation "{0}": part "{1}" not found - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_PART_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_PART_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.message.partMustHaveElementDescriptor", arg0, arg1); - } - - /** - * in message "{0}", part "{1}" must specify a "element" attribute - * - */ - public static String WSDLMODELER_INVALID_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_ERROR_PARTS_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.error.partsNotFound", arg0, arg1); - } - - /** - * parts "{0}" not found in the message "{1}", wrong WSDL - * - */ - public static String WSDLMODELER_ERROR_PARTS_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_ERROR_PARTS_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_FAULT_NOT_ENCODED(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringFault.notEncoded", arg0, arg1); - } - - /** - * ignoring literal fault "{0}" of binding operation "{1}" - * - */ - public static String WSDLMODELER_WARNING_IGNORING_FAULT_NOT_ENCODED(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULT_NOT_ENCODED(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_SUPPORTED_STYLE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.notSupportedStyle", arg0); - } - - /** - * ignoring operation "{0}": not request-response or one-way - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_NOT_SUPPORTED_STYLE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_SUPPORTED_STYLE(arg0)); + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULT_NOT_LITERAL(arg0, arg1)); } public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_PART_BINDING(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.multiplePartBinding", arg0, arg1); + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.multiplePartBinding", arg0, arg1); } /** @@ -800,131 +64,23 @@ public final class ModelerMessages { * */ public static String WSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_PART_BINDING(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_PART_BINDING(arg0, arg1)); + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_PART_BINDING(arg0, arg1)); } - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_MATCHING_OPERATIONS(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.multipleMatchingOperations", arg0, arg1); + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_LITERAL(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeaderFault.notLiteral", arg0, arg1, arg2); } /** - * in binding "{1}", operation "{0}" does not reference a unique operation in the corresponding port type + * ignoring header fault part="{0}" message="{1}" of operation {2}, use attribute must be "literal" * */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_MATCHING_OPERATIONS(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_MATCHING_OPERATIONS(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeader.cant.resolve.message", arg0, arg1); - } - - /** - * ignoring header "{0}" of binding operation "{1}": cannot resolve message - * - */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_CANT_RESOLVE_MESSAGE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.customizedOperationName", arg0, arg1); - } - - /** - * Ignoring operation "{0}", can''t generate java method ,customized name "{1}" of the wsdl:operation is a java keyword. - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_LITERAL(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeader.notLiteral", arg0, arg1); - } - - /** - * ignoring header "{0}" of binding operation "{1}": not literal - * - */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER_NOT_LITERAL(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_LITERAL(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_HEADER_MISSING_NAMESPACE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.inputHeader.missingNamespace", arg0, arg1); - } - - /** - * input header "{1}" of binding operation "{0}" must specify a value for the "namespace" attribute - * - */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_INPUT_HEADER_MISSING_NAMESPACE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_HEADER_MISSING_NAMESPACE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_MISSING_INPUT_NAME(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.missingInputName", arg0); - } - - /** - * binding operation "{0}" must specify a name for its input message - * - */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_MISSING_INPUT_NAME(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_MISSING_INPUT_NAME(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringNonSOAPPort.noAddress", arg0); - } - - /** - * ignoring port "{0}": no SOAP address specified. try running wsimport with -extension switch. - * - */ - public static String WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(arg0)); - } - - public static Localizable localizableWSDLMODELER_RESULT_IS_IN_OUT_PARAMETER(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.resultIsInOutParameter", arg0); - } - - /** - * result is "inout" parameter in operation: {0} - * - */ - public static String WSDLMODELER_RESULT_IS_IN_OUT_PARAMETER(Object arg0) { - return localizer.localize(localizableWSDLMODELER_RESULT_IS_IN_OUT_PARAMETER(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_HEADER_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.header.notFound", arg0, arg1); - } - - /** - * header "{0}" of binding operation "{1}": not found - * - */ - public static String WSDLMODELER_INVALID_HEADER_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_HEADER_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableMIMEMODELER_ELEMENT_PART_INVALID_ELEMENT_MIME_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("mimemodeler.elementPart.invalidElementMimeType", arg0, arg1); - } - - /** - * The mime:content part refers to wsdl:part "{0}", defined using element attribute. Please make sure the mime type: "{1}" is appropriate to serialize XML. - * - */ - public static String MIMEMODELER_ELEMENT_PART_INVALID_ELEMENT_MIME_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableMIMEMODELER_ELEMENT_PART_INVALID_ELEMENT_MIME_TYPE(arg0, arg1)); + public static String WSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_LITERAL(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_LITERAL(arg0, arg1, arg2)); } public static Localizable localizableWSDLMODELER_INVALID_HEADER_NOT_LITERAL(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.header.notLiteral", arg0, arg1); + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.header.notLiteral", arg0, arg1); } /** @@ -932,443 +88,47 @@ public final class ModelerMessages { * */ public static String WSDLMODELER_INVALID_HEADER_NOT_LITERAL(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_HEADER_NOT_LITERAL(arg0, arg1)); + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_HEADER_NOT_LITERAL(arg0, arg1)); } - public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_MESAGE_PART_ELEMENT_KIND(Object arg0) { - return messageFactory.getMessage("mimemodeler.invalidMimeContent.mesagePartElementKind", arg0); + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_SUPPORTED_STYLE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.notSupportedStyle", arg0); } /** - * wsdl:part element referenced by mime:content part attribute: {0} must be defined using type attribute! + * ignoring operation "{0}": not request-response or one-way * */ - public static String MIMEMODELER_INVALID_MIME_CONTENT_MESAGE_PART_ELEMENT_KIND(Object arg0) { - return localizer.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_MESAGE_PART_ELEMENT_KIND(arg0)); + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_NOT_SUPPORTED_STYLE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_SUPPORTED_STYLE(arg0)); } - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_ENCODED(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.notEncoded", arg0); + public static Localizable localizableWSDLMODELER_INVALID_PARAMETER_ORDER_TOO_MANY_UNMENTIONED_PARTS(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.parameterOrder.tooManyUnmentionedParts", arg0); } /** - * ignoring RPC-style operation "{0}": parameters are not encoded + * more than one part left out in the parameterOrder attribute of operation "{0}" * */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_NOT_ENCODED(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_ENCODED(arg0)); + public static String WSDLMODELER_INVALID_PARAMETER_ORDER_TOO_MANY_UNMENTIONED_PARTS(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_PARAMETER_ORDER_TOO_MANY_UNMENTIONED_PARTS(arg0)); } - public static Localizable localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_TYPES() { - return messageFactory.getMessage("wsdlmodeler.warning.nonconforming.wsdl.types"); + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.customizedOperationName", arg0, arg1); } /** - * Non conforming WS-I WSDL used for wsdl:types + * Ignoring operation "{0}", can''t generate java method ,customized name "{1}" of the wsdl:operation is a java keyword. * */ - public static String WSDLMODELER_WARNING_NONCONFORMING_WSDL_TYPES() { - return localizer.localize(localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_TYPES()); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_INPUT_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleMoreThanOnePartInInputMessage", arg0); - } - - /** - * ignoring operation "{0}": more than one part in input message - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_INPUT_MESSAGE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_INPUT_MESSAGE(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_OUTPUT_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleEmptyOutputMessage", arg0); - } - - /** - * ignoring operation "{0}": output message is empty - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_OUTPUT_MESSAGE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_OUTPUT_MESSAGE(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_R_2716_R_2726(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.r2716r2726", arg0, arg1); - } - - /** - * R2716/R2726 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit or rpc/lit for {0}: "{1}" - * - */ - public static String WSDLMODELER_WARNING_R_2716_R_2726(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_R_2716_R_2726(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_IGNORING_MEMBER_SUBMISSION_ADDRESSING(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.ignoringMemberSubmissionAddressing", arg0, arg1); - } - - /** - * ignoring wsa:Action attribute since obsolete addressing version 08-2004:"{0}" used; expecting addressing version "{1}". To use version 08-2004 anyway run wsimport with -extension switch. - * - */ - public static String WSDLMODELER_INVALID_IGNORING_MEMBER_SUBMISSION_ADDRESSING(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_IGNORING_MEMBER_SUBMISSION_ADDRESSING(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_NO_SOAP_ADDRESS(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.noSOAPAddress", arg0); - } - - /** - * Port "{0}" is not a SOAP port, it has no soap:address - * - */ - public static String WSDLMODELER_WARNING_NO_SOAP_ADDRESS(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_NO_SOAP_ADDRESS(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_FAULTS(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringFaults", arg0); - } - - /** - * ignoring faults declared by operation "{0}" - * - */ - public static String WSDLMODELER_WARNING_IGNORING_FAULTS(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULTS(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingFault.missingName", arg0, arg1); - } - - /** - * fault "{0}" in operation "{1}" must specify a value for the "name" attribute - * - */ - public static String WSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAME(arg0, arg1)); - } - - public static Localizable localizableMIMEMODELER_WARNING_IGNORINGINVALID_HEADER_PART_NOT_DECLARED_IN_ROOT_PART(Object arg0) { - return messageFactory.getMessage("mimemodeler.warning.IgnoringinvalidHeaderPart.notDeclaredInRootPart", arg0); - } - - /** - * Headers not in root mime:part with soap:body, ignoring headers in operation "{0}" - * - */ - public static String MIMEMODELER_WARNING_IGNORINGINVALID_HEADER_PART_NOT_DECLARED_IN_ROOT_PART(Object arg0) { - return localizer.localize(localizableMIMEMODELER_WARNING_IGNORINGINVALID_HEADER_PART_NOT_DECLARED_IN_ROOT_PART(arg0)); - } - - public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_ERROR_LOADING_JAVA_CLASS() { - return messageFactory.getMessage("mimemodeler.invalidMimeContent.errorLoadingJavaClass"); - } - - /** - * Couldn't find class "{0}" for mime type "{1}" - * - */ - public static String MIMEMODELER_INVALID_MIME_CONTENT_ERROR_LOADING_JAVA_CLASS() { - return localizer.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_ERROR_LOADING_JAVA_CLASS()); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.notInPortType", arg0, arg1); - } - - /** - * in binding "{1}", operation "{0}" does not appear in the corresponding port type - * - */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CONFLICT_STYLE_IN_WSI_MODE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.conflictStyleInWSIMode", arg0); - } - - /** - * ignoring operation "{0}": binding style and operation style are conflicting - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CONFLICT_STYLE_IN_WSI_MODE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CONFLICT_STYLE_IN_WSI_MODE(arg0)); - } - - public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(Object arg0) { - return messageFactory.getMessage("mimemodeler.invalidMimeContent.missingPartAttribute", arg0); - } - - /** - * Ignoring operation "{0}", missing part attribute in mime:content. part attribute must be present in mime:content declaration. - * - */ - public static String MIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(Object arg0) { - return localizer.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_SEARCH_SCHEMA_UNRECOGNIZED_TYPES(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.searchSchema.unrecognizedTypes", arg0); - } - - /** - * encountered {0} unrecognized type(s) - * - */ - public static String WSDLMODELER_WARNING_SEARCH_SCHEMA_UNRECOGNIZED_TYPES(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_SEARCH_SCHEMA_UNRECOGNIZED_TYPES(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.customizedOperationName", arg0, arg1); - } - - /** - * Invalid operation "{0}", can''t generate java method ,customized name "{1}" of the wsdl:operation is a java keyword. - * - */ - public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_HEADER_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.header.cant.resolve.message", arg0, arg1); - } - - /** - * header "{0}" of binding operation "{1}": cannot resolve message - * - */ - public static String WSDLMODELER_INVALID_HEADER_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_HEADER_CANT_RESOLVE_MESSAGE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAMESPACE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingFault.missingNamespace", arg0, arg1); - } - - /** - * fault "{0}" in operation "{1}" must specify a value for the "namespace" attribute - * - */ - public static String WSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAMESPACE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAMESPACE(arg0, arg1)); - } - - public static Localizable localizableMIMEMODELER_INVALID_MIME_PART_MORE_THAN_ONE_SOAP_BODY(Object arg0) { - return messageFactory.getMessage("mimemodeler.invalidMimePart.moreThanOneSOAPBody", arg0); - } - - /** - * Ignoring operation "{0}". The Multipart/Related structure has invalid root part: more than one soap:body parts found - * - */ - public static String MIMEMODELER_INVALID_MIME_PART_MORE_THAN_ONE_SOAP_BODY(Object arg0) { - return localizer.localize(localizableMIMEMODELER_INVALID_MIME_PART_MORE_THAN_ONE_SOAP_BODY(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_INCONSISTENT_DEFINITION(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeader.inconsistentDefinition", arg0, arg1); - } - - /** - * ignoring header "{0}" of operation "{1}": part not found - * - */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER_INCONSISTENT_DEFINITION(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_INCONSISTENT_DEFINITION(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingFault.notFound", arg0, arg1); - } - - /** - * fault "{0}" in operation "{1}" does not match any fault in the corresponding port type operation - * - */ - public static String WSDLMODELER_INVALID_BINDING_FAULT_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.customName", arg0, arg1); - } - - /** - * Ignoring operation "{0}", can''t generate java method. Parameter,customized name "{1}" is a java keyword. - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_UNRECOGNIZED_SCHEMA_EXTENSION(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringUnrecognizedSchemaExtension", arg0); - } - - /** - * ignoring schema element (unsupported version): {0} - * - */ - public static String WSDLMODELER_WARNING_IGNORING_UNRECOGNIZED_SCHEMA_EXTENSION(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_UNRECOGNIZED_SCHEMA_EXTENSION(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_FOUND(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeaderFault.notFound", arg0, arg1, arg2); - } - - /** - * ignoring header fault "{0}", cannot find part "{1}" in binding "{2}" - * - */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_FOUND(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_FOUND(arg0, arg1, arg2)); - } - - public static Localizable localizableWSDLMODELER_NON_UNIQUE_BODY_WARNING(Object arg0, Object arg1, Object arg2, Object arg3) { - return messageFactory.getMessage("wsdlmodeler.nonUnique.body.warning", arg0, arg1, arg2, arg3); - } - - /** - * Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signature on the wire for successful dispatch. In port {0}, Operations "{1}" and "{2}" have the same request body block {3}. Method dispatching may fail, runtime will try to dispatch using SOAPAction - * - */ - public static String WSDLMODELER_NON_UNIQUE_BODY_WARNING(Object arg0, Object arg1, Object arg2, Object arg3) { - return localizer.localize(localizableWSDLMODELER_NON_UNIQUE_BODY_WARNING(arg0, arg1, arg2, arg3)); - } - - public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.wrapperStyle", arg0, arg1, arg2); - } - - /** - * Invalid operation "{0}", can''t generate java method parameter. Local name of the wrapper child "{1}" in the global element "{2}" is a java keyword. Use customization to change the parameter name. - * - */ - public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(arg0, arg1, arg2)); - } - - public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_UNKNOWN_SCHEMA_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("mimemodeler.invalidMimeContent.unknownSchemaType", arg0, arg1); - } - - /** - * Unknown schema type: {1} for mime:content part: {0} - * - */ - public static String MIMEMODELER_INVALID_MIME_CONTENT_UNKNOWN_SCHEMA_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_UNKNOWN_SCHEMA_TYPE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_R_2716(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.r2716", arg0, arg1); - } - - /** - * R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for {0}: "{1}" - * - */ - public static String WSDLMODELER_WARNING_R_2716(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_R_2716(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeader.notFound", arg0, arg1); - } - - /** - * ignoring header "{0}" of binding operation "{1}": not found - * - */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_FOUND(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_TYPE_MESSAGE_PART(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleTypeMessagePart", arg0); - } - - /** - * ignoring operation "{0}": message part does not refer to a schema element declaration - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_TYPE_MESSAGE_PART(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_TYPE_MESSAGE_PART(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_PARAMETER_ORDER_INVALID_PARAMETER_ORDER(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.parameterOrder.invalidParameterOrder", arg0); - } - - /** - * parameterOrder attribute on operation "{0}" is invalid, ignoring parameterOrder hint - * - */ - public static String WSDLMODELER_INVALID_PARAMETER_ORDER_INVALID_PARAMETER_ORDER(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_PARAMETER_ORDER_INVALID_PARAMETER_ORDER(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_MISSING_OUTPUT_NAME(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.missingOutputName", arg0); - } - - /** - * binding operation "{0}" must specify a name for its output message - * - */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_MISSING_OUTPUT_NAME(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_MISSING_OUTPUT_NAME(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_OPERATION(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalidOperation", arg0); - } - - /** - * invalid operation: {0} - * - */ - public static String WSDLMODELER_INVALID_OPERATION(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_OPERATION(arg0)); - } - - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_HEADER_MISSING_NAMESPACE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.outputHeader.missingNamespace", arg0, arg1); - } - - /** - * output header "{1}" of binding operation "{0}" must specify a value for the "namespace" attribute - * - */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_HEADER_MISSING_NAMESPACE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_HEADER_MISSING_NAMESPACE(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_PART_FROM_BODY(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeader.partFromBody", arg0); - } - - /** - * header part: "{0}" already bound by soapbind:body, illegal to bind the part twice - * - */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER_PART_FROM_BODY(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_PART_FROM_BODY(arg0)); + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(arg0, arg1)); } public static Localizable localizableWSDLMODELER_INVALID_OPERATION_NOT_SUPPORTED_STYLE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.operation.notSupportedStyle", arg0, arg1); + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.operation.notSupportedStyle", arg0, arg1); } /** @@ -1376,11 +136,167 @@ public final class ModelerMessages { * */ public static String WSDLMODELER_INVALID_OPERATION_NOT_SUPPORTED_STYLE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_OPERATION_NOT_SUPPORTED_STYLE(arg0, arg1)); + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_OPERATION_NOT_SUPPORTED_STYLE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_TYPES() { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.nonconforming.wsdl.types"); + } + + /** + * Non conforming WS-I WSDL used for wsdl:types + * + */ + public static String WSDLMODELER_WARNING_NONCONFORMING_WSDL_TYPES() { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_TYPES()); + } + + public static Localizable localizableWSDLMODELER_INVALID_HEADER_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.header.notFound", arg0, arg1); + } + + /** + * header "{0}" of binding operation "{1}": not found + * + */ + public static String WSDLMODELER_INVALID_HEADER_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_HEADER_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableMIMEMODELER_WARNING_IGNORINGINVALID_HEADER_PART_NOT_DECLARED_IN_ROOT_PART(Object arg0) { + return MESSAGE_FACTORY.getMessage("mimemodeler.warning.IgnoringinvalidHeaderPart.notDeclaredInRootPart", arg0); + } + + /** + * Headers not in root mime:part with soap:body, ignoring headers in operation "{0}" + * + */ + public static String MIMEMODELER_WARNING_IGNORINGINVALID_HEADER_PART_NOT_DECLARED_IN_ROOT_PART(Object arg0) { + return LOCALIZER.localize(localizableMIMEMODELER_WARNING_IGNORINGINVALID_HEADER_PART_NOT_DECLARED_IN_ROOT_PART(arg0)); + } + + public static Localizable localizableWSDLMODELER_UNSUPPORTED_BINDING_MIME() { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.unsupportedBinding.mime"); + } + + /** + * WSDL MIME binding is not currently supported! + * + */ + public static String WSDLMODELER_UNSUPPORTED_BINDING_MIME() { + return LOCALIZER.localize(localizableWSDLMODELER_UNSUPPORTED_BINDING_MIME()); + } + + public static Localizable localizableWSDLMODELER_NON_UNIQUE_BODY_ERROR(Object arg0, Object arg1, Object arg2, Object arg3) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.nonUnique.body.error", arg0, arg1, arg2, arg3); + } + + /** + * Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signature on the wire for successful dispatch. In port {0}, Operations "{1}" and "{2}" have the same request body block {3}. Try running wsimport with -extension switch, runtime will try to dispatch using SOAPAction + * + */ + public static String WSDLMODELER_NON_UNIQUE_BODY_ERROR(Object arg0, Object arg1, Object arg2, Object arg3) { + return LOCALIZER.localize(localizableWSDLMODELER_NON_UNIQUE_BODY_ERROR(arg0, arg1, arg2, arg3)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAMESPACE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingFault.missingNamespace", arg0, arg1); + } + + /** + * fault "{0}" in operation "{1}" must specify a value for the "namespace" attribute + * + */ + public static String WSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAMESPACE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAMESPACE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODLER_WARNING_OPERATION_USE() { + return MESSAGE_FACTORY.getMessage("wsdlmodler.warning.operation.use"); + } + + /** + * The WSDL used has operations with literal and encoded use. -f:searchschema is not supported for this scenario. + * + */ + public static String WSDLMODLER_WARNING_OPERATION_USE() { + return LOCALIZER.localize(localizableWSDLMODLER_WARNING_OPERATION_USE()); + } + + public static Localizable localizableWSDLMODELER_ERROR_PARTS_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.error.partsNotFound", arg0, arg1); + } + + /** + * parts "{0}" not found in the message "{1}", wrong WSDL + * + */ + public static String WSDLMODELER_ERROR_PARTS_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_ERROR_PARTS_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_JAXB_JAVATYPE_NOTFOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.jaxb.javatype.notfound", arg0, arg1); + } + + /** + * Schema descriptor {0} in message part "{1}" is not defined and could not be bound to Java. Perhaps the schema descriptor {0} is not defined in the schema imported/included in the WSDL. You can either add such imports/includes or run wsimport and provide the schema location using -b switch. + * + */ + public static String WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_JAXB_JAVATYPE_NOTFOUND(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_HEADERFAULT_NOT_LITERAL(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.headerfault.notLiteral", arg0, arg1); + } + + /** + * Invalid headerfault "{0}" of binding operation "{1}": not literal + * + */ + public static String WSDLMODELER_INVALID_HEADERFAULT_NOT_LITERAL(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_HEADERFAULT_NOT_LITERAL(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_20_RPCENC_NOT_SUPPORTED() { + return MESSAGE_FACTORY.getMessage("wsdlmodeler20.rpcenc.not.supported"); + } + + /** + * rpc/encoded wsdl's are not supported in JAXWS 2.0. + * + */ + public static String WSDLMODELER_20_RPCENC_NOT_SUPPORTED() { + return LOCALIZER.localize(localizableWSDLMODELER_20_RPCENC_NOT_SUPPORTED()); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingFault.notFound", arg0, arg1); + } + + /** + * fault "{0}" in operation "{1}" does not match any fault in the corresponding port type operation + * + */ + public static String WSDLMODELER_INVALID_BINDING_FAULT_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_DOCLITOPERATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.doclitoperation", arg0); + } + + /** + * Invalid wsdl:operation "{0}": its a document-literal operation, message part must refer to a schema element declaration + * + */ + public static String WSDLMODELER_INVALID_DOCLITOPERATION(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_DOCLITOPERATION(arg0)); } public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_NC_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.notNCName", arg0, arg1); + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.notNCName", arg0, arg1); } /** @@ -1388,23 +304,35 @@ public final class ModelerMessages { * */ public static String WSDLMODELER_WARNING_IGNORING_OPERATION_NOT_NC_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_NC_NAME(arg0, arg1)); + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_NC_NAME(arg0, arg1)); } - public static Localizable localizableWSDLMODELER_INVALID_PARAMETER_DIFFERENT_TYPES(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.parameter.differentTypes", arg0, arg1); + public static Localizable localizableMIMEMODELER_INVALID_MIME_PART_NAME_NOT_ALLOWED(Object arg0) { + return MESSAGE_FACTORY.getMessage("mimemodeler.invalidMimePart.nameNotAllowed", arg0); } /** - * parameter "{0}" of operation "{1}" appears with different types in the input and output messages + * name attribute on wsdl:part in Operation "{0}" is ignored. Its not allowed as per WS-I AP 1.0. * */ - public static String WSDLMODELER_INVALID_PARAMETER_DIFFERENT_TYPES(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_PARAMETER_DIFFERENT_TYPES(arg0, arg1)); + public static String MIMEMODELER_INVALID_MIME_PART_NAME_NOT_ALLOWED(Object arg0) { + return LOCALIZER.localize(localizableMIMEMODELER_INVALID_MIME_PART_NAME_NOT_ALLOWED(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_LITERAL(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.notLiteral", arg0); + } + + /** + * ignoring document-style operation "{0}": parameters are not literal + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_NOT_LITERAL(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_LITERAL(arg0)); } public static Localizable localizableWSDLMODELER_WARNING_IGNORING_FAULT_DOCUMENT_OPERATION(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringFault.documentOperation", arg0, arg1); + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringFault.documentOperation", arg0, arg1); } /** @@ -1412,107 +340,47 @@ public final class ModelerMessages { * */ public static String WSDLMODELER_WARNING_IGNORING_FAULT_DOCUMENT_OPERATION(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULT_DOCUMENT_OPERATION(arg0, arg1)); + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULT_DOCUMENT_OPERATION(arg0, arg1)); } - public static Localizable localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_USE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.nonconforming.wsdl.use", arg0); + public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_NOT_UNIQUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingFault.notUnique", arg0, arg1); } /** - * Processing WS-I non conforming operation "{0}" with RPC-Style and SOAP-encoded + * fault "{0}" in operation "{1}" matches more than one fault in the corresponding port type operation * */ - public static String WSDLMODELER_WARNING_NONCONFORMING_WSDL_USE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_USE(arg0)); + public static String WSDLMODELER_INVALID_BINDING_FAULT_NOT_UNIQUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_NOT_UNIQUE(arg0, arg1)); } - public static Localizable localizableWSDLMODELER_WARNING_NON_SOAP_PORT(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.nonSOAPPort", arg0); + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_MISSING_INPUT_NAME(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.missingInputName", arg0); } /** - * port "{0}": not a standard SOAP port. The generated artifacts may not work with JAX-WS runtime. + * binding operation "{0}" must specify a name for its input message * */ - public static String WSDLMODELER_WARNING_NON_SOAP_PORT(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_NON_SOAP_PORT(arg0)); + public static String WSDLMODELER_INVALID_BINDING_OPERATION_MISSING_INPUT_NAME(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_MISSING_INPUT_NAME(arg0)); } - public static Localizable localizableWSDLMODELER_INVALID_HEADERFAULT_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.invalid.headerfault.message.partMustHaveElementDescriptor", arg0, arg1, arg2); + public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.wrapperStyle", arg0, arg1, arg2); } /** - * Invalid headerfault "{0}" for header {1} in operation {2}: part must specify an "element" attribute + * Invalid operation "{0}", can''t generate java method parameter. Local name of the wrapper child "{1}" in the global element "{2}" is a java keyword. Use customization to change the parameter name. * */ - public static String WSDLMODELER_INVALID_HEADERFAULT_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_INVALID_HEADERFAULT_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(arg0, arg1, arg2)); - } - - public static Localizable localizableWSDLMODELER_INVALID_STATE_MODELING_OPERATION(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalidState.modelingOperation", arg0); - } - - /** - * invalid state while modeling operation: {0} - * - */ - public static String WSDLMODELER_INVALID_STATE_MODELING_OPERATION(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_STATE_MODELING_OPERATION(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.operationName", arg0); - } - - /** - * Ignoring operation "{0}", it''s java reserved word, can''t generate java method. Use customization to change the operation name. - * - */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(arg0)); - } - - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_ENCODED(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeader.notEncoded", arg0, arg1); - } - - /** - * ignoring header "{0}" of binding operation "{1}": not SOAP-encoded - * - */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER_NOT_ENCODED(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_ENCODED(arg0, arg1)); - } - - public static Localizable localizableWSDLMODELER_DUPLICATE_FAULT_PART_NAME(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.duplicate.fault.part.name", arg0, arg1, arg2); - } - - /** - * ignoring fault "{0}" of operation "{1}", part name "{2}" is not unique - * - */ - public static String WSDLMODELER_DUPLICATE_FAULT_PART_NAME(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_DUPLICATE_FAULT_PART_NAME(arg0, arg1, arg2)); - } - - public static Localizable localizableWSDLMODELER_INVALID_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.operation.MoreThanOnePartInMessage", arg0); - } - - /** - * operation "{0}": more than one part bound to body - * - */ - public static String WSDLMODELER_INVALID_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(arg0)); + public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(arg0, arg1, arg2)); } public static Localizable localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_12(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringSOAPBinding12", arg0); + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringSOAPBinding12", arg0); } /** @@ -1521,71 +389,539 @@ public final class ModelerMessages { * */ public static String WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_12(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_12(arg0)); + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_12(arg0)); } - public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_NOT_UNIQUE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingFault.notUnique", arg0, arg1); + public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_MESAGE_PART_ELEMENT_KIND(Object arg0) { + return MESSAGE_FACTORY.getMessage("mimemodeler.invalidMimeContent.mesagePartElementKind", arg0); } /** - * fault "{0}" in operation "{1}" matches more than one fault in the corresponding port type operation + * wsdl:part element referenced by mime:content part attribute: {0} must be defined using type attribute! * */ - public static String WSDLMODELER_INVALID_BINDING_FAULT_NOT_UNIQUE(Object arg0, Object arg1) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_NOT_UNIQUE(arg0, arg1)); + public static String MIMEMODELER_INVALID_MIME_CONTENT_MESAGE_PART_ELEMENT_KIND(Object arg0) { + return LOCALIZER.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_MESAGE_PART_ELEMENT_KIND(arg0)); } - public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_MISSING_SOAP_BODY(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.invalid.bindingOperation.outputMissingSoapBody", arg0); + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringSOAPBinding.nonHTTPTransport", arg0); } /** - * output message of binding operation "{0}" does not have a SOAP body extension + * ignoring SOAP port "{0}": unrecognized transport. try running wsimport with -extension switch. * */ - public static String WSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_MISSING_SOAP_BODY(Object arg0) { - return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_MISSING_SOAP_BODY(arg0)); + public static String WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(arg0)); } - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_LITERAL(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringHeaderFault.notLiteral", arg0, arg1, arg2); + public static Localizable localizableWSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.duplicate.fault.soap.name", arg0, arg1, arg2); } /** - * ignoring header fault part="{0}" message="{1}" of operation {2}, use attribute must be "literal" + * ignoring fault "{0}" of operation "{1}", soap:fault name "{2}" is not unique * */ - public static String WSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_LITERAL(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_LITERAL(arg0, arg1, arg2)); + public static String WSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_DUPLICATE_FAULT_SOAP_NAME(arg0, arg1, arg2)); } - public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_OUTPUT_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleMoreThanOnePartInOutputMessage", arg0); + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_OUTPUT_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleEmptyOutputMessage", arg0); } /** - * ignoring operation "{0}": more than one part in output message + * ignoring operation "{0}": output message is empty * */ - public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_OUTPUT_MESSAGE(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_OUTPUT_MESSAGE(arg0)); + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_OUTPUT_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_OUTPUT_MESSAGE(arg0)); } - public static Localizable localizableWSDLMODELER_WARNING_NO_OPERATIONS_IN_PORT(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.warning.noOperationsInPort", arg0); + public static Localizable localizableMIMEMODELER_INVALID_MIME_PART_MORE_THAN_ONE_SOAP_BODY(Object arg0) { + return MESSAGE_FACTORY.getMessage("mimemodeler.invalidMimePart.moreThanOneSOAPBody", arg0); } /** - * Port "{0}" does not contain any usable operations + * Ignoring operation "{0}". The Multipart/Related structure has invalid root part: more than one soap:body parts found * */ - public static String WSDLMODELER_WARNING_NO_OPERATIONS_IN_PORT(Object arg0) { - return localizer.localize(localizableWSDLMODELER_WARNING_NO_OPERATIONS_IN_PORT(arg0)); + public static String MIMEMODELER_INVALID_MIME_PART_MORE_THAN_ONE_SOAP_BODY(Object arg0) { + return LOCALIZER.localize(localizableMIMEMODELER_INVALID_MIME_PART_MORE_THAN_ONE_SOAP_BODY(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_MESSAGE_HAS_MORE_THAN_ONE_PART(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingFault.messageHasMoreThanOnePart", arg0, arg1); + } + + /** + * fault "{0}" refers to message "{1}", but the message has more than one parts + * + */ + public static String WSDLMODELER_INVALID_BINDING_FAULT_MESSAGE_HAS_MORE_THAN_ONE_PART(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_MESSAGE_HAS_MORE_THAN_ONE_PART(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_TYPE_MESSAGE_PART(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleTypeMessagePart", arg0); + } + + /** + * ignoring operation "{0}": message part does not refer to a schema element declaration + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_TYPE_MESSAGE_PART(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_TYPE_MESSAGE_PART(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_FAULTS(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringFaults", arg0); + } + + /** + * ignoring faults declared by operation "{0}" + * + */ + public static String WSDLMODELER_WARNING_IGNORING_FAULTS(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULTS(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_SOAP_BODY_MISSING_NAMESPACE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.inputSoapBody.missingNamespace", arg0); + } + + /** + * input message of binding operation "{0}" must specify a value for the "namespace" attribute + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_INPUT_SOAP_BODY_MISSING_NAMESPACE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_SOAP_BODY_MISSING_NAMESPACE(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_ELEMENT_MESSAGE_PART(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleElementMessagePart", arg0); + } + + /** + * ignoring operation "{0}": message part does not refer to a schema type declaration + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_ELEMENT_MESSAGE_PART(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_ELEMENT_MESSAGE_PART(arg0)); + } + + public static Localizable localizableMODELER_NESTED_MODEL_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("modeler.nestedModelError", arg0); + } + + /** + * modeler error: {0} + * + */ + public static String MODELER_NESTED_MODEL_ERROR(Object arg0) { + return LOCALIZER.localize(localizableMODELER_NESTED_MODEL_ERROR(arg0)); + } + + public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_DIFFERENT_PART() { + return MESSAGE_FACTORY.getMessage("mimemodeler.invalidMimeContent.differentPart"); + } + + /** + * Ignoring the mime:part. Invalid mime:part, the mime:content has different part attribute. + * + */ + public static String MIMEMODELER_INVALID_MIME_CONTENT_DIFFERENT_PART() { + return LOCALIZER.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_DIFFERENT_PART()); + } + + public static Localizable localizableWSDLMODELER_INVALID_IGNORING_MEMBER_SUBMISSION_ADDRESSING(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.ignoringMemberSubmissionAddressing", arg0, arg1); + } + + /** + * ignoring wsa:Action attribute since obsolete addressing version 08-2004:"{0}" used; expecting addressing version "{1}". To use version 08-2004 anyway run wsimport with -extension switch. + * + */ + public static String WSDLMODELER_INVALID_IGNORING_MEMBER_SUBMISSION_ADDRESSING(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_IGNORING_MEMBER_SUBMISSION_ADDRESSING(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_BINDING_OPERATION_MULTIPLE_PART_BINDING(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.bindingOperation.multiplePartBinding", arg0, arg1); + } + + /** + * Check the abstract operation "{0}" binding, part "{1}" has multiple binding. Will try to generated artifacts anyway... + * + */ + public static String WSDLMODELER_WARNING_BINDING_OPERATION_MULTIPLE_PART_BINDING(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_BINDING_OPERATION_MULTIPLE_PART_BINDING(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringNonSOAPPort.noAddress", arg0); + } + + /** + * ignoring port "{0}": no SOAP address specified. try running wsimport with -extension switch. + * + */ + public static String WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_PORT_SOAP_BINDING_12(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.port.SOAPBinding12", arg0); + } + + /** + * SOAP port "{0}": uses a non-standard SOAP 1.2 binding. + * + */ + public static String WSDLMODELER_WARNING_PORT_SOAP_BINDING_12(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_PORT_SOAP_BINDING_12(arg0)); + } + + public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_INVALID_SCHEMA_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("mimemodeler.invalidMimeContent.invalidSchemaType", arg0, arg1); + } + + /** + * Ignoring the mime:part. mime part: {0} can not be mapped to schema type: {1} + * + */ + public static String MIMEMODELER_INVALID_MIME_CONTENT_INVALID_SCHEMA_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_INVALID_SCHEMA_TYPE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_ENCODED(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.notEncoded", arg0); + } + + /** + * ignoring RPC-style operation "{0}": parameters are not encoded + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_NOT_ENCODED(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_NOT_ENCODED(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.header.message.partMustHaveElementDescriptor", arg0, arg1); + } + + /** + * Invalid header "{0}" in operation {1}: part must specify a "element" attribute + * + */ + public static String WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.message.partMustHaveElementDescriptor", arg0, arg1); + } + + /** + * in message "{0}", part "{1}" must specify a "element" attribute + * + */ + public static String WSDLMODELER_INVALID_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_ERROR_PART_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.error.partNotFound", arg0, arg1); + } + + /** + * part "{1}" of operation "{0}" could not be resolved! + * + */ + public static String WSDLMODELER_ERROR_PART_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_ERROR_PART_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.operationName", arg0); + } + + /** + * Invalid operation "{0}", it''s java reserved word, can''t generate java method. Use customization to change the operation name. + * + */ + public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.notInPortType", arg0, arg1); + } + + /** + * in binding "{1}", operation "{0}" does not appear in the corresponding port type + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_NOT_IN_PORT_TYPE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_OPERATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalidOperation", arg0); + } + + /** + * invalid operation: {0} + * + */ + public static String WSDLMODELER_INVALID_OPERATION(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_OPERATION(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_HEADER_MISSING_NAMESPACE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.outputHeader.missingNamespace", arg0, arg1); + } + + /** + * output header "{1}" of binding operation "{0}" must specify a value for the "namespace" attribute + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_HEADER_MISSING_NAMESPACE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_HEADER_MISSING_NAMESPACE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_INPUT_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleMoreThanOnePartInInputMessage", arg0); + } + + /** + * ignoring operation "{0}": more than one part in input message + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_INPUT_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_INPUT_MESSAGE(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_MISSING_OUTPUT_NAME(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.missingOutputName", arg0); + } + + /** + * binding operation "{0}" must specify a name for its output message + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_MISSING_OUTPUT_NAME(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_MISSING_OUTPUT_NAME(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingFault.missingName", arg0, arg1); + } + + /** + * fault "{0}" in operation "{1}" must specify a value for the "name" attribute + * + */ + public static String WSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_MISSING_NAME(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.notFound", arg0, arg1); + } + + /** + * in binding "{1}", operation "{0}" does not match any operation in the corresponding port type + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_BODY_PARTS_ATTRIBUTE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleBodyPartsAttribute", arg0); + } + + /** + * ignoring operation "{0}": cannot handle "parts" attribute of "soap:body" element + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_BODY_PARTS_ATTRIBUTE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_BODY_PARTS_ATTRIBUTE(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.nonWrapperStyle", arg0, arg1, arg2); + } + + /** + * Ignoring operation "{0}", can''t generate java method. Parameter: part "{2}" in wsdl:message "{1}", is a java keyword. Use customization to change the parameter name or change the wsdl:part name. + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CONFLICT_STYLE_IN_WSI_MODE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.conflictStyleInWSIMode", arg0); + } + + /** + * ignoring operation "{0}": binding style and operation style are conflicting + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CONFLICT_STYLE_IN_WSI_MODE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CONFLICT_STYLE_IN_WSI_MODE(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeader.notFound", arg0, arg1); + } + + /** + * ignoring header "{0}" of binding operation "{1}": not found + * + */ + public static String WSDLMODELER_WARNING_IGNORING_HEADER_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_MEMBER_SUBMISSION_ADDRESSING_USED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.memberSubmissionAddressingUsed", arg0, arg1); + } + + /** + * obsolete addressing version 08-2004:"{0}" used; version "{1}" should be used instead. + * + */ + public static String WSDLMODELER_WARNING_MEMBER_SUBMISSION_ADDRESSING_USED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_MEMBER_SUBMISSION_ADDRESSING_USED(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_NO_SOAP_ADDRESS(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.noSOAPAddress", arg0); + } + + /** + * Port "{0}" is not a SOAP port, it has no soap:address + * + */ + public static String WSDLMODELER_WARNING_NO_SOAP_ADDRESS(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_NO_SOAP_ADDRESS(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.operationName", arg0); + } + + /** + * Ignoring operation "{0}", it''s java reserved word, can''t generate java method. Use customization to change the operation name. + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_OPERATION_NAME(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_LITERAL(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeader.notLiteral", arg0, arg1); + } + + /** + * ignoring header "{0}" of binding operation "{1}": not literal + * + */ + public static String WSDLMODELER_WARNING_IGNORING_HEADER_NOT_LITERAL(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_LITERAL(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_OUTPUT_MISSING_SOAP_FAULT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingFault.outputMissingSoapFault", arg0, arg1); + } + + /** + * fault "{0}" in operation "{1}" does not have a SOAP fault extension + * + */ + public static String WSDLMODELER_INVALID_BINDING_FAULT_OUTPUT_MISSING_SOAP_FAULT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_OUTPUT_MISSING_SOAP_FAULT(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_NON_UNIQUE_BODY_WARNING(Object arg0, Object arg1, Object arg2, Object arg3) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.nonUnique.body.warning", arg0, arg1, arg2, arg3); + } + + /** + * Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signature on the wire for successful dispatch. In port {0}, Operations "{1}" and "{2}" have the same request body block {3}. Method dispatching may fail, runtime will try to dispatch using SOAPAction + * + */ + public static String WSDLMODELER_NON_UNIQUE_BODY_WARNING(Object arg0, Object arg1, Object arg2, Object arg3) { + return LOCALIZER.localize(localizableWSDLMODELER_NON_UNIQUE_BODY_WARNING(arg0, arg1, arg2, arg3)); + } + + public static Localizable localizableWSDLMODELER_WARNING_PORT_SOAP_BINDING_MIXED_STYLE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.port.SOAPBinding.mixedStyle", arg0); + } + + /** + * not a WS-I BP1.1 compliant SOAP port "{0}": the WSDL binding has mixed style, it must be rpc-literal or document-literal operation! + * + */ + public static String WSDLMODELER_WARNING_PORT_SOAP_BINDING_MIXED_STYLE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_PORT_SOAP_BINDING_MIXED_STYLE(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_NO_SOAP_FAULT_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingFault.noSoapFaultName", arg0, arg1); + } + + /** + * soap:fault name not specified, wsdl:fault "{0}" in operation "{1}" + * + */ + public static String WSDLMODELER_INVALID_BINDING_FAULT_NO_SOAP_FAULT_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_NO_SOAP_FAULT_NAME(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_HEADERFAULT_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.headerfault.message.partMustHaveElementDescriptor", arg0, arg1, arg2); + } + + /** + * Invalid headerfault "{0}" for header {1} in operation {2}: part must specify an "element" attribute + * + */ + public static String WSDLMODELER_INVALID_HEADERFAULT_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_HEADERFAULT_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDLMODELER_RPCLIT_UNKOWNSCHEMATYPE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.rpclit.unkownschematype", arg0, arg1, arg2); + } + + /** + * XML type "{0}" could not be resolved, XML to JAVA binding failed! Please check the wsdl:part "{1}" in the wsdl:message "{2}". + * + */ + public static String WSDLMODELER_RPCLIT_UNKOWNSCHEMATYPE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_RPCLIT_UNKOWNSCHEMATYPE(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDLMODELER_WARNING_R_2716(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.r2716", arg0, arg1); + } + + /** + * R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for {0}: "{1}" + * + */ + public static String WSDLMODELER_WARNING_R_2716(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_R_2716(arg0, arg1)); } public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.wrapperStyle", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.wrapperStyle", arg0, arg1, arg2); } /** @@ -1593,11 +929,71 @@ public final class ModelerMessages { * */ public static String WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_WRAPPER_STYLE(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDLMODELER_INVALID_OPERATION_FAULT_NOT_LITERAL(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.operation.fault.notLiteral", arg0, arg1); + } + + /** + * ignoring encoded fault "{0}" in literal binding operation "{1}" + * + */ + public static String WSDLMODELER_INVALID_OPERATION_FAULT_NOT_LITERAL(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_OPERATION_FAULT_NOT_LITERAL(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_SOAP_BODY_MISSING_NAMESPACE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.outputSoapBody.missingNamespace", arg0); + } + + /** + * output message of binding operation "{0}" must specify a value for the "namespace" attribute + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_SOAP_BODY_MISSING_NAMESPACE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_SOAP_BODY_MISSING_NAMESPACE(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_HEADER_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.header.cant.resolve.message", arg0, arg1); + } + + /** + * header "{0}" of binding operation "{1}": cannot resolve message + * + */ + public static String WSDLMODELER_INVALID_HEADER_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_HEADER_CANT_RESOLVE_MESSAGE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_SEARCH_SCHEMA_UNRECOGNIZED_TYPES(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.searchSchema.unrecognizedTypes", arg0); + } + + /** + * encountered {0} unrecognized type(s) + * + */ + public static String WSDLMODELER_WARNING_SEARCH_SCHEMA_UNRECOGNIZED_TYPES(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_SEARCH_SCHEMA_UNRECOGNIZED_TYPES(arg0)); + } + + public static Localizable localizableWSDLMODELER_RESPONSEBEAN_NOTFOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.responsebean.notfound", arg0); + } + + /** + * wsimport failed to generate async response bean for operation: {0} + * + */ + public static String WSDLMODELER_RESPONSEBEAN_NOTFOUND(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_RESPONSEBEAN_NOTFOUND(arg0)); } public static Localizable localizableWSDLMODELER_UNSOLVABLE_NAMING_CONFLICTS(Object arg0) { - return messageFactory.getMessage("wsdlmodeler.unsolvableNamingConflicts", arg0); + return MESSAGE_FACTORY.getMessage("wsdlmodeler.unsolvableNamingConflicts", arg0); } /** @@ -1605,7 +1001,618 @@ public final class ModelerMessages { * */ public static String WSDLMODELER_UNSOLVABLE_NAMING_CONFLICTS(Object arg0) { - return localizer.localize(localizableWSDLMODELER_UNSOLVABLE_NAMING_CONFLICTS(arg0)); + return LOCALIZER.localize(localizableWSDLMODELER_UNSOLVABLE_NAMING_CONFLICTS(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_NO_PORTS_IN_SERVICE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.noPortsInService", arg0); + } + + /** + * Service "{0}" does not contain any usable ports. try running wsimport with -extension switch. + * + */ + public static String WSDLMODELER_WARNING_NO_PORTS_IN_SERVICE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_NO_PORTS_IN_SERVICE(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_FAULT_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringFault.cant.resolve.message", arg0, arg1); + } + + /** + * ignoring fault "{0}" of binding operation "{1}": cannot resolve message + * + */ + public static String WSDLMODELER_WARNING_IGNORING_FAULT_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULT_CANT_RESOLVE_MESSAGE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_PART_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.partNotFound", arg0, arg1); + } + + /** + * ignoring operation "{0}": part "{1}" not found + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_PART_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_PART_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NO_ELEMENT_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeaderFault.noElementAttribute", arg0, arg1, arg2); + } + + /** + * ignoring header fault part="{0}" message="{1}" of operation {2} + * + */ + public static String WSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NO_ELEMENT_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NO_ELEMENT_ATTRIBUTE(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDLMODELER_WARNING_R_2716_R_2726(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.r2716r2726", arg0, arg1); + } + + /** + * R2716/R2726 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit or rpc/lit for {0}: "{1}" + * + */ + public static String WSDLMODELER_WARNING_R_2716_R_2726(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_R_2716_R_2726(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_MATCHING_OPERATIONS(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.multipleMatchingOperations", arg0, arg1); + } + + /** + * in binding "{1}", operation "{0}" does not reference a unique operation in the corresponding port type + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_MATCHING_OPERATIONS(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_MATCHING_OPERATIONS(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_ENCODED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeader.notEncoded", arg0, arg1); + } + + /** + * ignoring header "{0}" of binding operation "{1}": not SOAP-encoded + * + */ + public static String WSDLMODELER_WARNING_IGNORING_HEADER_NOT_ENCODED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_NOT_ENCODED(arg0, arg1)); + } + + public static Localizable localizableMIMEMODELER_ELEMENT_PART_INVALID_ELEMENT_MIME_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("mimemodeler.elementPart.invalidElementMimeType", arg0, arg1); + } + + /** + * The mime:content part refers to wsdl:part "{0}", defined using element attribute. Please make sure the mime type: "{1}" is appropriate to serialize XML. + * + */ + public static String MIMEMODELER_ELEMENT_PART_INVALID_ELEMENT_MIME_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMIMEMODELER_ELEMENT_PART_INVALID_ELEMENT_MIME_TYPE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.portTypeFault.notFound", arg0, arg1); + } + + /** + * fault "{0}" in portType operation "{1}" does not match any fault in the corresponding binding operation + * + */ + public static String WSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_PORT_TYPE_FAULT_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_RESULT_IS_IN_OUT_PARAMETER(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.resultIsInOutParameter", arg0); + } + + /** + * result is "inout" parameter in operation: {0} + * + */ + public static String WSDLMODELER_RESULT_IS_IN_OUT_PARAMETER(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_RESULT_IS_IN_OUT_PARAMETER(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.operation.MoreThanOnePartInMessage", arg0); + } + + /** + * Ignoring operation "{0}": more than one part bound to body + * + */ + public static String WSDLMODELER_WARNING_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(arg0)); + } + + public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_ERROR_LOADING_JAVA_CLASS() { + return MESSAGE_FACTORY.getMessage("mimemodeler.invalidMimeContent.errorLoadingJavaClass"); + } + + /** + * Couldn't find class "{0}" for mime type "{1}" + * + */ + public static String MIMEMODELER_INVALID_MIME_CONTENT_ERROR_LOADING_JAVA_CLASS() { + return LOCALIZER.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_ERROR_LOADING_JAVA_CLASS()); + } + + public static Localizable localizableWSDLMODELER_INVALID_RPCLITOPERATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.rpclitoperation", arg0); + } + + /** + * Invalid wsdl:operation "{0}": its a rpc-literal operation, message part must refer to a schema type declaration + * + */ + public static String WSDLMODELER_INVALID_RPCLITOPERATION(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_RPCLITOPERATION(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_PART_FROM_BODY(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeader.partFromBody", arg0); + } + + /** + * header part: "{0}" already bound by soapbind:body, illegal to bind the part twice + * + */ + public static String WSDLMODELER_WARNING_IGNORING_HEADER_PART_FROM_BODY(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_PART_FROM_BODY(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_NO_SERVICE_DEFINITIONS_FOUND() { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.noServiceDefinitionsFound"); + } + + /** + * WSDL document does not define any services + * + */ + public static String WSDLMODELER_WARNING_NO_SERVICE_DEFINITIONS_FOUND() { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_NO_SERVICE_DEFINITIONS_FOUND()); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingFault.emptyMessage", arg0, arg1); + } + + /** + * fault "{0}" refers to message "{1}", but the message has no parts + * + */ + public static String WSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_EMPTY_MESSAGE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_PARAMETERORDER_PARAMETER(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.parameterorder.parameter", arg0, arg1); + } + + /** + * "{0}" specified in the parameterOrder attribute of operation "{1}" is not a valid part of the message. + * + */ + public static String WSDLMODELER_INVALID_PARAMETERORDER_PARAMETER(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_PARAMETERORDER_PARAMETER(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_DUPLICATE_FAULT_PART_NAME(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.duplicate.fault.part.name", arg0, arg1, arg2); + } + + /** + * ignoring fault "{0}" of operation "{1}", part name "{2}" is not unique + * + */ + public static String WSDLMODELER_DUPLICATE_FAULT_PART_NAME(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_DUPLICATE_FAULT_PART_NAME(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringNonSOAPPort", arg0); + } + + /** + * ignoring port "{0}": not a standard SOAP port. try running wsimport with -extension switch. + * + */ + public static String WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.customizedOperationName", arg0, arg1); + } + + /** + * Invalid operation "{0}", can''t generate java method ,customized name "{1}" of the wsdl:operation is a java keyword. + * + */ + public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOMIZED_OPERATION_NAME(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.nonWrapperStyle", arg0, arg1, arg2); + } + + /** + * Invalid operation "{0}", can''t generate java method. Parameter: part "{2}" in wsdl:message "{1}", is a java keyword. Use customization to change the parameter name or change the wsdl:part name. + * + */ + public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_NON_WRAPPER_STYLE(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeader.cant.resolve.message", arg0, arg1); + } + + /** + * ignoring header "{0}" of binding operation "{1}": cannot resolve message + * + */ + public static String WSDLMODELER_WARNING_IGNORING_HEADER_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_CANT_RESOLVE_MESSAGE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_MISSING_SOAP_BODY(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.inputMissingSoapBody", arg0); + } + + /** + * input message of binding operation "{0}" does not have a SOAP body extension + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_INPUT_MISSING_SOAP_BODY(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_MISSING_SOAP_BODY(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_PARAMETER_ORDER_INVALID_PARAMETER_ORDER(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.parameterOrder.invalidParameterOrder", arg0); + } + + /** + * parameterOrder attribute on operation "{0}" is invalid, ignoring parameterOrder hint + * + */ + public static String WSDLMODELER_INVALID_PARAMETER_ORDER_INVALID_PARAMETER_ORDER(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_PARAMETER_ORDER_INVALID_PARAMETER_ORDER(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_NO_OPERATIONS_IN_PORT(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.noOperationsInPort", arg0); + } + + /** + * Port "{0}" does not contain any usable operations + * + */ + public static String WSDLMODELER_WARNING_NO_OPERATIONS_IN_PORT(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_NO_OPERATIONS_IN_PORT(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_IMPORT() { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.nonconforming.wsdl.import"); + } + + /** + * Non conforming WS-I WSDL used for wsdl:import + * + */ + public static String WSDLMODELER_WARNING_NONCONFORMING_WSDL_IMPORT() { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_IMPORT()); + } + + public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_MISSING_TYPE_ATTRIBUTE(Object arg0) { + return MESSAGE_FACTORY.getMessage("mimemodeler.invalidMimeContent.missingTypeAttribute", arg0); + } + + /** + * Missing type attribute in mime:content in operation "{0}". part attribute must be present in mime:content declaration. + * + */ + public static String MIMEMODELER_INVALID_MIME_CONTENT_MISSING_TYPE_ATTRIBUTE(Object arg0) { + return LOCALIZER.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_MISSING_TYPE_ATTRIBUTE(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_HEADER_MISSING_NAMESPACE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.inputHeader.missingNamespace", arg0, arg1); + } + + /** + * input header "{1}" of binding operation "{0}" must specify a value for the "namespace" attribute + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_INPUT_HEADER_MISSING_NAMESPACE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_INPUT_HEADER_MISSING_NAMESPACE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_PARAMETER_DIFFERENT_TYPES(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.parameter.differentTypes", arg0, arg1); + } + + /** + * parameter "{0}" of operation "{1}" appears with different types in the input and output messages + * + */ + public static String WSDLMODELER_INVALID_PARAMETER_DIFFERENT_TYPES(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_PARAMETER_DIFFERENT_TYPES(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_OUTPUT_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleMoreThanOnePartInOutputMessage", arg0); + } + + /** + * ignoring operation "{0}": more than one part in output message + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_OUTPUT_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_MORE_THAN_ONE_PART_IN_OUTPUT_MESSAGE(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_USE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.nonconforming.wsdl.use", arg0); + } + + /** + * Processing WS-I non conforming operation "{0}" with RPC-Style and SOAP-encoded + * + */ + public static String WSDLMODELER_WARNING_NONCONFORMING_WSDL_USE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_NONCONFORMING_WSDL_USE(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_DOCUMENT_STYLE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleDocumentStyle", arg0); + } + + /** + * ignoring operation "{0}": cannot handle document-style operations + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_DOCUMENT_STYLE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_DOCUMENT_STYLE(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_FAULT_WRONG_SOAP_FAULT_NAME(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingFault.wrongSoapFaultName", arg0, arg1, arg2); + } + + /** + * name of soap:fault "{0}" doesn''t match the name of wsdl:fault "{1}" in operation "{2}" + * + */ + public static String WSDLMODELER_INVALID_BINDING_FAULT_WRONG_SOAP_FAULT_NAME(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_FAULT_WRONG_SOAP_FAULT_NAME(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDLMODELER_INVALID_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.operation.MoreThanOnePartInMessage", arg0); + } + + /** + * operation "{0}": more than one part bound to body + * + */ + public static String WSDLMODELER_INVALID_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_NON_SOAP_PORT(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.nonSOAPPort", arg0); + } + + /** + * port "{0}": not a standard SOAP port. The generated artifacts may not work with JAX-WS runtime. + * + */ + public static String WSDLMODELER_WARNING_NON_SOAP_PORT(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_NON_SOAP_PORT(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_STATE_MODELING_OPERATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalidState.modelingOperation", arg0); + } + + /** + * invalid state while modeling operation: {0} + * + */ + public static String WSDLMODELER_INVALID_STATE_MODELING_OPERATION(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_STATE_MODELING_OPERATION(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_INPUT_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.cannotHandleEmptyInputMessage", arg0); + } + + /** + * ignoring operation "{0}": input message is empty + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_INPUT_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_CANNOT_HANDLE_EMPTY_INPUT_MESSAGE(arg0)); + } + + public static Localizable localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_MISSING_SOAP_BODY(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.bindingOperation.outputMissingSoapBody", arg0); + } + + /** + * output message of binding operation "{0}" does not have a SOAP body extension + * + */ + public static String WSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_MISSING_SOAP_BODY(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_MISSING_SOAP_BODY(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_FOUND(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeaderFault.notFound", arg0, arg1, arg2); + } + + /** + * ignoring header fault "{0}", cannot find part "{1}" in binding "{2}" + * + */ + public static String WSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_FOUND(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_FAULT_NOT_FOUND(arg0, arg1, arg2)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeader", arg0, arg1); + } + + /** + * ignoring header "{0}" of binding operation "{1}" + * + */ + public static String WSDLMODELER_WARNING_IGNORING_HEADER(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_FAULT_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.fault.cant.resolve.message", arg0, arg1); + } + + /** + * fault message "{0}" in binding operation "{1}" could not be resolved + * + */ + public static String WSDLMODELER_INVALID_FAULT_CANT_RESOLVE_MESSAGE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_FAULT_CANT_RESOLVE_MESSAGE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_MIME_PART_NOT_FOUND(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringMimePart.notFound", arg0, arg1); + } + + /** + * ignoring mime:part, cannot find part "{0}" referenced by the mime:content in the wsdl:operation "{1}" + * + */ + public static String WSDLMODELER_WARNING_IGNORING_MIME_PART_NOT_FOUND(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_MIME_PART_NOT_FOUND(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_UNRECOGNIZED_SCHEMA_EXTENSION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringUnrecognizedSchemaExtension", arg0); + } + + /** + * ignoring schema element (unsupported version): {0} + * + */ + public static String WSDLMODELER_WARNING_IGNORING_UNRECOGNIZED_SCHEMA_EXTENSION(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_UNRECOGNIZED_SCHEMA_EXTENSION(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_MIXED_STYLE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringSOAPBinding.mixedStyle", arg0); + } + + /** + * ignoring port "{0}", its not WS-I BP 1.1 compliant: the wsdl binding has mixed style, it must be rpc-literal or document-literal operation. try running wsimport with -extension switch. + * + */ + public static String WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_MIXED_STYLE(Object arg0) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_SOAP_BINDING_MIXED_STYLE(arg0)); + } + + public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_UNKNOWN_SCHEMA_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("mimemodeler.invalidMimeContent.unknownSchemaType", arg0, arg1); + } + + /** + * Unknown schema type: {1} for mime:content part: {0} + * + */ + public static String MIMEMODELER_INVALID_MIME_CONTENT_UNKNOWN_SCHEMA_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_UNKNOWN_SCHEMA_TYPE(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_FAULT_NOT_ENCODED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringFault.notEncoded", arg0, arg1); + } + + /** + * ignoring literal fault "{0}" of binding operation "{1}" + * + */ + public static String WSDLMODELER_WARNING_IGNORING_FAULT_NOT_ENCODED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_FAULT_NOT_ENCODED(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.customName", arg0, arg1); + } + + /** + * Ignoring operation "{0}", can''t generate java method. Parameter,customized name "{1}" is a java keyword. + * + */ + public static String WSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(arg0, arg1)); + } + + public static Localizable localizableMIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(Object arg0) { + return MESSAGE_FACTORY.getMessage("mimemodeler.invalidMimeContent.missingPartAttribute", arg0); + } + + /** + * Ignoring operation "{0}", missing part attribute in mime:content. part attribute must be present in mime:content declaration. + * + */ + public static String MIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(Object arg0) { + return LOCALIZER.localize(localizableMIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(arg0)); + } + + public static Localizable localizableWSDLMODELER_WARNING_IGNORING_HEADER_INCONSISTENT_DEFINITION(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.warning.ignoringHeader.inconsistentDefinition", arg0, arg1); + } + + /** + * ignoring header "{0}" of operation "{1}": part not found + * + */ + public static String WSDLMODELER_WARNING_IGNORING_HEADER_INCONSISTENT_DEFINITION(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_WARNING_IGNORING_HEADER_INCONSISTENT_DEFINITION(arg0, arg1)); + } + + public static Localizable localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.customName", arg0, arg1); + } + + /** + * Invalid operation "{0}", can''t generate java method. Parameter,customized name "{1}" is a java keyword. + * + */ + public static String WSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSDLMODELER_INVALID_OPERATION_JAVA_RESERVED_WORD_NOT_ALLOWED_CUSTOM_NAME(arg0, arg1)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ProcessorMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ProcessorMessages.java index e9296456fbf..58c15b5eead 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ProcessorMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ProcessorMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,11 +25,11 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -37,12 +37,20 @@ import java.util.ResourceBundle; * */ public final class ProcessorMessages { - private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.processor"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, ProcessorMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.processor"; + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ProcessorMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } + } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/UtilMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/UtilMessages.java index c90a9ab2358..eb979056acc 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/UtilMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/UtilMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,12 +25,12 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -38,29 +38,13 @@ import java.util.ResourceBundle; * */ public final class UtilMessages { + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.util"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, UtilMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableSAX_2_DOM_NOTSUPPORTED_CREATEELEMENT(Object arg0) { - return messageFactory.getMessage("sax2dom.notsupported.createelement", arg0); - } - - /** - * SAX2DOMEx.DomImplDoesntSupportCreateElementNs: {0} - * - */ - public static String SAX_2_DOM_NOTSUPPORTED_CREATEELEMENT(Object arg0) { - return localizer.localize(localizableSAX_2_DOM_NOTSUPPORTED_CREATEELEMENT(arg0)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new UtilMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableNULL_NAMESPACE_FOUND(Object arg0) { - return messageFactory.getMessage("null.namespace.found", arg0); + return MESSAGE_FACTORY.getMessage("null.namespace.found", arg0); } /** @@ -68,11 +52,11 @@ public final class UtilMessages { * */ public static String NULL_NAMESPACE_FOUND(Object arg0) { - return localizer.localize(localizableNULL_NAMESPACE_FOUND(arg0)); + return LOCALIZER.localize(localizableNULL_NAMESPACE_FOUND(arg0)); } public static Localizable localizableHOLDER_VALUEFIELD_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("holder.valuefield.not.found", arg0); + return MESSAGE_FACTORY.getMessage("holder.valuefield.not.found", arg0); } /** @@ -80,7 +64,30 @@ public final class UtilMessages { * */ public static String HOLDER_VALUEFIELD_NOT_FOUND(Object arg0) { - return localizer.localize(localizableHOLDER_VALUEFIELD_NOT_FOUND(arg0)); + return LOCALIZER.localize(localizableHOLDER_VALUEFIELD_NOT_FOUND(arg0)); + } + + public static Localizable localizableSAX_2_DOM_NOTSUPPORTED_CREATEELEMENT(Object arg0) { + return MESSAGE_FACTORY.getMessage("sax2dom.notsupported.createelement", arg0); + } + + /** + * SAX2DOMEx.DomImplDoesntSupportCreateElementNs: {0} + * + */ + public static String SAX_2_DOM_NOTSUPPORTED_CREATEELEMENT(Object arg0) { + return LOCALIZER.localize(localizableSAX_2_DOM_NOTSUPPORTED_CREATEELEMENT(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WebserviceapMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WebserviceapMessages.java index b4918e43d9a..edb724e4cb4 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WebserviceapMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WebserviceapMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,12 +25,12 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -38,353 +38,13 @@ import java.util.ResourceBundle; * */ public final class WebserviceapMessages { + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.webserviceap"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, WebserviceapMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); - - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableWEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.endpointinterfaces.do.not.match", arg0, arg1); - } - - /** - * The endpoint interface {0} does not match the interface {1}. - * - */ - public static String WEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_INVALID_WEBMETHOD_ELEMENT_WITH_EXCLUDE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.invalid.webmethod.element.with.exclude", arg0, arg1, arg2); - } - - /** - * The @javax.jws.WebMethod.{0} element cannot be specified with the @javax.jws.WebMethod.exclude element. Class: {1} method: {2} - * - */ - public static String WEBSERVICEAP_INVALID_WEBMETHOD_ELEMENT_WITH_EXCLUDE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_INVALID_WEBMETHOD_ELEMENT_WITH_EXCLUDE(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_SEI_CANNOT_CONTAIN_CONSTANT_VALUES(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.sei.cannot.contain.constant.values", arg0, arg1); - } - - /** - * A service endpoint interface cannot contain constant declaration: Interface: {0} field: {1}. - * - */ - public static String WEBSERVICEAP_SEI_CANNOT_CONTAIN_CONSTANT_VALUES(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_SEI_CANNOT_CONTAIN_CONSTANT_VALUES(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.invalid.soapbinding.parameterstyle", arg0, arg1); - } - - /** - * Incorrect usage of Annotation {0} on {1}, ParameterStyle can only be WRAPPED with RPC Style Web service. - * - */ - public static String WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_RPC_LITERAL_PARAMETERS_MUST_HAVE_WEBPARAM(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.rpc.literal.parameters.must.have.webparam", arg0, arg1, arg2); - } - - /** - * All RPC literal parameters must have a WebParam annotation. Class: {0} method: {1} parameter {2} - * - */ - public static String WEBSERVICEAP_RPC_LITERAL_PARAMETERS_MUST_HAVE_WEBPARAM(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_RPC_LITERAL_PARAMETERS_MUST_HAVE_WEBPARAM(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_METHOD_EXCEPTION_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.method.exception.bean.name.not.unique", arg0, arg1); - } - - /** - * Exception bean names must be unique and must not clash with other generated classes. Class: {0} exception {1} - * - */ - public static String WEBSERVICEAP_METHOD_EXCEPTION_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_METHOD_EXCEPTION_BEAN_NAME_NOT_UNIQUE(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_WEBSERVICE_AND_WEBSERVICEPROVIDER(Object arg0) { - return messageFactory.getMessage("webserviceap.webservice.and.webserviceprovider", arg0); - } - - /** - * Classes cannot be annotated with both @javax.jws.WebService and @javax.xml.ws.WebServiceProvider. Class: {0} - * - */ - public static String WEBSERVICEAP_WEBSERVICE_AND_WEBSERVICEPROVIDER(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_WEBSERVICE_AND_WEBSERVICEPROVIDER(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_WEBSERVICE_NO_DEFAULT_CONSTRUCTOR(Object arg0) { - return messageFactory.getMessage("webserviceap.webservice.no.default.constructor", arg0); - } - - /** - * Classes annotated with @javax.jws.WebService must have a public default constructor. Class: {0} - * - */ - public static String WEBSERVICEAP_WEBSERVICE_NO_DEFAULT_CONSTRUCTOR(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_WEBSERVICE_NO_DEFAULT_CONSTRUCTOR(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_DOC_BARE_NO_OUT(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.doc.bare.no.out", arg0, arg1); - } - - /** - * Document/literal bare methods with no return type or OUT/INOUT parameters must be annotated as @Oneway. Class: {0}, method: {1} - * - */ - public static String WEBSERVICEAP_DOC_BARE_NO_OUT(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_DOC_BARE_NO_OUT(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_FAILED_TO_PARSE_HANDLERCHAIN_FILE(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.failed.to.parse.handlerchain.file", arg0, arg1); - } - - /** - * Failed to parse HandlerChain file. Class: {0}, file: {1} - * - */ - public static String WEBSERVICEAP_FAILED_TO_PARSE_HANDLERCHAIN_FILE(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_FAILED_TO_PARSE_HANDLERCHAIN_FILE(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_JAVA_TYPE_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("webserviceap.java.typeNotFound", arg0); - } - - /** - * The type: {0} was not found in the mapping - * - */ - public static String WEBSERVICEAP_JAVA_TYPE_NOT_FOUND(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_JAVA_TYPE_NOT_FOUND(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.oneway.operation.cannot.declare.exceptions", arg0, arg1, arg2); - } - - /** - * The method {1} of class {0} is annotated @Oneway but declares the exception {2} - * - */ - public static String WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_WEBSERVICE_METHOD_IS_STATIC_OR_FINAL(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.webservice.method.is.static.or.final", arg0, arg1); - } - - /** - * Method annotated with @javax.jws.WebMethod must not be static or final. Class: {0} Method: {1} - * - */ - public static String WEBSERVICEAP_WEBSERVICE_METHOD_IS_STATIC_OR_FINAL(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_WEBSERVICE_METHOD_IS_STATIC_OR_FINAL(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.oneway.operation.cannot.have.return.type", arg0, arg1); - } - - /** - * The method {1} of class {0} is annotated @Oneway but has a return type. - * - */ - public static String WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_WARNING(Object arg0) { - return messageFactory.getMessage("webserviceap.warning", arg0); - } - - /** - * warning: {0} - * - */ - public static String WEBSERVICEAP_WARNING(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_WARNING(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_METHOD_RESPONSE_WRAPPER_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.method.response.wrapper.bean.name.not.unique", arg0, arg1); - } - - /** - * Response wrapper bean names must be unique and must not clash with other generated classes. Class: {0} method {1} - * - */ - public static String WEBSERVICEAP_METHOD_RESPONSE_WRAPPER_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_METHOD_RESPONSE_WRAPPER_BEAN_NAME_NOT_UNIQUE(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.endpointinterface.on.interface", arg0, arg1); - } - - /** - * Service endpoint interface: {0} cannot have a WebService.endpointInterface annotation: {1} - * - */ - public static String WEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_ONEWAY_AND_OUT(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.oneway.and.out", arg0, arg1); - } - - /** - * @Oneway methods cannot have out parameters. Class: {0} method {1} - * - */ - public static String WEBSERVICEAP_ONEWAY_AND_OUT(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_ONEWAY_AND_OUT(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_RPC_LITERAL_WEBPARAMS_MUST_SPECIFY_NAME(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.rpc.literal.webparams.must.specify.name", arg0, arg1, arg2); - } - - /** - * All RPC literal WebParams must specify a name. Class: {0} method {1} parameter {2} - * - */ - public static String WEBSERVICEAP_RPC_LITERAL_WEBPARAMS_MUST_SPECIFY_NAME(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_RPC_LITERAL_WEBPARAMS_MUST_SPECIFY_NAME(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.invalid.sei.annotation.element.exclude", arg0, arg1, arg2); - } - - /** - * The @javax.jws.WebMethod({0}) cannot be used on a service endpoint interface. Class: {1} method: {2} - * - */ - public static String WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_CLASS_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("webserviceap.class.not.found", arg0); - } - - /** - * Class Not Found: {0} - * - */ - public static String WEBSERVICEAP_CLASS_NOT_FOUND(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_CLASS_NOT_FOUND(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT(Object arg0) { - return messageFactory.getMessage("webserviceap.endpointinteface.plus.element", arg0); - } - - /** - * The @javax.jws.WebService.{0} element cannot be used in with @javax.jws.WebService.endpointInterface element. - * - */ - public static String WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_CANNOT_COMBINE_HANDLERCHAIN_SOAPMESSAGEHANDLERS() { - return messageFactory.getMessage("webserviceap.cannot.combine.handlerchain.soapmessagehandlers"); - } - - /** - * You cannot specify both HanlderChain and SOAPMessageHandlers annotations - * - */ - public static String WEBSERVICEAP_CANNOT_COMBINE_HANDLERCHAIN_SOAPMESSAGEHANDLERS() { - return localizer.localize(localizableWEBSERVICEAP_CANNOT_COMBINE_HANDLERCHAIN_SOAPMESSAGEHANDLERS()); - } - - public static Localizable localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_INNERCLASS_NOT_STATIC(Object arg0) { - return messageFactory.getMessage("webserviceap.webservice.class.is.innerclass.not.static", arg0); - } - - /** - * Inner classes annotated with @javax.jws.WebService must be static. Class: {0} - * - */ - public static String WEBSERVICEAP_WEBSERVICE_CLASS_IS_INNERCLASS_NOT_STATIC(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_INNERCLASS_NOT_STATIC(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_NON_IN_PARAMETERS_MUST_BE_HOLDER(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.non.in.parameters.must.be.holder", arg0, arg1, arg2); - } - - /** - * Class: {0}, method: {1}, parameter: {2} is not WebParam.Mode.IN and is not of type javax.xml.ws.Holder. - * - */ - public static String WEBSERVICEAP_NON_IN_PARAMETERS_MUST_BE_HOLDER(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_NON_IN_PARAMETERS_MUST_BE_HOLDER(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.invalid.sei.annotation.element", arg0, arg1); - } - - /** - * The @javax.jws.WebService.{0} element cannot be specified on a service endpoint interface. Class: {1} - * - */ - public static String WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_SUCCEEDED() { - return messageFactory.getMessage("webserviceap.succeeded"); - } - - /** - * Success - * - */ - public static String WEBSERVICEAP_SUCCEEDED() { - return localizer.localize(localizableWEBSERVICEAP_SUCCEEDED()); - } - - public static Localizable localizableWEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.doc.bare.and.no.one.in", arg0, arg1); - } - - /** - * Document literal bare methods must have one non-header, IN/INOUT parameter. Class: {0} Method: {1} - * - */ - public static String WEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(arg0, arg1)); - } + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new WebserviceapMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); public static Localizable localizableWEBSERVICEAP_WEBSERVICE_METHOD_IS_ABSTRACT(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.webservice.method.is.abstract", arg0, arg1); + return MESSAGE_FACTORY.getMessage("webserviceap.webservice.method.is.abstract", arg0, arg1); } /** @@ -392,107 +52,35 @@ public final class WebserviceapMessages { * */ public static String WEBSERVICEAP_WEBSERVICE_METHOD_IS_ABSTRACT(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_WEBSERVICE_METHOD_IS_ABSTRACT(arg0, arg1)); + return LOCALIZER.localize(localizableWEBSERVICEAP_WEBSERVICE_METHOD_IS_ABSTRACT(arg0, arg1)); } - public static Localizable localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_RETURN_NOT_UNIQUE(Object arg0, Object arg1, Object arg2, Object arg3) { - return messageFactory.getMessage("webserviceap.document.literal.bare.method.return.not.unique", arg0, arg1, arg2, arg3); + public static Localizable localizableWEBSERVICEAP_WEBSERVICE_AND_WEBSERVICEPROVIDER(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.webservice.and.webserviceprovider", arg0); } /** - * Document literal bare methods must have a unique result name return type combination. Class {0} method: {1}, result name: {2} return type: {3} + * Classes cannot be annotated with both @javax.jws.WebService and @javax.xml.ws.WebServiceProvider. Class: {0} * */ - public static String WEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_RETURN_NOT_UNIQUE(Object arg0, Object arg1, Object arg2, Object arg3) { - return localizer.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_RETURN_NOT_UNIQUE(arg0, arg1, arg2, arg3)); + public static String WEBSERVICEAP_WEBSERVICE_AND_WEBSERVICEPROVIDER(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_WEBSERVICE_AND_WEBSERVICEPROVIDER(arg0)); } - public static Localizable localizableWEBSERVICEAP_NO_WEBSERVICE_ENDPOINT_FOUND() { - return messageFactory.getMessage("webserviceap.no.webservice.endpoint.found"); + public static Localizable localizableWEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.doc.bare.and.no.one.in", arg0, arg1); } /** - * A web service endpoint could not be found + * Document literal bare methods must have one non-header, IN/INOUT parameter. Class: {0} Method: {1} * */ - public static String WEBSERVICEAP_NO_WEBSERVICE_ENDPOINT_FOUND() { - return localizer.localize(localizableWEBSERVICEAP_NO_WEBSERVICE_ENDPOINT_FOUND()); - } - - public static Localizable localizableWEBSERVICEAP_FILE_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("webserviceap.fileNotFound", arg0); - } - - /** - * error: file not found: {0} - * - */ - public static String WEBSERVICEAP_FILE_NOT_FOUND(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_FILE_NOT_FOUND(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_INVALID_HANDLERCHAIN_FILE_NOHANDLER_CONFIG(Object arg0) { - return messageFactory.getMessage("webserviceap.invalid.handlerchain.file.nohandler-config", arg0); - } - - /** - * The handlerchain file {0} is invalid, it does not contain a handler-config element - * - */ - public static String WEBSERVICEAP_INVALID_HANDLERCHAIN_FILE_NOHANDLER_CONFIG(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_INVALID_HANDLERCHAIN_FILE_NOHANDLER_CONFIG(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_HEADER_PARAMETERS_MUST_HAVE_WEBPARAM_NAME(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.header.parameters.must.have.webparam.name", arg0, arg1, arg2); - } - - /** - * All WebParam annotations on header parameters must specify a name. Class: {0} method {1} parameter {2} - * - */ - public static String WEBSERVICEAP_HEADER_PARAMETERS_MUST_HAVE_WEBPARAM_NAME(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_HEADER_PARAMETERS_MUST_HAVE_WEBPARAM_NAME(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.method.return.type.cannot.implement.remote", arg0, arg1, arg2); - } - - /** - * Method return types cannot implement java.rmi.Remote. Class: {0} method: {1} return type: {2} - * - */ - public static String WEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION(Object arg0) { - return messageFactory.getMessage("webserviceap.endpointinteface.plus.annotation", arg0); - } - - /** - * The @{0} annotation cannot be used in with @javax.jws.WebService.endpointInterface element. - * - */ - public static String WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_HOLDER_PARAMETERS_MUST_NOT_BE_IN_ONLY(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.holder.parameters.must.not.be.in.only", arg0, arg1, arg2); - } - - /** - * javax.xml.ws.Holder parameters must not be annotated with the WebParam.Mode.IN property. Class: {0} method: {1} parameter: {2} - * - */ - public static String WEBSERVICEAP_HOLDER_PARAMETERS_MUST_NOT_BE_IN_ONLY(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_HOLDER_PARAMETERS_MUST_NOT_BE_IN_ONLY(arg0, arg1, arg2)); + public static String WEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(arg0, arg1)); } public static Localizable localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONLY_ONE_IN_PARAMETER(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.document.literal.bare.must.have.only.one.in.parameter", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("webserviceap.document.literal.bare.must.have.only.one.in.parameter", arg0, arg1, arg2); } /** @@ -500,407 +88,11 @@ public final class WebserviceapMessages { * */ public static String WEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONLY_ONE_IN_PARAMETER(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONLY_ONE_IN_PARAMETER(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.doc.bare.return.and.out", arg0, arg1); - } - - /** - * Document/literal bare methods cannot have a return type and out parameters. Class: {0}, method: {1} - * - */ - public static String WEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_METHOD_PARAMETER_TYPES_CANNOT_IMPLEMENT_REMOTE(Object arg0, Object arg1, Object arg2, Object arg3) { - return messageFactory.getMessage("webserviceap.method.parameter.types.cannot.implement.remote", arg0, arg1, arg2, arg3); - } - - /** - * Method parameter types cannot implement java.rmi.Remote. Class: {0} method: {1} parameter: {2} type: {3} - * - */ - public static String WEBSERVICEAP_METHOD_PARAMETER_TYPES_CANNOT_IMPLEMENT_REMOTE(Object arg0, Object arg1, Object arg2, Object arg3) { - return localizer.localize(localizableWEBSERVICEAP_METHOD_PARAMETER_TYPES_CANNOT_IMPLEMENT_REMOTE(arg0, arg1, arg2, arg3)); - } - - public static Localizable localizableWEBSERVICEAP_COMPILATION_FAILED() { - return messageFactory.getMessage("webserviceap.compilationFailed"); - } - - /** - * compilation failed, errors should have been reported - * - */ - public static String WEBSERVICEAP_COMPILATION_FAILED() { - return localizer.localize(localizableWEBSERVICEAP_COMPILATION_FAILED()); - } - - public static Localizable localizableWEBSERVICEAP_MODEL_ALREADY_EXISTS() { - return messageFactory.getMessage("webserviceap.model.already.exists"); - } - - /** - * model already exists - * - */ - public static String WEBSERVICEAP_MODEL_ALREADY_EXISTS() { - return localizer.localize(localizableWEBSERVICEAP_MODEL_ALREADY_EXISTS()); - } - - public static Localizable localizableWEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.could.not.find.typedecl", arg0, arg1); - } - - /** - * Could not get TypeElement for: {0} in annotation processing round: {1} - * - */ - public static String WEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_WEBSERVICE_CLASS_NOT_PUBLIC(Object arg0) { - return messageFactory.getMessage("webserviceap.webservice.class.not.public", arg0); - } - - /** - * Classes annotated with @javax.jws.WebService must be public. Class: {0} - * - */ - public static String WEBSERVICEAP_WEBSERVICE_CLASS_NOT_PUBLIC(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_WEBSERVICE_CLASS_NOT_PUBLIC(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_NOT_UNIQUE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.document.literal.bare.method.not.unique", arg0, arg1, arg2); - } - - /** - * Document literal bare methods must have unique parameter names. Class: {0} method: {1} parameter name: {2} - * - */ - public static String WEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_NOT_UNIQUE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_NOT_UNIQUE(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.rpc.soapbinding.not.allowed.on.method", arg0, arg1); - } - - /** - * SOAPBinding.Style.RPC binding annotations are not allowed on methods. Class: {0} Method: {1} - * - */ - public static String WEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_NO_PACKAGE_CLASS_MUST_HAVE_TARGETNAMESPACE(Object arg0) { - return messageFactory.getMessage("webserviceap.no.package.class.must.have.targetnamespace", arg0); - } - - /** - * @javax.jws.Webservice annotated classes that do not belong to a package must have the @javax.jws.Webservice.targetNamespace element. Class: {0} - * - */ - public static String WEBSERVICEAP_NO_PACKAGE_CLASS_MUST_HAVE_TARGETNAMESPACE(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_NO_PACKAGE_CLASS_MUST_HAVE_TARGETNAMESPACE(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(Object arg0) { - return messageFactory.getMessage("webserviceap.endpointinterface.has.no.webservice.annotation", arg0); - } - - /** - * The endpoint interface {0} must have a WebService annotation - * - */ - public static String WEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_INFO(Object arg0) { - return messageFactory.getMessage("webserviceap.info", arg0); - } - - /** - * info: {0} - * - */ - public static String WEBSERVICEAP_INFO(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_INFO(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE(Object arg0) { - return messageFactory.getMessage("webserviceap.rpc.literal.must.not.be.bare", arg0); - } - - /** - * RPC literal SOAPBindings must have parameterStyle WRAPPED. Class: {0}. - * - */ - public static String WEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_COULD_NOT_FIND_HANDLERCHAIN(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.could.not.find.handlerchain", arg0, arg1); - } - - /** - * Could not find the handlerchain {0} in the handler file {1} - * - */ - public static String WEBSERVICEAP_COULD_NOT_FIND_HANDLERCHAIN(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_COULD_NOT_FIND_HANDLERCHAIN(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_RPC_ENCODED_NOT_SUPPORTED(Object arg0) { - return messageFactory.getMessage("webserviceap.rpc.encoded.not.supported", arg0); - } - - /** - * The class {0} has a rpc/encoded SOAPBinding. Rpc/encoded SOAPBindings are not supported in JAXWS 2.0. - * - */ - public static String WEBSERVICEAP_RPC_ENCODED_NOT_SUPPORTED(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_RPC_ENCODED_NOT_SUPPORTED(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_ERROR(Object arg0) { - return messageFactory.getMessage("webserviceap.error", arg0); - } - - /** - * error: {0} - * - */ - public static String WEBSERVICEAP_ERROR(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_ERROR(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_ENDPOINTINTERFACE_CLASS_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("webserviceap.endpointinterface.class.not.found", arg0); - } - - /** - * The endpointInterface class {0} could not be found - * - */ - public static String WEBSERVICEAP_ENDPOINTINTERFACE_CLASS_NOT_FOUND(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_ENDPOINTINTERFACE_CLASS_NOT_FOUND(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_METHOD_NOT_IMPLEMENTED(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.method.not.implemented", arg0, arg1, arg2); - } - - /** - * Methods in an endpointInterface must be implemented in the implementation class. Interface Class:{0} Implementation Class:{1} Method: {2} - * - */ - public static String WEBSERVICEAP_METHOD_NOT_IMPLEMENTED(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_METHOD_NOT_IMPLEMENTED(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_PARSING_JAVAC_OPTIONS_ERROR() { - return messageFactory.getMessage("webserviceap.parsing.javac.options.error"); - } - - /** - * Can't get javac options from processingEnv. - * - */ - public static String WEBSERVICEAP_PARSING_JAVAC_OPTIONS_ERROR() { - return localizer.localize(localizableWEBSERVICEAP_PARSING_JAVAC_OPTIONS_ERROR()); - } - - public static Localizable localizableWEBSERVICE_ENCODED_NOT_SUPPORTED(Object arg0, Object arg1) { - return messageFactory.getMessage("webservice.encoded.not.supported", arg0, arg1); - } - - /** - * The {0} class has invalid SOAPBinding annotation. {1}/encoded SOAPBinding is not supported - * - */ - public static String WEBSERVICE_ENCODED_NOT_SUPPORTED(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICE_ENCODED_NOT_SUPPORTED(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_HANDLERCLASS_NOTSPECIFIED(Object arg0) { - return messageFactory.getMessage("webserviceap.handlerclass.notspecified", arg0); - } - - /** - * A handler in the HandlerChain file: {0} does not specify a handler-class - * - */ - public static String WEBSERVICEAP_HANDLERCLASS_NOTSPECIFIED(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_HANDLERCLASS_NOTSPECIFIED(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_FAILED_TO_FIND_HANDLERCHAIN_FILE(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.failed.to.find.handlerchain.file", arg0, arg1); - } - - /** - * Cannot find HandlerChain file. class: {0}, file: {1} - * - */ - public static String WEBSERVICEAP_FAILED_TO_FIND_HANDLERCHAIN_FILE(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_FAILED_TO_FIND_HANDLERCHAIN_FILE(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.doc.bare.no.return.and.no.out", arg0, arg1); - } - - /** - * Document literal bare methods that do not have a return value must have a single OUT/INOUT parameter. Class: {0} Method: {1} - * - */ - public static String WEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_ABSTRACT(Object arg0) { - return messageFactory.getMessage("webserviceap.webservice.class.is.abstract", arg0); - } - - /** - * Classes annotated with @javax.jws.WebService must not be abstract. Class: {0} - * - */ - public static String WEBSERVICEAP_WEBSERVICE_CLASS_IS_ABSTRACT(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_ABSTRACT(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_INIT_PARAM_FORMAT_ERROR() { - return messageFactory.getMessage("webserviceap.init_param.format.error"); - } - - /** - * a element must have exactly 1 and 1 - * - */ - public static String WEBSERVICEAP_INIT_PARAM_FORMAT_ERROR() { - return localizer.localize(localizableWEBSERVICEAP_INIT_PARAM_FORMAT_ERROR()); - } - - public static Localizable localizableWEBSERVICEAP_MIXED_BINDING_STYLE(Object arg0) { - return messageFactory.getMessage("webserviceap.mixed.binding.style", arg0); - } - - /** - * Class: {0} contains mixed bindings. SOAPBinding.Style.RPC and SOAPBinding.Style.DOCUMENT cannot be mixed. - * - */ - public static String WEBSERVICEAP_MIXED_BINDING_STYLE(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_MIXED_BINDING_STYLE(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_METHOD_NOT_ANNOTATED(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.method.not.annotated", arg0, arg1); - } - - /** - * The method {0} on class {1} is not annotated. - * - */ - public static String WEBSERVICEAP_METHOD_NOT_ANNOTATED(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_METHOD_NOT_ANNOTATED(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_HOLDERS(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.oneway.operation.cannot.have.holders", arg0, arg1); - } - - /** - * The method {1} of class {0} is annotated @Oneway but contains INOUT or OUT parameters (javax.xml.ws.Holder) - * - */ - public static String WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_HOLDERS(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_HOLDERS(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_CANNOT_HAVE_MORE_THAN_ONE_OUT(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.document.literal.bare.cannot.have.more.than.one.out", arg0, arg1); - } - - /** - * Document literal bare methods must have a return value or one out parameter. Class: {0} Method: {1} - * - */ - public static String WEBSERVICEAP_DOCUMENT_LITERAL_BARE_CANNOT_HAVE_MORE_THAN_ONE_OUT(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_CANNOT_HAVE_MORE_THAN_ONE_OUT(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.invalid.sei.annotation", arg0, arg1); - } - - /** - * The @{0} annotation cannot be used on a service endpoint interface. Class: {1} - * - */ - public static String WEBSERVICEAP_INVALID_SEI_ANNOTATION(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_OPERATION_NAME_NOT_UNIQUE(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.operation.name.not.unique", arg0, arg1, arg2); - } - - /** - * Operation names must be unique. Class: {0} method: {1} operation name: {2} - * - */ - public static String WEBSERVICEAP_OPERATION_NAME_NOT_UNIQUE(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_OPERATION_NAME_NOT_UNIQUE(arg0, arg1, arg2)); - } - - public static Localizable localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_FINAL(Object arg0) { - return messageFactory.getMessage("webserviceap.webservice.class.is.final", arg0); - } - - /** - * Classes annotated with @javax.jws.WebService must not be final. Class: {0} - * - */ - public static String WEBSERVICEAP_WEBSERVICE_CLASS_IS_FINAL(Object arg0) { - return localizer.localize(localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_FINAL(arg0)); - } - - public static Localizable localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONE_IN_OR_OUT(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.document.literal.bare.must.have.one.in.or.out", arg0, arg1); - } - - /** - * Document literal bare methods must have at least one of: a return, an in parameter or an out parameter. Class: {0} Method: {1} - * - */ - public static String WEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONE_IN_OR_OUT(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONE_IN_OR_OUT(arg0, arg1)); - } - - public static Localizable localizableWEBSERVICEAP_METHOD_REQUEST_WRAPPER_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.method.request.wrapper.bean.name.not.unique", arg0, arg1); - } - - /** - * Request wrapper bean names must be unique and must not clash with other generated classes. Class: {0} method {1} - * - */ - public static String WEBSERVICEAP_METHOD_REQUEST_WRAPPER_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_METHOD_REQUEST_WRAPPER_BEAN_NAME_NOT_UNIQUE(arg0, arg1)); + return LOCALIZER.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONLY_ONE_IN_PARAMETER(arg0, arg1, arg2)); } public static Localizable localizableWEBSERVICEAP_DOCUMENT_BARE_HOLDER_PARAMETERS_MUST_NOT_BE_INOUT(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("webserviceap.document.bare.holder.parameters.must.not.be.inout", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("webserviceap.document.bare.holder.parameters.must.not.be.inout", arg0, arg1, arg2); } /** @@ -908,11 +100,215 @@ public final class WebserviceapMessages { * */ public static String WEBSERVICEAP_DOCUMENT_BARE_HOLDER_PARAMETERS_MUST_NOT_BE_INOUT(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWEBSERVICEAP_DOCUMENT_BARE_HOLDER_PARAMETERS_MUST_NOT_BE_INOUT(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWEBSERVICEAP_DOCUMENT_BARE_HOLDER_PARAMETERS_MUST_NOT_BE_INOUT(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.doc.bare.return.and.out", arg0, arg1); + } + + /** + * Document/literal bare methods cannot have a return type and out parameters. Class: {0}, method: {1} + * + */ + public static String WEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_COMPILATION_FAILED() { + return MESSAGE_FACTORY.getMessage("webserviceap.compilationFailed"); + } + + /** + * compilation failed, errors should have been reported + * + */ + public static String WEBSERVICEAP_COMPILATION_FAILED() { + return LOCALIZER.localize(localizableWEBSERVICEAP_COMPILATION_FAILED()); + } + + public static Localizable localizableWEBSERVICEAP_MIXED_BINDING_STYLE(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.mixed.binding.style", arg0); + } + + /** + * Class: {0} contains mixed bindings. SOAPBinding.Style.RPC and SOAPBinding.Style.DOCUMENT cannot be mixed. + * + */ + public static String WEBSERVICEAP_MIXED_BINDING_STYLE(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_MIXED_BINDING_STYLE(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.endpointinterface.on.interface", arg0, arg1); + } + + /** + * Service endpoint interface: {0} cannot have a WebService.endpointInterface annotation: {1} + * + */ + public static String WEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_NO_PACKAGE_CLASS_MUST_HAVE_TARGETNAMESPACE(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.no.package.class.must.have.targetnamespace", arg0); + } + + /** + * @javax.jws.Webservice annotated classes that do not belong to a package must have the @javax.jws.Webservice.targetNamespace element. Class: {0} + * + */ + public static String WEBSERVICEAP_NO_PACKAGE_CLASS_MUST_HAVE_TARGETNAMESPACE(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_NO_PACKAGE_CLASS_MUST_HAVE_TARGETNAMESPACE(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_SUCCEEDED() { + return MESSAGE_FACTORY.getMessage("webserviceap.succeeded"); + } + + /** + * Success + * + */ + public static String WEBSERVICEAP_SUCCEEDED() { + return LOCALIZER.localize(localizableWEBSERVICEAP_SUCCEEDED()); + } + + public static Localizable localizableWEBSERVICEAP_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.error", arg0); + } + + /** + * error: {0} + * + */ + public static String WEBSERVICEAP_ERROR(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ERROR(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_COULD_NOT_FIND_HANDLERCHAIN(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.could.not.find.handlerchain", arg0, arg1); + } + + /** + * Could not find the handlerchain {0} in the handler file {1} + * + */ + public static String WEBSERVICEAP_COULD_NOT_FIND_HANDLERCHAIN(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_COULD_NOT_FIND_HANDLERCHAIN(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_ENDPOINTINTERFACE_CLASS_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.endpointinterface.class.not.found", arg0); + } + + /** + * The endpointInterface class {0} could not be found + * + */ + public static String WEBSERVICEAP_ENDPOINTINTERFACE_CLASS_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ENDPOINTINTERFACE_CLASS_NOT_FOUND(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.method.return.type.cannot.implement.remote", arg0, arg1, arg2); + } + + /** + * Method return types cannot implement java.rmi.Remote. Class: {0} method: {1} return type: {2} + * + */ + public static String WEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_WEBSERVICE_METHOD_IS_STATIC_OR_FINAL(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.webservice.method.is.static.or.final", arg0, arg1); + } + + /** + * Method annotated with @javax.jws.WebMethod must not be static or final. Class: {0} Method: {1} + * + */ + public static String WEBSERVICEAP_WEBSERVICE_METHOD_IS_STATIC_OR_FINAL(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_WEBSERVICE_METHOD_IS_STATIC_OR_FINAL(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.invalid.sei.annotation", arg0, arg1); + } + + /** + * The @{0} annotation cannot be used on a service endpoint interface. Class: {1} + * + */ + public static String WEBSERVICEAP_INVALID_SEI_ANNOTATION(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_WEBSERVICE_NO_DEFAULT_CONSTRUCTOR(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.webservice.no.default.constructor", arg0); + } + + /** + * Classes annotated with @javax.jws.WebService must have a public default constructor. Class: {0} + * + */ + public static String WEBSERVICEAP_WEBSERVICE_NO_DEFAULT_CONSTRUCTOR(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_WEBSERVICE_NO_DEFAULT_CONSTRUCTOR(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.doc.bare.no.return.and.no.out", arg0, arg1); + } + + /** + * Document literal bare methods that do not have a return value must have a single OUT/INOUT parameter. Class: {0} Method: {1} + * + */ + public static String WEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_METHOD_EXCEPTION_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.method.exception.bean.name.not.unique", arg0, arg1); + } + + /** + * Exception bean names must be unique and must not clash with other generated classes. Class: {0} exception {1} + * + */ + public static String WEBSERVICEAP_METHOD_EXCEPTION_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_METHOD_EXCEPTION_BEAN_NAME_NOT_UNIQUE(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_DOC_BARE_NO_OUT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.doc.bare.no.out", arg0, arg1); + } + + /** + * Document/literal bare methods with no return type or OUT/INOUT parameters must be annotated as @Oneway. Class: {0}, method: {1} + * + */ + public static String WEBSERVICEAP_DOC_BARE_NO_OUT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_DOC_BARE_NO_OUT(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_FAILED_TO_FIND_HANDLERCHAIN_FILE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.failed.to.find.handlerchain.file", arg0, arg1); + } + + /** + * Cannot find HandlerChain file. class: {0}, file: {1} + * + */ + public static String WEBSERVICEAP_FAILED_TO_FIND_HANDLERCHAIN_FILE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_FAILED_TO_FIND_HANDLERCHAIN_FILE(arg0, arg1)); } public static Localizable localizableWEBSERVICEAP_ONEWAY_AND_NOT_ONE_IN(Object arg0, Object arg1) { - return messageFactory.getMessage("webserviceap.oneway.and.not.one.in", arg0, arg1); + return MESSAGE_FACTORY.getMessage("webserviceap.oneway.and.not.one.in", arg0, arg1); } /** @@ -920,7 +316,618 @@ public final class WebserviceapMessages { * */ public static String WEBSERVICEAP_ONEWAY_AND_NOT_ONE_IN(Object arg0, Object arg1) { - return localizer.localize(localizableWEBSERVICEAP_ONEWAY_AND_NOT_ONE_IN(arg0, arg1)); + return LOCALIZER.localize(localizableWEBSERVICEAP_ONEWAY_AND_NOT_ONE_IN(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_CLASS_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.class.not.found", arg0); + } + + /** + * Class Not Found: {0} + * + */ + public static String WEBSERVICEAP_CLASS_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_CLASS_NOT_FOUND(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_METHOD_PARAMETER_TYPES_CANNOT_IMPLEMENT_REMOTE(Object arg0, Object arg1, Object arg2, Object arg3) { + return MESSAGE_FACTORY.getMessage("webserviceap.method.parameter.types.cannot.implement.remote", arg0, arg1, arg2, arg3); + } + + /** + * Method parameter types cannot implement java.rmi.Remote. Class: {0} method: {1} parameter: {2} type: {3} + * + */ + public static String WEBSERVICEAP_METHOD_PARAMETER_TYPES_CANNOT_IMPLEMENT_REMOTE(Object arg0, Object arg1, Object arg2, Object arg3) { + return LOCALIZER.localize(localizableWEBSERVICEAP_METHOD_PARAMETER_TYPES_CANNOT_IMPLEMENT_REMOTE(arg0, arg1, arg2, arg3)); + } + + public static Localizable localizableWEBSERVICEAP_NON_IN_PARAMETERS_MUST_BE_HOLDER(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.non.in.parameters.must.be.holder", arg0, arg1, arg2); + } + + /** + * Class: {0}, method: {1}, parameter: {2} is not WebParam.Mode.IN and is not of type javax.xml.ws.Holder. + * + */ + public static String WEBSERVICEAP_NON_IN_PARAMETERS_MUST_BE_HOLDER(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_NON_IN_PARAMETERS_MUST_BE_HOLDER(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_INIT_PARAM_FORMAT_ERROR() { + return MESSAGE_FACTORY.getMessage("webserviceap.init_param.format.error"); + } + + /** + * a element must have exactly 1 and 1 + * + */ + public static String WEBSERVICEAP_INIT_PARAM_FORMAT_ERROR() { + return LOCALIZER.localize(localizableWEBSERVICEAP_INIT_PARAM_FORMAT_ERROR()); + } + + public static Localizable localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONE_IN_OR_OUT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.document.literal.bare.must.have.one.in.or.out", arg0, arg1); + } + + /** + * Document literal bare methods must have at least one of: a return, an in parameter or an out parameter. Class: {0} Method: {1} + * + */ + public static String WEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONE_IN_OR_OUT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_MUST_HAVE_ONE_IN_OR_OUT(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_HOLDERS(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.oneway.operation.cannot.have.holders", arg0, arg1); + } + + /** + * The method {1} of class {0} is annotated @Oneway but contains INOUT or OUT parameters (javax.xml.ws.Holder) + * + */ + public static String WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_HOLDERS(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_HOLDERS(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.endpointinteface.plus.element", arg0); + } + + /** + * The @javax.jws.WebService.{0} element cannot be used in with @javax.jws.WebService.endpointInterface element. + * + */ + public static String WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.invalid.sei.annotation.element", arg0, arg1); + } + + /** + * The @javax.jws.WebService.{0} element cannot be specified on a service endpoint interface. Class: {1} + * + */ + public static String WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_HEADER_PARAMETERS_MUST_HAVE_WEBPARAM_NAME(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.header.parameters.must.have.webparam.name", arg0, arg1, arg2); + } + + /** + * All WebParam annotations on header parameters must specify a name. Class: {0} method {1} parameter {2} + * + */ + public static String WEBSERVICEAP_HEADER_PARAMETERS_MUST_HAVE_WEBPARAM_NAME(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_HEADER_PARAMETERS_MUST_HAVE_WEBPARAM_NAME(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_FILE_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.fileNotFound", arg0); + } + + /** + * error: file not found: {0} + * + */ + public static String WEBSERVICEAP_FILE_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_FILE_NOT_FOUND(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_METHOD_NOT_ANNOTATED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.method.not.annotated", arg0, arg1); + } + + /** + * The method {0} on class {1} is not annotated. + * + */ + public static String WEBSERVICEAP_METHOD_NOT_ANNOTATED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_METHOD_NOT_ANNOTATED(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.endpointinterface.has.no.webservice.annotation", arg0); + } + + /** + * The endpoint interface {0} must have a WebService annotation + * + */ + public static String WEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_RPC_LITERAL_WEBPARAMS_MUST_SPECIFY_NAME(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.rpc.literal.webparams.must.specify.name", arg0, arg1, arg2); + } + + /** + * All RPC literal WebParams must specify a name. Class: {0} method {1} parameter {2} + * + */ + public static String WEBSERVICEAP_RPC_LITERAL_WEBPARAMS_MUST_SPECIFY_NAME(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_RPC_LITERAL_WEBPARAMS_MUST_SPECIFY_NAME(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_NOT_UNIQUE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.document.literal.bare.method.not.unique", arg0, arg1, arg2); + } + + /** + * Document literal bare methods must have unique parameter names. Class: {0} method: {1} parameter name: {2} + * + */ + public static String WEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_NOT_UNIQUE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_NOT_UNIQUE(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.rpc.literal.must.not.be.bare", arg0); + } + + /** + * RPC literal SOAPBindings must have parameterStyle WRAPPED. Class: {0}. + * + */ + public static String WEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_RPC_LITERAL_MUST_NOT_BE_BARE(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.oneway.operation.cannot.declare.exceptions", arg0, arg1, arg2); + } + + /** + * The method {1} of class {0} is annotated @Oneway but declares the exception {2} + * + */ + public static String WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_RETURN_NOT_UNIQUE(Object arg0, Object arg1, Object arg2, Object arg3) { + return MESSAGE_FACTORY.getMessage("webserviceap.document.literal.bare.method.return.not.unique", arg0, arg1, arg2, arg3); + } + + /** + * Document literal bare methods must have a unique result name return type combination. Class {0} method: {1}, result name: {2} return type: {3} + * + */ + public static String WEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_RETURN_NOT_UNIQUE(Object arg0, Object arg1, Object arg2, Object arg3) { + return LOCALIZER.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_METHOD_RETURN_NOT_UNIQUE(arg0, arg1, arg2, arg3)); + } + + public static Localizable localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.oneway.operation.cannot.have.return.type", arg0, arg1); + } + + /** + * The method {1} of class {0} is annotated @Oneway but has a return type. + * + */ + public static String WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_NO_WEBSERVICE_ENDPOINT_FOUND() { + return MESSAGE_FACTORY.getMessage("webserviceap.no.webservice.endpoint.found"); + } + + /** + * A web service endpoint could not be found + * + */ + public static String WEBSERVICEAP_NO_WEBSERVICE_ENDPOINT_FOUND() { + return LOCALIZER.localize(localizableWEBSERVICEAP_NO_WEBSERVICE_ENDPOINT_FOUND()); + } + + public static Localizable localizableWEBSERVICEAP_ONEWAY_AND_OUT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.oneway.and.out", arg0, arg1); + } + + /** + * @Oneway methods cannot have out parameters. Class: {0} method {1} + * + */ + public static String WEBSERVICEAP_ONEWAY_AND_OUT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ONEWAY_AND_OUT(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_CANNOT_COMBINE_HANDLERCHAIN_SOAPMESSAGEHANDLERS() { + return MESSAGE_FACTORY.getMessage("webserviceap.cannot.combine.handlerchain.soapmessagehandlers"); + } + + /** + * You cannot specify both HanlderChain and SOAPMessageHandlers annotations + * + */ + public static String WEBSERVICEAP_CANNOT_COMBINE_HANDLERCHAIN_SOAPMESSAGEHANDLERS() { + return LOCALIZER.localize(localizableWEBSERVICEAP_CANNOT_COMBINE_HANDLERCHAIN_SOAPMESSAGEHANDLERS()); + } + + public static Localizable localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_INNERCLASS_NOT_STATIC(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.webservice.class.is.innerclass.not.static", arg0); + } + + /** + * Inner classes annotated with @javax.jws.WebService must be static. Class: {0} + * + */ + public static String WEBSERVICEAP_WEBSERVICE_CLASS_IS_INNERCLASS_NOT_STATIC(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_INNERCLASS_NOT_STATIC(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_INFO(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.info", arg0); + } + + /** + * info: {0} + * + */ + public static String WEBSERVICEAP_INFO(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_INFO(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_JAVA_TYPE_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.java.typeNotFound", arg0); + } + + /** + * The type: {0} was not found in the mapping + * + */ + public static String WEBSERVICEAP_JAVA_TYPE_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_JAVA_TYPE_NOT_FOUND(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.rpc.soapbinding.not.allowed.on.method", arg0, arg1); + } + + /** + * SOAPBinding.Style.RPC binding annotations are not allowed on methods. Class: {0} Method: {1} + * + */ + public static String WEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.could.not.find.typedecl", arg0, arg1); + } + + /** + * Could not get TypeElement for: {0} in annotation processing round: {1} + * + */ + public static String WEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.endpointinterfaces.do.not.match", arg0, arg1); + } + + /** + * The endpoint interface {0} does not match the interface {1}. + * + */ + public static String WEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_METHOD_RESPONSE_WRAPPER_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.method.response.wrapper.bean.name.not.unique", arg0, arg1); + } + + /** + * Response wrapper bean names must be unique and must not clash with other generated classes. Class: {0} method {1} + * + */ + public static String WEBSERVICEAP_METHOD_RESPONSE_WRAPPER_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_METHOD_RESPONSE_WRAPPER_BEAN_NAME_NOT_UNIQUE(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_CANNOT_HAVE_MORE_THAN_ONE_OUT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.document.literal.bare.cannot.have.more.than.one.out", arg0, arg1); + } + + /** + * Document literal bare methods must have a return value or one out parameter. Class: {0} Method: {1} + * + */ + public static String WEBSERVICEAP_DOCUMENT_LITERAL_BARE_CANNOT_HAVE_MORE_THAN_ONE_OUT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_DOCUMENT_LITERAL_BARE_CANNOT_HAVE_MORE_THAN_ONE_OUT(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICE_ENCODED_NOT_SUPPORTED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webservice.encoded.not.supported", arg0, arg1); + } + + /** + * The {0} class has invalid SOAPBinding annotation. {1}/encoded SOAPBinding is not supported + * + */ + public static String WEBSERVICE_ENCODED_NOT_SUPPORTED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICE_ENCODED_NOT_SUPPORTED(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_OPERATION_NAME_NOT_UNIQUE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.operation.name.not.unique", arg0, arg1, arg2); + } + + /** + * Operation names must be unique. Class: {0} method: {1} operation name: {2} + * + */ + public static String WEBSERVICEAP_OPERATION_NAME_NOT_UNIQUE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_OPERATION_NAME_NOT_UNIQUE(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_INVALID_HANDLERCHAIN_FILE_NOHANDLER_CONFIG(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.invalid.handlerchain.file.nohandler-config", arg0); + } + + /** + * The handlerchain file {0} is invalid, it does not contain a handler-config element + * + */ + public static String WEBSERVICEAP_INVALID_HANDLERCHAIN_FILE_NOHANDLER_CONFIG(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_INVALID_HANDLERCHAIN_FILE_NOHANDLER_CONFIG(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_METHOD_REQUEST_WRAPPER_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.method.request.wrapper.bean.name.not.unique", arg0, arg1); + } + + /** + * Request wrapper bean names must be unique and must not clash with other generated classes. Class: {0} method {1} + * + */ + public static String WEBSERVICEAP_METHOD_REQUEST_WRAPPER_BEAN_NAME_NOT_UNIQUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_METHOD_REQUEST_WRAPPER_BEAN_NAME_NOT_UNIQUE(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_MODEL_ALREADY_EXISTS() { + return MESSAGE_FACTORY.getMessage("webserviceap.model.already.exists"); + } + + /** + * model already exists + * + */ + public static String WEBSERVICEAP_MODEL_ALREADY_EXISTS() { + return LOCALIZER.localize(localizableWEBSERVICEAP_MODEL_ALREADY_EXISTS()); + } + + public static Localizable localizableWEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.invalid.soapbinding.parameterstyle", arg0, arg1); + } + + /** + * Incorrect usage of Annotation {0} on {1}, ParameterStyle can only be WRAPPED with RPC Style Web service. + * + */ + public static String WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_RPC_LITERAL_PARAMETERS_MUST_HAVE_WEBPARAM(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.rpc.literal.parameters.must.have.webparam", arg0, arg1, arg2); + } + + /** + * All RPC literal parameters must have a WebParam annotation. Class: {0} method: {1} parameter {2} + * + */ + public static String WEBSERVICEAP_RPC_LITERAL_PARAMETERS_MUST_HAVE_WEBPARAM(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_RPC_LITERAL_PARAMETERS_MUST_HAVE_WEBPARAM(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_PARSING_JAVAC_OPTIONS_ERROR() { + return MESSAGE_FACTORY.getMessage("webserviceap.parsing.javac.options.error"); + } + + /** + * Can't get javac options from processingEnv. + * + */ + public static String WEBSERVICEAP_PARSING_JAVAC_OPTIONS_ERROR() { + return LOCALIZER.localize(localizableWEBSERVICEAP_PARSING_JAVAC_OPTIONS_ERROR()); + } + + public static Localizable localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_ABSTRACT(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.webservice.class.is.abstract", arg0); + } + + /** + * Classes annotated with @javax.jws.WebService must not be abstract. Class: {0} + * + */ + public static String WEBSERVICEAP_WEBSERVICE_CLASS_IS_ABSTRACT(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_ABSTRACT(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_METHOD_NOT_IMPLEMENTED(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.method.not.implemented", arg0, arg1, arg2); + } + + /** + * Methods in an endpointInterface must be implemented in the implementation class. Interface Class:{0} Implementation Class:{1} Method: {2} + * + */ + public static String WEBSERVICEAP_METHOD_NOT_IMPLEMENTED(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_METHOD_NOT_IMPLEMENTED(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.endpointinteface.plus.annotation", arg0); + } + + /** + * The @{0} annotation cannot be used in with @javax.jws.WebService.endpointInterface element. + * + */ + public static String WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_RPC_ENCODED_NOT_SUPPORTED(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.rpc.encoded.not.supported", arg0); + } + + /** + * The class {0} has a rpc/encoded SOAPBinding. Rpc/encoded SOAPBindings are not supported in JAXWS 2.0. + * + */ + public static String WEBSERVICEAP_RPC_ENCODED_NOT_SUPPORTED(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_RPC_ENCODED_NOT_SUPPORTED(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_SEI_CANNOT_CONTAIN_CONSTANT_VALUES(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.sei.cannot.contain.constant.values", arg0, arg1); + } + + /** + * A service endpoint interface cannot contain constant declaration: Interface: {0} field: {1}. + * + */ + public static String WEBSERVICEAP_SEI_CANNOT_CONTAIN_CONSTANT_VALUES(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_SEI_CANNOT_CONTAIN_CONSTANT_VALUES(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_HOLDER_PARAMETERS_MUST_NOT_BE_IN_ONLY(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.holder.parameters.must.not.be.in.only", arg0, arg1, arg2); + } + + /** + * javax.xml.ws.Holder parameters must not be annotated with the WebParam.Mode.IN property. Class: {0} method: {1} parameter: {2} + * + */ + public static String WEBSERVICEAP_HOLDER_PARAMETERS_MUST_NOT_BE_IN_ONLY(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_HOLDER_PARAMETERS_MUST_NOT_BE_IN_ONLY(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.invalid.sei.annotation.element.exclude", arg0, arg1, arg2); + } + + /** + * The @javax.jws.WebMethod({0}) cannot be used on a service endpoint interface. Class: {1} method: {2} + * + */ + public static String WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_WEBSERVICE_CLASS_NOT_PUBLIC(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.webservice.class.not.public", arg0); + } + + /** + * Classes annotated with @javax.jws.WebService must be public. Class: {0} + * + */ + public static String WEBSERVICEAP_WEBSERVICE_CLASS_NOT_PUBLIC(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_WEBSERVICE_CLASS_NOT_PUBLIC(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_FINAL(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.webservice.class.is.final", arg0); + } + + /** + * Classes annotated with @javax.jws.WebService must not be final. Class: {0} + * + */ + public static String WEBSERVICEAP_WEBSERVICE_CLASS_IS_FINAL(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_FINAL(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_INVALID_WEBMETHOD_ELEMENT_WITH_EXCLUDE(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("webserviceap.invalid.webmethod.element.with.exclude", arg0, arg1, arg2); + } + + /** + * The @javax.jws.WebMethod.{0} element cannot be specified with the @javax.jws.WebMethod.exclude element. Class: {1} method: {2} + * + */ + public static String WEBSERVICEAP_INVALID_WEBMETHOD_ELEMENT_WITH_EXCLUDE(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWEBSERVICEAP_INVALID_WEBMETHOD_ELEMENT_WITH_EXCLUDE(arg0, arg1, arg2)); + } + + public static Localizable localizableWEBSERVICEAP_WARNING(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.warning", arg0); + } + + /** + * warning: {0} + * + */ + public static String WEBSERVICEAP_WARNING(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_WARNING(arg0)); + } + + public static Localizable localizableWEBSERVICEAP_FAILED_TO_PARSE_HANDLERCHAIN_FILE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("webserviceap.failed.to.parse.handlerchain.file", arg0, arg1); + } + + /** + * Failed to parse HandlerChain file. Class: {0}, file: {1} + * + */ + public static String WEBSERVICEAP_FAILED_TO_PARSE_HANDLERCHAIN_FILE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWEBSERVICEAP_FAILED_TO_PARSE_HANDLERCHAIN_FILE(arg0, arg1)); + } + + public static Localizable localizableWEBSERVICEAP_HANDLERCLASS_NOTSPECIFIED(Object arg0) { + return MESSAGE_FACTORY.getMessage("webserviceap.handlerclass.notspecified", arg0); + } + + /** + * A handler in the HandlerChain file: {0} does not specify a handler-class + * + */ + public static String WEBSERVICEAP_HANDLERCLASS_NOTSPECIFIED(Object arg0) { + return LOCALIZER.localize(localizableWEBSERVICEAP_HANDLERCLASS_NOTSPECIFIED(arg0)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WscompileMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WscompileMessages.java index f186c7b8d19..35845d5fe9b 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WscompileMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WscompileMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,12 +25,12 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -38,247 +38,25 @@ import java.util.ResourceBundle; * */ public final class WscompileMessages { + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.wscompile"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, WscompileMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new WscompileMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizableWSIMPORT_ARCHIVING_ARTIFACTS(Object arg0) { - return messageFactory.getMessage("wsimport.archivingArtifacts", arg0); + public static Localizable localizableWSIMPORT_NOT_A_FILE_NOR_URL(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.NotAFileNorURL", arg0); } /** - * - * Archiving the generated artifacts into {0}. - * + * "{0}" is neither a file name nor an URL * */ - public static String WSIMPORT_ARCHIVING_ARTIFACTS(Object arg0) { - return localizer.localize(localizableWSIMPORT_ARCHIVING_ARTIFACTS(arg0)); - } - - public static Localizable localizableWSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(Object arg0) { - return messageFactory.getMessage("wsgen.class.must.be.implementation.class", arg0); - } - - /** - * The class "{0}" is not an endpoint implementation class. - * - */ - public static String WSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(Object arg0) { - return localizer.localize(localizableWSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(arg0)); - } - - public static Localizable localizableWSGEN_FULLVERSION(Object arg0) { - return messageFactory.getMessage("wsgen.fullversion", arg0); - } - - /** - * wsgen full version "{0}" - * - */ - public static String WSGEN_FULLVERSION(Object arg0) { - return localizer.localize(localizableWSGEN_FULLVERSION(arg0)); - } - - public static Localizable localizableWRAPPER_TASK_LOADING_INCORRECT_API(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wrapperTask.loadingIncorrectApi", arg0, arg1, arg2); - } - - /** - * You are loading JAX-WS {0} API from {1} but this tool requires JAX-WS {2} API. - * - */ - public static String WRAPPER_TASK_LOADING_INCORRECT_API(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWRAPPER_TASK_LOADING_INCORRECT_API(arg0, arg1, arg2)); - } - - public static Localizable localizableWSIMPORT_WSDLLOCATION_CLIENTJAR() { - return messageFactory.getMessage("wsimport.wsdllocation.clientjar"); - } - - /** - * wsdlLocation cannot be specified when using clientJar option - * - */ - public static String WSIMPORT_WSDLLOCATION_CLIENTJAR() { - return localizer.localize(localizableWSIMPORT_WSDLLOCATION_CLIENTJAR()); - } - - public static Localizable localizableWSIMPORT_VERSION(Object arg0) { - return messageFactory.getMessage("wsimport.version", arg0); - } - - /** - * wsimport version "{0}" - * - */ - public static String WSIMPORT_VERSION(Object arg0) { - return localizer.localize(localizableWSIMPORT_VERSION(arg0)); - } - - public static Localizable localizableWSGEN_CLASS_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("wsgen.class.not.found", arg0); - } - - /** - * Class not found: "{0}" - * - */ - public static String WSGEN_CLASS_NOT_FOUND(Object arg0) { - return localizer.localize(localizableWSGEN_CLASS_NOT_FOUND(arg0)); - } - - public static Localizable localizableWSIMPORT_HTTP_REDIRECT(Object arg0, Object arg1) { - return messageFactory.getMessage("wsimport.httpRedirect", arg0, arg1); - } - - /** - * Server returned HTTP Status code: "{0}", retrying with "{1}" - * - */ - public static String WSIMPORT_HTTP_REDIRECT(Object arg0, Object arg1) { - return localizer.localize(localizableWSIMPORT_HTTP_REDIRECT(arg0, arg1)); - } - - public static Localizable localizableWSIMPORT_AUTH_INFO_NEEDED(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsimport.authInfoNeeded", arg0, arg1, arg2); - } - - /** - * {0}, "{1}" needs authorization, please provide authorization file with read access at {2} or use -Xauthfile to give the authorization file and on each line provide authorization information using this format : http[s]://user:password@host:port// - * - */ - public static String WSIMPORT_AUTH_INFO_NEEDED(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSIMPORT_AUTH_INFO_NEEDED(arg0, arg1, arg2)); - } - - public static Localizable localizableWSGEN_USAGE_EXAMPLES() { - return messageFactory.getMessage("wsgen.usage.examples"); - } - - /** - * - * Examples: - * wsgen -cp . example.Stock - * wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService' - * - * - */ - public static String WSGEN_USAGE_EXAMPLES() { - return localizer.localize(localizableWSGEN_USAGE_EXAMPLES()); - } - - public static Localizable localizableWSIMPORT_FETCHING_METADATA() { - return messageFactory.getMessage("wsimport.fetchingMetadata"); - } - - /** - * - * Downloading the WSDL and associated metadata - * - * - */ - public static String WSIMPORT_FETCHING_METADATA() { - return localizer.localize(localizableWSIMPORT_FETCHING_METADATA()); - } - - public static Localizable localizableWSGEN_INVALID_PROTOCOL(Object arg0, Object arg1) { - return messageFactory.getMessage("wsgen.invalid.protocol", arg0, arg1); - } - - /** - * "{0}" is not a supported protocol. Supported protocols include: {1}. - * - */ - public static String WSGEN_INVALID_PROTOCOL(Object arg0, Object arg1) { - return localizer.localize(localizableWSGEN_INVALID_PROTOCOL(arg0, arg1)); - } - - public static Localizable localizableWSIMPORT_USAGE_EXAMPLES() { - return messageFactory.getMessage("wsimport.usage.examples"); - } - - /** - * - * Examples: - * wsimport stock.wsdl -b stock.xml -b stock.xjb - * wsimport -d generated http://example.org/stock?wsdl - * - * - */ - public static String WSIMPORT_USAGE_EXAMPLES() { - return localizer.localize(localizableWSIMPORT_USAGE_EXAMPLES()); - } - - public static Localizable localizableINVOKER_NEED_ENDORSED(Object arg0, Object arg1) { - return messageFactory.getMessage("invoker.needEndorsed", arg0, arg1); - } - - /** - * You are running on JDK6 which comes with JAX-WS {0} API, but this tool requires JAX-WS {1} API. Use the endorsed standards override mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), or use -Xendorsed option. - * - */ - public static String INVOKER_NEED_ENDORSED(Object arg0, Object arg1) { - return localizer.localize(localizableINVOKER_NEED_ENDORSED(arg0, arg1)); - } - - public static Localizable localizableWSIMPORT_MISSING_FILE() { - return messageFactory.getMessage("wsimport.missingFile"); - } - - /** - * Missing WSDL_URI - * - */ - public static String WSIMPORT_MISSING_FILE() { - return localizer.localize(localizableWSIMPORT_MISSING_FILE()); - } - - public static Localizable localizableWSIMPORT_USAGE_EXTENSIONS() { - return messageFactory.getMessage("wsimport.usage.extensions"); - } - - /** - * - * Extensions: - * -XadditionalHeaders map headers not bound to request or response message to - * Java method parameters - * -Xauthfile file to carry authorization information in the format - * http://username:password@example.org/stock?wsdl - * -Xdebug print debug information - * -Xno-addressing-databinding enable binding of W3C EndpointReferenceType to Java - * -Xnocompile do not compile generated Java files - * -XdisableAuthenticator disable Authenticator used by JAX-WS RI, - * -Xauthfile option will be ignored if set - * -XdisableSSLHostnameVerification disable the SSL Hostname verification while fetching - * wsdls - * - */ - public static String WSIMPORT_USAGE_EXTENSIONS() { - return localizer.localize(localizableWSIMPORT_USAGE_EXTENSIONS()); - } - - public static Localizable localizableWSIMPORT_USAGE(Object arg0) { - return messageFactory.getMessage("wsimport.usage", arg0); - } - - /** - * Usage: {0} [options] - * - * Use "wsimport -help" for a detailed description of options. - * - */ - public static String WSIMPORT_USAGE(Object arg0) { - return localizer.localize(localizableWSIMPORT_USAGE(arg0)); + public static String WSIMPORT_NOT_A_FILE_NOR_URL(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_NOT_A_FILE_NOR_URL(arg0)); } public static Localizable localizableWSGEN_USAGE_EXTENSIONS() { - return messageFactory.getMessage("wsgen.usage.extensions"); + return MESSAGE_FACTORY.getMessage("wsgen.usage.extensions"); } /** @@ -288,50 +66,11 @@ public final class WscompileMessages { * */ public static String WSGEN_USAGE_EXTENSIONS() { - return localizer.localize(localizableWSGEN_USAGE_EXTENSIONS()); - } - - public static Localizable localizableWSCOMPILE_EXISTING_OPTION(Object arg0) { - return messageFactory.getMessage("wscompile.existingOption", arg0); - } - - /** - * Ignoring already defined option {0} - * - * - */ - public static String WSCOMPILE_EXISTING_OPTION(Object arg0) { - return localizer.localize(localizableWSCOMPILE_EXISTING_OPTION(arg0)); - } - - public static Localizable localizableWSIMPORT_PARSING_WSDL() { - return messageFactory.getMessage("wsimport.ParsingWSDL"); - } - - /** - * parsing WSDL... - * - * - * - */ - public static String WSIMPORT_PARSING_WSDL() { - return localizer.localize(localizableWSIMPORT_PARSING_WSDL()); - } - - public static Localizable localizableWSGEN_MISSING_FILE() { - return messageFactory.getMessage("wsgen.missingFile"); - } - - /** - * Missing SEI - * - */ - public static String WSGEN_MISSING_FILE() { - return localizer.localize(localizableWSGEN_MISSING_FILE()); + return LOCALIZER.localize(localizableWSGEN_USAGE_EXTENSIONS()); } public static Localizable localizableWSIMPORT_HELP(Object arg0) { - return messageFactory.getMessage("wsimport.help", arg0); + return MESSAGE_FACTORY.getMessage("wsimport.help", arg0); } /** @@ -358,6 +97,7 @@ public final class WscompileMessages { * -J pass this option to javac * -keep keep generated files * -p specifies the target package + * -m generate module-info.java with given Java module name * -quiet suppress wsimport output * -s specify where to place generated source files * -target generate code as per the given JAXWS spec version @@ -376,48 +116,258 @@ public final class WscompileMessages { * */ public static String WSIMPORT_HELP(Object arg0) { - return localizer.localize(localizableWSIMPORT_HELP(arg0)); + return LOCALIZER.localize(localizableWSIMPORT_HELP(arg0)); } - public static Localizable localizableWSCOMPILE_CANT_GET_COMPILER(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wscompile.cant.get.compiler", arg0, arg1, arg2); + public static Localizable localizableWSIMPORT_ILLEGAL_TARGET_VERSION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.ILLEGAL_TARGET_VERSION", arg0); } /** - * No Java compiler found. Perhaps environment/JDK problem? - * Used JVM: {0}, {1}/{2} + * "{0}" is not a valid target version. "2.0" and "2.1" are supported. * */ - public static String WSCOMPILE_CANT_GET_COMPILER(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSCOMPILE_CANT_GET_COMPILER(arg0, arg1, arg2)); + public static String WSIMPORT_ILLEGAL_TARGET_VERSION(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_ILLEGAL_TARGET_VERSION(arg0)); } - public static Localizable localizableWSCOMPILE_ERROR(Object arg0) { - return messageFactory.getMessage("wscompile.error", arg0); + public static Localizable localizableWSIMPORT_USAGE_EXAMPLES() { + return MESSAGE_FACTORY.getMessage("wsimport.usage.examples"); } /** - * error: {0} + * + * Examples: + * wsimport stock.wsdl -b stock.xml -b stock.xjb + * wsimport -d generated http://example.org/stock?wsdl + * * */ - public static String WSCOMPILE_ERROR(Object arg0) { - return localizer.localize(localizableWSCOMPILE_ERROR(arg0)); + public static String WSIMPORT_USAGE_EXAMPLES() { + return LOCALIZER.localize(localizableWSIMPORT_USAGE_EXAMPLES()); } - public static Localizable localizableWSGEN_PROTOCOL_WITHOUT_EXTENSION(Object arg0) { - return messageFactory.getMessage("wsgen.protocol.without.extension", arg0); + public static Localizable localizableWSIMPORT_DEBUG_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.DebugMessage", arg0); } /** - * The optional protocol "{0}" must be used in conjunction with the "-extension" option. + * [DEBUG] {0} * */ - public static String WSGEN_PROTOCOL_WITHOUT_EXTENSION(Object arg0) { - return localizer.localize(localizableWSGEN_PROTOCOL_WITHOUT_EXTENSION(arg0)); + public static String WSIMPORT_DEBUG_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_DEBUG_MESSAGE(arg0)); + } + + public static Localizable localizableWSIMPORT_FULLVERSION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.fullversion", arg0); + } + + /** + * wsimport full version "{0}" + * + */ + public static String WSIMPORT_FULLVERSION(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_FULLVERSION(arg0)); + } + + public static Localizable localizableWSIMPORT_NO_SUCH_JAXB_OPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.noSuchJaxbOption", arg0); + } + + /** + * no such JAXB option: {0} + * + */ + public static String WSIMPORT_NO_SUCH_JAXB_OPTION(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_NO_SUCH_JAXB_OPTION(arg0)); + } + + public static Localizable localizableWSIMPORT_ILLEGAL_PROXY(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.ILLEGAL_PROXY", arg0); + } + + /** + * "{0}" is not a valid proxy format. The format is [user[:password]@]proxyHost:proxyPort + * + */ + public static String WSIMPORT_ILLEGAL_PROXY(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_ILLEGAL_PROXY(arg0)); + } + + public static Localizable localizableINVOKER_NEED_ENDORSED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invoker.needEndorsed", arg0, arg1); + } + + /** + * You are running on JDK6 or newer which comes with JAX-WS {0} API, but this tool requires JAX-WS {1} or newer API. Use the standard override mechanism. + * + */ + public static String INVOKER_NEED_ENDORSED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVOKER_NEED_ENDORSED(arg0, arg1)); + } + + public static Localizable localizableWSIMPORT_AUTH_INFO_NEEDED(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wsimport.authInfoNeeded", arg0, arg1, arg2); + } + + /** + * {0}, "{1}" needs authorization, please provide authorization file with read access at {2} or use -Xauthfile to give the authorization file and on each line provide authorization information using this format : http[s]://user:password@host:port// + * + */ + public static String WSIMPORT_AUTH_INFO_NEEDED(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSIMPORT_AUTH_INFO_NEEDED(arg0, arg1, arg2)); + } + + public static Localizable localizableWSIMPORT_AUTH_INFO_LINENO(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsimport.AUTH_INFO_LINENO", arg0, arg1); + } + + /** + * line {0} of {1} + * + */ + public static String WSIMPORT_AUTH_INFO_LINENO(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSIMPORT_AUTH_INFO_LINENO(arg0, arg1)); + } + + public static Localizable localizableWSCOMPILE_MISSING_OPTION_ARGUMENT(Object arg0) { + return MESSAGE_FACTORY.getMessage("wscompile.missingOptionArgument", arg0); + } + + /** + * option "{0}" requires an argument + * + */ + public static String WSCOMPILE_MISSING_OPTION_ARGUMENT(Object arg0) { + return LOCALIZER.localize(localizableWSCOMPILE_MISSING_OPTION_ARGUMENT(arg0)); + } + + public static Localizable localizableWSIMPORT_ARCHIVE_ARTIFACT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsimport.archiveArtifact", arg0, arg1); + } + + /** + * Adding {0} to the archive {1} + * + */ + public static String WSIMPORT_ARCHIVE_ARTIFACT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSIMPORT_ARCHIVE_ARTIFACT(arg0, arg1)); + } + + public static Localizable localizableWSGEN_USAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.usage", arg0); + } + + /** + * Usage: {0} [options] + * + * Use "wsgen -help" for a detailed description of options. + * + */ + public static String WSGEN_USAGE(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_USAGE(arg0)); + } + + public static Localizable localizableWSIMPORT_USAGE_EXTENSIONS() { + return MESSAGE_FACTORY.getMessage("wsimport.usage.extensions"); + } + + /** + * + * Extensions: + * -XadditionalHeaders map headers not bound to request or response message to + * Java method parameters + * -Xauthfile file to carry authorization information in the format + * http://username:password@example.org/stock?wsdl + * -Xdebug print debug information + * -Xno-addressing-databinding enable binding of W3C EndpointReferenceType to Java + * -Xnocompile do not compile generated Java files + * -XdisableAuthenticator disable Authenticator used by JAX-WS RI, + * -Xauthfile option will be ignored if set + * -XdisableSSLHostnameVerification disable the SSL Hostname verification while fetching + * wsdls + * + */ + public static String WSIMPORT_USAGE_EXTENSIONS() { + return LOCALIZER.localize(localizableWSIMPORT_USAGE_EXTENSIONS()); + } + + public static Localizable localizableWSIMPORT_WARNING_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.WarningMessage", arg0); + } + + /** + * [WARNING] {0} + * + */ + public static String WSIMPORT_WARNING_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_WARNING_MESSAGE(arg0)); + } + + public static Localizable localizableWSGEN_INVALID_TRANSPORT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsgen.invalid.transport", arg0, arg1); + } + + /** + * "{0}" is not a supported transport. Supported transport includes: {1}. + * + */ + public static String WSGEN_INVALID_TRANSPORT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSGEN_INVALID_TRANSPORT(arg0, arg1)); + } + + public static Localizable localizableWSIMPORT_DOCUMENT_DOWNLOAD(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsimport.document.download", arg0, arg1); + } + + /** + * + * Downloading metadata document from {0} to {1} + * + */ + public static String WSIMPORT_DOCUMENT_DOWNLOAD(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSIMPORT_DOCUMENT_DOWNLOAD(arg0, arg1)); + } + + public static Localizable localizableWSGEN_CLASS_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.class.not.found", arg0); + } + + /** + * Class not found: "{0}" + * + */ + public static String WSGEN_CLASS_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_CLASS_NOT_FOUND(arg0)); + } + + public static Localizable localizableWSCOMPILE_DUPLICATE_OPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wscompile.duplicateOption", arg0); + } + + /** + * duplicate option: {0} + * + */ + public static String WSCOMPILE_DUPLICATE_OPTION(Object arg0) { + return LOCALIZER.localize(localizableWSCOMPILE_DUPLICATE_OPTION(arg0)); + } + + public static Localizable localizableWSCOMPILE_UNSUPPORTED_ENCODING(Object arg0) { + return MESSAGE_FACTORY.getMessage("wscompile.unsupportedEncoding", arg0); + } + + /** + * unsupported encoding: {0} + * + */ + public static String WSCOMPILE_UNSUPPORTED_ENCODING(Object arg0) { + return LOCALIZER.localize(localizableWSCOMPILE_UNSUPPORTED_ENCODING(arg0)); } public static Localizable localizableWSIMPORT_COMPILING_CODE() { - return messageFactory.getMessage("wsimport.CompilingCode"); + return MESSAGE_FACTORY.getMessage("wsimport.CompilingCode"); } /** @@ -427,83 +377,23 @@ public final class WscompileMessages { * */ public static String WSIMPORT_COMPILING_CODE() { - return localizer.localize(localizableWSIMPORT_COMPILING_CODE()); + return LOCALIZER.localize(localizableWSIMPORT_COMPILING_CODE()); } - public static Localizable localizableWSIMPORT_READING_AUTH_FILE(Object arg0) { - return messageFactory.getMessage("wsimport.readingAuthFile", arg0); + public static Localizable localizableWSGEN_SERVICENAME_MISSING_NAMESPACE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.servicename.missing.namespace", arg0); } /** - * Trying to read authorization file : "{0}"... + * The service name "{0}" is missing a namespace. * */ - public static String WSIMPORT_READING_AUTH_FILE(Object arg0) { - return localizer.localize(localizableWSIMPORT_READING_AUTH_FILE(arg0)); - } - - public static Localizable localizableWSCOMPILE_UNSUPPORTED_ENCODING(Object arg0) { - return messageFactory.getMessage("wscompile.unsupportedEncoding", arg0); - } - - /** - * unsupported encoding: {0} - * - */ - public static String WSCOMPILE_UNSUPPORTED_ENCODING(Object arg0) { - return localizer.localize(localizableWSCOMPILE_UNSUPPORTED_ENCODING(arg0)); - } - - public static Localizable localizableWSGEN_NO_WEBSERVICES_CLASS(Object arg0) { - return messageFactory.getMessage("wsgen.no.webservices.class", arg0); - } - - /** - * wsgen did not find any class with @WebService annotation. Please specify @WebService annotation on {0}. - * - */ - public static String WSGEN_NO_WEBSERVICES_CLASS(Object arg0) { - return localizer.localize(localizableWSGEN_NO_WEBSERVICES_CLASS(arg0)); - } - - public static Localizable localizableWSIMPORT_ARCHIVE_ARTIFACT(Object arg0, Object arg1) { - return messageFactory.getMessage("wsimport.archiveArtifact", arg0, arg1); - } - - /** - * Adding {0} to the archive {1} - * - */ - public static String WSIMPORT_ARCHIVE_ARTIFACT(Object arg0, Object arg1) { - return localizer.localize(localizableWSIMPORT_ARCHIVE_ARTIFACT(arg0, arg1)); - } - - public static Localizable localizableWSCOMPILE_NO_SUCH_DIRECTORY(Object arg0) { - return messageFactory.getMessage("wscompile.noSuchDirectory", arg0); - } - - /** - * directory not found: {0} - * - */ - public static String WSCOMPILE_NO_SUCH_DIRECTORY(Object arg0) { - return localizer.localize(localizableWSCOMPILE_NO_SUCH_DIRECTORY(arg0)); - } - - public static Localizable localizableWSCOMPILE_INFO(Object arg0) { - return messageFactory.getMessage("wscompile.info", arg0); - } - - /** - * info: {0} - * - */ - public static String WSCOMPILE_INFO(Object arg0) { - return localizer.localize(localizableWSCOMPILE_INFO(arg0)); + public static String WSGEN_SERVICENAME_MISSING_NAMESPACE(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_SERVICENAME_MISSING_NAMESPACE(arg0)); } public static Localizable localizableWSIMPORT_MAX_REDIRECT_ATTEMPT() { - return messageFactory.getMessage("wsimport.maxRedirectAttempt"); + return MESSAGE_FACTORY.getMessage("wsimport.maxRedirectAttempt"); } /** @@ -511,47 +401,72 @@ public final class WscompileMessages { * */ public static String WSIMPORT_MAX_REDIRECT_ATTEMPT() { - return localizer.localize(localizableWSIMPORT_MAX_REDIRECT_ATTEMPT()); + return LOCALIZER.localize(localizableWSIMPORT_MAX_REDIRECT_ATTEMPT()); } - public static Localizable localizableWSIMPORT_WARNING_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsimport.WarningMessage", arg0); + public static Localizable localizableWSIMPORT_READING_AUTH_FILE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.readingAuthFile", arg0); } /** - * [WARNING] {0} + * Trying to read authorization file : "{0}"... * */ - public static String WSIMPORT_WARNING_MESSAGE(Object arg0) { - return localizer.localize(localizableWSIMPORT_WARNING_MESSAGE(arg0)); + public static String WSIMPORT_READING_AUTH_FILE(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_READING_AUTH_FILE(arg0)); } - public static Localizable localizableWSCOMPILE_INVALID_OPTION(Object arg0) { - return messageFactory.getMessage("wscompile.invalidOption", arg0); + public static Localizable localizableWSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsgen.cannot.gen.wsdl.for.soap12.binding", arg0, arg1); } /** - * unrecognized parameter {0} + * wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}.Please specify "-extension" and "-wsdl:protocol XSoap1.2" switches. For example:wsgen -wsdl:protocol XSoap1.2 -extenson {1} * */ - public static String WSCOMPILE_INVALID_OPTION(Object arg0) { - return localizer.localize(localizableWSCOMPILE_INVALID_OPTION(arg0)); + public static String WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(arg0, arg1)); } - public static Localizable localizableWSIMPORT_ERROR_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsimport.ErrorMessage", arg0); + public static Localizable localizableWSIMPORT_INFO_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.InfoMessage", arg0); } /** - * [ERROR] {0} + * [INFO] {0} * */ - public static String WSIMPORT_ERROR_MESSAGE(Object arg0) { - return localizer.localize(localizableWSIMPORT_ERROR_MESSAGE(arg0)); + public static String WSIMPORT_INFO_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_INFO_MESSAGE(arg0)); + } + + public static Localizable localizableWSCOMPILE_EXISTING_OPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wscompile.existingOption", arg0); + } + + /** + * Ignoring already defined option {0} + * + * + */ + public static String WSCOMPILE_EXISTING_OPTION(Object arg0) { + return LOCALIZER.localize(localizableWSCOMPILE_EXISTING_OPTION(arg0)); + } + + public static Localizable localizableWSGEN_PORTNAME_MISSING_NAMESPACE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.portname.missing.namespace", arg0); + } + + /** + * The port name "{0}" is missing a namespace. + * + */ + public static String WSGEN_PORTNAME_MISSING_NAMESPACE(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_PORTNAME_MISSING_NAMESPACE(arg0)); } public static Localizable localizableWSIMPORT_GENERATING_CODE() { - return messageFactory.getMessage("wsimport.GeneratingCode"); + return MESSAGE_FACTORY.getMessage("wsimport.GeneratingCode"); } /** @@ -561,71 +476,11 @@ public final class WscompileMessages { * */ public static String WSIMPORT_GENERATING_CODE() { - return localizer.localize(localizableWSIMPORT_GENERATING_CODE()); - } - - public static Localizable localizableWSIMPORT_NOT_A_FILE_NOR_URL(Object arg0) { - return messageFactory.getMessage("wsimport.NotAFileNorURL", arg0); - } - - /** - * "{0}" is neither a file name nor an URL - * - */ - public static String WSIMPORT_NOT_A_FILE_NOR_URL(Object arg0) { - return localizer.localize(localizableWSIMPORT_NOT_A_FILE_NOR_URL(arg0)); - } - - public static Localizable localizableWSCOMPILE_WARNING(Object arg0) { - return messageFactory.getMessage("wscompile.warning", arg0); - } - - /** - * warning: {0} - * - */ - public static String WSCOMPILE_WARNING(Object arg0) { - return localizer.localize(localizableWSCOMPILE_WARNING(arg0)); - } - - public static Localizable localizableWRAPPER_TASK_NEED_ENDORSED(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wrapperTask.needEndorsed", arg0, arg1, arg2); - } - - /** - * You are running on JDK6 which comes with JAX-WS {0} API, but this tool requires JAX-WS {1} API. Use the endorsed standards override mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), or set xendorsed="true" on <{2}>. - * - */ - public static String WRAPPER_TASK_NEED_ENDORSED(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWRAPPER_TASK_NEED_ENDORSED(arg0, arg1, arg2)); - } - - public static Localizable localizableWSIMPORT_NO_SUCH_JAXB_OPTION(Object arg0) { - return messageFactory.getMessage("wsimport.noSuchJaxbOption", arg0); - } - - /** - * no such JAXB option: {0} - * - */ - public static String WSIMPORT_NO_SUCH_JAXB_OPTION(Object arg0) { - return localizer.localize(localizableWSIMPORT_NO_SUCH_JAXB_OPTION(arg0)); - } - - public static Localizable localizableWSGEN_VERSION(Object arg0) { - return messageFactory.getMessage("wsgen.version", arg0); - } - - /** - * wsgen version "{0}" - * - */ - public static String WSGEN_VERSION(Object arg0) { - return localizer.localize(localizableWSGEN_VERSION(arg0)); + return LOCALIZER.localize(localizableWSIMPORT_GENERATING_CODE()); } public static Localizable localizableWSIMPORT_AUTH_FILE_NOT_FOUND(Object arg0, Object arg1) { - return messageFactory.getMessage("wsimport.authFileNotFound", arg0, arg1); + return MESSAGE_FACTORY.getMessage("wsimport.authFileNotFound", arg0, arg1); } /** @@ -633,47 +488,59 @@ public final class WscompileMessages { * */ public static String WSIMPORT_AUTH_FILE_NOT_FOUND(Object arg0, Object arg1) { - return localizer.localize(localizableWSIMPORT_AUTH_FILE_NOT_FOUND(arg0, arg1)); + return LOCALIZER.localize(localizableWSIMPORT_AUTH_FILE_NOT_FOUND(arg0, arg1)); } - public static Localizable localizableWSIMPORT_DEBUG_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsimport.DebugMessage", arg0); + public static Localizable localizableWSIMPORT_WSDLLOCATION_CLIENTJAR() { + return MESSAGE_FACTORY.getMessage("wsimport.wsdllocation.clientjar"); } /** - * [DEBUG] {0} + * wsdlLocation cannot be specified when using clientJar option * */ - public static String WSIMPORT_DEBUG_MESSAGE(Object arg0) { - return localizer.localize(localizableWSIMPORT_DEBUG_MESSAGE(arg0)); + public static String WSIMPORT_WSDLLOCATION_CLIENTJAR() { + return LOCALIZER.localize(localizableWSIMPORT_WSDLLOCATION_CLIENTJAR()); } - public static Localizable localizableWSGEN_COULD_NOT_CREATE_FILE(Object arg0) { - return messageFactory.getMessage("wsgen.could.not.create.file", arg0); + public static Localizable localizableWSIMPORT_FAILED_TO_PARSE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsimport.FailedToParse", arg0, arg1); } /** - * Could not create file: "{0}" + * Failed to parse "{0}": {1} * */ - public static String WSGEN_COULD_NOT_CREATE_FILE(Object arg0) { - return localizer.localize(localizableWSGEN_COULD_NOT_CREATE_FILE(arg0)); + public static String WSIMPORT_FAILED_TO_PARSE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSIMPORT_FAILED_TO_PARSE(arg0, arg1)); } - public static Localizable localizableWSGEN_WSDL_ARG_NO_GENWSDL(Object arg0) { - return messageFactory.getMessage("wsgen.wsdl.arg.no.genwsdl", arg0); + public static Localizable localizableWSIMPORT_NO_WSDL(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.no.wsdl", arg0); } /** - * The "{0}" option can only be in conjunction with the "-wsdl" option. + * Failed to read the WSDL document: {0}, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . * */ - public static String WSGEN_WSDL_ARG_NO_GENWSDL(Object arg0) { - return localizer.localize(localizableWSGEN_WSDL_ARG_NO_GENWSDL(arg0)); + public static String WSIMPORT_NO_WSDL(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_NO_WSDL(arg0)); + } + + public static Localizable localizableWSGEN_INVALID_PROTOCOL(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsgen.invalid.protocol", arg0, arg1); + } + + /** + * "{0}" is not a supported protocol. Supported protocols include: {1}. + * + */ + public static String WSGEN_INVALID_PROTOCOL(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSGEN_INVALID_PROTOCOL(arg0, arg1)); } public static Localizable localizableWSGEN_HELP(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("wsgen.help", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("wsgen.help", arg0, arg1, arg2); } /** @@ -714,59 +581,97 @@ public final class WscompileMessages { * */ public static String WSGEN_HELP(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWSGEN_HELP(arg0, arg1, arg2)); + return LOCALIZER.localize(localizableWSGEN_HELP(arg0, arg1, arg2)); } - public static Localizable localizableWSIMPORT_INFO_MESSAGE(Object arg0) { - return messageFactory.getMessage("wsimport.InfoMessage", arg0); + public static Localizable localizableWSIMPORT_USAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.usage", arg0); } /** - * [INFO] {0} + * Usage: {0} [options] + * + * Use "wsimport -help" for a detailed description of options. * */ - public static String WSIMPORT_INFO_MESSAGE(Object arg0) { - return localizer.localize(localizableWSIMPORT_INFO_MESSAGE(arg0)); + public static String WSIMPORT_USAGE(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_USAGE(arg0)); } - public static Localizable localizableWSGEN_INLINE_SCHEMAS_ONLY_WITH_WSDL() { - return messageFactory.getMessage("wsgen.inlineSchemas.only.with.wsdl"); + public static Localizable localizableWSCOMPILE_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("wscompile.error", arg0); } /** - * "-inlineSchemas" must be used in conjunction with the "-wsdl" option + * error: {0} * */ - public static String WSGEN_INLINE_SCHEMAS_ONLY_WITH_WSDL() { - return localizer.localize(localizableWSGEN_INLINE_SCHEMAS_ONLY_WITH_WSDL()); + public static String WSCOMPILE_ERROR(Object arg0) { + return LOCALIZER.localize(localizableWSCOMPILE_ERROR(arg0)); } - public static Localizable localizableWSGEN_SOAP_12_WITHOUT_EXTENSION() { - return messageFactory.getMessage("wsgen.soap12.without.extension"); + public static Localizable localizableWSCOMPILE_WARNING(Object arg0) { + return MESSAGE_FACTORY.getMessage("wscompile.warning", arg0); } /** - * The optional protocol "Xsoap1.2" must be used in conjunction with the "-extension" option. + * warning: {0} * */ - public static String WSGEN_SOAP_12_WITHOUT_EXTENSION() { - return localizer.localize(localizableWSGEN_SOAP_12_WITHOUT_EXTENSION()); + public static String WSCOMPILE_WARNING(Object arg0) { + return LOCALIZER.localize(localizableWSCOMPILE_WARNING(arg0)); } - public static Localizable localizableWSIMPORT_ILLEGAL_AUTH_INFO(Object arg0) { - return messageFactory.getMessage("wsimport.ILLEGAL_AUTH_INFO", arg0); + public static Localizable localizableWRAPPER_TASK_NEED_ENDORSED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wrapperTask.needEndorsed", arg0, arg1); } /** - * "{0}" is not a valid authorization information format. The format is http[s]://user:password@host:port//. + * You are running on JDK6 or newer which comes with JAX-WS {0} API, but this tool requires JAX-WS {1} or newer API. Use the standard override mechanism. * */ - public static String WSIMPORT_ILLEGAL_AUTH_INFO(Object arg0) { - return localizer.localize(localizableWSIMPORT_ILLEGAL_AUTH_INFO(arg0)); + public static String WRAPPER_TASK_NEED_ENDORSED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWRAPPER_TASK_NEED_ENDORSED(arg0, arg1)); + } + + public static Localizable localizableWSIMPORT_VERSION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.version", arg0); + } + + /** + * wsimport version "{0}" + * + */ + public static String WSIMPORT_VERSION(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_VERSION(arg0)); + } + + public static Localizable localizableWSCOMPILE_NO_SUCH_DIRECTORY(Object arg0) { + return MESSAGE_FACTORY.getMessage("wscompile.noSuchDirectory", arg0); + } + + /** + * directory not found: {0} + * + */ + public static String WSCOMPILE_NO_SUCH_DIRECTORY(Object arg0) { + return LOCALIZER.localize(localizableWSCOMPILE_NO_SUCH_DIRECTORY(arg0)); + } + + public static Localizable localizableWSIMPORT_MISSING_FILE() { + return MESSAGE_FACTORY.getMessage("wsimport.missingFile"); + } + + /** + * Missing WSDL_URI + * + */ + public static String WSIMPORT_MISSING_FILE() { + return LOCALIZER.localize(localizableWSIMPORT_MISSING_FILE()); } public static Localizable localizableWSCOMPILE_COMPILATION_FAILED() { - return messageFactory.getMessage("wscompile.compilationFailed"); + return MESSAGE_FACTORY.getMessage("wscompile.compilationFailed"); } /** @@ -774,96 +679,164 @@ public final class WscompileMessages { * */ public static String WSCOMPILE_COMPILATION_FAILED() { - return localizer.localize(localizableWSCOMPILE_COMPILATION_FAILED()); + return LOCALIZER.localize(localizableWSCOMPILE_COMPILATION_FAILED()); } - public static Localizable localizableWSCOMPILE_MISSING_OPTION_ARGUMENT(Object arg0) { - return messageFactory.getMessage("wscompile.missingOptionArgument", arg0); + public static Localizable localizableWSIMPORT_PARSING_WSDL() { + return MESSAGE_FACTORY.getMessage("wsimport.ParsingWSDL"); } /** - * option "{0}" requires an argument + * parsing WSDL... + * + * * */ - public static String WSCOMPILE_MISSING_OPTION_ARGUMENT(Object arg0) { - return localizer.localize(localizableWSCOMPILE_MISSING_OPTION_ARGUMENT(arg0)); + public static String WSIMPORT_PARSING_WSDL() { + return LOCALIZER.localize(localizableWSIMPORT_PARSING_WSDL()); } - public static Localizable localizableWSIMPORT_DOCUMENT_DOWNLOAD(Object arg0, Object arg1) { - return messageFactory.getMessage("wsimport.document.download", arg0, arg1); + public static Localizable localizableWSGEN_USAGE_EXAMPLES() { + return MESSAGE_FACTORY.getMessage("wsgen.usage.examples"); } /** * - * Downloading metadata document from {0} to {1} + * Examples: + * wsgen -cp . example.Stock + * wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService' + * * */ - public static String WSIMPORT_DOCUMENT_DOWNLOAD(Object arg0, Object arg1) { - return localizer.localize(localizableWSIMPORT_DOCUMENT_DOWNLOAD(arg0, arg1)); + public static String WSGEN_USAGE_EXAMPLES() { + return LOCALIZER.localize(localizableWSGEN_USAGE_EXAMPLES()); } - public static Localizable localizableWSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(Object arg0, Object arg1) { - return messageFactory.getMessage("wsgen.cannot.gen.wsdl.for.non.soap.binding", arg0, arg1); + public static Localizable localizableWSIMPORT_ARCHIVING_ARTIFACTS(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.archivingArtifacts", arg0); } /** - * wsgen can not generate WSDL for non-SOAP binding: {0} on Class {1} + * + * Archiving the generated artifacts into {0}. + * * */ - public static String WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(Object arg0, Object arg1) { - return localizer.localize(localizableWSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(arg0, arg1)); + public static String WSIMPORT_ARCHIVING_ARTIFACTS(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_ARCHIVING_ARTIFACTS(arg0)); } - public static Localizable localizableWSCOMPILE_DUPLICATE_OPTION(Object arg0) { - return messageFactory.getMessage("wscompile.duplicateOption", arg0); + public static Localizable localizableWSGEN_PROTOCOL_WITHOUT_EXTENSION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.protocol.without.extension", arg0); } /** - * duplicate option: {0} + * The optional protocol "{0}" must be used in conjunction with the "-extension" option. * */ - public static String WSCOMPILE_DUPLICATE_OPTION(Object arg0) { - return localizer.localize(localizableWSCOMPILE_DUPLICATE_OPTION(arg0)); + public static String WSGEN_PROTOCOL_WITHOUT_EXTENSION(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_PROTOCOL_WITHOUT_EXTENSION(arg0)); } - public static Localizable localizableWSIMPORT_FAILED_TO_PARSE(Object arg0, Object arg1) { - return messageFactory.getMessage("wsimport.FailedToParse", arg0, arg1); + public static Localizable localizableWSGEN_MISSING_FILE() { + return MESSAGE_FACTORY.getMessage("wsgen.missingFile"); } /** - * Failed to parse "{0}": {1} + * Missing SEI * */ - public static String WSIMPORT_FAILED_TO_PARSE(Object arg0, Object arg1) { - return localizer.localize(localizableWSIMPORT_FAILED_TO_PARSE(arg0, arg1)); + public static String WSGEN_MISSING_FILE() { + return LOCALIZER.localize(localizableWSGEN_MISSING_FILE()); } - public static Localizable localizableWSIMPORT_NO_WSDL(Object arg0) { - return messageFactory.getMessage("wsimport.no.wsdl", arg0); + public static Localizable localizableWSGEN_VERSION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.version", arg0); } /** - * Failed to read the WSDL document: {0}, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . + * wsgen version "{0}" * */ - public static String WSIMPORT_NO_WSDL(Object arg0) { - return localizer.localize(localizableWSIMPORT_NO_WSDL(arg0)); + public static String WSGEN_VERSION(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_VERSION(arg0)); } - public static Localizable localizableWSIMPORT_AUTH_INFO_LINENO(Object arg0, Object arg1) { - return messageFactory.getMessage("wsimport.AUTH_INFO_LINENO", arg0, arg1); + public static Localizable localizableWSGEN_NO_WEBSERVICES_CLASS(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.no.webservices.class", arg0); } /** - * line {0} of {1} + * wsgen did not find any class with @WebService annotation. Please specify @WebService annotation on {0}. * */ - public static String WSIMPORT_AUTH_INFO_LINENO(Object arg0, Object arg1) { - return localizer.localize(localizableWSIMPORT_AUTH_INFO_LINENO(arg0, arg1)); + public static String WSGEN_NO_WEBSERVICES_CLASS(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_NO_WEBSERVICES_CLASS(arg0)); + } + + public static Localizable localizableWSGEN_SOAP_12_WITHOUT_EXTENSION() { + return MESSAGE_FACTORY.getMessage("wsgen.soap12.without.extension"); + } + + /** + * The optional protocol "Xsoap1.2" must be used in conjunction with the "-extension" option. + * + */ + public static String WSGEN_SOAP_12_WITHOUT_EXTENSION() { + return LOCALIZER.localize(localizableWSGEN_SOAP_12_WITHOUT_EXTENSION()); + } + + public static Localizable localizableWSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.class.must.be.implementation.class", arg0); + } + + /** + * The class "{0}" is not an endpoint implementation class. + * + */ + public static String WSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(arg0)); + } + + public static Localizable localizableWSGEN_INLINE_SCHEMAS_ONLY_WITH_WSDL() { + return MESSAGE_FACTORY.getMessage("wsgen.inlineSchemas.only.with.wsdl"); + } + + /** + * "-inlineSchemas" must be used in conjunction with the "-wsdl" option + * + */ + public static String WSGEN_INLINE_SCHEMAS_ONLY_WITH_WSDL() { + return LOCALIZER.localize(localizableWSGEN_INLINE_SCHEMAS_ONLY_WITH_WSDL()); + } + + public static Localizable localizableWRAPPER_TASK_LOADING_INCORRECT_API(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wrapperTask.loadingIncorrectApi", arg0, arg1, arg2); + } + + /** + * You are loading JAX-WS {0} API from {1} but this tool requires JAX-WS {2} API. + * + */ + public static String WRAPPER_TASK_LOADING_INCORRECT_API(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWRAPPER_TASK_LOADING_INCORRECT_API(arg0, arg1, arg2)); + } + + public static Localizable localizableWSCOMPILE_CANT_GET_COMPILER(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("wscompile.cant.get.compiler", arg0, arg1, arg2); + } + + /** + * No Java compiler found. Perhaps environment/JDK problem? + * Used JVM: {0}, {1}/{2} + * + */ + public static String WSCOMPILE_CANT_GET_COMPILER(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWSCOMPILE_CANT_GET_COMPILER(arg0, arg1, arg2)); } public static Localizable localizableWSGEN_SERVICENAME_MISSING_LOCALNAME(Object arg0) { - return messageFactory.getMessage("wsgen.servicename.missing.localname", arg0); + return MESSAGE_FACTORY.getMessage("wsgen.servicename.missing.localname", arg0); } /** @@ -871,85 +844,35 @@ public final class WscompileMessages { * */ public static String WSGEN_SERVICENAME_MISSING_LOCALNAME(Object arg0) { - return localizer.localize(localizableWSGEN_SERVICENAME_MISSING_LOCALNAME(arg0)); + return LOCALIZER.localize(localizableWSGEN_SERVICENAME_MISSING_LOCALNAME(arg0)); } - public static Localizable localizableWSGEN_USAGE(Object arg0) { - return messageFactory.getMessage("wsgen.usage", arg0); + public static Localizable localizableWSCOMPILE_INVALID_OPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wscompile.invalidOption", arg0); } /** - * Usage: {0} [options] - * - * Use "wsgen -help" for a detailed description of options. + * unrecognized parameter {0} * */ - public static String WSGEN_USAGE(Object arg0) { - return localizer.localize(localizableWSGEN_USAGE(arg0)); + public static String WSCOMPILE_INVALID_OPTION(Object arg0) { + return LOCALIZER.localize(localizableWSCOMPILE_INVALID_OPTION(arg0)); } - public static Localizable localizableWSGEN_SERVICENAME_MISSING_NAMESPACE(Object arg0) { - return messageFactory.getMessage("wsgen.servicename.missing.namespace", arg0); + public static Localizable localizableWSIMPORT_HTTP_REDIRECT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsimport.httpRedirect", arg0, arg1); } /** - * The service name "{0}" is missing a namespace. + * Server returned HTTP Status code: "{0}", retrying with "{1}" * */ - public static String WSGEN_SERVICENAME_MISSING_NAMESPACE(Object arg0) { - return localizer.localize(localizableWSGEN_SERVICENAME_MISSING_NAMESPACE(arg0)); - } - - public static Localizable localizableWSGEN_INVALID_TRANSPORT(Object arg0, Object arg1) { - return messageFactory.getMessage("wsgen.invalid.transport", arg0, arg1); - } - - /** - * "{0}" is not a supported transport. Supported transport includes: {1}. - * - */ - public static String WSGEN_INVALID_TRANSPORT(Object arg0, Object arg1) { - return localizer.localize(localizableWSGEN_INVALID_TRANSPORT(arg0, arg1)); - } - - public static Localizable localizableWSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(Object arg0, Object arg1) { - return messageFactory.getMessage("wsgen.cannot.gen.wsdl.for.soap12.binding", arg0, arg1); - } - - /** - * wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}.Please specify "-extension" and "-wsdl:protocol XSoap1.2" switches. For example:wsgen -wsdl:protocol XSoap1.2 -extenson {1} - * - */ - public static String WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(Object arg0, Object arg1) { - return localizer.localize(localizableWSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(arg0, arg1)); - } - - public static Localizable localizableWSIMPORT_ILLEGAL_TARGET_VERSION(Object arg0) { - return messageFactory.getMessage("wsimport.ILLEGAL_TARGET_VERSION", arg0); - } - - /** - * "{0}" is not a valid target version. "2.0" and "2.1" are supported. - * - */ - public static String WSIMPORT_ILLEGAL_TARGET_VERSION(Object arg0) { - return localizer.localize(localizableWSIMPORT_ILLEGAL_TARGET_VERSION(arg0)); - } - - public static Localizable localizableWSIMPORT_ILLEGAL_PROXY(Object arg0) { - return messageFactory.getMessage("wsimport.ILLEGAL_PROXY", arg0); - } - - /** - * "{0}" is not a valid proxy format. The format is [user[:password]@]proxyHost:proxyPort - * - */ - public static String WSIMPORT_ILLEGAL_PROXY(Object arg0) { - return localizer.localize(localizableWSIMPORT_ILLEGAL_PROXY(arg0)); + public static String WSIMPORT_HTTP_REDIRECT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSIMPORT_HTTP_REDIRECT(arg0, arg1)); } public static Localizable localizableWSGEN_PORTNAME_MISSING_LOCALNAME(Object arg0) { - return messageFactory.getMessage("wsgen.portname.missing.localname", arg0); + return MESSAGE_FACTORY.getMessage("wsgen.portname.missing.localname", arg0); } /** @@ -957,31 +880,116 @@ public final class WscompileMessages { * */ public static String WSGEN_PORTNAME_MISSING_LOCALNAME(Object arg0) { - return localizer.localize(localizableWSGEN_PORTNAME_MISSING_LOCALNAME(arg0)); + return LOCALIZER.localize(localizableWSGEN_PORTNAME_MISSING_LOCALNAME(arg0)); } - public static Localizable localizableWSGEN_PORTNAME_MISSING_NAMESPACE(Object arg0) { - return messageFactory.getMessage("wsgen.portname.missing.namespace", arg0); + public static Localizable localizableWSIMPORT_ERROR_MESSAGE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.ErrorMessage", arg0); } /** - * The port name "{0}" is missing a namespace. + * [ERROR] {0} * */ - public static String WSGEN_PORTNAME_MISSING_NAMESPACE(Object arg0) { - return localizer.localize(localizableWSGEN_PORTNAME_MISSING_NAMESPACE(arg0)); + public static String WSIMPORT_ERROR_MESSAGE(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_ERROR_MESSAGE(arg0)); } - public static Localizable localizableWSIMPORT_FULLVERSION(Object arg0) { - return messageFactory.getMessage("wsimport.fullversion", arg0); + public static Localizable localizableWSGEN_FULLVERSION(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.fullversion", arg0); } /** - * wsimport full version "{0}" + * wsgen full version "{0}" * */ - public static String WSIMPORT_FULLVERSION(Object arg0) { - return localizer.localize(localizableWSIMPORT_FULLVERSION(arg0)); + public static String WSGEN_FULLVERSION(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_FULLVERSION(arg0)); + } + + public static Localizable localizableWSGEN_WSDL_ARG_NO_GENWSDL(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.wsdl.arg.no.genwsdl", arg0); + } + + /** + * The "{0}" option can only be in conjunction with the "-wsdl" option. + * + */ + public static String WSGEN_WSDL_ARG_NO_GENWSDL(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_WSDL_ARG_NO_GENWSDL(arg0)); + } + + public static Localizable localizableWSCOMPILE_INFO(Object arg0) { + return MESSAGE_FACTORY.getMessage("wscompile.info", arg0); + } + + /** + * info: {0} + * + */ + public static String WSCOMPILE_INFO(Object arg0) { + return LOCALIZER.localize(localizableWSCOMPILE_INFO(arg0)); + } + + public static Localizable localizableWSGEN_COULD_NOT_CREATE_FILE(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsgen.could.not.create.file", arg0); + } + + /** + * Could not create file: "{0}" + * + */ + public static String WSGEN_COULD_NOT_CREATE_FILE(Object arg0) { + return LOCALIZER.localize(localizableWSGEN_COULD_NOT_CREATE_FILE(arg0)); + } + + public static Localizable localizableWSIMPORT_ILLEGAL_AUTH_INFO(Object arg0) { + return MESSAGE_FACTORY.getMessage("wsimport.ILLEGAL_AUTH_INFO", arg0); + } + + /** + * "{0}" is not a valid authorization information format. The format is http[s]://user:password@host:port//. + * + */ + public static String WSIMPORT_ILLEGAL_AUTH_INFO(Object arg0) { + return LOCALIZER.localize(localizableWSIMPORT_ILLEGAL_AUTH_INFO(arg0)); + } + + public static Localizable localizableWSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("wsgen.cannot.gen.wsdl.for.non.soap.binding", arg0, arg1); + } + + /** + * wsgen can not generate WSDL for non-SOAP binding: {0} on Class {1} + * + */ + public static String WSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWSGEN_CANNOT_GEN_WSDL_FOR_NON_SOAP_BINDING(arg0, arg1)); + } + + public static Localizable localizableWSIMPORT_FETCHING_METADATA() { + return MESSAGE_FACTORY.getMessage("wsimport.fetchingMetadata"); + } + + /** + * + * Downloading the WSDL and associated metadata + * + * + */ + public static String WSIMPORT_FETCHING_METADATA() { + return LOCALIZER.localize(localizableWSIMPORT_FETCHING_METADATA()); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WsdlMessages.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WsdlMessages.java index a4ac6af4dfe..056ece95582 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WsdlMessages.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/WsdlMessages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -25,12 +25,12 @@ package com.sun.tools.internal.ws.resources; -import com.sun.istack.internal.localization.Localizable; -import com.sun.istack.internal.localization.LocalizableMessageFactory; -import com.sun.istack.internal.localization.Localizer; - import java.util.Locale; import java.util.ResourceBundle; +import com.sun.istack.internal.localization.Localizable; +import com.sun.istack.internal.localization.LocalizableMessageFactory; +import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier; +import com.sun.istack.internal.localization.Localizer; /** @@ -38,41 +38,49 @@ import java.util.ResourceBundle; * */ public final class WsdlMessages { + private final static String BUNDLE_NAME = "com.sun.tools.internal.ws.resources.wsdl"; - private final static LocalizableMessageFactory messageFactory = - new LocalizableMessageFactory(BUNDLE_NAME, WsdlMessages::getResourceBundle); - private final static Localizer localizer = new Localizer(); + private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new WsdlMessages.BundleSupplier()); + private final static Localizer LOCALIZER = new Localizer(); - private static ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(BUNDLE_NAME, locale); - } - - public static Localizable localizablePARSING_ELEMENT_EXPECTED() { - return messageFactory.getMessage("parsing.elementExpected"); + public static Localizable localizablePARSING_NOT_AWSDL(Object arg0) { + return MESSAGE_FACTORY.getMessage("Parsing.NotAWSDL", arg0); } /** - * unexpected non-element found + * Failed to get WSDL components, probably {0} is not a valid WSDL file. * */ - public static String PARSING_ELEMENT_EXPECTED() { - return localizer.localize(localizablePARSING_ELEMENT_EXPECTED()); + public static String PARSING_NOT_AWSDL(Object arg0) { + return LOCALIZER.localize(localizablePARSING_NOT_AWSDL(arg0)); } - public static Localizable localizableENTITY_NOT_FOUND_BINDING(Object arg0, Object arg1) { - return messageFactory.getMessage("entity.notFound.binding", arg0, arg1); + public static Localizable localizablePARSER_NOT_A_BINDING_FILE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("Parser.NotABindingFile", arg0, arg1); } /** - * wsdl:binding "{0}" referenced by wsdl:port "{1}", but it's not found in the wsdl + * not an external binding file. The root element must be '{'http://java.sun.com/xml/ns/jaxws'}'bindings but it is '{'{0}'}'{1} * */ - public static String ENTITY_NOT_FOUND_BINDING(Object arg0, Object arg1) { - return localizer.localize(localizableENTITY_NOT_FOUND_BINDING(arg0, arg1)); + public static String PARSER_NOT_A_BINDING_FILE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizablePARSER_NOT_A_BINDING_FILE(arg0, arg1)); + } + + public static Localizable localizablePARSING_UNKNOWN_EXTENSIBILITY_ELEMENT_OR_ATTRIBUTE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("parsing.unknownExtensibilityElementOrAttribute", arg0, arg1); + } + + /** + * unknown extensibility element or attribute "{0}" (in namespace "{1}") + * + */ + public static String PARSING_UNKNOWN_EXTENSIBILITY_ELEMENT_OR_ATTRIBUTE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizablePARSING_UNKNOWN_EXTENSIBILITY_ELEMENT_OR_ATTRIBUTE(arg0, arg1)); } public static Localizable localizablePARSING_UNABLE_TO_GET_METADATA(Object arg0, Object arg1) { - return messageFactory.getMessage("parsing.unableToGetMetadata", arg0, arg1); + return MESSAGE_FACTORY.getMessage("parsing.unableToGetMetadata", arg0, arg1); } /** @@ -82,555 +90,11 @@ public final class WsdlMessages { * */ public static String PARSING_UNABLE_TO_GET_METADATA(Object arg0, Object arg1) { - return localizer.localize(localizablePARSING_UNABLE_TO_GET_METADATA(arg0, arg1)); - } - - public static Localizable localizablePARSING_PARSE_FAILED() { - return messageFactory.getMessage("Parsing.ParseFailed"); - } - - /** - * Failed to parse the WSDL. - * - */ - public static String PARSING_PARSE_FAILED() { - return localizer.localize(localizablePARSING_PARSE_FAILED()); - } - - public static Localizable localizablePARSING_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { - return messageFactory.getMessage("parsing.invalidAttributeValue", arg0, arg1); - } - - /** - * invalid value "{1}" for attribute "{0}" - * - */ - public static String PARSING_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { - return localizer.localize(localizablePARSING_INVALID_ATTRIBUTE_VALUE(arg0, arg1)); - } - - public static Localizable localizableVALIDATION_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.invalidAttributeValue", arg0, arg1); - } - - /** - * invalid value "{1}" for attribute "{0}" - * - */ - public static String VALIDATION_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_INVALID_ATTRIBUTE_VALUE(arg0, arg1)); - } - - public static Localizable localizablePARSING_INVALID_TAG(Object arg0, Object arg1) { - return messageFactory.getMessage("parsing.invalidTag", arg0, arg1); - } - - /** - * expected element "{1}", found "{0}" - * - */ - public static String PARSING_INVALID_TAG(Object arg0, Object arg1) { - return localizer.localize(localizablePARSING_INVALID_TAG(arg0, arg1)); - } - - public static Localizable localizableENTITY_NOT_FOUND_PORT_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("entity.notFound.portType", arg0, arg1); - } - - /** - * wsdl:portType "{0}" referenced by wsdl:binding "{1}", but it's not found in the wsdl - * - */ - public static String ENTITY_NOT_FOUND_PORT_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableENTITY_NOT_FOUND_PORT_TYPE(arg0, arg1)); - } - - public static Localizable localizablePARSING_MISSING_REQUIRED_ATTRIBUTE(Object arg0, Object arg1) { - return messageFactory.getMessage("parsing.missingRequiredAttribute", arg0, arg1); - } - - /** - * missing required attribute "{1}" of element "{0}" - * - */ - public static String PARSING_MISSING_REQUIRED_ATTRIBUTE(Object arg0, Object arg1) { - return localizer.localize(localizablePARSING_MISSING_REQUIRED_ATTRIBUTE(arg0, arg1)); - } - - public static Localizable localizablePARSING_INVALID_ELEMENT(Object arg0, Object arg1) { - return messageFactory.getMessage("parsing.invalidElement", arg0, arg1); - } - - /** - * invalid element: "{0}" (in namespace "{1}") - * - */ - public static String PARSING_INVALID_ELEMENT(Object arg0, Object arg1) { - return localizer.localize(localizablePARSING_INVALID_ELEMENT(arg0, arg1)); - } - - public static Localizable localizableVALIDATION_INVALID_ELEMENT(Object arg0) { - return messageFactory.getMessage("validation.invalidElement", arg0); - } - - /** - * invalid element: "{0}" - * - */ - public static String VALIDATION_INVALID_ELEMENT(Object arg0) { - return localizer.localize(localizableVALIDATION_INVALID_ELEMENT(arg0)); - } - - public static Localizable localizableINTERNALIZER_TWO_VERSION_ATTRIBUTES() { - return messageFactory.getMessage("Internalizer.TwoVersionAttributes"); - } - - /** - * Both jaxws:version and version are present - * - */ - public static String INTERNALIZER_TWO_VERSION_ATTRIBUTES() { - return localizer.localize(localizableINTERNALIZER_TWO_VERSION_ATTRIBUTES()); - } - - public static Localizable localizableVALIDATION_DUPLICATE_PART_NAME(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.duplicatePartName", arg0, arg1); - } - - /** - * Invalid WSDL, duplicate parts in a wsdl:message is not allowed. - * wsdl:message {0} has a duplicated part name: "{1}" - * - */ - public static String VALIDATION_DUPLICATE_PART_NAME(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_DUPLICATE_PART_NAME(arg0, arg1)); - } - - public static Localizable localizablePARSING_INVALID_WSDL_ELEMENT(Object arg0) { - return messageFactory.getMessage("parsing.invalidWsdlElement", arg0); - } - - /** - * invalid WSDL element: "{0}" - * - */ - public static String PARSING_INVALID_WSDL_ELEMENT(Object arg0) { - return localizer.localize(localizablePARSING_INVALID_WSDL_ELEMENT(arg0)); - } - - public static Localizable localizablePARSING_NON_WHITESPACE_TEXT_FOUND(Object arg0) { - return messageFactory.getMessage("parsing.nonWhitespaceTextFound", arg0); - } - - /** - * found unexpected non-whitespace text: "{0}" - * - */ - public static String PARSING_NON_WHITESPACE_TEXT_FOUND(Object arg0) { - return localizer.localize(localizablePARSING_NON_WHITESPACE_TEXT_FOUND(arg0)); - } - - public static Localizable localizableINTERNALIZER_TARGET_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("internalizer.targetNotFound", arg0); - } - - /** - * No target found for the wsdlLocation: {0} - * - */ - public static String INTERNALIZER_TARGET_NOT_FOUND(Object arg0) { - return localizer.localize(localizableINTERNALIZER_TARGET_NOT_FOUND(arg0)); - } - - public static Localizable localizablePARSING_SAX_EXCEPTION_WITH_SYSTEM_ID(Object arg0) { - return messageFactory.getMessage("parsing.saxExceptionWithSystemId", arg0); - } - - /** - * invalid WSDL file! failed to parse document at "{0}" - * - */ - public static String PARSING_SAX_EXCEPTION_WITH_SYSTEM_ID(Object arg0) { - return localizer.localize(localizablePARSING_SAX_EXCEPTION_WITH_SYSTEM_ID(arg0)); - } - - public static Localizable localizablePARSING_REQUIRED_EXTENSIBILITY_ELEMENT(Object arg0, Object arg1) { - return messageFactory.getMessage("parsing.requiredExtensibilityElement", arg0, arg1); - } - - /** - * unknown required extensibility element "{0}" (in namespace "{1}") - * - */ - public static String PARSING_REQUIRED_EXTENSIBILITY_ELEMENT(Object arg0, Object arg1) { - return localizer.localize(localizablePARSING_REQUIRED_EXTENSIBILITY_ELEMENT(arg0, arg1)); - } - - public static Localizable localizableENTITY_NOT_FOUND_BY_ID(Object arg0) { - return messageFactory.getMessage("entity.notFoundByID", arg0); - } - - /** - * invalid entity id: "{0}" - * - */ - public static String ENTITY_NOT_FOUND_BY_ID(Object arg0) { - return localizer.localize(localizableENTITY_NOT_FOUND_BY_ID(arg0)); - } - - public static Localizable localizableVALIDATION_EXCLUSIVE_ATTRIBUTES(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.exclusiveAttributes", arg0, arg1); - } - - /** - * exclusive attributes: "{0}", "{1}" - * - */ - public static String VALIDATION_EXCLUSIVE_ATTRIBUTES(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_EXCLUSIVE_ATTRIBUTES(arg0, arg1)); - } - - public static Localizable localizableVALIDATION_MISSING_REQUIRED_SUB_ENTITY(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.missingRequiredSubEntity", arg0, arg1); - } - - /** - * missing required sub-entity "{0}" of element "{1}" - * - */ - public static String VALIDATION_MISSING_REQUIRED_SUB_ENTITY(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_MISSING_REQUIRED_SUB_ENTITY(arg0, arg1)); - } - - public static Localizable localizableINTERNALIZER_INCORRECT_VERSION() { - return messageFactory.getMessage("Internalizer.IncorrectVersion"); - } - - /** - * JAXWS version attribute must be "2.0" - * - */ - public static String INTERNALIZER_INCORRECT_VERSION() { - return localizer.localize(localizableINTERNALIZER_INCORRECT_VERSION()); - } - - public static Localizable localizableLOCALIZED_ERROR(Object arg0) { - return messageFactory.getMessage("localized.error", arg0); - } - - /** - * {0} - * - */ - public static String LOCALIZED_ERROR(Object arg0) { - return localizer.localize(localizableLOCALIZED_ERROR(arg0)); - } - - public static Localizable localizableENTITY_DUPLICATE_WITH_TYPE(Object arg0, Object arg1) { - return messageFactory.getMessage("entity.duplicateWithType", arg0, arg1); - } - - /** - * duplicate "{0}" entity: "{1}" - * - */ - public static String ENTITY_DUPLICATE_WITH_TYPE(Object arg0, Object arg1) { - return localizer.localize(localizableENTITY_DUPLICATE_WITH_TYPE(arg0, arg1)); - } - - public static Localizable localizablePARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(Object arg0) { - return messageFactory.getMessage("parsing.onlyOneOfElementOrTypeRequired", arg0); - } - - /** - * only one of the "element" or "type" attributes is allowed in part "{0}" - * - */ - public static String PARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(Object arg0) { - return localizer.localize(localizablePARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(arg0)); - } - - public static Localizable localizableVALIDATION_UNSUPPORTED_USE_ENCODED(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.unsupportedUse.encoded", arg0, arg1); - } - - /** - * "Use of SOAP Encoding is not supported. - * SOAP extension element on line {0} in {1} has use="encoded" " - * - */ - public static String VALIDATION_UNSUPPORTED_USE_ENCODED(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_UNSUPPORTED_USE_ENCODED(arg0, arg1)); - } - - public static Localizable localizablePARSING_INCORRECT_ROOT_ELEMENT(Object arg0, Object arg1, Object arg2, Object arg3) { - return messageFactory.getMessage("parsing.incorrectRootElement", arg0, arg1, arg2, arg3); - } - - /** - * expected root element "{2}" (in namespace "{3}"), found element "{0}" (in namespace "{1}") - * - */ - public static String PARSING_INCORRECT_ROOT_ELEMENT(Object arg0, Object arg1, Object arg2, Object arg3) { - return localizer.localize(localizablePARSING_INCORRECT_ROOT_ELEMENT(arg0, arg1, arg2, arg3)); - } - - public static Localizable localizableTRY_WITH_MEX(Object arg0) { - return messageFactory.getMessage("try.with.mex", arg0); - } - - /** - * {0} - * - * retrying with MEX... - * - */ - public static String TRY_WITH_MEX(Object arg0) { - return localizer.localize(localizableTRY_WITH_MEX(arg0)); - } - - public static Localizable localizableVALIDATION_MISSING_REQUIRED_ATTRIBUTE(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.missingRequiredAttribute", arg0, arg1); - } - - /** - * missing required attribute "{0}" of element "{1}" - * - */ - public static String VALIDATION_MISSING_REQUIRED_ATTRIBUTE(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_MISSING_REQUIRED_ATTRIBUTE(arg0, arg1)); - } - - public static Localizable localizablePARSING_IO_EXCEPTION(Object arg0) { - return messageFactory.getMessage("parsing.ioException", arg0); - } - - /** - * parsing failed: {0} - * - */ - public static String PARSING_IO_EXCEPTION(Object arg0) { - return localizer.localize(localizablePARSING_IO_EXCEPTION(arg0)); - } - - public static Localizable localizableINTERNALIZER_X_PATH_EVAULATES_TO_TOO_MANY_TARGETS(Object arg0, Object arg1) { - return messageFactory.getMessage("internalizer.XPathEvaulatesToTooManyTargets", arg0, arg1); - } - - /** - * XPath evaluation of "{0}" results in too many ({1}) target nodes - * - */ - public static String INTERNALIZER_X_PATH_EVAULATES_TO_TOO_MANY_TARGETS(Object arg0, Object arg1) { - return localizer.localize(localizableINTERNALIZER_X_PATH_EVAULATES_TO_TOO_MANY_TARGETS(arg0, arg1)); - } - - public static Localizable localizablePARSER_NOT_A_BINDING_FILE(Object arg0, Object arg1) { - return messageFactory.getMessage("Parser.NotABindingFile", arg0, arg1); - } - - /** - * not an external binding file. The root element must be '{'http://java.sun.com/xml/ns/jaxws'}'bindings but it is '{'{0}'}'{1} - * - */ - public static String PARSER_NOT_A_BINDING_FILE(Object arg0, Object arg1) { - return localizer.localize(localizablePARSER_NOT_A_BINDING_FILE(arg0, arg1)); - } - - public static Localizable localizablePARSING_UNKNOWN_NAMESPACE_PREFIX(Object arg0) { - return messageFactory.getMessage("parsing.unknownNamespacePrefix", arg0); - } - - /** - * undeclared namespace prefix: "{0}" - * - */ - public static String PARSING_UNKNOWN_NAMESPACE_PREFIX(Object arg0) { - return localizer.localize(localizablePARSING_UNKNOWN_NAMESPACE_PREFIX(arg0)); - } - - public static Localizable localizablePARSING_FACTORY_CONFIG_EXCEPTION(Object arg0) { - return messageFactory.getMessage("parsing.factoryConfigException", arg0); - } - - /** - * invalid WSDL file! parsing failed: {0} - * - */ - public static String PARSING_FACTORY_CONFIG_EXCEPTION(Object arg0) { - return localizer.localize(localizablePARSING_FACTORY_CONFIG_EXCEPTION(arg0)); - } - - public static Localizable localizableVALIDATION_MISSING_REQUIRED_PROPERTY(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.missingRequiredProperty", arg0, arg1); - } - - /** - * missing required property "{0}" of element "{1}" - * - */ - public static String VALIDATION_MISSING_REQUIRED_PROPERTY(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_MISSING_REQUIRED_PROPERTY(arg0, arg1)); - } - - public static Localizable localizablePARSING_INVALID_OPERATION_STYLE(Object arg0) { - return messageFactory.getMessage("parsing.invalidOperationStyle", arg0); - } - - /** - * operation "{0}" has an invalid style - * - */ - public static String PARSING_INVALID_OPERATION_STYLE(Object arg0) { - return localizer.localize(localizablePARSING_INVALID_OPERATION_STYLE(arg0)); - } - - public static Localizable localizableINTERNALIZER_X_PATH_EVALUATION_ERROR(Object arg0) { - return messageFactory.getMessage("internalizer.XPathEvaluationError", arg0); - } - - /** - * XPath error: {0} - * - */ - public static String INTERNALIZER_X_PATH_EVALUATION_ERROR(Object arg0) { - return localizer.localize(localizableINTERNALIZER_X_PATH_EVALUATION_ERROR(arg0)); - } - - public static Localizable localizableVALIDATION_INVALID_SUB_ENTITY(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.invalidSubEntity", arg0, arg1); - } - - /** - * invalid sub-element "{0}" of element "{1}" - * - */ - public static String VALIDATION_INVALID_SUB_ENTITY(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_INVALID_SUB_ENTITY(arg0, arg1)); - } - - public static Localizable localizableVALIDATION_SHOULD_NOT_HAPPEN(Object arg0) { - return messageFactory.getMessage("validation.shouldNotHappen", arg0); - } - - /** - * internal error ("{0}") - * - */ - public static String VALIDATION_SHOULD_NOT_HAPPEN(Object arg0) { - return localizer.localize(localizableVALIDATION_SHOULD_NOT_HAPPEN(arg0)); - } - - public static Localizable localizableABSTRACT_REFERENCE_FINDER_IMPL_UNABLE_TO_PARSE(Object arg0, Object arg1) { - return messageFactory.getMessage("AbstractReferenceFinderImpl.UnableToParse", arg0, arg1); - } - - /** - * Unable to parse "{0}" : {1} - * - */ - public static String ABSTRACT_REFERENCE_FINDER_IMPL_UNABLE_TO_PARSE(Object arg0, Object arg1) { - return localizer.localize(localizableABSTRACT_REFERENCE_FINDER_IMPL_UNABLE_TO_PARSE(arg0, arg1)); - } - - public static Localizable localizableWARNING_FAULT_EMPTY_ACTION(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("warning.faultEmptyAction", arg0, arg1, arg2); - } - - /** - * ignoring empty Action in "{0}" {1} element of "{2}" operation, using default instead - * - */ - public static String WARNING_FAULT_EMPTY_ACTION(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableWARNING_FAULT_EMPTY_ACTION(arg0, arg1, arg2)); - } - - public static Localizable localizablePARSING_INVALID_EXTENSION_ELEMENT(Object arg0, Object arg1) { - return messageFactory.getMessage("parsing.invalidExtensionElement", arg0, arg1); - } - - /** - * invalid extension element: "{0}" (in namespace "{1}") - * - */ - public static String PARSING_INVALID_EXTENSION_ELEMENT(Object arg0, Object arg1) { - return localizer.localize(localizablePARSING_INVALID_EXTENSION_ELEMENT(arg0, arg1)); - } - - public static Localizable localizableINTERNALIZER_X_PATH_EVALUATES_TO_NON_ELEMENT(Object arg0) { - return messageFactory.getMessage("internalizer.XPathEvaluatesToNonElement", arg0); - } - - /** - * XPath evaluation of "{0}" needs to result in an element. - * - */ - public static String INTERNALIZER_X_PATH_EVALUATES_TO_NON_ELEMENT(Object arg0) { - return localizer.localize(localizableINTERNALIZER_X_PATH_EVALUATES_TO_NON_ELEMENT(arg0)); - } - - public static Localizable localizableINTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET(Object arg0) { - return messageFactory.getMessage("internalizer.XPathEvaluatesToNoTarget", arg0); - } - - /** - * XPath evaluation of "{0}" results in an empty target node - * - */ - public static String INTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET(Object arg0) { - return localizer.localize(localizableINTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET(arg0)); - } - - public static Localizable localizablePARSING_SAX_EXCEPTION(Object arg0) { - return messageFactory.getMessage("parsing.saxException", arg0); - } - - /** - * invalid WSDL file! parsing failed: {0} - * - */ - public static String PARSING_SAX_EXCEPTION(Object arg0) { - return localizer.localize(localizablePARSING_SAX_EXCEPTION(arg0)); - } - - public static Localizable localizableINVALID_CUSTOMIZATION_NAMESPACE(Object arg0) { - return messageFactory.getMessage("invalid.customization.namespace", arg0); - } - - /** - * Ignoring customization: "{0}", because it has no namespace. It must belong to the customization namespace. - * - */ - public static String INVALID_CUSTOMIZATION_NAMESPACE(Object arg0) { - return localizer.localize(localizableINVALID_CUSTOMIZATION_NAMESPACE(arg0)); - } - - public static Localizable localizableVALIDATION_INVALID_ATTRIBUTE(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.invalidAttribute", arg0, arg1); - } - - /** - * invalid attribute "{0}" of element "{1}" - * - */ - public static String VALIDATION_INVALID_ATTRIBUTE(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_INVALID_ATTRIBUTE(arg0, arg1)); - } - - public static Localizable localizablePARSING_PARSER_CONFIG_EXCEPTION(Object arg0) { - return messageFactory.getMessage("parsing.parserConfigException", arg0); - } - - /** - * invalid WSDL file! parsing failed: {0} - * - */ - public static String PARSING_PARSER_CONFIG_EXCEPTION(Object arg0) { - return localizer.localize(localizablePARSING_PARSER_CONFIG_EXCEPTION(arg0)); + return LOCALIZER.localize(localizablePARSING_UNABLE_TO_GET_METADATA(arg0, arg1)); } public static Localizable localizablePARSING_ONLY_ONE_TYPES_ALLOWED(Object arg0) { - return messageFactory.getMessage("parsing.onlyOneTypesAllowed", arg0); + return MESSAGE_FACTORY.getMessage("parsing.onlyOneTypesAllowed", arg0); } /** @@ -638,215 +102,23 @@ public final class WsdlMessages { * */ public static String PARSING_ONLY_ONE_TYPES_ALLOWED(Object arg0) { - return localizer.localize(localizablePARSING_ONLY_ONE_TYPES_ALLOWED(arg0)); + return LOCALIZER.localize(localizablePARSING_ONLY_ONE_TYPES_ALLOWED(arg0)); } - public static Localizable localizablePARSING_INVALID_URI(Object arg0) { - return messageFactory.getMessage("parsing.invalidURI", arg0); + public static Localizable localizableVALIDATION_SHOULD_NOT_HAPPEN(Object arg0) { + return MESSAGE_FACTORY.getMessage("validation.shouldNotHappen", arg0); } /** - * invalid URI: {0} + * internal error ("{0}") * */ - public static String PARSING_INVALID_URI(Object arg0) { - return localizer.localize(localizablePARSING_INVALID_URI(arg0)); - } - - public static Localizable localizableVALIDATION_INCORRECT_TARGET_NAMESPACE(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.incorrectTargetNamespace", arg0, arg1); - } - - /** - * target namespace is incorrect (expected: {1}, found: {0}) - * - */ - public static String VALIDATION_INCORRECT_TARGET_NAMESPACE(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_INCORRECT_TARGET_NAMESPACE(arg0, arg1)); - } - - public static Localizable localizableENTITY_NOT_FOUND_BY_Q_NAME(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("entity.notFoundByQName", arg0, arg1, arg2); - } - - /** - * {0} "{1}" not found in the wsdl: {2} - * - */ - public static String ENTITY_NOT_FOUND_BY_Q_NAME(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizableENTITY_NOT_FOUND_BY_Q_NAME(arg0, arg1, arg2)); - } - - public static Localizable localizableINVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) { - return messageFactory.getMessage("invalid.wsdl", arg0, arg1, arg2, arg3); - } - - /** - * Invalid WSDL {0}, expected {1} found {2} at (line {3}) - * - */ - public static String INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) { - return localizer.localize(localizableINVALID_WSDL(arg0, arg1, arg2, arg3)); - } - - public static Localizable localizablePARSING_UNKNOWN_IMPORTED_DOCUMENT_TYPE(Object arg0) { - return messageFactory.getMessage("parsing.unknownImportedDocumentType", arg0); - } - - /** - * imported document is of unknown type: {0} - * - */ - public static String PARSING_UNKNOWN_IMPORTED_DOCUMENT_TYPE(Object arg0) { - return localizer.localize(localizablePARSING_UNKNOWN_IMPORTED_DOCUMENT_TYPE(arg0)); - } - - public static Localizable localizablePARSING_IO_EXCEPTION_WITH_SYSTEM_ID(Object arg0) { - return messageFactory.getMessage("parsing.ioExceptionWithSystemId", arg0); - } - - /** - * failed to parse document at "{0}" - * - */ - public static String PARSING_IO_EXCEPTION_WITH_SYSTEM_ID(Object arg0) { - return localizer.localize(localizablePARSING_IO_EXCEPTION_WITH_SYSTEM_ID(arg0)); - } - - public static Localizable localizableVALIDATION_AMBIGUOUS_NAME(Object arg0) { - return messageFactory.getMessage("validation.ambiguousName", arg0); - } - - /** - * ambiguous operation name: "{0}" - * - */ - public static String VALIDATION_AMBIGUOUS_NAME(Object arg0) { - return localizer.localize(localizableVALIDATION_AMBIGUOUS_NAME(arg0)); - } - - public static Localizable localizablePARSING_WSDL_NOT_DEFAULT_NAMESPACE(Object arg0) { - return messageFactory.getMessage("parsing.wsdlNotDefaultNamespace", arg0); - } - - /** - * default namespace must be "{0}" - * - */ - public static String PARSING_WSDL_NOT_DEFAULT_NAMESPACE(Object arg0) { - return localizer.localize(localizablePARSING_WSDL_NOT_DEFAULT_NAMESPACE(arg0)); - } - - public static Localizable localizablePARSING_UNKNOWN_EXTENSIBILITY_ELEMENT_OR_ATTRIBUTE(Object arg0, Object arg1) { - return messageFactory.getMessage("parsing.unknownExtensibilityElementOrAttribute", arg0, arg1); - } - - /** - * unknown extensibility element or attribute "{0}" (in namespace "{1}") - * - */ - public static String PARSING_UNKNOWN_EXTENSIBILITY_ELEMENT_OR_ATTRIBUTE(Object arg0, Object arg1) { - return localizer.localize(localizablePARSING_UNKNOWN_EXTENSIBILITY_ELEMENT_OR_ATTRIBUTE(arg0, arg1)); - } - - public static Localizable localizableVALIDATION_DUPLICATED_ELEMENT(Object arg0) { - return messageFactory.getMessage("validation.duplicatedElement", arg0); - } - - /** - * duplicated element: "{0}" - * - */ - public static String VALIDATION_DUPLICATED_ELEMENT(Object arg0) { - return localizer.localize(localizableVALIDATION_DUPLICATED_ELEMENT(arg0)); - } - - public static Localizable localizableINTERNALIZER_TARGET_NOT_AN_ELEMENT() { - return messageFactory.getMessage("internalizer.targetNotAnElement"); - } - - /** - * Target node is not an element - * - */ - public static String INTERNALIZER_TARGET_NOT_AN_ELEMENT() { - return localizer.localize(localizableINTERNALIZER_TARGET_NOT_AN_ELEMENT()); - } - - public static Localizable localizableWARNING_INPUT_OUTPUT_EMPTY_ACTION(Object arg0, Object arg1) { - return messageFactory.getMessage("warning.inputOutputEmptyAction", arg0, arg1); - } - - /** - * ignoring empty Action in {0} element of "{1}" operation, using default instead - * - */ - public static String WARNING_INPUT_OUTPUT_EMPTY_ACTION(Object arg0, Object arg1) { - return localizer.localize(localizableWARNING_INPUT_OUTPUT_EMPTY_ACTION(arg0, arg1)); - } - - public static Localizable localizablePARSING_INVALID_TAG_NS(Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) { - return messageFactory.getMessage("parsing.invalidTagNS", arg0, arg1, arg2, arg3, arg4); - } - - /** - * Invalid WSDL at {4}: expected element "{2}" (in namespace "{3}"), found element "{0}" (in namespace "{1}") - * - */ - public static String PARSING_INVALID_TAG_NS(Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) { - return localizer.localize(localizablePARSING_INVALID_TAG_NS(arg0, arg1, arg2, arg3, arg4)); - } - - public static Localizable localizableINVALID_WSDL_WITH_DOOC(Object arg0, Object arg1) { - return messageFactory.getMessage("invalid.wsdl.with.dooc", arg0, arg1); - } - - /** - * "Not a WSDL document: {0}, it gives "{1}", retrying with MEX..." - * - */ - public static String INVALID_WSDL_WITH_DOOC(Object arg0, Object arg1) { - return localizer.localize(localizableINVALID_WSDL_WITH_DOOC(arg0, arg1)); - } - - public static Localizable localizablePARSING_NOT_AWSDL(Object arg0) { - return messageFactory.getMessage("Parsing.NotAWSDL", arg0); - } - - /** - * Failed to get WSDL components, probably {0} is not a valid WSDL file. - * - */ - public static String PARSING_NOT_AWSDL(Object arg0) { - return localizer.localize(localizablePARSING_NOT_AWSDL(arg0)); - } - - public static Localizable localizableENTITY_DUPLICATE(Object arg0) { - return messageFactory.getMessage("entity.duplicate", arg0); - } - - /** - * duplicate entity: "{0}" - * - */ - public static String ENTITY_DUPLICATE(Object arg0) { - return localizer.localize(localizableENTITY_DUPLICATE(arg0)); - } - - public static Localizable localizableWARNING_WSI_R_2004() { - return messageFactory.getMessage("warning.wsi.r2004"); - } - - /** - * Not a WSI-BP compliant WSDL (R2001, R2004). xsd:import must not import XML Schema definitions embedded inline within the WSDL document. - * - */ - public static String WARNING_WSI_R_2004() { - return localizer.localize(localizableWARNING_WSI_R_2004()); + public static String VALIDATION_SHOULD_NOT_HAPPEN(Object arg0) { + return LOCALIZER.localize(localizableVALIDATION_SHOULD_NOT_HAPPEN(arg0)); } public static Localizable localizableWARNING_WSI_R_2003() { - return messageFactory.getMessage("warning.wsi.r2003"); + return MESSAGE_FACTORY.getMessage("warning.wsi.r2003"); } /** @@ -854,95 +126,71 @@ public final class WsdlMessages { * */ public static String WARNING_WSI_R_2003() { - return localizer.localize(localizableWARNING_WSI_R_2003()); + return LOCALIZER.localize(localizableWARNING_WSI_R_2003()); } - public static Localizable localizableWARNING_WSI_R_2002(Object arg0, Object arg1) { - return messageFactory.getMessage("warning.wsi.r2002", arg0, arg1); + public static Localizable localizableWARNING_WSI_R_2004() { + return MESSAGE_FACTORY.getMessage("warning.wsi.r2004"); } /** - * Not a WSI-BP compliant WSDL (R2002). wsdl:import must not be used to import XML Schema embedded in the WSDL document. Expected WSDL namespace: {0}, found: {1} + * Not a WSI-BP compliant WSDL (R2001, R2004). xsd:import must not import XML Schema definitions embedded inline within the WSDL document. * */ - public static String WARNING_WSI_R_2002(Object arg0, Object arg1) { - return localizer.localize(localizableWARNING_WSI_R_2002(arg0, arg1)); + public static String WARNING_WSI_R_2004() { + return LOCALIZER.localize(localizableWARNING_WSI_R_2004()); } - public static Localizable localizablePARSING_ELEMENT_OR_TYPE_REQUIRED(Object arg0) { - return messageFactory.getMessage("parsing.elementOrTypeRequired", arg0); + public static Localizable localizableVALIDATION_INVALID_ATTRIBUTE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.invalidAttribute", arg0, arg1); } /** - * warning: part {0} is ignored, either the "element" or the "type" attribute is required in part "{0}" + * invalid attribute "{0}" of element "{1}" * */ - public static String PARSING_ELEMENT_OR_TYPE_REQUIRED(Object arg0) { - return localizer.localize(localizablePARSING_ELEMENT_OR_TYPE_REQUIRED(arg0)); + public static String VALIDATION_INVALID_ATTRIBUTE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_INVALID_ATTRIBUTE(arg0, arg1)); } - public static Localizable localizableWARNING_WSI_R_2001() { - return messageFactory.getMessage("warning.wsi.r2001"); + public static Localizable localizableVALIDATION_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.invalidAttributeValue", arg0, arg1); } /** - * Not a WSI-BP compliant WSDL (R2001, R2002). wsdl:import must import only WSDL documents. It's trying to import: "{0}" + * invalid value "{1}" for attribute "{0}" * */ - public static String WARNING_WSI_R_2001() { - return localizer.localize(localizableWARNING_WSI_R_2001()); + public static String VALIDATION_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_INVALID_ATTRIBUTE_VALUE(arg0, arg1)); } - public static Localizable localizableFILE_NOT_FOUND(Object arg0) { - return messageFactory.getMessage("file.not.found", arg0); + public static Localizable localizablePARSING_IO_EXCEPTION_WITH_SYSTEM_ID(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.ioExceptionWithSystemId", arg0); } /** - * {0} is unreachable + * failed to parse document at "{0}" * */ - public static String FILE_NOT_FOUND(Object arg0) { - return localizer.localize(localizableFILE_NOT_FOUND(arg0)); + public static String PARSING_IO_EXCEPTION_WITH_SYSTEM_ID(Object arg0) { + return LOCALIZER.localize(localizablePARSING_IO_EXCEPTION_WITH_SYSTEM_ID(arg0)); } - public static Localizable localizableVALIDATION_INVALID_SIMPLE_TYPE_IN_ELEMENT(Object arg0, Object arg1) { - return messageFactory.getMessage("validation.invalidSimpleTypeInElement", arg0, arg1); + public static Localizable localizablePARSING_PARSE_FAILED() { + return MESSAGE_FACTORY.getMessage("Parsing.ParseFailed"); } /** - * invalid element: "{1}", has named simpleType: "{0}" + * Failed to parse the WSDL. * */ - public static String VALIDATION_INVALID_SIMPLE_TYPE_IN_ELEMENT(Object arg0, Object arg1) { - return localizer.localize(localizableVALIDATION_INVALID_SIMPLE_TYPE_IN_ELEMENT(arg0, arg1)); - } - - public static Localizable localizablePARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(Object arg0) { - return messageFactory.getMessage("parsing.onlyOneDocumentationAllowed", arg0); - } - - /** - * only one "documentation" element allowed in "{0}" - * - */ - public static String PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(Object arg0) { - return localizer.localize(localizablePARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(arg0)); - } - - public static Localizable localizableINTERNALIZER_VERSION_NOT_PRESENT() { - return messageFactory.getMessage("Internalizer.VersionNotPresent"); - } - - /** - * JAXWS version attribute must be present - * - */ - public static String INTERNALIZER_VERSION_NOT_PRESENT() { - return localizer.localize(localizableINTERNALIZER_VERSION_NOT_PRESENT()); + public static String PARSING_PARSE_FAILED() { + return LOCALIZER.localize(localizablePARSING_PARSE_FAILED()); } public static Localizable localizableFAILED_NOSERVICE(Object arg0) { - return messageFactory.getMessage("failed.noservice", arg0); + return MESSAGE_FACTORY.getMessage("failed.noservice", arg0); } /** @@ -952,11 +200,120 @@ public final class WsdlMessages { * */ public static String FAILED_NOSERVICE(Object arg0) { - return localizer.localize(localizableFAILED_NOSERVICE(arg0)); + return LOCALIZER.localize(localizableFAILED_NOSERVICE(arg0)); + } + + public static Localizable localizableENTITY_DUPLICATE_WITH_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("entity.duplicateWithType", arg0, arg1); + } + + /** + * duplicate "{0}" entity: "{1}" + * + */ + public static String ENTITY_DUPLICATE_WITH_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableENTITY_DUPLICATE_WITH_TYPE(arg0, arg1)); + } + + public static Localizable localizableVALIDATION_DUPLICATE_PART_NAME(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.duplicatePartName", arg0, arg1); + } + + /** + * Invalid WSDL, duplicate parts in a wsdl:message is not allowed. + * wsdl:message {0} has a duplicated part name: "{1}" + * + */ + public static String VALIDATION_DUPLICATE_PART_NAME(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_DUPLICATE_PART_NAME(arg0, arg1)); + } + + public static Localizable localizablePARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.onlyOneOfElementOrTypeRequired", arg0); + } + + /** + * only one of the "element" or "type" attributes is allowed in part "{0}" + * + */ + public static String PARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(Object arg0) { + return LOCALIZER.localize(localizablePARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(arg0)); + } + + public static Localizable localizablePARSING_INCORRECT_ROOT_ELEMENT(Object arg0, Object arg1, Object arg2, Object arg3) { + return MESSAGE_FACTORY.getMessage("parsing.incorrectRootElement", arg0, arg1, arg2, arg3); + } + + /** + * expected root element "{2}" (in namespace "{3}"), found element "{0}" (in namespace "{1}") + * + */ + public static String PARSING_INCORRECT_ROOT_ELEMENT(Object arg0, Object arg1, Object arg2, Object arg3) { + return LOCALIZER.localize(localizablePARSING_INCORRECT_ROOT_ELEMENT(arg0, arg1, arg2, arg3)); + } + + public static Localizable localizableINVALID_WSDL_WITH_DOOC(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("invalid.wsdl.with.dooc", arg0, arg1); + } + + /** + * "Not a WSDL document: {0}, it gives "{1}", retrying with MEX..." + * + */ + public static String INVALID_WSDL_WITH_DOOC(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINVALID_WSDL_WITH_DOOC(arg0, arg1)); + } + + public static Localizable localizableINTERNALIZER_X_PATH_EVAULATES_TO_TOO_MANY_TARGETS(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("internalizer.XPathEvaulatesToTooManyTargets", arg0, arg1); + } + + /** + * XPath evaluation of "{0}" results in too many ({1}) target nodes + * + */ + public static String INTERNALIZER_X_PATH_EVAULATES_TO_TOO_MANY_TARGETS(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableINTERNALIZER_X_PATH_EVAULATES_TO_TOO_MANY_TARGETS(arg0, arg1)); + } + + public static Localizable localizablePARSING_ELEMENT_EXPECTED() { + return MESSAGE_FACTORY.getMessage("parsing.elementExpected"); + } + + /** + * unexpected non-element found + * + */ + public static String PARSING_ELEMENT_EXPECTED() { + return LOCALIZER.localize(localizablePARSING_ELEMENT_EXPECTED()); + } + + public static Localizable localizableFILE_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("file.not.found", arg0); + } + + /** + * {0} is unreachable + * + */ + public static String FILE_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableFILE_NOT_FOUND(arg0)); + } + + public static Localizable localizableVALIDATION_INVALID_SIMPLE_TYPE_IN_ELEMENT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.invalidSimpleTypeInElement", arg0, arg1); + } + + /** + * invalid element: "{1}", has named simpleType: "{0}" + * + */ + public static String VALIDATION_INVALID_SIMPLE_TYPE_IN_ELEMENT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_INVALID_SIMPLE_TYPE_IN_ELEMENT(arg0, arg1)); } public static Localizable localizablePARSING_TOO_MANY_ELEMENTS(Object arg0, Object arg1, Object arg2) { - return messageFactory.getMessage("parsing.tooManyElements", arg0, arg1, arg2); + return MESSAGE_FACTORY.getMessage("parsing.tooManyElements", arg0, arg1, arg2); } /** @@ -964,11 +321,241 @@ public final class WsdlMessages { * */ public static String PARSING_TOO_MANY_ELEMENTS(Object arg0, Object arg1, Object arg2) { - return localizer.localize(localizablePARSING_TOO_MANY_ELEMENTS(arg0, arg1, arg2)); + return LOCALIZER.localize(localizablePARSING_TOO_MANY_ELEMENTS(arg0, arg1, arg2)); + } + + public static Localizable localizableLOCALIZED_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("localized.error", arg0); + } + + /** + * {0} + * + */ + public static String LOCALIZED_ERROR(Object arg0) { + return LOCALIZER.localize(localizableLOCALIZED_ERROR(arg0)); + } + + public static Localizable localizablePARSING_FACTORY_CONFIG_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.factoryConfigException", arg0); + } + + /** + * invalid WSDL file! parsing failed: {0} + * + */ + public static String PARSING_FACTORY_CONFIG_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizablePARSING_FACTORY_CONFIG_EXCEPTION(arg0)); + } + + public static Localizable localizablePARSING_UNKNOWN_IMPORTED_DOCUMENT_TYPE(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.unknownImportedDocumentType", arg0); + } + + /** + * imported document is of unknown type: {0} + * + */ + public static String PARSING_UNKNOWN_IMPORTED_DOCUMENT_TYPE(Object arg0) { + return LOCALIZER.localize(localizablePARSING_UNKNOWN_IMPORTED_DOCUMENT_TYPE(arg0)); + } + + public static Localizable localizableVALIDATION_DUPLICATED_ELEMENT(Object arg0) { + return MESSAGE_FACTORY.getMessage("validation.duplicatedElement", arg0); + } + + /** + * duplicated element: "{0}" + * + */ + public static String VALIDATION_DUPLICATED_ELEMENT(Object arg0) { + return LOCALIZER.localize(localizableVALIDATION_DUPLICATED_ELEMENT(arg0)); + } + + public static Localizable localizablePARSING_INVALID_URI(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.invalidURI", arg0); + } + + /** + * invalid URI: {0} + * + */ + public static String PARSING_INVALID_URI(Object arg0) { + return LOCALIZER.localize(localizablePARSING_INVALID_URI(arg0)); + } + + public static Localizable localizablePARSING_SAX_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.saxException", arg0); + } + + /** + * invalid WSDL file! parsing failed: {0} + * + */ + public static String PARSING_SAX_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizablePARSING_SAX_EXCEPTION(arg0)); + } + + public static Localizable localizableINTERNALIZER_INCORRECT_VERSION() { + return MESSAGE_FACTORY.getMessage("Internalizer.IncorrectVersion"); + } + + /** + * JAXWS version attribute must be "2.0" + * + */ + public static String INTERNALIZER_INCORRECT_VERSION() { + return LOCALIZER.localize(localizableINTERNALIZER_INCORRECT_VERSION()); + } + + public static Localizable localizablePARSING_NON_WHITESPACE_TEXT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.nonWhitespaceTextFound", arg0); + } + + /** + * found unexpected non-whitespace text: "{0}" + * + */ + public static String PARSING_NON_WHITESPACE_TEXT_FOUND(Object arg0) { + return LOCALIZER.localize(localizablePARSING_NON_WHITESPACE_TEXT_FOUND(arg0)); + } + + public static Localizable localizableENTITY_NOT_FOUND_BY_Q_NAME(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("entity.notFoundByQName", arg0, arg1, arg2); + } + + /** + * {0} "{1}" not found in the wsdl: {2} + * + */ + public static String ENTITY_NOT_FOUND_BY_Q_NAME(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableENTITY_NOT_FOUND_BY_Q_NAME(arg0, arg1, arg2)); + } + + public static Localizable localizableVALIDATION_MISSING_REQUIRED_ATTRIBUTE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.missingRequiredAttribute", arg0, arg1); + } + + /** + * missing required attribute "{0}" of element "{1}" + * + */ + public static String VALIDATION_MISSING_REQUIRED_ATTRIBUTE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_MISSING_REQUIRED_ATTRIBUTE(arg0, arg1)); + } + + public static Localizable localizableWARNING_FAULT_EMPTY_ACTION(Object arg0, Object arg1, Object arg2) { + return MESSAGE_FACTORY.getMessage("warning.faultEmptyAction", arg0, arg1, arg2); + } + + /** + * ignoring empty Action in "{0}" {1} element of "{2}" operation, using default instead + * + */ + public static String WARNING_FAULT_EMPTY_ACTION(Object arg0, Object arg1, Object arg2) { + return LOCALIZER.localize(localizableWARNING_FAULT_EMPTY_ACTION(arg0, arg1, arg2)); + } + + public static Localizable localizablePARSING_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("parsing.invalidAttributeValue", arg0, arg1); + } + + /** + * invalid value "{1}" for attribute "{0}" + * + */ + public static String PARSING_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizablePARSING_INVALID_ATTRIBUTE_VALUE(arg0, arg1)); + } + + public static Localizable localizableABSTRACT_REFERENCE_FINDER_IMPL_UNABLE_TO_PARSE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("AbstractReferenceFinderImpl.UnableToParse", arg0, arg1); + } + + /** + * Unable to parse "{0}" : {1} + * + */ + public static String ABSTRACT_REFERENCE_FINDER_IMPL_UNABLE_TO_PARSE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableABSTRACT_REFERENCE_FINDER_IMPL_UNABLE_TO_PARSE(arg0, arg1)); + } + + public static Localizable localizableENTITY_DUPLICATE(Object arg0) { + return MESSAGE_FACTORY.getMessage("entity.duplicate", arg0); + } + + /** + * duplicate entity: "{0}" + * + */ + public static String ENTITY_DUPLICATE(Object arg0) { + return LOCALIZER.localize(localizableENTITY_DUPLICATE(arg0)); + } + + public static Localizable localizableVALIDATION_MISSING_REQUIRED_PROPERTY(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.missingRequiredProperty", arg0, arg1); + } + + /** + * missing required property "{0}" of element "{1}" + * + */ + public static String VALIDATION_MISSING_REQUIRED_PROPERTY(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_MISSING_REQUIRED_PROPERTY(arg0, arg1)); + } + + public static Localizable localizableINVALID_CUSTOMIZATION_NAMESPACE(Object arg0) { + return MESSAGE_FACTORY.getMessage("invalid.customization.namespace", arg0); + } + + /** + * Ignoring customization: "{0}", because it has no namespace. It must belong to the customization namespace. + * + */ + public static String INVALID_CUSTOMIZATION_NAMESPACE(Object arg0) { + return LOCALIZER.localize(localizableINVALID_CUSTOMIZATION_NAMESPACE(arg0)); + } + + public static Localizable localizableTRY_WITH_MEX(Object arg0) { + return MESSAGE_FACTORY.getMessage("try.with.mex", arg0); + } + + /** + * {0} + * + * retrying with MEX... + * + */ + public static String TRY_WITH_MEX(Object arg0) { + return LOCALIZER.localize(localizableTRY_WITH_MEX(arg0)); + } + + public static Localizable localizableINVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) { + return MESSAGE_FACTORY.getMessage("invalid.wsdl", arg0, arg1, arg2, arg3); + } + + /** + * Invalid WSDL {0}, expected {1} found {2} at (line {3}) + * + */ + public static String INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) { + return LOCALIZER.localize(localizableINVALID_WSDL(arg0, arg1, arg2, arg3)); + } + + public static Localizable localizableENTITY_NOT_FOUND_BY_ID(Object arg0) { + return MESSAGE_FACTORY.getMessage("entity.notFoundByID", arg0); + } + + /** + * invalid entity id: "{0}" + * + */ + public static String ENTITY_NOT_FOUND_BY_ID(Object arg0) { + return LOCALIZER.localize(localizableENTITY_NOT_FOUND_BY_ID(arg0)); } public static Localizable localizableINTERNALIZER_INCORRECT_SCHEMA_REFERENCE(Object arg0, Object arg1) { - return messageFactory.getMessage("Internalizer.IncorrectSchemaReference", arg0, arg1); + return MESSAGE_FACTORY.getMessage("Internalizer.IncorrectSchemaReference", arg0, arg1); } /** @@ -976,7 +563,427 @@ public final class WsdlMessages { * */ public static String INTERNALIZER_INCORRECT_SCHEMA_REFERENCE(Object arg0, Object arg1) { - return localizer.localize(localizableINTERNALIZER_INCORRECT_SCHEMA_REFERENCE(arg0, arg1)); + return LOCALIZER.localize(localizableINTERNALIZER_INCORRECT_SCHEMA_REFERENCE(arg0, arg1)); + } + + public static Localizable localizablePARSING_INVALID_EXTENSION_ELEMENT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("parsing.invalidExtensionElement", arg0, arg1); + } + + /** + * invalid extension element: "{0}" (in namespace "{1}") + * + */ + public static String PARSING_INVALID_EXTENSION_ELEMENT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizablePARSING_INVALID_EXTENSION_ELEMENT(arg0, arg1)); + } + + public static Localizable localizableVALIDATION_EXCLUSIVE_ATTRIBUTES(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.exclusiveAttributes", arg0, arg1); + } + + /** + * exclusive attributes: "{0}", "{1}" + * + */ + public static String VALIDATION_EXCLUSIVE_ATTRIBUTES(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_EXCLUSIVE_ATTRIBUTES(arg0, arg1)); + } + + public static Localizable localizableVALIDATION_INCORRECT_TARGET_NAMESPACE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.incorrectTargetNamespace", arg0, arg1); + } + + /** + * target namespace is incorrect (expected: {1}, found: {0}) + * + */ + public static String VALIDATION_INCORRECT_TARGET_NAMESPACE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_INCORRECT_TARGET_NAMESPACE(arg0, arg1)); + } + + public static Localizable localizableINTERNALIZER_TWO_VERSION_ATTRIBUTES() { + return MESSAGE_FACTORY.getMessage("Internalizer.TwoVersionAttributes"); + } + + /** + * Both jaxws:version and version are present + * + */ + public static String INTERNALIZER_TWO_VERSION_ATTRIBUTES() { + return LOCALIZER.localize(localizableINTERNALIZER_TWO_VERSION_ATTRIBUTES()); + } + + public static Localizable localizableENTITY_NOT_FOUND_BINDING(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("entity.notFound.binding", arg0, arg1); + } + + /** + * wsdl:binding "{0}" referenced by wsdl:port "{1}", but it's not found in the wsdl + * + */ + public static String ENTITY_NOT_FOUND_BINDING(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableENTITY_NOT_FOUND_BINDING(arg0, arg1)); + } + + public static Localizable localizableVALIDATION_INVALID_SUB_ENTITY(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.invalidSubEntity", arg0, arg1); + } + + /** + * invalid sub-element "{0}" of element "{1}" + * + */ + public static String VALIDATION_INVALID_SUB_ENTITY(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_INVALID_SUB_ENTITY(arg0, arg1)); + } + + public static Localizable localizablePARSING_REQUIRED_EXTENSIBILITY_ELEMENT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("parsing.requiredExtensibilityElement", arg0, arg1); + } + + /** + * unknown required extensibility element "{0}" (in namespace "{1}") + * + */ + public static String PARSING_REQUIRED_EXTENSIBILITY_ELEMENT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizablePARSING_REQUIRED_EXTENSIBILITY_ELEMENT(arg0, arg1)); + } + + public static Localizable localizablePARSING_IO_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.ioException", arg0); + } + + /** + * parsing failed: {0} + * + */ + public static String PARSING_IO_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizablePARSING_IO_EXCEPTION(arg0)); + } + + public static Localizable localizableINTERNALIZER_VERSION_NOT_PRESENT() { + return MESSAGE_FACTORY.getMessage("Internalizer.VersionNotPresent"); + } + + /** + * JAXWS version attribute must be present + * + */ + public static String INTERNALIZER_VERSION_NOT_PRESENT() { + return LOCALIZER.localize(localizableINTERNALIZER_VERSION_NOT_PRESENT()); + } + + public static Localizable localizableINTERNALIZER_X_PATH_EVALUATION_ERROR(Object arg0) { + return MESSAGE_FACTORY.getMessage("internalizer.XPathEvaluationError", arg0); + } + + /** + * XPath error: {0} + * + */ + public static String INTERNALIZER_X_PATH_EVALUATION_ERROR(Object arg0) { + return LOCALIZER.localize(localizableINTERNALIZER_X_PATH_EVALUATION_ERROR(arg0)); + } + + public static Localizable localizablePARSING_INVALID_WSDL_ELEMENT(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.invalidWsdlElement", arg0); + } + + /** + * invalid WSDL element: "{0}" + * + */ + public static String PARSING_INVALID_WSDL_ELEMENT(Object arg0) { + return LOCALIZER.localize(localizablePARSING_INVALID_WSDL_ELEMENT(arg0)); + } + + public static Localizable localizableINTERNALIZER_TARGET_NOT_AN_ELEMENT() { + return MESSAGE_FACTORY.getMessage("internalizer.targetNotAnElement"); + } + + /** + * Target node is not an element + * + */ + public static String INTERNALIZER_TARGET_NOT_AN_ELEMENT() { + return LOCALIZER.localize(localizableINTERNALIZER_TARGET_NOT_AN_ELEMENT()); + } + + public static Localizable localizableWARNING_INPUT_OUTPUT_EMPTY_ACTION(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("warning.inputOutputEmptyAction", arg0, arg1); + } + + /** + * ignoring empty Action in {0} element of "{1}" operation, using default instead + * + */ + public static String WARNING_INPUT_OUTPUT_EMPTY_ACTION(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWARNING_INPUT_OUTPUT_EMPTY_ACTION(arg0, arg1)); + } + + public static Localizable localizableINTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET(Object arg0) { + return MESSAGE_FACTORY.getMessage("internalizer.XPathEvaluatesToNoTarget", arg0); + } + + /** + * XPath evaluation of "{0}" results in an empty target node + * + */ + public static String INTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET(Object arg0) { + return LOCALIZER.localize(localizableINTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET(arg0)); + } + + public static Localizable localizablePARSING_INVALID_TAG_NS(Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) { + return MESSAGE_FACTORY.getMessage("parsing.invalidTagNS", arg0, arg1, arg2, arg3, arg4); + } + + /** + * Invalid WSDL at {4}: expected element "{2}" (in namespace "{3}"), found element "{0}" (in namespace "{1}") + * + */ + public static String PARSING_INVALID_TAG_NS(Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) { + return LOCALIZER.localize(localizablePARSING_INVALID_TAG_NS(arg0, arg1, arg2, arg3, arg4)); + } + + public static Localizable localizablePARSING_UNKNOWN_NAMESPACE_PREFIX(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.unknownNamespacePrefix", arg0); + } + + /** + * undeclared namespace prefix: "{0}" + * + */ + public static String PARSING_UNKNOWN_NAMESPACE_PREFIX(Object arg0) { + return LOCALIZER.localize(localizablePARSING_UNKNOWN_NAMESPACE_PREFIX(arg0)); + } + + public static Localizable localizablePARSING_INVALID_ELEMENT(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("parsing.invalidElement", arg0, arg1); + } + + /** + * invalid element: "{0}" (in namespace "{1}") + * + */ + public static String PARSING_INVALID_ELEMENT(Object arg0, Object arg1) { + return LOCALIZER.localize(localizablePARSING_INVALID_ELEMENT(arg0, arg1)); + } + + public static Localizable localizablePARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.onlyOneDocumentationAllowed", arg0); + } + + /** + * only one "documentation" element allowed in "{0}" + * + */ + public static String PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(Object arg0) { + return LOCALIZER.localize(localizablePARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(arg0)); + } + + public static Localizable localizablePARSING_PARSER_CONFIG_EXCEPTION(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.parserConfigException", arg0); + } + + /** + * invalid WSDL file! parsing failed: {0} + * + */ + public static String PARSING_PARSER_CONFIG_EXCEPTION(Object arg0) { + return LOCALIZER.localize(localizablePARSING_PARSER_CONFIG_EXCEPTION(arg0)); + } + + public static Localizable localizablePARSING_MISSING_REQUIRED_ATTRIBUTE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("parsing.missingRequiredAttribute", arg0, arg1); + } + + /** + * missing required attribute "{1}" of element "{0}" + * + */ + public static String PARSING_MISSING_REQUIRED_ATTRIBUTE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizablePARSING_MISSING_REQUIRED_ATTRIBUTE(arg0, arg1)); + } + + public static Localizable localizableVALIDATION_MISSING_REQUIRED_SUB_ENTITY(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.missingRequiredSubEntity", arg0, arg1); + } + + /** + * missing required sub-entity "{0}" of element "{1}" + * + */ + public static String VALIDATION_MISSING_REQUIRED_SUB_ENTITY(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_MISSING_REQUIRED_SUB_ENTITY(arg0, arg1)); + } + + public static Localizable localizableVALIDATION_INVALID_ELEMENT(Object arg0) { + return MESSAGE_FACTORY.getMessage("validation.invalidElement", arg0); + } + + /** + * invalid element: "{0}" + * + */ + public static String VALIDATION_INVALID_ELEMENT(Object arg0) { + return LOCALIZER.localize(localizableVALIDATION_INVALID_ELEMENT(arg0)); + } + + public static Localizable localizableVALIDATION_AMBIGUOUS_NAME(Object arg0) { + return MESSAGE_FACTORY.getMessage("validation.ambiguousName", arg0); + } + + /** + * ambiguous operation name: "{0}" + * + */ + public static String VALIDATION_AMBIGUOUS_NAME(Object arg0) { + return LOCALIZER.localize(localizableVALIDATION_AMBIGUOUS_NAME(arg0)); + } + + public static Localizable localizablePARSING_SAX_EXCEPTION_WITH_SYSTEM_ID(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.saxExceptionWithSystemId", arg0); + } + + /** + * invalid WSDL file! failed to parse document at "{0}" + * + */ + public static String PARSING_SAX_EXCEPTION_WITH_SYSTEM_ID(Object arg0) { + return LOCALIZER.localize(localizablePARSING_SAX_EXCEPTION_WITH_SYSTEM_ID(arg0)); + } + + public static Localizable localizablePARSING_WSDL_NOT_DEFAULT_NAMESPACE(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.wsdlNotDefaultNamespace", arg0); + } + + /** + * default namespace must be "{0}" + * + */ + public static String PARSING_WSDL_NOT_DEFAULT_NAMESPACE(Object arg0) { + return LOCALIZER.localize(localizablePARSING_WSDL_NOT_DEFAULT_NAMESPACE(arg0)); + } + + public static Localizable localizablePARSING_INVALID_OPERATION_STYLE(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.invalidOperationStyle", arg0); + } + + /** + * operation "{0}" has an invalid style + * + */ + public static String PARSING_INVALID_OPERATION_STYLE(Object arg0) { + return LOCALIZER.localize(localizablePARSING_INVALID_OPERATION_STYLE(arg0)); + } + + public static Localizable localizableWARNING_WSI_R_2001() { + return MESSAGE_FACTORY.getMessage("warning.wsi.r2001"); + } + + /** + * Not a WSI-BP compliant WSDL (R2001, R2002). wsdl:import must import only WSDL documents. It's trying to import: "{0}" + * + */ + public static String WARNING_WSI_R_2001() { + return LOCALIZER.localize(localizableWARNING_WSI_R_2001()); + } + + public static Localizable localizableWARNING_WSI_R_2002(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("warning.wsi.r2002", arg0, arg1); + } + + /** + * Not a WSI-BP compliant WSDL (R2002). wsdl:import must not be used to import XML Schema embedded in the WSDL document. Expected WSDL namespace: {0}, found: {1} + * + */ + public static String WARNING_WSI_R_2002(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableWARNING_WSI_R_2002(arg0, arg1)); + } + + public static Localizable localizablePARSING_INVALID_TAG(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("parsing.invalidTag", arg0, arg1); + } + + /** + * expected element "{1}", found "{0}" + * + */ + public static String PARSING_INVALID_TAG(Object arg0, Object arg1) { + return LOCALIZER.localize(localizablePARSING_INVALID_TAG(arg0, arg1)); + } + + public static Localizable localizableINTERNALIZER_TARGET_NOT_FOUND(Object arg0) { + return MESSAGE_FACTORY.getMessage("internalizer.targetNotFound", arg0); + } + + /** + * No target found for the wsdlLocation: {0} + * + */ + public static String INTERNALIZER_TARGET_NOT_FOUND(Object arg0) { + return LOCALIZER.localize(localizableINTERNALIZER_TARGET_NOT_FOUND(arg0)); + } + + public static Localizable localizableINTERNALIZER_X_PATH_EVALUATES_TO_NON_ELEMENT(Object arg0) { + return MESSAGE_FACTORY.getMessage("internalizer.XPathEvaluatesToNonElement", arg0); + } + + /** + * XPath evaluation of "{0}" needs to result in an element. + * + */ + public static String INTERNALIZER_X_PATH_EVALUATES_TO_NON_ELEMENT(Object arg0) { + return LOCALIZER.localize(localizableINTERNALIZER_X_PATH_EVALUATES_TO_NON_ELEMENT(arg0)); + } + + public static Localizable localizableVALIDATION_UNSUPPORTED_USE_ENCODED(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("validation.unsupportedUse.encoded", arg0, arg1); + } + + /** + * "Use of SOAP Encoding is not supported. + * SOAP extension element on line {0} in {1} has use="encoded" " + * + */ + public static String VALIDATION_UNSUPPORTED_USE_ENCODED(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableVALIDATION_UNSUPPORTED_USE_ENCODED(arg0, arg1)); + } + + public static Localizable localizablePARSING_ELEMENT_OR_TYPE_REQUIRED(Object arg0) { + return MESSAGE_FACTORY.getMessage("parsing.elementOrTypeRequired", arg0); + } + + /** + * warning: part {0} is ignored, either the "element" or the "type" attribute is required in part "{0}" + * + */ + public static String PARSING_ELEMENT_OR_TYPE_REQUIRED(Object arg0) { + return LOCALIZER.localize(localizablePARSING_ELEMENT_OR_TYPE_REQUIRED(arg0)); + } + + public static Localizable localizableENTITY_NOT_FOUND_PORT_TYPE(Object arg0, Object arg1) { + return MESSAGE_FACTORY.getMessage("entity.notFound.portType", arg0, arg1); + } + + /** + * wsdl:portType "{0}" referenced by wsdl:binding "{1}", but it's not found in the wsdl + * + */ + public static String ENTITY_NOT_FOUND_PORT_TYPE(Object arg0, Object arg1) { + return LOCALIZER.localize(localizableENTITY_NOT_FOUND_PORT_TYPE(arg0, arg1)); + } + + private static class BundleSupplier + implements ResourceBundleSupplier + { + + + public ResourceBundle getResourceBundle(Locale locale) { + return ResourceBundle.getBundle(BUNDLE_NAME, locale); + } + } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/newmessages.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/newmessages.properties deleted file mode 100644 index bd358f254f9..00000000000 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/newmessages.properties +++ /dev/null @@ -1,6 +0,0 @@ -wrapperTask.needEndorsed=\ -You are running on JDK6 or newer which comes with JAX-WS {0} API, but this tool requires JAX-WS {1} or newer API. Use \ -the standard override mechanism. - -runtime.modeler.addressing.responses.nosuchmethod = JAX-WS 2.1 API is loaded from {0}, But JAX-WS runtime requires JAX-WS 2.2 or newer API. \ - Use the standard override mechanism to load JAX-WS 2.2 or newer API. \ No newline at end of file diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile.properties index 94c7c57fc71..43a863fdfb2 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -142,18 +142,16 @@ wsgen.version=wsgen version \"{0}\" wsgen.fullversion=wsgen full version \"{0}\" wrapperTask.needEndorsed=\ -You are running on JDK6 which comes with JAX-WS {0} API, but this tool requires JAX-WS {1} API. \ -Use the endorsed standards override mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), \ -or set xendorsed="true" on <{2}>. +You are running on JDK6 or newer which comes with JAX-WS {0} API, but this tool requires JAX-WS {1} or newer API. Use \ +the standard override mechanism. # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi=\ You are loading JAX-WS {0} API from {1} but this tool requires JAX-WS {2} API. invoker.needEndorsed=\ -You are running on JDK6 which comes with JAX-WS {0} API, but this tool requires JAX-WS {1} API. \ -Use the endorsed standards override mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), \ -or use -Xendorsed option. +You are running on JDK6 or newer which comes with JAX-WS {0} API, but this tool requires JAX-WS {1} or newer API. Use \ +the standard override mechanism. # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_de.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_de.properties index b325ad5be5a..d51973dc968 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_de.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_de.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -38,12 +38,12 @@ wsgen.help=\nVerwendung: {0} [options] \n\n\\wobei [options] Folgendes umfa wsgen.usage.examples=\n\\Beispiele:\n\\ wsgen -cp . example.Stock\n\\ wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService'\n -wrapperTask.needEndorsed=Sie arbeiten mit JDK6, das mit JAX-WS {0}-API geliefert wird, dieses Tool erfordert jedoch JAX-WS {1}-API. Verwenden Sie das "Endorsed Standards Override Mechanism"-Verfahren (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), oder setzen Sie xendorsed="true" in <{2}>. +wrapperTask.needEndorsed=Sie arbeiten mit JDK6 oder h\u00F6her, das mit der JAX-WS {0}-API geliefert wird. Dieses Tool erfordert jedoch JAX-WS {1} oder eine neuere API. Verwenden Sie das Standard-Override-Verfahren. # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi=Sie laden JAX-WS {0}-API aus {1}, dieses Tool erfordert jedoch JAX-WS {2}-API. -invoker.needEndorsed=Sie arbeiten mit JDK6, das mit JAX-WS {0}-API geliefert wird, dieses Tool erfordert jedoch JAX-WS {1}-API. Verwenden Sie das "Endorsed Standards Override Mechanism"-Verfahren (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), oder verwenden Sie die Option "-Xendorsed". +invoker.needEndorsed=Sie arbeiten mit JDK6 oder h\u00F6her, das mit der JAX-WS {0}-API geliefert wird. Dieses Tool erfordert jedoch JAX-WS {1} oder eine neuere API. Verwenden Sie das Standard-Override-Verfahren. # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_es.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_es.properties index 5c3906c63dd..57ffdc5dbf3 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_es.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_es.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -38,12 +38,12 @@ wsgen.help=\nSintaxis: {0} [options] \n\n\\donde [options] incluye:\n\\ -c wsgen.usage.examples=\n\\Ejemplos:\n\\ wsgen -cp . example.Stock\n\\ wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService'\n -wrapperTask.needEndorsed=Est\u00e1 utilizando JDK6, que incluye la API JAX-WS {0}, pero esta herramienta necesita la API JAX-WS {1}. Utilice el mecanismo de sustituci\u00f3n de los est\u00e1ndares aprobados (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), o defina xendorsed="true" en <{2}>. +wrapperTask.needEndorsed=Est\u00E1 ejecutando JDK6 o una versi\u00F3n posterior que incluye la API JAX-WS {0}, pero esta herramienta necesita la API JAX-WS {1} o una versi\u00F3n posterior. Utilice el mecanismo de sustituci\u00F3n de est\u00E1ndares. # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi=Est\u00e1 cargando la API JAX-WS {0} desde {1}, pero esta herramienta necesita la API JAX-WS {2}. -invoker.needEndorsed=Est\u00e1 utilizando JDK6, que incluye la API JAX-WS {0}, pero esta herramienta necesita la API JAX-WS {1}. Utilice el mecanismo de sustituci\u00f3n de los est\u00e1ndares aprobados (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), o utilice la opci\u00f3n -Xendorsed. +invoker.needEndorsed=Est\u00E1 ejecutando JDK6 o una versi\u00F3n posterior que incluye la API JAX-WS {0}, pero esta herramienta necesita la API JAX-WS {1} o una versi\u00F3n posterior. Utilice el mecanismo de sustituci\u00F3n de est\u00E1ndares. # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_fr.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_fr.properties index c26d69e9b8e..6931093f120 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_fr.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_fr.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -38,12 +38,12 @@ wsgen.help=\nSyntaxe : {0} [options] \n\n\\o\u00f9 [options] incluent :\n\ wsgen.usage.examples=\n\\Exemples :\n\ wsgen -cp . example.Stock\n\ wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService'\n -wrapperTask.needEndorsed=Vous ex\u00e9cutez JDK6, qui comporte l''API JAX-WS {0}, mais cet outil exige l''API JAX-WS {1}. Utilisez le m\u00e9canisme Endorsed Standards Override Mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), ou d\u00e9finissez xendorsed="True" sur <{2}>. +wrapperTask.needEndorsed=Vous ex\u00E9cutez JDK6 ou une version ult\u00E9rieure, qui est fournie avec l''API JAX-WS {0}, mais cet outil exige l''API JAX-WS {1} ou une version plus r\u00E9cente. Utilisez le m\u00E9canisme Standard Override Mechanism. # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi=Vous \u00eates en train de charger l''API JAX-WS {0} \u00e0 partir de {1}, mais cet outil exige l''API JAX-WS {2}. -invoker.needEndorsed=Vous ex\u00e9cutez JDK6, qui comporte l''API JAX-WS {0}, mais cet outil exige l''API JAX-WS {1}. Utilisez le m\u00e9canisme Endorsed Standards Override Mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), ou utilisez l''option -Xendorsed. +invoker.needEndorsed=Vous ex\u00E9cutez JDK6 ou une version ult\u00E9rieure, qui est fournie avec l''API JAX-WS {0}, mais cet outil exige l''API JAX-WS {1} ou une version plus r\u00E9cente. Utilisez le m\u00E9canisme Standard Override Mechanism. # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_it.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_it.properties index 92a0c8cba5a..f0d82449eae 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_it.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_it.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -38,12 +38,12 @@ wsgen.help=\nUso: {0} [options] \n\n\\dove [options] include:\n\ -classpat wsgen.usage.examples=\n\\Esempi:\n\ wsgen -cp . example.Stock\n\ wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService'\n -wrapperTask.needEndorsed=\u00c8 in corso l''esecuzione su JDK6, fornito con l''API JAX-WS {0} ma questo strumento richiede l''API JAX-WS {1}. Usare il meccanismo Endorsed Standards Override Mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/) o impostare xendorsed="true" su <{2}>. +wrapperTask.needEndorsed=\u00C8 in corso l''esecuzione su JDK6 o versione successiva, fornito con l''API JAX-WS {0}, ma questo strumento richiede l''API JAX-WS {1} o versione successiva. Usare il meccanismo di sostituzione standard. # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi=\u00c8 in corso il caricamento dell''API JAX-WS {0} da {1} ma questo strumento richiede l''API JAX-WS {2}. -invoker.needEndorsed=\u00c8 in corso l''esecuzione su JDK6, fornito con l''API JAX-WS {0} ma questo strumento richiede l''API JAX-WS {1}. Usare il meccanismo Endorsed Standards Override Mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/) o usare l''opzione -Xendorsed. +invoker.needEndorsed=\u00C8 in corso l''esecuzione su JDK6 o versione successiva, fornito con l''API JAX-WS {0}, ma questo strumento richiede l''API JAX-WS {1} o versione successiva. Usare il meccanismo di sostituzione standard. # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_ja.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_ja.properties index 65561cc41a1..ed0276a4e4c 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_ja.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_ja.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -38,12 +38,12 @@ wsgen.help=\n\u4f7f\u7528\u65b9\u6cd5: {0} [options] \n\n\\[options]\u306b\ wsgen.usage.examples=\n\\\u4f8b:\n\ wsgen -cp . example.Stock\n\ wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService'\n -wrapperTask.needEndorsed=JAX-WS {0} API\u306b\u4ed8\u5c5e\u3057\u305fJDK6\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u30c4\u30fc\u30eb\u306b\u306fJAX-WS {1} API\u304c\u5fc5\u8981\u3067\u3059\u3002Endorsed Standards Override Mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/)\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001<{2}>\u3067xendorsed="true"\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +wrapperTask.needEndorsed=JAX-WS {0} API\u306B\u4ED8\u5C5E\u3057\u305FJDK6\u4EE5\u4E0A\u3067\u5B9F\u884C\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u3053\u306E\u30C4\u30FC\u30EB\u306B\u306FJAX-WS {1}\u4EE5\u4E0A\u306EAPI\u304C\u5FC5\u8981\u3067\u3059\u3002Standards Override Mechanism\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002 # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi={1}\u304b\u3089JAX-WS {0} API\u3092\u30ed\u30fc\u30c9\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u30c4\u30fc\u30eb\u306b\u306fJAX-WS {2} API\u304c\u5fc5\u8981\u3067\u3059\u3002 -invoker.needEndorsed=JAX-WS {0} API\u306b\u4ed8\u5c5e\u3057\u305fJDK6\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u30c4\u30fc\u30eb\u306b\u306fJAX-WS {1} API\u304c\u5fc5\u8981\u3067\u3059\u3002Endorsed Standards Override Mechanism (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/)\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001-Xendorsed\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +invoker.needEndorsed=JAX-WS {0} API\u306B\u4ED8\u5C5E\u3057\u305FJDK6\u4EE5\u4E0A\u3067\u5B9F\u884C\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u3053\u306E\u30C4\u30FC\u30EB\u306B\u306FJAX-WS {1}\u4EE5\u4E0A\u306EAPI\u304C\u5FC5\u8981\u3067\u3059\u3002Standards Override Mechanism\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002 # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_ko.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_ko.properties index c6571186abd..6ea2065a4ea 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_ko.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_ko.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -38,12 +38,12 @@ wsgen.help=\n\uc0ac\uc6a9\ubc95: {0} [options] \n\n\\\uc5ec\uae30\uc11c [op wsgen.usage.examples=\n\\\uc608:\n\ wsgen -cp . example.Stock\n\ wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService'\n -wrapperTask.needEndorsed=JAX-WS {0} API\uc640 \ud568\uaed8 \uc81c\uacf5\ub418\ub294 JDK6\uc5d0\uc11c \uc2e4\ud589\ud558\uace0 \uc788\uc9c0\ub9cc \uc774 \ud234\uc744 \uc0ac\uc6a9\ud558\ub824\uba74 JAX-WS {1} API\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc778\uc99d\ub41c \ud45c\uc900 \ubb34\ud6a8\ud654 \ubc29\uc2dd(http://docs.oracle.com/javase/6/docs/technotes/guides/standards/)\uc744 \uc0ac\uc6a9\ud558\uac70\ub098 <{2}>\uc5d0 \ub300\ud574 xendorsed="true"\ub97c \uc124\uc815\ud558\uc2ed\uc2dc\uc624. +wrapperTask.needEndorsed=JAX-WS {0} API\uC640 \uD568\uAED8 \uC81C\uACF5\uB418\uB294 JDK6 \uC774\uC0C1\uC5D0\uC11C \uC2E4\uD589\uD558\uACE0 \uC788\uC9C0\uB9CC \uC774 \uD234\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 JAX-WS {1} \uC774\uC0C1 API\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uD45C\uC900 \uBB34\uD6A8\uD654 \uBC29\uC2DD\uC744 \uC0AC\uC6A9\uD558\uC2ED\uC2DC\uC624. # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi={1}\uc5d0\uc11c JAX-WS {0} API\ub97c \ub85c\ub4dc\ud558\uace0 \uc788\uc9c0\ub9cc \uc774 \ud234\uc744 \uc0ac\uc6a9\ud558\ub824\uba74 JAX-WS {2} API\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. -invoker.needEndorsed=JAX-WS {0} API\uc640 \ud568\uaed8 \uc81c\uacf5\ub418\ub294 JDK6\uc5d0\uc11c \uc2e4\ud589\ud558\uace0 \uc788\uc9c0\ub9cc \uc774 \ud234\uc744 \uc0ac\uc6a9\ud558\ub824\uba74 JAX-WS {1} API\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc778\uc99d\ub41c \ud45c\uc900 \ubb34\ud6a8\ud654 \ubc29\uc2dd(http://docs.oracle.com/javase/6/docs/technotes/guides/standards/)\uc744 \uc0ac\uc6a9\ud558\uac70\ub098 -Xendorsed \uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uc2ed\uc2dc\uc624. +invoker.needEndorsed=JAX-WS {0} API\uC640 \uD568\uAED8 \uC81C\uACF5\uB418\uB294 JDK6 \uC774\uC0C1\uC5D0\uC11C \uC2E4\uD589\uD558\uACE0 \uC788\uC9C0\uB9CC \uC774 \uD234\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74 JAX-WS {1} \uC774\uC0C1 API\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uD45C\uC900 \uBB34\uD6A8\uD654 \uBC29\uC2DD\uC744 \uC0AC\uC6A9\uD558\uC2ED\uC2DC\uC624. # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_pt_BR.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_pt_BR.properties index 3806bf2a029..d479d1901a7 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_pt_BR.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_pt_BR.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -38,12 +38,12 @@ wsgen.help=\nUso: {0} [options] \n\n\\onde [options] inclui:\n\\ -classpat wsgen.usage.examples=\n\\Exemplos:\n\ wsgen -cp . example.Stock\n\ wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService'\n -wrapperTask.needEndorsed=Voc\u00ea est\u00e1 executando no JDK6 que vem com a API de JAX-WS {0}, mas esta ferramenta exige a API de JAX-WS {1}. Use o mecanismo de substitui\u00e7\u00e3o de padr\u00f5es endossados (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/) ou defina xendorsed="true" em <{2}>. +wrapperTask.needEndorsed=Voc\u00EA est\u00E1 executando no JDK6 ou mais recente que vem com a API de JAX-WS {0}, mas esta ferramenta exige a API de JAX-WS {1} ou mais recente. Use o mecanismo de substitui\u00E7\u00E3o de padr\u00F5es. # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi=Voc\u00ea est\u00e1 carregando a API de JAX-WS {0} de {1}, mas esta ferramenta requer a API de JAX-WS {2}. -invoker.needEndorsed=Voc\u00ea est\u00e1 executando no JDK6 que vem com a API de JAX-WS {0}, mas esta ferramenta exige a API de JAX-WS {1}. Use o mecanismo de substitui\u00e7\u00e3o de padr\u00f5es endossados (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), ou use a op\u00e7\u00e3o -Xendorsed. +invoker.needEndorsed=Voc\u00EA est\u00E1 executando no JDK6 ou mais recente que vem com a API de JAX-WS {0}, mas esta ferramenta exige a API de JAX-WS {1} ou mais recente. Use o mecanismo de substitui\u00E7\u00E3o de padr\u00F5es. # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_zh_CN.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_zh_CN.properties index 1eabe9a7baa..32f92fd4993 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_zh_CN.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_zh_CN.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -38,12 +38,12 @@ wsgen.help=\n\u7528\u6cd5: {0} [options] \n\n\\\u5176\u4e2d [options] \u530 wsgen.usage.examples=\n\\\u793a\u4f8b:\n\ wsgen -cp . example.Stock\n\ wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService'\n -wrapperTask.needEndorsed=\u60a8\u6b63\u5728\u9644\u5e26 JAX-WS {0} API \u7684 JDK6 \u4e0a\u8fd0\u884c, \u4f46\u6b64\u5de5\u5177\u9700\u8981 JAX-WS {1} API\u3002\u8bf7\u4f7f\u7528\u6388\u6743\u6807\u51c6\u8986\u76d6\u673a\u5236 (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), \u6216\u8005\u5728 <{2}> \u4e0a\u8bbe\u7f6e xendorsed="true"\u3002 +wrapperTask.needEndorsed=\u60A8\u6B63\u5728\u9644\u5E26 JAX-WS {0} API \u7684 JDK6 \u6216\u66F4\u65B0\u7248\u672C\u4E0A\u8FD0\u884C, \u4F46\u6B64\u5DE5\u5177\u9700\u8981 JAX-WS {1} \u6216\u66F4\u65B0\u7684 API\u3002\u8BF7\u4F7F\u7528\u6807\u51C6\u8986\u76D6\u673A\u5236\u3002 # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi=\u60a8\u6b63\u5728\u4ece{1}\u52a0\u8f7d JAX-WS {0} API, \u4f46\u6b64\u5de5\u5177\u9700\u8981 JAX-WS {2} API\u3002 -invoker.needEndorsed=\u60a8\u6b63\u5728\u9644\u5e26 JAX-WS {0} API \u7684 JDK6 \u4e0a\u8fd0\u884c, \u4f46\u6b64\u5de5\u5177\u9700\u8981 JAX-WS {1} API\u3002\u8bf7\u4f7f\u7528\u6388\u6743\u6807\u51c6\u8986\u76d6\u673a\u5236 (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), \u6216\u8005\u4f7f\u7528 -Xendorsed \u9009\u9879\u3002 +invoker.needEndorsed=\u60A8\u6B63\u5728\u9644\u5E26 JAX-WS {0} API \u7684 JDK6 \u6216\u66F4\u65B0\u7248\u672C\u4E0A\u8FD0\u884C, \u4F46\u6B64\u5DE5\u5177\u9700\u8981 JAX-WS {1} \u6216\u66F4\u65B0\u7684 API\u3002\u8BF7\u4F7F\u7528\u6807\u51C6\u8986\u76D6\u673A\u5236\u3002 # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_zh_TW.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_zh_TW.properties index 6c338863b1d..40b2297b594 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_zh_TW.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/wscompile_zh_TW.properties @@ -1,5 +1,5 @@ # -# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2017, 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 @@ -38,12 +38,12 @@ wsgen.help=\n\u7528\u6cd5: {0} [options] \n\n\\\u5176\u4e2d [options] \u530 wsgen.usage.examples=\n\\\u7bc4\u4f8b:\n\ wsgen -cp . example.Stock\n\ wsgen -cp . example.Stock -wsdl -servicename '{http://mynamespace}MyService'\n -wrapperTask.needEndorsed=\u60a8\u76ee\u524d\u57f7\u884c\u96a8\u9644\u65bc JAX-WS {0} API \u7684 JDK6, \u4f46\u662f\u6b64\u5de5\u5177\u9700\u8981\u4f7f\u7528 JAX-WS {1} API. \u8acb\u4f7f\u7528\u8a8d\u53ef\u7684\u6a19\u6e96\u8986\u5beb\u6a5f\u5236 (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), \u6216\u8005\u5728 <{2}> \u8a2d\u5b9a xendorsed="true". +wrapperTask.needEndorsed=\u60A8\u76EE\u524D\u57F7\u884C\u96A8\u9644\u65BC JAX-WS {0} API \u7684 JDK6 \u6216\u66F4\u65B0\u7248\u672C\uFF0C\u4F46\u662F\u6B64\u5DE5\u5177\u9700\u8981\u642D\u914D JAX-WS {1} \u6216\u66F4\u65B0\u7248\u672C\u7684 API\u3002\u8ACB\u4F7F\u7528\u6A19\u6E96\u8986\u5BEB\u6A5F\u5236\u3002 # {0}, {2} - version (e.g. 2.1), {1} - absolute class location wrapperTask.loadingIncorrectApi=\u60a8\u6b63\u5728\u5f9e {1} \u8f09\u5165 JAX-WS {0} API, \u4f46\u662f\u6b64\u5de5\u5177\u9700\u8981\u4f7f\u7528 JAX-WS {2} API. -invoker.needEndorsed=\u60a8\u76ee\u524d\u57f7\u884c\u96a8\u9644\u65bc JAX-WS {0} API \u7684 JDK6, \u4f46\u662f\u6b64\u5de5\u5177\u9700\u8981\u4f7f\u7528 JAX-WS {1} API. \u8acb\u4f7f\u7528\u8a8d\u53ef\u7684\u6a19\u6e96\u8986\u5beb\u6a5f\u5236 (http://docs.oracle.com/javase/6/docs/technotes/guides/standards/), \u6216\u8005\u4f7f\u7528 -Xendorsed \u9078\u9805. +invoker.needEndorsed=\u60A8\u76EE\u524D\u57F7\u884C\u96A8\u9644\u65BC JAX-WS {0} API \u7684 JDK6 \u6216\u66F4\u65B0\u7248\u672C\uFF0C\u4F46\u662F\u6B64\u5DE5\u5177\u9700\u8981\u642D\u914D JAX-WS {1} \u6216\u66F4\u65B0\u7248\u672C\u7684 API\u3002\u8ACB\u4F7F\u7528\u6A19\u6E96\u8986\u5BEB\u6A5F\u5236\u3002 # diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/util/WSDLParseException.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/util/WSDLParseException.java index b9ceb98e6cb..1ea2ae0a8f9 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/util/WSDLParseException.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/util/WSDLParseException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -27,9 +27,6 @@ package com.sun.tools.internal.ws.util; import com.sun.xml.internal.ws.util.exception.JAXWSExceptionBase; -import java.util.Locale; -import java.util.ResourceBundle; - /** * @author WS Development Team */ @@ -46,9 +43,4 @@ public class WSDLParseException extends JAXWSExceptionBase { public String getDefaultResourceBundleName() { return "com.sun.tools.internal.ws.resources.util"; } - - @Override - public ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(getDefaultResourceBundleName(), locale); - } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/version.properties b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/version.properties index 82452acb3d7..88eace686b6 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/version.properties +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/version.properties @@ -26,4 +26,4 @@ build-id=2.3.0-SNAPSHOT build-version=JAX-WS RI 2.3.0-SNAPSHOT major-version=2.3.0 -svn-revision=e8c5e9697d9b27d83ff35d767939b2f55e667621 +svn-revision=3012ef421cf43774943c57736dac2207aeea9f07 diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/framework/ParseException.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/framework/ParseException.java index f98dfcf9708..73061693351 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/framework/ParseException.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/framework/ParseException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -28,9 +28,6 @@ package com.sun.tools.internal.ws.wsdl.framework; import com.sun.istack.internal.localization.Localizable; import com.sun.xml.internal.ws.util.exception.JAXWSExceptionBase; -import java.util.Locale; -import java.util.ResourceBundle; - /** * An exception signalling a parsing error. * @@ -53,9 +50,4 @@ public class ParseException extends JAXWSExceptionBase { public String getDefaultResourceBundleName() { return "com.sun.tools.internal.ws.resources.wsdl"; } - - @Override - public ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(getDefaultResourceBundleName(), locale); - } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/framework/ValidationException.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/framework/ValidationException.java index 708d8b190e7..d73b5fb0d4d 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/framework/ValidationException.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/framework/ValidationException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -27,9 +27,6 @@ package com.sun.tools.internal.ws.wsdl.framework; import com.sun.xml.internal.ws.util.exception.JAXWSExceptionBase; -import java.util.Locale; -import java.util.ResourceBundle; - /** * An exception signalling that validation of an entity failed. * @@ -48,9 +45,4 @@ public class ValidationException extends JAXWSExceptionBase { public String getDefaultResourceBundleName() { return "com.sun.tools.internal.ws.resources.wsdl"; } - - @Override - public ResourceBundle getResourceBundle(Locale locale) { - return ResourceBundle.getBundle(getDefaultResourceBundleName(), locale); - } } diff --git a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/parser/DOMForest.java b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/parser/DOMForest.java index aed48abe794..e105d2f386c 100644 --- a/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/parser/DOMForest.java +++ b/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wsdl/parser/DOMForest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2017, 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 @@ -115,12 +115,26 @@ public class DOMForest { try { // secure xml processing can be switched off if input requires it boolean secureProcessingEnabled = options == null || !options.disableXmlSecurity; - DocumentBuilderFactory dbf = XmlUtil.newDocumentBuilderFactory(secureProcessingEnabled); + DocumentBuilderFactory dbf = XmlUtil.newDocumentBuilderFactory(!secureProcessingEnabled); dbf.setNamespaceAware(true); this.documentBuilder = dbf.newDocumentBuilder(); this.parserFactory = XmlUtil.newSAXParserFactory(secureProcessingEnabled); this.parserFactory.setNamespaceAware(true); + + if(secureProcessingEnabled){ + dbf.setExpandEntityReferences(false); + try { + parserFactory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); + parserFactory.setFeature("http://xml.org/sax/features/external-general-entities", false); + parserFactory.setFeature("http://xml.org/sax/features/external-parameter-entities", false); + } catch (SAXNotRecognizedException e){ + throw new ParserConfigurationException(e.getMessage()); + } catch (SAXNotSupportedException e) { + throw new ParserConfigurationException(e.getMessage()); + } + } + } catch (ParserConfigurationException e) { throw new AssertionError(e); } From 65ef5fbef075a95c8b362646b7c3646b23e567b6 Mon Sep 17 00:00:00 2001 From: Aleksei Efimov Date: Sun, 18 Jun 2017 23:10:05 +0100 Subject: [PATCH 25/83] 8176508: Update JAX-WS RI integration to latest version Reviewed-by: lancea, mchung, alanb, iris --- jaxp/src/java.xml/share/classes/module-info.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/jaxp/src/java.xml/share/classes/module-info.java b/jaxp/src/java.xml/share/classes/module-info.java index 584b7f11854..53f166f8a82 100644 --- a/jaxp/src/java.xml/share/classes/module-info.java +++ b/jaxp/src/java.xml/share/classes/module-info.java @@ -82,8 +82,6 @@ module java.xml { java.xml.crypto; exports com.sun.org.apache.xpath.internal.res to java.xml.crypto; - // reflection access from com.sun.xml.internal.ws.api.streaming.XMLStreamWriterFactory - exports com.sun.xml.internal.stream.writers to java.xml.ws; uses javax.xml.datatype.DatatypeFactory; uses javax.xml.parsers.DocumentBuilderFactory; From 06cf2f81e727bc27bd1e7d933b927fd9f02f674e Mon Sep 17 00:00:00 2001 From: Jan Lahoda Date: Mon, 19 Jun 2017 05:56:49 +0200 Subject: [PATCH 26/83] 8182162: Remove -XD-Xmodule Removing the undocumented -XD-Xmodule: option. Reviewed-by: jjg --- .../com/sun/tools/javac/comp/Modules.java | 22 +---- .../javac/modules/LegacyXModuleTest.java | 85 ------------------- 2 files changed, 2 insertions(+), 105 deletions(-) delete mode 100644 langtools/test/tools/javac/modules/LegacyXModuleTest.java diff --git a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java index 32ef920cce6..55118280e3d 100644 --- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java @@ -146,8 +146,6 @@ public class Modules extends JCTree.Visitor { public final boolean multiModuleMode; - private final String legacyModuleOverride; - private final Name java_se; private final Name java_; @@ -196,14 +194,6 @@ public class Modules extends JCTree.Visitor { allowAccessIntoSystem = options.isUnset(Option.RELEASE); lintOptions = options.isUnset(Option.XLINT_CUSTOM, "-" + LintCategory.OPTIONS.option); - Collection xmodules = options.keySet() - .stream() - .filter(opt -> opt.startsWith(XMODULES_PREFIX)) - .map(opt -> opt.substring(XMODULES_PREFIX.length())) - .collect(Collectors.toList()); - - legacyModuleOverride = xmodules.size() == 1 ? xmodules.iterator().next() : null; - multiModuleMode = fileManager.hasLocation(StandardLocation.MODULE_SOURCE_PATH); ClassWriter classWriter = ClassWriter.instance(context); classWriter.multiModuleMode = multiModuleMode; @@ -469,9 +459,6 @@ public class Modules extends JCTree.Visitor { if (moduleOverride != null) { checkNoAllModulePath(); defaultModule = moduleFinder.findModule(names.fromString(moduleOverride)); - if (legacyModuleOverride != null) { - defaultModule.sourceLocation = StandardLocation.SOURCE_PATH; - } defaultModule.patchOutputLocation = StandardLocation.CLASS_OUTPUT; } else { // Question: why not do findAllModules and initVisiblePackages here? @@ -546,11 +533,6 @@ public class Modules extends JCTree.Visitor { } private void checkSourceLocation(JCCompilationUnit tree, ModuleSymbol msym) { - // skip check if legacy module override still in use - if (legacyModuleOverride != null) { - return; - } - try { JavaFileObject fo = tree.sourcefile; if (fileManager.contains(msym.sourceLocation, fo)) { @@ -582,7 +564,7 @@ public class Modules extends JCTree.Visitor { private String singleModuleOverride(List trees) { if (!fileManager.hasLocation(StandardLocation.PATCH_MODULE_PATH)) { - return legacyModuleOverride; + return null; } Set override = new LinkedHashSet<>(); @@ -602,7 +584,7 @@ public class Modules extends JCTree.Visitor { } switch (override.size()) { - case 0: return legacyModuleOverride; + case 0: return null; case 1: return override.iterator().next(); default: log.error(Errors.TooManyPatchedModules(override)); diff --git a/langtools/test/tools/javac/modules/LegacyXModuleTest.java b/langtools/test/tools/javac/modules/LegacyXModuleTest.java deleted file mode 100644 index 36113364e06..00000000000 --- a/langtools/test/tools/javac/modules/LegacyXModuleTest.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2017, 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. - * - * 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. - */ - -/* - * @test - * @bug 8178012 - * @summary tests for multi-module mode compilation - * @library /tools/lib - * @modules - * jdk.compiler/com.sun.tools.javac.api - * jdk.compiler/com.sun.tools.javac.main - * @build toolbox.ToolBox toolbox.JavacTask toolbox.ModuleBuilder ModuleTestBase - * @run main LegacyXModuleTest - */ - -import java.nio.file.Path; -import java.util.Arrays; -import java.util.List; -import java.util.Objects; - -import toolbox.JavacTask; -import toolbox.Task; - -public class LegacyXModuleTest extends ModuleTestBase { - - public static void main(String... args) throws Exception { - new LegacyXModuleTest().runTests(); - } - - @Test - public void testLegacyXModule(Path base) throws Exception { - //note: avoiding use of java.base, as that gets special handling on some places: - Path src = base.resolve("src"); - tb.writeJavaFiles(src, "package com.sun.tools.javac.comp; public class Extra { Modules modules; }"); - Path classes = base.resolve("classes"); - tb.createDirectories(classes); - - new JavacTask(tb) - .options("-XD-Xmodule:jdk.compiler") - .outdir(classes) - .files(findJavaFiles(src)) - .run() - .writeAll() - .getOutput(Task.OutputKind.DIRECT); - - List log = new JavacTask(tb) - .options("-XD-Xmodule:java.compiler", - "-XD-Xmodule:jdk.compiler", - "-XDrawDiagnostics") - .outdir(classes) - .files(findJavaFiles(src)) - .run(Task.Expect.FAIL) - .writeAll() - .getOutputLines(Task.OutputKind.DIRECT); - - List actual = - Arrays.asList("Extra.java:1:56: compiler.err.cant.resolve.location: kindname.class, Modules, , , " + - "(compiler.misc.location: kindname.class, com.sun.tools.javac.comp.Extra, null)", - "1 error"); - - if (!Objects.equals(actual, log)) - throw new Exception("expected output not found: " + log); - } - -} From 8906ca8e00314423f3c5acfedc96168ab2dbf2b6 Mon Sep 17 00:00:00 2001 From: Mark Reinhold Date: Mon, 19 Jun 2017 18:20:42 +0200 Subject: [PATCH 27/83] 8182408: Simplify the API-specification overview page Reviewed-by: erikj, mchung, jrose, alanb --- make/Docs.gmk | 95 +++++++++++++++++++++++++-------------------------- 1 file changed, 46 insertions(+), 49 deletions(-) diff --git a/make/Docs.gmk b/make/Docs.gmk index 0abf9e1de5d..1f1adf4add0 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -116,9 +116,9 @@ endif # General text snippets FULL_COMPANY_NAME := Oracle and/or its affiliates -COMPANY_ADDRESS := 500 Oracle Parkway
    Redwood Shores, CA 94065 USA +COMPANY_ADDRESS := 500 Oracle Parkway, Redwood Shores, CA 94065 USA -JAVA_PLATFORM := Java™ Platform +JAVA_PLATFORM := Java Platform ifeq ($(IS_DRAFT), true) DRAFT_MARKER_STR :=
    DRAFT $(VERSION_STRING) @@ -127,46 +127,44 @@ ifeq ($(IS_DRAFT), true) else DRAFT_MARKER_TITLE := [build $(VERSION_BUILD)] endif - DRAFT_TEXT := Please note that the specifications and other information \ - contained herein are not final and are subject to change. The \ - information is being made available to you solely for purpose of \ - evaluation. + DRAFT_TEXT := This specification is not final and is subject to change. \ + Use is subject to license terms. endif JAVADOC_BOTTOM := \ - \ - Submit a bug or feature
    \ - For further API reference and developer documentation, see \ + Report a bug or suggest an enhancement
    \ + For further API reference and developer documentation see the \ Java SE \ - Documentation. That documentation contains more detailed, \ - developer-targeted descriptions, with conceptual overviews, definitions \ + Documentation, which contains more detailed, \ + developer-targeted descriptions with conceptual overviews, definitions \ of terms, workarounds, and working code examples.
    \ Java is a trademark or registered trademark of $(FULL_COMPANY_NAME) in \ the US and other countries.
    \ Copyright \ - © 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME). \ - $(COMPANY_ADDRESS). All rights reserved. \ - Use is subject to license terms. Also see the \ + © 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME), \ + $(COMPANY_ADDRESS).
    All rights reserved. \ + Use is subject to license terms and the \ documentation redistribution policy. \ - $(DRAFT_MARKER_STR)
    + $(DRAFT_MARKER_STR) + JAVADOC_TOP := \ -

    $(DRAFT_TEXT)
    +
    $(DRAFT_TEXT)
    ################################################################################ # JDK javadoc titles/text snippets -JDK_SHORT_NAME := JDK™ $(VERSION_SPECIFICATION) -JDK_LONG_NAME := Standard Edition Development Kit (JDK™) $(VERSION_SPECIFICATION) +JDK_SHORT_NAME := Java SE $(VERSION_SPECIFICATION) & JDK $(VERSION_SPECIFICATION) +JDK_LONG_NAME := Java® Platform, Standard Edition \ + & Java Development Kit ################################################################################ # Java SE javadoc titles/text snippets -JAVASE_SHORT_NAME := SE $(VERSION_SPECIFICATION) -JAVASE_LONG_NAME := Standard Edition $(VERSION_SPECIFICATION) +JAVASE_SHORT_NAME := Java SE $(VERSION_SPECIFICATION) +JAVASE_LONG_NAME := Java® Platform, Standard Edition ################################################################################ # Functions @@ -199,23 +197,19 @@ define create_overview_file $1_OVERVIEW_TEXT := \ \ \ -

    This document is the API specification for $$($1_FULL_NAME).

    \ # ifneq ($$($1_GROUPS),) $1_OVERVIEW_TEXT += \ -
    \ - # +

    This document is divided into \ + $$(subst 2,two,$$(subst 3,three,$$(words $$($1_GROUPS)))) sections:

    \ +
    \ + # $1_OVERVIEW_TEXT += $$(foreach g, $$($1_GROUPS), \ -
    $$($$g_GROUP_NAME)
    \ -
    $$($$g_GROUP_DESCRIPTION) \ +
    $$($$g_GROUP_NAME)
    \ +
    $$($$g_GROUP_DESCRIPTION) \ ) $1_OVERVIEW_TEXT += \ -
    \ - # - endif - ifeq ($$(IS_DRAFT), true) - $1_OVERVIEW_TEXT += \ -

    $$(DRAFT_TEXT)

    \ +
    \ # endif $1_OVERVIEW_TEXT += \ @@ -273,13 +267,16 @@ define SetupApiDocsGenerationBody $1_OPTIONS += -Xdoclint:all,$$(call CommaList, $$(addprefix -, \ $$(JAVADOC_DISABLED_DOCLINT))) - $1_FULL_NAME := $$(JAVA_PLATFORM), $$($1_LONG_NAME) \ - $$(DRAFT_MARKER_TITLE) - $1_DOC_TITLE := $$($1_FULL_NAME)
    API Specification - $1_WINDOW_TITLE := $$(subst ™,,$$(JAVA_PLATFORM) $$($1_SHORT_NAME)) \ + $1_DOC_TITLE := $$($1_LONG_NAME)
    Version $$(VERSION_SPECIFICATION) API Specification + $1_WINDOW_TITLE := $$(subst &,&,$$($1_SHORT_NAME)) \ $$(DRAFT_MARKER_TITLE) - $1_HEADER_TITLE := $$(JAVA_PLATFORM)
    $$($1_SHORT_NAME)
    \ - $$(DRAFT_MARKER_STR) + ifeq ($(VERSION_IS_GA), true) # Workaround stylesheet bug + $1_HEADER_PAD := 14 + else + $1_HEADER_PAD := 9 + endif + $1_HEADER_TITLE :=
    $$($1_SHORT_NAME) \ + $$(DRAFT_MARKER_STR)
    $1_OPTIONS += -doctitle '$$($1_DOC_TITLE)' $1_OPTIONS += -windowtitle '$$($1_WINDOW_TITLE)' @@ -373,18 +370,18 @@ JavaSE_GROUP_NAME := Java SE JavaSE_GROUP_MODULES := $(call ColonList, $(sort java.se.ee \ $(call FindTransitiveIndirectDepsForModules, java.se.ee))) JavaSE_GROUP_DESCRIPTION := \ - The Java Platform, Standard Edition ("Java SE") APIs define the core Java \ - platform for general-purpose computing. These APIs are in modules with \ - names starting with the string "java.". \ + The Java Platform, Standard Edition (Java SE) APIs define the core Java \ + platform for general-purpose computing. These APIs are in modules whose \ + names start with {@code java}. \ # JDK_GROUPS += JavaSE JDK_GROUP_NAME := JDK JDK_GROUP_MODULES := jdk.* JDK_GROUP_DESCRIPTION := \ - The Java Development Kit ("JDK") APIs define an implementation of the Java \ - SE Platform which may include platform-specific details. These APIs are in \ - modules with names starting with the string "jdk.". \ + The Java Development Kit (JDK) APIs are specific to the JDK and will not \ + necessarily be available in all implementations of the Java SE Platform. \ + These APIs are in modules whose names start with {@code jdk}. \ # JDK_GROUPS += JDK @@ -395,9 +392,9 @@ ifneq ($(findstring javafx., $(IMPORTED_MODULES)), ) JavaFX_GROUP_NAME := JavaFX JavaFX_GROUP_MODULES := javafx.* JavaFX_GROUP_DESCRIPTION := \ - The JavaFX APIs define a set of user interface (UI) controls, graphics, \ + The JavaFX APIs define a set of user-interface controls, graphics, \ media, and web packages for developing rich client applications. These \ - APIs are in modules with names starting with the string "javafx.". \ + APIs are in modules whose names start with {@code javafx}. \ # JDK_GROUPS += JavaFX endif @@ -419,7 +416,7 @@ $(eval $(call SetupApiDocsGeneration, JDK_API, \ ################################################################################ # Setup generation of the Java SE API documentation (javadoc + modulegraph) -# The Java SE module scope is just java.se.ee and it's transitive indirect +# The Java SE module scope is just java.se.ee and its transitive indirect # exports. JAVASE_MODULES := java.se.ee From dda120e874a24d252d61789467f8baeff967cc40 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Mon, 19 Jun 2017 12:25:02 -0700 Subject: [PATCH 28/83] 8182492: docs bundle needs legal notices for 3rd party libraries distributed for javadoc search Reviewed-by: jjg --- langtools/src/jdk.javadoc/share/legal/pako.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 langtools/src/jdk.javadoc/share/legal/pako.md diff --git a/langtools/src/jdk.javadoc/share/legal/pako.md b/langtools/src/jdk.javadoc/share/legal/pako.md new file mode 100644 index 00000000000..de339d89898 --- /dev/null +++ b/langtools/src/jdk.javadoc/share/legal/pako.md @@ -0,0 +1,45 @@ +## Pako v1.0 + +### Pako License +
    +Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
    +
    +Permission is hereby granted, free of charge, to any person obtaining a copy
    +of this software and associated documentation files (the "Software"), to deal
    +in the Software without restriction, including without limitation the rights
    +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    +copies of the Software, and to permit persons to whom the Software is
    +furnished to do so, subject to the following conditions:
    +
    +The above copyright notice and this permission notice shall be included in
    +all copies or substantial portions of the Software.
    +
    +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    +THE SOFTWARE.
    +(C) 1995-2013 Jean-loup Gailly and Mark Adler
    +(C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
    +
    +This software is provided 'as-is', without any express or implied
    +warranty. In no event will the authors be held liable for any damages
    +arising from the use of this software.
    +
    +Permission is granted to anyone to use this software for any purpose,
    +including commercial applications, and to alter it and redistribute it
    +freely, subject to the following restrictions:
    +
    +1. The origin of this software must not be misrepresented; you must not
    +claim that you wrote the original software. If you use this software
    +in a product, an acknowledgment in the product documentation would be
    +appreciated but is not required.
    +2. Altered source versions must be plainly marked as such, and must not be
    + misrepresented as being the original software.
    +3. This notice may not be removed or altered from any source distribution.
    +
    +
    + + From f68df147c2ce1d5d19b5e7b60be4364b73237a99 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Mon, 19 Jun 2017 12:25:37 -0700 Subject: [PATCH 29/83] 8182492: docs bundle needs legal notices for 3rd party libraries distributed for javadoc search Reviewed-by: jjg --- make/Docs.gmk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/make/Docs.gmk b/make/Docs.gmk index 1f1adf4add0..662606ee1b5 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -456,6 +456,15 @@ $(eval $(call SetupCopyFiles, COPY_GLOBAL_RESOURCES, \ )) JDK_INDEX_TARGETS += $(COPY_GLOBAL_RESOURCES) +# Copy the legal notices distributed with the docs bundle +DOCS_LEGAL_NOTICES := jquery.md jszip.md pako.md +$(eval $(call SetupCopyFiles, COPY_DOCS_LEGAL_NOTICES, \ + SRC := $(LANGTOOLS_TOPDIR)/src/jdk.javadoc/share/legal, \ + FILES := $(DOCS_LEGAL_NOTICES), \ + DEST := $(DOCS_OUTPUTDIR)/legal, \ +)) +JDK_INDEX_TARGETS += $(COPY_DOCS_LEGAL_NOTICES) + ################################################################################ # Copy JDK specs files From cd5a336735ae8092709757356314b81aae06cd2c Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Mon, 19 Jun 2017 15:06:01 -0700 Subject: [PATCH 30/83] 8163989: Clarify ModuleElement spec Reviewed-by: abuckley, jjg --- .../lang/model/element/ModuleElement.java | 16 +++++ .../lang/model/element/PackageElement.java | 7 ++ .../com/sun/tools/javac/code/Symbol.java | 11 +++ .../JavacProcessingEnvironment.java | 2 +- .../test/tools/javac/modules/EdgeCases.java | 4 +- .../model/element/TestModuleElementNames.java | 68 +++++++++++++++++++ .../model/element/TestPackageElement.java | 17 ++++- 7 files changed, 119 insertions(+), 6 deletions(-) create mode 100644 langtools/test/tools/javac/processing/model/element/TestModuleElementNames.java diff --git a/langtools/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java b/langtools/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java index d5bb4f65754..8a776ef5325 100644 --- a/langtools/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java +++ b/langtools/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java @@ -42,8 +42,16 @@ public interface ModuleElement extends Element, QualifiedNameable { * Returns the fully qualified name of this module. For an * {@linkplain #isUnnamed() unnamed module}, an empty name is returned. * + * @apiNote If the module name consists of one identifier, then + * this method returns that identifier, which is deemed to be + * module's fully qualified name despite not being in qualified + * form. If the module name consists of more than one identifier, + * then this method returns the entire name. + * * @return the fully qualified name of this module, or an * empty name if this is an unnamed module + * + * @jls 6.2 Names and Identifiers */ @Override Name getQualifiedName(); @@ -52,8 +60,16 @@ public interface ModuleElement extends Element, QualifiedNameable { * Returns the simple name of this module. For an {@linkplain * #isUnnamed() unnamed module}, an empty name is returned. * + * @apiNote If the module name consists of one identifier, then + * this method returns that identifier. If the module name + * consists of more than one identifier, then this method returns + * the rightmost such identifier, which is deemed to be the + * module's simple name. + * * @return the simple name of this module or an empty name if * this is an unnamed module + * + * @jls 6.2 Names and Identifiers */ @Override Name getSimpleName(); diff --git a/langtools/src/java.compiler/share/classes/javax/lang/model/element/PackageElement.java b/langtools/src/java.compiler/share/classes/javax/lang/model/element/PackageElement.java index ad2fc6b0519..b23152fe0f0 100644 --- a/langtools/src/java.compiler/share/classes/javax/lang/model/element/PackageElement.java +++ b/langtools/src/java.compiler/share/classes/javax/lang/model/element/PackageElement.java @@ -44,6 +44,13 @@ public interface PackageElement extends Element, QualifiedNameable { * This is also known as the package's canonical name. * For an {@linkplain #isUnnamed() unnamed package}, an empty name is returned. * + * @apiNote The fully qualified name of a named package that is + * not a subpackage of a named package is its simple name. The + * fully qualified name of a named package that is a subpackage of + * another named package consists of the fully qualified name of + * the containing package, followed by "{@code .}", followed by the simple + * (member) name of the subpackage. + * * @return the fully qualified name of this package, or an * empty name if this is an unnamed package * @jls 6.7 Fully Qualified Names and Canonical Names diff --git a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java index 2298d197121..ed5e444b25a 100644 --- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java @@ -949,6 +949,17 @@ public abstract class Symbol extends AnnoConstruct implements Element { this.type = new ModuleType(this); } + @Override @DefinedBy(Api.LANGUAGE_MODEL) + public Name getSimpleName() { + Name fullName = getQualifiedName(); + int lastPeriod = fullName.lastIndexOf((byte)'.'); + if (lastPeriod == -1) { + return fullName; + } else { + return fullName.subName(lastPeriod + 1, fullName.length()); + } + } + @Override @DefinedBy(Api.LANGUAGE_MODEL) public boolean isOpen() { return flags.contains(ModuleFlags.OPEN); diff --git a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java index 3da5a547754..72e5a09dcb4 100644 --- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java +++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java @@ -838,7 +838,7 @@ public class JavacProcessingEnvironment implements ProcessingEnvironment, Closea for(TypeElement a : annotationsPresent) { ModuleElement mod = elementUtils.getModuleOf(a); - String moduleSpec = allowModules && mod != null ? mod.getSimpleName() + "/" : ""; + String moduleSpec = allowModules && mod != null ? mod.getQualifiedName() + "/" : ""; unmatchedAnnotations.put(moduleSpec + a.getQualifiedName().toString(), a); } diff --git a/langtools/test/tools/javac/modules/EdgeCases.java b/langtools/test/tools/javac/modules/EdgeCases.java index 679bc1709e6..8fc240f6ae7 100644 --- a/langtools/test/tools/javac/modules/EdgeCases.java +++ b/langtools/test/tools/javac/modules/EdgeCases.java @@ -595,12 +595,12 @@ public class EdgeCases extends ModuleTestBase { System.out.println("from directives:"); for (RequiresDirective rd : ElementFilter.requiresIn(testE.getDirectives())) { - System.out.println(rd.getDependency().getSimpleName()); + System.out.println(rd.getDependency().getQualifiedName()); } System.out.println("from requires:"); for (RequiresDirective rd : ((ModuleSymbol) testE).requires) { - System.out.println(rd.getDependency().getSimpleName()); + System.out.println(rd.getDependency().getQualifiedName()); } } diff --git a/langtools/test/tools/javac/processing/model/element/TestModuleElementNames.java b/langtools/test/tools/javac/processing/model/element/TestModuleElementNames.java new file mode 100644 index 00000000000..9449b61be0c --- /dev/null +++ b/langtools/test/tools/javac/processing/model/element/TestModuleElementNames.java @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2017, 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. + * + * 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. + */ + +/* + * @test + * @bug 8163989 + * @summary Test basic workings of naming methods on ModuleElement + * @library /tools/javac/lib + * @modules java.compiler + * jdk.compiler + * @build JavacTestingAbstractProcessor TestModuleElementNames + * @compile -processor TestModuleElementNames -proc:only TestModuleElementNames.java + */ + +import java.util.Set; +import javax.annotation.processing.*; +import javax.lang.model.element.*; +import javax.lang.model.util.*; + +/** + * Test basic workings of names of ModuleElement. + */ +public class TestModuleElementNames extends JavacTestingAbstractProcessor { + public boolean process(Set annotations, + RoundEnvironment roundEnv) { + if (!roundEnv.processingOver()) { + checkNames(eltUtils.getModuleElement(""), "", "", true); + checkNames(eltUtils.getModuleElement("java.base"), "base", "java.base", false); + } + return true; + } + + private void checkNames(ModuleElement mod, String expectedSimple, String expectedQual, boolean expectedUnnamed) { + boolean unnamed = mod.isUnnamed(); + String simpleName = mod.getSimpleName().toString(); + String qualifiedName = mod.getQualifiedName().toString(); + + if (unnamed != expectedUnnamed) { + throw new RuntimeException("Unnamed mismatch on " + qualifiedName); + } + + if (!simpleName.equals(expectedSimple) || + !qualifiedName.equals(expectedQual)) { + throw new RuntimeException("Unexpected name,\tqualitifed ``" + qualifiedName + + "''\tsimmple ``" + simpleName + "''"); + } + } +} diff --git a/langtools/test/tools/javac/processing/model/element/TestPackageElement.java b/langtools/test/tools/javac/processing/model/element/TestPackageElement.java index 1d6803c5565..f3749f6c5ff 100644 --- a/langtools/test/tools/javac/processing/model/element/TestPackageElement.java +++ b/langtools/test/tools/javac/processing/model/element/TestPackageElement.java @@ -23,7 +23,7 @@ /* * @test - * @bug 6449798 6399404 8173776 + * @bug 6449798 6399404 8173776 8163989 * @summary Test basic workings of PackageElement * @author Joseph D. Darcy * @library /tools/javac/lib @@ -54,8 +54,7 @@ public class TestPackageElement extends JavacTestingAbstractProcessor { if (!roundEnv.processingOver()) { PackageElement unnamedPkg = eltUtils.getPackageElement(""); - if (!unnamedPkg.getQualifiedName().contentEquals("")) - throw new RuntimeException("The unnamed package is named!"); + testNames(unnamedPkg, "", ""); // The next line tests an implementation detail upon which // some diagnostics depend. @@ -70,11 +69,23 @@ public class TestPackageElement extends JavacTestingAbstractProcessor { if (javaLang.isUnnamed()) throw new RuntimeException("Package java.lang is unnamed!"); + testNames(javaLang, "java.lang", "lang"); + testEnclosingElement(javaLang); } return true; } + void testNames(PackageElement pkg, String expectedQualified, String expectedSimple) { + String tmp = pkg.getQualifiedName().toString(); + if (!tmp.equals(expectedQualified)) + throw new RuntimeException("Unexpected qualifed name ``" + tmp + "''."); + + tmp = pkg.getSimpleName().toString(); + if (!tmp.equals(expectedSimple)) + throw new RuntimeException("Unexpected simple name ``" + tmp + "''."); + } + void testEnclosingElement(PackageElement javaLang) { SourceVersion version = processingEnv.getSourceVersion(); Element enclosing = javaLang.getEnclosingElement(); From 43ffee89aaf6b72614a87a1f325cc6d4f4fc3601 Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Mon, 19 Jun 2017 17:13:42 -0700 Subject: [PATCH 31/83] 8182566: Including missing test update for JDK-8163989 Reviewed-by: jjg --- .../file/MultiReleaseJar/MutliReleaseModuleInfoTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/langtools/test/tools/javac/file/MultiReleaseJar/MutliReleaseModuleInfoTest.java b/langtools/test/tools/javac/file/MultiReleaseJar/MutliReleaseModuleInfoTest.java index 8d4cde4e669..96f715ca491 100644 --- a/langtools/test/tools/javac/file/MultiReleaseJar/MutliReleaseModuleInfoTest.java +++ b/langtools/test/tools/javac/file/MultiReleaseJar/MutliReleaseModuleInfoTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, 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 @@ -132,7 +132,7 @@ public class MutliReleaseModuleInfoTest { } boolean foundjd = false; for (RequiresDirective rd : ElementFilter.requiresIn(sm.getDirectives())) { - foundjd |= rd.getDependency().getSimpleName().contentEquals("java.desktop"); + foundjd |= rd.getDependency().getQualifiedName().contentEquals("java.desktop"); } if (!foundjd) { throw new AssertionError("Missing dependency on java desktop module!"); From 0932a3dc0de2d4779dc8994b1a477a04eb7cfae2 Mon Sep 17 00:00:00 2001 From: Sergey Nazarkin Date: Tue, 20 Jun 2017 17:00:07 +0800 Subject: [PATCH 32/83] 8182581: aarch64: fix for crash caused by earlyret of compiled method Fix jvm crash caused by earlyret of compiled method for aarch64 port Reviewed-by: aph --- .../src/cpu/aarch64/vm/abstractInterpreter_aarch64.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hotspot/src/cpu/aarch64/vm/abstractInterpreter_aarch64.cpp b/hotspot/src/cpu/aarch64/vm/abstractInterpreter_aarch64.cpp index adb30aa0d1d..49a266e5480 100644 --- a/hotspot/src/cpu/aarch64/vm/abstractInterpreter_aarch64.cpp +++ b/hotspot/src/cpu/aarch64/vm/abstractInterpreter_aarch64.cpp @@ -109,9 +109,15 @@ int AbstractInterpreter::size_activation(int max_stack, // for the callee's params we only need to account for the extra // locals. int size = overhead + - (callee_locals - callee_params)*Interpreter::stackElementWords + + (callee_locals - callee_params) + monitors * frame::interpreter_frame_monitor_size() + - temps* Interpreter::stackElementWords + extra_args; + // On the top frame, at all times SP <= ESP, and SP is + // 16-aligned. We ensure this by adjusting SP on method + // entry and re-entry to allow room for the maximum size of + // the expression stack. When we call another method we bump + // SP so that no stack space is wasted. So, only on the top + // frame do we need to allow max_stack words. + (is_top_frame ? max_stack : temps + extra_args); // On AArch64 we always keep the stack pointer 16-aligned, so we // must round up here. From e987e9de9484a79a59e655356e6e93bb8d624a37 Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Tue, 20 Jun 2017 13:12:42 +0200 Subject: [PATCH 33/83] 8179537: Update testing.md for more clarity regarding JTReg configuration Reviewed-by: erikj --- common/doc/testing.html | 34 +++++++++++++++++++--------------- common/doc/testing.md | 35 ++++++++++++++++++++++------------- 2 files changed, 41 insertions(+), 28 deletions(-) diff --git a/common/doc/testing.html b/common/doc/testing.html index 64f635d2306..4d8d61fda44 100644 --- a/common/doc/testing.html +++ b/common/doc/testing.html @@ -18,14 +18,16 @@
  • +

    Configuration

    +

    To be able to run JTReg tests, configure needs to know where to find the JTReg test framework. If it is not picked up automatically by configure, use the --with-jtreg=<path to jtreg home> option to point to the JTReg framework. Note that this option should point to the JTReg home, i.e. the top directory, containing lib/jtreg.jar etc. (An alternative is to set the JT_HOME environment variable to point to the JTReg home before running configure.)

    Test selection

    All functionality is available using the run-test make target. In this use case, the test or tests to be executed is controlled using the TEST variable. To speed up subsequent test runs with no source code changes, run-test-only can be used instead, which do not depend on the source and test image build.

    -

    For some common top-level tests, direct make targets have been generated. This includes all JTreg test groups, the hotspot gtest, and custom tests (if present). This means that make run-test-tier1 is equivalent to make run-test TEST="tier1", but the latter is more tab-completion friendly. For more complex test runs, the run-test TEST="x" solution needs to be used.

    +

    For some common top-level tests, direct make targets have been generated. This includes all JTReg test groups, the hotspot gtest, and custom tests (if present). This means that make run-test-tier1 is equivalent to make run-test TEST="tier1", but the latter is more tab-completion friendly. For more complex test runs, the run-test TEST="x" solution needs to be used.

    The test specifications given in TEST is parsed into fully qualified test descriptors, which clearly and unambigously show which tests will be run. As an example, :tier1 will expand to jtreg:jdk/test:tier1 jtreg:langtools/test:tier1 jtreg:nashorn/test:tier1 jtreg:jaxp/test:tier1. You can always submit a list of fully qualified test descriptors in the TEST variable if you want to shortcut the parser.

    -

    JTreg

    -

    JTreg test groups can be specified either without a test root, e.g. :tier1 (or tier1, the initial colon is optional), or with, e.g. hotspot/test:tier1, jdk/test:jdk_util.

    +

    JTReg

    +

    JTReg test groups can be specified either without a test root, e.g. :tier1 (or tier1, the initial colon is optional), or with, e.g. hotspot/test:tier1, jdk/test:jdk_util.

    When specified without a test root, all matching groups from all tests roots will be added. Otherwise, only the group from the specified test root will be added.

    -

    Individual JTreg tests or directories containing JTreg tests can also be specified, like hotspot/test/native_sanity/JniVersion.java or hotspot/test/native_sanity. You can also specify an absolute path, to point to a JTreg test outside the source tree.

    +

    Individual JTReg tests or directories containing JTReg tests can also be specified, like hotspot/test/native_sanity/JniVersion.java or hotspot/test/native_sanity. You can also specify an absolute path, to point to a JTReg test outside the source tree.

    As long as the test groups or test paths can be uniquely resolved, you do not need to enter the jtreg: prefix. If this is not possible, or if you want to use a fully qualified test descriptor, add jtreg:, e.g. jtreg:hotspot/test/native_sanity.

    Gtest

    Since the Hotspot Gtest suite is so quick, the default is to run all tests. This is specified by just gtest, or as a fully qualified test descriptor gtest:all.

    @@ -65,15 +69,15 @@ TEST FAILURE

    Tests where the number of TOTAL tests does not equal the number of PASSed tests will be considered a test failure. These are marked with the >> ... << marker for easy identification.

    The classification of non-passed tests differs a bit between test suites. In the summary, ERROR is used as a catch-all for tests that neither passed nor are classified as failed by the framework. This might indicate test framework error, timeout or other problems.

    In case of test failures, make run-test will exit with a non-zero exit value.

    -

    All tests have their result stored in build/$BUILD/test-result/$TEST_ID, where TEST_ID is a path-safe conversion from the fully qualified test descriptor, e.g. for jtreg:jdk/test:tier1 the TEST_ID is jtreg_jdk_test_tier1. This path is also printed in the log at the end of the test run.

    +

    All tests have their result stored in build/$BUILD/test-results/$TEST_ID, where TEST_ID is a path-safe conversion from the fully qualified test descriptor, e.g. for jtreg:jdk/test:tier1 the TEST_ID is jtreg_jdk_test_tier1. This path is also printed in the log at the end of the test run.

    Additional work data is stored in build/$BUILD/test-support/$TEST_ID. For some frameworks, this directory might contain information that is useful in determining the cause of a failed test.

    Test suite control

    It is possible to control various aspects of the test suites using make control variables.

    -

    These variables use a keyword=value approach to allow multiple values to be set. So, for instance, JTREG="JOBS=1;TIMEOUT=8" will set the JTreg concurrency level to 1 and the timeout factor to 8. This is equivalent to setting JTREG_JOBS=1 JTREG_TIMEOUT=8, but using the keyword format means that the JTREG variable is parsed and verified for correctness, so JTREG="TMIEOUT=8" would give an error, while JTREG_TMIEOUT=8 would just pass unnoticed.

    +

    These variables use a keyword=value approach to allow multiple values to be set. So, for instance, JTREG="JOBS=1;TIMEOUT=8" will set the JTReg concurrency level to 1 and the timeout factor to 8. This is equivalent to setting JTREG_JOBS=1 JTREG_TIMEOUT=8, but using the keyword format means that the JTREG variable is parsed and verified for correctness, so JTREG="TMIEOUT=8" would give an error, while JTREG_TMIEOUT=8 would just pass unnoticed.

    To separate multiple keyword=value pairs, use ; (semicolon). Since the shell normally eats ;, the recommended usage is to write the assignment inside qoutes, e.g. JTREG="...;...". This will also make sure spaces are preserved, as in JTREG="VM_OTIONS=-XshowSettings -Xlog:gc+ref=debug".

    (Other ways are possible, e.g. using backslash: JTREG=JOBS=1\;TIMEOUT=8. Also, as a special technique, the string %20 will be replaced with space for certain options, e.g. JTREG=VM_OTIONS=-XshowSettings%20-Xlog:gc+ref=debug. This can be useful if you have layers of scripts and have trouble getting proper quoting of command line arguments through.)

    As far as possible, the names of the keywords have been standardized between test suites.

    -

    JTreg keywords

    +

    JTReg keywords

    JOBS

    The test concurrency (-concurrency).

    Defaults to TEST_JOBS (if set by --with-test-jobs=), otherwise it defaults to JOBS, except for Hotspot, where the default is number of CPU cores/2, but never more than 12.

    @@ -94,15 +98,15 @@ TEST FAILURE

    Defaults to fail,error.

    MAX_MEM

    Limit memory consumption (-Xmx and -vmoption:-Xmx, or none).

    -

    Limit memory consumption for JTreg test framework and VM under test. Set to 0 to disable the limits.

    +

    Limit memory consumption for JTReg test framework and VM under test. Set to 0 to disable the limits.

    Defaults to 512m, except for hotspot, where it defaults to 0 (no limit).

    OPTIONS

    -

    Additional options to the JTreg test framework.

    -

    Use JTREG="OPTIONS=--help all" to see all available JTreg options.

    +

    Additional options to the JTReg test framework.

    +

    Use JTREG="OPTIONS=--help all" to see all available JTReg options.

    JAVA_OPTIONS

    -

    Additional Java options to JTreg (-javaoption).

    +

    Additional Java options to JTReg (-javaoption).

    VM_OPTIONS

    -

    Additional VM options to JTreg (-vmoption).

    +

    Additional VM options to JTReg (-vmoption).

    Gtest keywords

    REPEAT

    The number of times to repeat the tests (--gtest_repeat).

    diff --git a/common/doc/testing.md b/common/doc/testing.md index f84bd27dda2..db570f4cd5c 100644 --- a/common/doc/testing.md +++ b/common/doc/testing.md @@ -16,6 +16,15 @@ Some example command-lines: $ make run-test TEST="hotspot/test:hotspot_gc" JTREG="JOBS=1;TIMEOUT=8;VM_OTIONS=-XshowSettings -Xlog:gc+ref=debug" $ make run-test TEST="jtreg:hotspot/test:hotspot_gc hotspot/test/native_sanity/JniVersion.java" +### Configuration + +To be able to run JTReg tests, `configure` needs to know where to find the +JTReg test framework. If it is not picked up automatically by configure, use +the `--with-jtreg=` option to point to the JTReg framework. +Note that this option should point to the JTReg home, i.e. the top directory, +containing `lib/jtreg.jar` etc. (An alternative is to set the `JT_HOME` +environment variable to point to the JTReg home before running `configure`.) + ## Test selection All functionality is available using the run-test make target. In this use @@ -24,7 +33,7 @@ To speed up subsequent test runs with no source code changes, run-test-only can be used instead, which do not depend on the source and test image build. For some common top-level tests, direct make targets have been generated. This -includes all JTreg test groups, the hotspot gtest, and custom tests (if +includes all JTReg test groups, the hotspot gtest, and custom tests (if present). This means that `make run-test-tier1` is equivalent to `make run-test TEST="tier1"`, but the latter is more tab-completion friendly. For more complex test runs, the `run-test TEST="x"` solution needs to be used. @@ -36,9 +45,9 @@ jtreg:langtools/test:tier1 jtreg:nashorn/test:tier1 jtreg:jaxp/test:tier1`. You can always submit a list of fully qualified test descriptors in the `TEST` variable if you want to shortcut the parser. -### JTreg +### JTReg -JTreg test groups can be specified either without a test root, e.g. `:tier1` +JTReg test groups can be specified either without a test root, e.g. `:tier1` (or `tier1`, the initial colon is optional), or with, e.g. `hotspot/test:tier1`, `jdk/test:jdk_util`. @@ -46,10 +55,10 @@ When specified without a test root, all matching groups from all tests roots will be added. Otherwise, only the group from the specified test root will be added. -Individual JTreg tests or directories containing JTreg tests can also be +Individual JTReg tests or directories containing JTReg tests can also be specified, like `hotspot/test/native_sanity/JniVersion.java` or `hotspot/test/native_sanity`. You can also specify an absolute path, to point -to a JTreg test outside the source tree. +to a JTReg test outside the source tree. As long as the test groups or test paths can be uniquely resolved, you do not need to enter the `jtreg:` prefix. If this is not possible, or if you want to @@ -93,7 +102,7 @@ error, timeout or other problems. In case of test failures, `make run-test` will exit with a non-zero exit value. -All tests have their result stored in `build/$BUILD/test-result/$TEST_ID`, +All tests have their result stored in `build/$BUILD/test-results/$TEST_ID`, where TEST_ID is a path-safe conversion from the fully qualified test descriptor, e.g. for `jtreg:jdk/test:tier1` the TEST_ID is `jtreg_jdk_test_tier1`. This path is also printed in the log at the end of the @@ -109,7 +118,7 @@ It is possible to control various aspects of the test suites using make control variables. These variables use a keyword=value approach to allow multiple values to be -set. So, for instance, `JTREG="JOBS=1;TIMEOUT=8"` will set the JTreg +set. So, for instance, `JTREG="JOBS=1;TIMEOUT=8"` will set the JTReg concurrency level to 1 and the timeout factor to 8. This is equivalent to setting `JTREG_JOBS=1 JTREG_TIMEOUT=8`, but using the keyword format means that the `JTREG` variable is parsed and verified for correctness, so @@ -130,7 +139,7 @@ proper quoting of command line arguments through.) As far as possible, the names of the keywords have been standardized between test suites. -### JTreg keywords +### JTReg keywords #### JOBS The test concurrency (`-concurrency`). @@ -168,21 +177,21 @@ Defaults to `fail,error`. #### MAX_MEM Limit memory consumption (`-Xmx` and `-vmoption:-Xmx`, or none). -Limit memory consumption for JTreg test framework and VM under test. Set to 0 +Limit memory consumption for JTReg test framework and VM under test. Set to 0 to disable the limits. Defaults to 512m, except for hotspot, where it defaults to 0 (no limit). #### OPTIONS -Additional options to the JTreg test framework. +Additional options to the JTReg test framework. -Use `JTREG="OPTIONS=--help all"` to see all available JTreg options. +Use `JTREG="OPTIONS=--help all"` to see all available JTReg options. #### JAVA_OPTIONS -Additional Java options to JTreg (`-javaoption`). +Additional Java options to JTReg (`-javaoption`). #### VM_OPTIONS -Additional VM options to JTreg (`-vmoption`). +Additional VM options to JTReg (`-vmoption`). ### Gtest keywords From 2a0ab692f73457453bf0e2f647452f2e337d9857 Mon Sep 17 00:00:00 2001 From: Vladimir Ivanov Date: Tue, 20 Jun 2017 14:37:25 +0300 Subject: [PATCH 34/83] 8181872: C1: possible overflow when strength reducing integer multiply by constant Reviewed-by: kvn --- .../aarch64/vm/c1_LIRGenerator_aarch64.cpp | 10 ++-- .../src/cpu/arm/vm/c1_LIRGenerator_arm.cpp | 4 +- .../src/cpu/x86/vm/c1_LIRGenerator_x86.cpp | 8 +-- hotspot/src/share/vm/c1/c1_LIRGenerator.cpp | 6 +-- hotspot/src/share/vm/c1/c1_LIRGenerator.hpp | 2 +- .../test/compiler/c1/MultiplyByMaxInt.java | 53 +++++++++++++++++++ 6 files changed, 68 insertions(+), 15 deletions(-) create mode 100644 hotspot/test/compiler/c1/MultiplyByMaxInt.java diff --git a/hotspot/src/cpu/aarch64/vm/c1_LIRGenerator_aarch64.cpp b/hotspot/src/cpu/aarch64/vm/c1_LIRGenerator_aarch64.cpp index 5abe4281aa2..1a612b9bac2 100644 --- a/hotspot/src/cpu/aarch64/vm/c1_LIRGenerator_aarch64.cpp +++ b/hotspot/src/cpu/aarch64/vm/c1_LIRGenerator_aarch64.cpp @@ -598,12 +598,12 @@ void LIRGenerator::do_ArithmeticOp_Int(ArithmeticOp* x) { } else { assert (x->op() == Bytecodes::_imul, "expect imul"); if (right.is_constant()) { - int c = right.get_jint_constant(); - if (! is_power_of_2(c) && ! is_power_of_2(c + 1) && ! is_power_of_2(c - 1)) { - // Cannot use constant op. - right.load_item(); + jint c = right.get_jint_constant(); + if (c > 0 && c < max_jint && (is_power_of_2(c) || is_power_of_2(c - 1) || is_power_of_2(c + 1))) { + right_arg->dont_load_item(); } else { - right.dont_load_item(); + // Cannot use constant op. + right_arg->load_item(); } } else { right.load_item(); diff --git a/hotspot/src/cpu/arm/vm/c1_LIRGenerator_arm.cpp b/hotspot/src/cpu/arm/vm/c1_LIRGenerator_arm.cpp index c614e137091..742705f1681 100644 --- a/hotspot/src/cpu/arm/vm/c1_LIRGenerator_arm.cpp +++ b/hotspot/src/cpu/arm/vm/c1_LIRGenerator_arm.cpp @@ -923,8 +923,8 @@ void LIRGenerator::do_ArithmeticOp_Int(ArithmeticOp* x) { } else { left_arg->load_item(); if (x->op() == Bytecodes::_imul && right_arg->is_constant()) { - int c = right_arg->get_jint_constant(); - if (c > 0 && (is_power_of_2(c) || is_power_of_2(c - 1) || is_power_of_2(c + 1))) { + jint c = right_arg->get_jint_constant(); + if (c > 0 && c < max_jint && (is_power_of_2(c) || is_power_of_2(c - 1) || is_power_of_2(c + 1))) { right_arg->dont_load_item(); } else { right_arg->load_item(); diff --git a/hotspot/src/cpu/x86/vm/c1_LIRGenerator_x86.cpp b/hotspot/src/cpu/x86/vm/c1_LIRGenerator_x86.cpp index 39718a34acf..95ee2d54beb 100644 --- a/hotspot/src/cpu/x86/vm/c1_LIRGenerator_x86.cpp +++ b/hotspot/src/cpu/x86/vm/c1_LIRGenerator_x86.cpp @@ -234,8 +234,8 @@ void LIRGenerator::cmp_reg_mem(LIR_Condition condition, LIR_Opr reg, LIR_Opr bas } -bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, int c, LIR_Opr result, LIR_Opr tmp) { - if (tmp->is_valid()) { +bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, jint c, LIR_Opr result, LIR_Opr tmp) { + if (tmp->is_valid() && c > 0 && c < max_jint) { if (is_power_of_2(c + 1)) { __ move(left, tmp); __ shift_left(left, log2_intptr(c + 1), left); @@ -603,8 +603,8 @@ void LIRGenerator::do_ArithmeticOp_Int(ArithmeticOp* x) { bool use_constant = false; bool use_tmp = false; if (right_arg->is_constant()) { - int iconst = right_arg->get_jint_constant(); - if (iconst > 0) { + jint iconst = right_arg->get_jint_constant(); + if (iconst > 0 && iconst < max_jint) { if (is_power_of_2(iconst)) { use_constant = true; } else if (is_power_of_2(iconst - 1) || is_power_of_2(iconst + 1)) { diff --git a/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp b/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp index 68c959280d7..cfb9cbc997d 100644 --- a/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp +++ b/hotspot/src/share/vm/c1/c1_LIRGenerator.cpp @@ -545,11 +545,11 @@ void LIRGenerator::arithmetic_op(Bytecodes::Code code, LIR_Opr result, LIR_Opr l case Bytecodes::_imul: { - bool did_strength_reduce = false; + bool did_strength_reduce = false; if (right->is_constant()) { - int c = right->as_jint(); - if (is_power_of_2(c)) { + jint c = right->as_jint(); + if (c > 0 && is_power_of_2(c)) { // do not need tmp here __ shift_left(left_op, exact_log2(c), result_op); did_strength_reduce = true; diff --git a/hotspot/src/share/vm/c1/c1_LIRGenerator.hpp b/hotspot/src/share/vm/c1/c1_LIRGenerator.hpp index 3a7e26a8562..322be3595c0 100644 --- a/hotspot/src/share/vm/c1/c1_LIRGenerator.hpp +++ b/hotspot/src/share/vm/c1/c1_LIRGenerator.hpp @@ -313,7 +313,7 @@ class LIRGenerator: public InstructionVisitor, public BlockClosure { // is_strictfp is only needed for mul and div (and only generates different code on i486) void arithmetic_op(Bytecodes::Code code, LIR_Opr result, LIR_Opr left, LIR_Opr right, bool is_strictfp, LIR_Opr tmp, CodeEmitInfo* info = NULL); // machine dependent. returns true if it emitted code for the multiply - bool strength_reduce_multiply(LIR_Opr left, int constant, LIR_Opr result, LIR_Opr tmp); + bool strength_reduce_multiply(LIR_Opr left, jint constant, LIR_Opr result, LIR_Opr tmp); void store_stack_parameter (LIR_Opr opr, ByteSize offset_from_sp_in_bytes); diff --git a/hotspot/test/compiler/c1/MultiplyByMaxInt.java b/hotspot/test/compiler/c1/MultiplyByMaxInt.java new file mode 100644 index 00000000000..f03c2dce199 --- /dev/null +++ b/hotspot/test/compiler/c1/MultiplyByMaxInt.java @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2017, 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. + * + * 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. + */ + +/* + * @test + * @bug 8181872 + * + * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions + * -XX:CompileThreshold=100 -XX:+TieredCompilation -XX:TieredStopAtLevel=1 + * -XX:-BackgroundCompilation -XX:CompileCommand=dontinline,compiler.c1.MultiplyByMaxInt::test + * compiler.c1.MultiplyByMaxInt + * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-BackgroundCompilation + * -XX:CompileThreshold=100 -XX:+TieredCompilation -XX:TieredStopAtLevel=3 + * -XX:CompileCommand=dontinline,compiler.c1.MultiplyByMaxInt::test + * compiler.c1.MultiplyByMaxInt + */ +package compiler.c1; + +public class MultiplyByMaxInt { + static int test(int x) { + int loops = (x >>> 4) & 7; + while (loops-- > 0) { + x = (x * 2147483647) % 16807; + } + return x; + } + + public static void main(String[] args) { + for (int i = 0; i < 20000; i++) { + test(i); + } + } +} From 33ab1995fb469c92618abca21bf2d40fd613e1b1 Mon Sep 17 00:00:00 2001 From: Kumar Srinivasan Date: Wed, 21 Jun 2017 19:39:51 -0700 Subject: [PATCH 35/83] 8177511: Remove the old standard doclet Reviewed-by: jjg --- .../classes/com/sun/tools/doclets/Taglet.java | 168 - .../html/AbstractExecutableMemberWriter.java | 310 - .../formats/html/AbstractIndexWriter.java | 436 - .../formats/html/AbstractMemberWriter.java | 699 -- .../html/AbstractPackageIndexWriter.java | 198 - .../formats/html/AbstractTreeWriter.java | 192 - .../formats/html/AllClassesFrameWriter.java | 174 - .../html/AnnotationTypeFieldWriterImpl.java | 315 - ...nnotationTypeOptionalMemberWriterImpl.java | 159 - ...nnotationTypeRequiredMemberWriterImpl.java | 317 - .../html/AnnotationTypeWriterImpl.java | 432 - .../doclets/formats/html/ClassUseWriter.java | 550 - .../doclets/formats/html/ClassWriterImpl.java | 738 -- .../formats/html/ConfigurationImpl.java | 710 -- .../html/ConstantsSummaryWriterImpl.java | 379 - .../formats/html/ConstructorWriterImpl.java | 336 - .../formats/html/DeprecatedListWriter.java | 267 - .../formats/html/EnumConstantWriterImpl.java | 305 - .../doclets/formats/html/FieldWriterImpl.java | 336 - .../formats/html/FrameOutputWriter.java | 173 - .../doclets/formats/html/HelpWriter.java | 443 - .../doclets/formats/html/HtmlDoclet.java | 350 - .../formats/html/HtmlDocletWriter.java | 2148 ---- .../formats/html/HtmlSerialFieldWriter.java | 211 - .../formats/html/HtmlSerialMethodWriter.java | 162 - .../doclets/formats/html/LinkFactoryImpl.java | 211 - .../doclets/formats/html/LinkInfoImpl.java | 430 - .../doclets/formats/html/LinkOutputImpl.java | 78 - .../formats/html/MethodWriterImpl.java | 424 - .../formats/html/NestedClassWriterImpl.java | 234 - .../formats/html/PackageFrameWriter.java | 207 - .../formats/html/PackageIndexFrameWriter.java | 168 - .../formats/html/PackageIndexWriter.java | 271 - .../formats/html/PackageTreeWriter.java | 225 - .../formats/html/PackageUseWriter.java | 341 - .../formats/html/PackageWriterImpl.java | 365 - .../formats/html/PropertyWriterImpl.java | 341 - .../doclets/formats/html/SearchIndexItem.java | 123 - .../doclets/formats/html/SectionName.java | 81 - .../html/SerializedFormWriterImpl.java | 296 - .../formats/html/SingleIndexWriter.java | 152 - .../formats/html/SourceToHTMLConverter.java | 297 - .../formats/html/SplitIndexWriter.java | 208 - .../formats/html/SubWriterHolderWriter.java | 362 - .../formats/html/TagletWriterImpl.java | 437 - .../doclets/formats/html/TreeWriter.java | 199 - .../formats/html/WriterFactoryImpl.java | 217 - .../doclets/formats/html/markup/Comment.java | 101 - .../formats/html/markup/ContentBuilder.java | 96 - .../doclets/formats/html/markup/DocType.java | 111 - .../doclets/formats/html/markup/HtmlAttr.java | 99 - .../formats/html/markup/HtmlConstants.java | 224 - .../formats/html/markup/HtmlDocWriter.java | 365 - .../formats/html/markup/HtmlDocument.java | 113 - .../formats/html/markup/HtmlStyle.java | 115 - .../doclets/formats/html/markup/HtmlTag.java | 161 - .../doclets/formats/html/markup/HtmlTree.java | 973 -- .../formats/html/markup/HtmlVersion.java | 38 - .../formats/html/markup/HtmlWriter.java | 520 - .../doclets/formats/html/markup/RawHtml.java | 161 - .../formats/html/markup/StringContent.java | 132 - .../formats/html/markup/package-info.java | 35 - .../doclets/formats/html/package-info.java | 39 - .../html/resources/standard.properties | 237 - .../html/resources/standard_ja.properties | 187 - .../html/resources/standard_zh_CN.properties | 186 - .../internal/toolkit/AbstractDoclet.java | 210 - .../toolkit/AnnotationTypeFieldWriter.java | 133 - .../AnnotationTypeOptionalMemberWriter.java | 54 - .../AnnotationTypeRequiredMemberWriter.java | 134 - .../toolkit/AnnotationTypeWriter.java | 170 - .../doclets/internal/toolkit/ClassWriter.java | 227 - .../internal/toolkit/Configuration.java | 892 -- .../toolkit/ConstantsSummaryWriter.java | 160 - .../internal/toolkit/ConstructorWriter.java | 127 - .../doclets/internal/toolkit/Content.java | 119 - .../internal/toolkit/EnumConstantWriter.java | 120 - .../doclets/internal/toolkit/FieldWriter.java | 120 - .../internal/toolkit/MemberSummaryWriter.java | 128 - .../internal/toolkit/MethodWriter.java | 121 - .../internal/toolkit/NestedClassWriter.java | 50 - .../toolkit/PackageSummaryWriter.java | 128 - .../internal/toolkit/PropertyWriter.java | 120 - .../toolkit/SerializedFormWriter.java | 323 - .../internal/toolkit/WriterFactory.java | 222 - .../toolkit/builders/AbstractBuilder.java | 194 - .../builders/AbstractMemberBuilder.java | 89 - .../builders/AnnotationTypeBuilder.java | 263 - .../builders/AnnotationTypeFieldBuilder.java | 240 - .../AnnotationTypeOptionalMemberBuilder.java | 115 - .../AnnotationTypeRequiredMemberBuilder.java | 241 - .../toolkit/builders/BuilderFactory.java | 273 - .../toolkit/builders/ClassBuilder.java | 416 - .../builders/ConstantsSummaryBuilder.java | 387 - .../toolkit/builders/ConstructorBuilder.java | 231 - .../toolkit/builders/EnumConstantBuilder.java | 231 - .../toolkit/builders/FieldBuilder.java | 228 - .../toolkit/builders/LayoutParser.java | 131 - .../builders/MemberSummaryBuilder.java | 531 - .../toolkit/builders/MethodBuilder.java | 242 - .../builders/PackageSummaryBuilder.java | 364 - .../toolkit/builders/PropertyBuilder.java | 229 - .../builders/SerializedFormBuilder.java | 594 - .../internal/toolkit/builders/XMLNode.java | 75 - .../toolkit/builders/package-info.java | 41 - .../internal/toolkit/package-info.java | 57 - .../internal/toolkit/resources/doclet.xml | 190 - .../toolkit/resources/doclets.properties | 219 - .../toolkit/resources/doclets_ja.properties | 200 - .../resources/doclets_zh_CN.properties | 200 - .../internal/toolkit/resources/glass.png | Bin 499 -> 0 bytes .../jquery/external/jquery/jquery.js | 9789 ----------------- .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin 212 -> 0 bytes .../images/ui-bg_flat_75_ffffff_40x100.png | Bin 208 -> 0 bytes .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 335 -> 0 bytes .../images/ui-bg_glass_65_ffffff_1x400.png | Bin 207 -> 0 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 332 -> 0 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 280 -> 0 bytes .../jquery/images/ui-icons_222222_256x240.png | Bin 6922 -> 0 bytes .../jquery/images/ui-icons_2e83ff_256x240.png | Bin 4549 -> 0 bytes .../jquery/images/ui-icons_454545_256x240.png | Bin 6992 -> 0 bytes .../jquery/images/ui-icons_888888_256x240.png | Bin 6999 -> 0 bytes .../jquery/images/ui-icons_cd0a0a_256x240.png | Bin 4549 -> 0 bytes .../toolkit/resources/jquery/jquery-1.10.2.js | 9789 ----------------- .../toolkit/resources/jquery/jquery-ui.css | 544 - .../toolkit/resources/jquery/jquery-ui.js | 2610 ----- .../resources/jquery/jquery-ui.min.css | 7 - .../toolkit/resources/jquery/jquery-ui.min.js | 7 - .../resources/jquery/jquery-ui.structure.css | 152 - .../jquery/jquery-ui.structure.min.css | 5 - .../jquery/jszip-utils/dist/jszip-utils-ie.js | 56 - .../jszip-utils/dist/jszip-utils-ie.min.js | 10 - .../jquery/jszip-utils/dist/jszip-utils.js | 118 - .../jszip-utils/dist/jszip-utils.min.js | 10 - .../resources/jquery/jszip/dist/jszip.js | 9155 --------------- .../resources/jquery/jszip/dist/jszip.min.js | 14 - .../internal/toolkit/resources/script.js | 109 - .../internal/toolkit/resources/search.js | 271 - .../internal/toolkit/resources/stylesheet.css | 753 -- .../doclets/internal/toolkit/resources/x.png | Bin 394 -> 0 bytes .../taglets/BaseExecutableMemberTaglet.java | 96 - .../toolkit/taglets/BaseInlineTaglet.java | 50 - .../toolkit/taglets/BasePropertyTaglet.java | 112 - .../internal/toolkit/taglets/BaseTaglet.java | 146 - .../internal/toolkit/taglets/CodeTaglet.java | 73 - .../toolkit/taglets/DeprecatedTaglet.java | 56 - .../toolkit/taglets/DocRootTaglet.java | 68 - .../internal/toolkit/taglets/IndexTaglet.java | 60 - .../toolkit/taglets/InheritDocTaglet.java | 172 - .../toolkit/taglets/InheritableTaglet.java | 54 - .../toolkit/taglets/LegacyTaglet.java | 143 - .../toolkit/taglets/LiteralTaglet.java | 72 - .../internal/toolkit/taglets/ParamTaglet.java | 324 - .../toolkit/taglets/PropertyGetterTaglet.java | 51 - .../toolkit/taglets/PropertySetterTaglet.java | 51 - .../toolkit/taglets/ReturnTaglet.java | 98 - .../internal/toolkit/taglets/SeeTaglet.java | 77 - .../toolkit/taglets/SimpleTaglet.java | 233 - .../internal/toolkit/taglets/Taglet.java | 159 - .../toolkit/taglets/TagletManager.java | 810 -- .../toolkit/taglets/TagletWriter.java | 319 - .../toolkit/taglets/ThrowsTaglet.java | 186 - .../internal/toolkit/taglets/ValueTaglet.java | 189 - .../toolkit/taglets/package-info.java | 52 - .../toolkit/util/ClassDocCatalog.java | 286 - .../internal/toolkit/util/ClassTree.java | 400 - .../internal/toolkit/util/ClassUseMapper.java | 485 - .../util/DeprecatedAPIListBuilder.java | 168 - .../internal/toolkit/util/DocFile.java | 247 - .../internal/toolkit/util/DocFileFactory.java | 93 - .../internal/toolkit/util/DocFinder.java | 246 - .../internal/toolkit/util/DocLink.java | 98 - .../internal/toolkit/util/DocPath.java | 192 - .../internal/toolkit/util/DocPaths.java | 183 - .../toolkit/util/DocletAbortException.java | 45 - .../toolkit/util/DocletConstants.java | 62 - .../doclets/internal/toolkit/util/Extern.java | 316 - .../internal/toolkit/util/FatalError.java | 39 - .../doclets/internal/toolkit/util/Group.java | 246 - .../toolkit/util/ImplementedMethods.java | 152 - .../internal/toolkit/util/IndexBuilder.java | 243 - .../toolkit/util/MessageRetriever.java | 249 - .../internal/toolkit/util/MetaKeywords.java | 146 - .../internal/toolkit/util/MethodTypes.java | 70 - .../toolkit/util/PackageListWriter.java | 94 - .../toolkit/util/StandardDocFileFactory.java | 331 - .../internal/toolkit/util/TextTag.java | 112 - .../doclets/internal/toolkit/util/Utils.java | 1032 -- .../toolkit/util/VisibleMemberMap.java | 772 -- .../toolkit/util/links/LinkFactory.java | 262 - .../internal/toolkit/util/links/LinkInfo.java | 155 - .../toolkit/util/links/LinkOutput.java | 56 - .../toolkit/util/links/package-info.java | 35 - .../internal/toolkit/util/package-info.java | 36 - .../com/sun/tools/doclets/package-info.java | 33 - .../sun/tools/doclets/standard/Standard.java | 28 +- .../tools/doclets/standard/package-info.java | 2 +- .../com/sun/tools/javadoc/main/DocImpl.java | 6 +- .../jdk/javadoc/internal/tool/Start.java | 79 +- .../jdk/javadoc/internal/tool/ToolOption.java | 9 - .../share/classes/module-info.java | 2 - .../sun/javadoc/5093723/DocumentedClass.java | 34 - .../com/sun/javadoc/5093723/T5093723.java | 49 - .../javadoc/5093723/UndocumentedClass.java | 29 - .../AccessAsciiArt/AccessAsciiArt.java | 57 - .../com/sun/javadoc/AccessAsciiArt/p1/C.java | 27 - .../com/sun/javadoc/AccessAsciiArt/p1/I.java | 27 - .../com/sun/javadoc/AccessAsciiArt/p1/SC.java | 27 - .../com/sun/javadoc/AccessAsciiArt/p1/SI.java | 27 - .../javadoc/AccessAsciiArt/p1/subpkg/SSC.java | 27 - .../AccessFrameTitle/AccessFrameTitle.java | 58 - .../sun/javadoc/AccessFrameTitle/p1/C1.java | 27 - .../sun/javadoc/AccessFrameTitle/p2/C2.java | 27 - .../com/sun/javadoc/AccessH1/AccessH1.java | 61 - .../test/com/sun/javadoc/AccessH1/p1/C.java | 27 - .../test/com/sun/javadoc/AccessH1/p2/C2.java | 27 - .../javadoc/AccessSkipNav/AccessSkipNav.java | 66 - .../com/sun/javadoc/AccessSkipNav/p1/C1.java | 27 - .../com/sun/javadoc/AccessSkipNav/p2/C2.java | 27 - .../javadoc/AccessSummary/AccessSummary.java | 61 - .../com/sun/javadoc/AccessSummary/p1/C1.java | 30 - .../com/sun/javadoc/AccessSummary/p2/C2.java | 27 - .../com/sun/javadoc/AuthorDD/AuthorDD.java | 63 - .../test/com/sun/javadoc/AuthorDD/p1/C1.java | 42 - .../javadoc/DocRootSlash/DocRootSlash.java | 149 - .../sun/javadoc/DocRootSlash/overview.html | 63 - .../com/sun/javadoc/DocRootSlash/p1/C1.java | 85 - .../sun/javadoc/DocRootSlash/p1/package.html | 64 - .../com/sun/javadoc/DocRootSlash/p2/C2.java | 30 - .../sun/javadoc/DocRootSlash/p2/package.html | 9 - .../InheritDocForUserTags/DocTest.java | 248 - .../JavascriptWinTitle.java | 75 - .../javadoc/JavascriptWinTitle/overview.html | 14 - .../sun/javadoc/JavascriptWinTitle/p1/C.java | 27 - .../sun/javadoc/JavascriptWinTitle/p2/C2.java | 27 - .../javadoc/JavascriptWinTitle/package-list | 135 - .../test/com/sun/javadoc/MetaTag/MetaTag.java | 115 - .../test/com/sun/javadoc/MetaTag/p1/C1.java | 53 - .../test/com/sun/javadoc/MetaTag/p2/C2.java | 27 - .../PackagesHeader/PackagesHeader.java | 90 - .../com/sun/javadoc/PackagesHeader/p1/C1.java | 27 - .../com/sun/javadoc/PackagesHeader/p2/C2.java | 27 - .../sun/javadoc/T6735320/SerialFieldTest.java | 34 - .../com/sun/javadoc/T6735320/T6735320.java | 49 - .../com/sun/javadoc/ValidHtml/ValidHtml.java | 78 - .../com/sun/javadoc/ValidHtml/overview.html | 14 - .../test/com/sun/javadoc/ValidHtml/p1/C.java | 35 - .../test/com/sun/javadoc/ValidHtml/p2/C2.java | 27 - .../javadoc/VersionNumber/VersionNumber.java | 57 - .../com/sun/javadoc/VersionNumber/p1/C.java | 35 - .../javadoc/WindowTitles/WindowTitles.java | 88 - .../com/sun/javadoc/WindowTitles/p1/C1.java | 29 - .../com/sun/javadoc/WindowTitles/p2/C2.java | 27 - .../com/sun/javadoc/_template/Template.java | 54 - .../javadoc/_template/TemplateComplete.java | 65 - .../com/sun/javadoc/constantValues/A.java | 36 - .../constantValues/TestConstantValues.java | 37 - .../constantValues/TestConstantValues2.java | 37 - .../TestConstantValuesDriver.java | 56 - .../dupThrowsTags/TestDupThrowsTags.java | 62 - .../com/sun/javadoc/lib/JavadocTester.java | 779 -- .../testAbsLinkPath/TestAbsLinkPath.java | 57 - .../sun/javadoc/testAbsLinkPath/pkg1/C1.java | 32 - .../sun/javadoc/testAbsLinkPath/pkg2/C2.java | 29 - .../TestAbstractMethod.java | 99 - .../sun/javadoc/testAbstractMethod/pkg/A.java | 31 - .../sun/javadoc/testAbstractMethod/pkg/B.java | 31 - .../sun/javadoc/testAbstractMethod/pkg/C.java | 29 - .../testAnchorNames/TestAnchorNames.java | 163 - .../testAnchorNames/pkg1/DeprMemClass.java | 45 - .../testAnchorNames/pkg1/RegClass.java | 186 - .../TestAnnotationOptional.java | 53 - .../pkg/AnnotationOptional.java | 36 - .../TestAnnotationTypes.java | 79 - .../pkg/AnnotationType.java | 36 - .../pkg/AnnotationTypeField.java | 35 - .../sun/javadoc/testBackSlashInLink/C.java | 7 - .../TestBackSlashInLink.java | 54 - .../TestBadPackageFileInJar.java | 54 - .../badPackageFileInJar.jar | Bin 488 -> 0 bytes .../testBadPackageFileInJar/pkg/C.java | 26 - .../com/sun/javadoc/testBadSourceFile/C1.java | 34 - .../com/sun/javadoc/testBadSourceFile/C2.java | 27 - .../testBadSourceFile/TestBadSourceFile.java | 55 - .../com/sun/javadoc/testBaseClass/Bar.java | 30 - .../sun/javadoc/testBaseClass/BaseClass.java | 53 - .../javadoc/testBaseClass/TestBaseClass.java | 51 - .../sun/javadoc/testBaseClass/baz/Foo.java | 26 - .../testBreakIterator/TestBreakIterator.java | 56 - .../pkg/BreakIteratorTest.java | 30 - .../TestCRLineSeparator.java | 83 - .../testCRLineSeparator/pkg/MyClass.java | 31 - .../sun/javadoc/testCharset/TestCharset.java | 74 - .../com/sun/javadoc/testCharset/pkg/Foo.java | 26 - .../javadoc/testClassCrossReferences/C.java | 35 - .../TestClassCrossReferences.java | 68 - .../testClassCrossReferences/package-list | 2 - .../javadoc/testClassTree/TestClassTree.java | 81 - .../testClassTree/pkg/AnnotationType.java | 45 - .../javadoc/testClassTree/pkg/ChildClass.java | 26 - .../sun/javadoc/testClassTree/pkg/Coin.java | 37 - .../testClassTree/pkg/ParentClass.java | 26 - .../com/sun/javadoc/testCmndLineClass/C5.java | 32 - .../testCmndLineClass/TestCmndLineClass.java | 72 - .../javadoc/testCmndLineClass/pkg1/C1.java | 34 - .../javadoc/testCmndLineClass/pkg1/C2.java | 34 - .../testCmndLineClass/pkg1/package.html | 7 - .../javadoc/testCmndLineClass/pkg2/C3.java | 34 - .../javadoc/testCmndLineClass/pkg2/C4.java | 34 - .../testCmndLineClass/pkg2/package.html | 7 - .../TestCompletionFailure.java | 52 - .../pkg1/NumberFormatTest.java | 28 - .../TestConstantValuesPage.java | 53 - .../sun/javadoc/testConstructorIndent/C.java | 32 - .../TestConstructorIndent.java | 58 - .../testConstructors/TestConstructors.java | 92 - .../javadoc/testConstructors/pkg1/Outer.java | 86 - .../javadoc/testCustomTag/TagTestClass.java | 31 - .../javadoc/testCustomTag/TestCustomTag.java | 97 - .../testCustomTag/taglets/CustomTag.java | 61 - .../TestDeprecatedDocs.java | 91 - .../pkg/DeprecatedClassByAnnotation.java | 37 - .../pkg/TestAnnotationType.java | 42 - .../testDeprecatedDocs/pkg/TestClass.java | 45 - .../testDeprecatedDocs/pkg/TestEnum.java | 35 - .../testDeprecatedDocs/pkg/TestError.java | 45 - .../testDeprecatedDocs/pkg/TestException.java | 45 - .../testDeprecatedDocs/pkg/TestInterface.java | 45 - .../testDocEncoding/TestDocEncoding.java | 61 - .../sun/javadoc/testDocEncoding/pkg/Test.java | 31 - .../TestDocErrorReporter.java | 57 - .../testDocFileDir/TestDocFileDir.java | 88 - .../com/sun/javadoc/testDocFileDir/pkg/C.java | 30 - .../doc-files/subdir-excluded1/testfile.txt | 2 - .../doc-files/subdir-excluded2/testfile.txt | 2 - .../pkg/doc-files/subdir-used1/testfile.txt | 2 - .../pkg/doc-files/subdir-used2/testfile.txt | 2 - .../testDocFileDir/pkg/doc-files/testfile.txt | 2 - .../javadoc/testDocFiles/TestDocFiles.java | 51 - .../sun/javadoc/testDocFiles/pkg/Test.java | 27 - .../testDocFiles/pkg/doc-files/test.txt | 2 - .../TestDocRootInlineTag.java | 66 - .../testDocRootInlineTag/TestDocRootTag.java | 29 - .../javadoc/testDocRootInlineTag/package-list | 1 - .../javadoc/testDocRootInlineTag/pkg/C.java | 30 - .../testDocRootLink/TestDocRootLink.java | 104 - .../sun/javadoc/testDocRootLink/pkg1/C1.java | 36 - .../javadoc/testDocRootLink/pkg1/package.html | 18 - .../sun/javadoc/testDocRootLink/pkg2/C2.java | 36 - .../javadoc/testDocRootLink/pkg2/package.html | 18 - .../testDupParamWarn/TestDupParamWarn.java | 53 - .../sun/javadoc/testDupParamWarn/pkg/Bar.java | 34 - .../sun/javadoc/testDupParamWarn/pkg/Foo.java | 34 - .../testEmptyClass/TestEmptyClass.java | 59 - .../sun/javadoc/testEmptyClass/src/Empty.java | 26 - .../TestEnclosingClass.java | 52 - .../testEnclosingClass/pkg/MyClass.java | 28 - .../sun/javadoc/testEncoding/EncodeTest.java | 30 - .../javadoc/testEncoding/TestEncoding.java | 55 - .../TestExternalOverridenMethod.java | 66 - .../testExternalOverridenMethod/package-list | 1 - .../pkg/XReader.java | 43 - .../testGeneratedBy/TestGeneratedBy.java | 98 - .../javadoc/testGeneratedBy/pkg/MyClass.java | 29 - .../testGroupOption/TestGroupOption.java | 73 - .../sun/javadoc/testGroupOption/pkg1/C.java | 26 - .../sun/javadoc/testGroupOption/pkg2/C.java | 26 - .../sun/javadoc/testGroupOption/pkg3/C.java | 26 - .../javadoc/testHeadings/TestHeadings.java | 116 - .../com/sun/javadoc/testHeadings/pkg1/C1.java | 46 - .../com/sun/javadoc/testHeadings/pkg2/C2.java | 41 - .../javadoc/testHelpFile/TestHelpFile.java | 52 - .../testHelpOption/TestHelpOption.java | 106 - .../testHiddenMembers/TestHiddenMembers.java | 64 - .../testHiddenMembers/pkg/BaseClass.java | 34 - .../testHiddenMembers/pkg/SubClass.java | 34 - .../com/sun/javadoc/testHref/TestHref.java | 83 - .../com/sun/javadoc/testHref/package-list | 1 - .../test/com/sun/javadoc/testHref/pkg/C1.java | 36 - .../test/com/sun/javadoc/testHref/pkg/C2.java | 32 - .../test/com/sun/javadoc/testHref/pkg/C4.java | 28 - .../TestHrefInDocComment.java | 49 - .../javadoc/testHrefInDocComment/pkg/I1.java | 30 - .../javadoc/testHrefInDocComment/pkg/I2.java | 31 - .../com/sun/javadoc/testHtmlComments/C.java | 24 - .../testHtmlComments/TestHtmlComments.java | 53 - .../TestHtmlDefinitionListTag.java | 400 - .../testHtmlDefinitionListTag/pkg1/C1.java | 106 - .../testHtmlDefinitionListTag/pkg1/C2.java | 84 - .../testHtmlDefinitionListTag/pkg1/C3.java | 40 - .../testHtmlDefinitionListTag/pkg1/C4.java | 37 - .../testHtmlDefinitionListTag/pkg1/C5.java | 63 - .../pkg1/package-info.java | 29 - .../testHtmlDocument/TestHtmlDocument.java | 144 - .../javadoc/testHtmlDocument/testLink.html | 9 - .../javadoc/testHtmlDocument/testMarkup.html | 18 - .../testHtmlStrongTag/TestHtmlStrongTag.java | 73 - .../javadoc/testHtmlStrongTag/pkg1/C1.java | 34 - .../javadoc/testHtmlStrongTag/pkg2/C2.java | 29 - .../TestHtmlTableStyles.java | 78 - .../testHtmlTableStyles/pkg1/TestTable.java | 84 - .../testHtmlTableStyles/pkg2/TestUse.java | 34 - .../testHtmlTableTags/TestHtmlTableTags.java | 359 - .../javadoc/testHtmlTableTags/pkg1/C1.java | 81 - .../javadoc/testHtmlTableTags/pkg1/I1.java | 48 - .../testHtmlTableTags/pkg1/package-info.java | 27 - .../javadoc/testHtmlTableTags/pkg2/C2.java | 73 - .../javadoc/testHtmlTableTags/pkg2/C3.java | 38 - .../javadoc/testHtmlTableTags/pkg2/C4.java | 33 - .../testHtmlTableTags/pkg2/package-info.java | 27 - .../sun/javadoc/testHtmlTag/TestHtmlTag.java | 99 - .../com/sun/javadoc/testHtmlTag/pkg1/C1.java | 31 - .../com/sun/javadoc/testHtmlTag/pkg2/C2.java | 29 - .../testHtmlVersion/TestHtmlVersion.java | 1913 ---- .../testHtmlVersion/pkg/AnnotationType.java | 36 - .../testHtmlVersion/pkg/AnotherClass.java | 78 - .../testHtmlVersion/pkg/TestError.java | 36 - .../testHtmlVersion/pkg/TestException.java | 36 - .../testHtmlVersion/pkg/TestInterface.java | 33 - .../testHtmlVersion/pkg/package-info.java | 27 - .../pkg1/NestedInnerClass.java | 60 - .../pkg1/PrivateIncludeInnerClass.java | 60 - .../pkg1/ProtectedInnerClass.java | 57 - .../pkg1/PublicExcludeInnerClass.java | 60 - .../testHtmlVersion/pkg1/RegClass.java | 42 - .../pkg2/DeprecatedClassByAnnotation.java | 37 - .../testHtmlVersion/pkg2/Interface.java | 33 - .../pkg2/TestAnnotationType.java | 42 - .../testHtmlVersion/pkg2/TestClass.java | 50 - .../testHtmlVersion/pkg2/TestEnum.java | 35 - .../testHtmlVersion/pkg2/TestError.java | 45 - .../testHtmlVersion/pkg2/TestException.java | 45 - .../testHtmlVersion/pkg2/TestInterface.java | 45 - .../pkg3/ClassNoConstants.java | 31 - .../profile-rtjar-includes.txt | 30 - .../testIndentation/TestIndentation.java | 62 - .../sun/javadoc/testIndentation/p/Indent.java | 28 - .../testIndentation/p/IndentAnnot.java | 40 - .../com/sun/javadoc/testIndex/NoPackage.java | 24 - .../com/sun/javadoc/testIndex/TestIndex.java | 80 - .../javadoc/testIndex/pkg/AnnotationType.java | 45 - .../test/com/sun/javadoc/testIndex/pkg/C.java | 34 - .../com/sun/javadoc/testIndex/pkg/Coin.java | 37 - .../sun/javadoc/testIndex/pkg/Interface.java | 26 - .../TestInlineLinkLabel.java | 55 - .../javadoc/testInlineLinkLabel/pkg/C1.java | 30 - .../javadoc/testInlineLinkLabel/pkg/C2.java | 29 - .../testInlineLinkLabel/pkg/package.html | 5 - .../javadoc/testInterface/TestInterface.java | 111 - .../sun/javadoc/testInterface/pkg/Child.java | 32 - .../javadoc/testInterface/pkg/Interface.java | 42 - .../sun/javadoc/testInterface/pkg/Parent.java | 32 - .../sun/javadoc/testJavaFX/TestJavaFX.java | 182 - .../com/sun/javadoc/testJavaFX/pkg1/C.java | 101 - .../com/sun/javadoc/testJavaFX/pkg1/D.java | 26 - .../com/sun/javadoc/testJavaFX/pkg2/Test.java | 35 - .../testJavascript/TestJavascript.java | 123 - .../com/sun/javadoc/testJavascript/pkg/C.java | 26 - .../testLambdaFeature/TestLambdaFeature.java | 114 - .../sun/javadoc/testLambdaFeature/pkg/A.java | 32 - .../sun/javadoc/testLambdaFeature/pkg/B.java | 31 - .../testLambdaFeature/pkg1/FuncInf.java | 30 - .../testLambdaFeature/pkg1/NotAFuncInf.java | 29 - .../testLeadingSpaces/LeadingSpaces.java | 79 - .../com/sun/javadoc/testLegacyTaglet/C.java | 36 - .../sun/javadoc/testLegacyTaglet/Check.java | 143 - .../testLegacyTaglet/TestLegacyTaglet.java | 62 - .../javadoc/testLegacyTaglet/ToDoTaglet.java | 177 - .../testLegacyTaglet/UnderlineTaglet.java | 136 - .../testLinkOption/TestBadLinkOption.java | 58 - .../testLinkOption/TestLinkOption.java | 145 - .../testLinkOption/TestNewLineInLink.java | 54 - .../testLinkOption/extra/StringBuilder.java | 28 - .../javadoc/testLinkOption/jdk/package-list | 135 - .../mylib/lang/StringBuilderChild.java | 30 - .../com/sun/javadoc/testLinkOption/pkg/C.java | 39 - .../sun/javadoc/testLinkOption/pkg2/C2.java | 30 - .../testLinkOption/testNewLineInLink/C.java | 26 - .../testNewLineInLink/package.html | 6 - .../testLinkTaglet/TestLinkTaglet.java | 73 - .../javadoc/testLinkTaglet/checkPkg/A.java | 32 - .../javadoc/testLinkTaglet/checkPkg/B.java | 36 - .../com/sun/javadoc/testLinkTaglet/pkg/C.java | 60 - .../TestLinkToSerialForm.java | 55 - .../javadoc/testLinkToSerialForm/pkg/C.java | 26 - .../TestLiteralCodeInPre.java | 86 - .../testLiteralCodeInPre/pkg/Test.java | 99 - .../TestMemberInheritence.java | 90 - .../testMemberInheritence/diamond/A.java | 32 - .../testMemberInheritence/diamond/B.java | 31 - .../testMemberInheritence/diamond/C.java | 31 - .../testMemberInheritence/diamond/X.java | 31 - .../testMemberInheritence/diamond/Z.java | 31 - .../testMemberInheritence/inheritDist/A.java | 32 - .../testMemberInheritence/inheritDist/B.java | 31 - .../testMemberInheritence/inheritDist/C.java | 28 - .../testMemberInheritence/pkg/BaseClass.java | 47 - .../pkg/BaseInterface.java | 33 - .../testMemberInheritence/pkg/SubClass.java | 35 - .../testMemberSummary/TestMemberSummary.java | 68 - .../testMemberSummary/pkg/PrivateParent.java | 35 - .../testMemberSummary/pkg/PublicChild.java | 31 - .../sun/javadoc/testMemberSummary/pkg2/A.java | 29 - .../testMethodTypes/TestMethodTypes.java | 100 - .../sun/javadoc/testMethodTypes/pkg1/A.java | 77 - .../sun/javadoc/testMethodTypes/pkg1/B.java | 56 - .../sun/javadoc/testMethodTypes/pkg1/D.java | 53 - .../sun/javadoc/testModifier/Interface.java | 26 - .../testModifier/ModifierAbstract.java | 57 - .../com/sun/javadoc/testModifier/Test.java | 81 - .../javadoc/testModifier/TestModifier.java | 51 - .../testNavigation/TestNavigation.java | 151 - .../com/sun/javadoc/testNavigation/pkg/A.java | 29 - .../com/sun/javadoc/testNavigation/pkg/C.java | 29 - .../com/sun/javadoc/testNavigation/pkg/E.java | 29 - .../com/sun/javadoc/testNavigation/pkg/I.java | 29 - .../TestNestedGenerics.java | 54 - .../pkg/NestedGenerics.java | 31 - .../TestNestedInlineTag.java | 90 - .../testtaglets/BoldTaglet.java | 66 - .../testtaglets/GreenTaglet.java | 68 - .../testtaglets/UnderlineTaglet.java | 68 - .../TestNewLanguageFeatures.java | 640 -- .../pkg/AnnotationType.java | 45 - .../pkg/AnnotationTypeUndocumented.java | 46 - .../pkg/AnnotationTypeUsage.java | 54 - .../testNewLanguageFeatures/pkg/Coin.java | 49 - .../pkg/MultiTypeParameters.java | 34 - .../pkg/SubInterface.java | 26 - .../pkg/SuperInterface.java | 26 - .../pkg/TypeParameterSubClass.java | 26 - .../pkg/TypeParameterSuperClass.java | 26 - .../pkg/TypeParameters.java | 70 - .../testNewLanguageFeatures/pkg/VarArgs.java | 52 - .../pkg/Wildcards.java | 40 - .../pkg/package-info.java | 25 - .../testNewLanguageFeatures/pkg1/A.java | 43 - .../testNewLanguageFeatures/pkg1/B.java | 42 - .../pkg2/ClassUseTest1.java | 34 - .../pkg2/ClassUseTest2.java | 34 - .../pkg2/ClassUseTest3.java | 38 - .../testNewLanguageFeatures/pkg2/Foo.java | 32 - .../testNewLanguageFeatures/pkg2/Foo2.java | 26 - .../testNewLanguageFeatures/pkg2/Foo3.java | 26 - .../testNewLanguageFeatures/pkg2/Foo4.java | 26 - .../pkg2/ParamTest.java | 27 - .../pkg2/ParamTest2.java | 27 - .../com/sun/javadoc/testNoPackagesFile/C.java | 24 - .../TestNoPackagesFile.java | 53 - .../testNonInlineHtmlTagRemoval/C.java | 79 - .../testNonInlineHtmlTagRemoval/Negative.java | 29 - .../TestNonInlineHtmlTagRemoval.java | 72 - .../testNotifications/TestNotifications.java | 71 - .../sun/javadoc/testNotifications/pkg/C.java | 26 - .../sun/javadoc/testOptions/TestOptions.java | 56 - .../com/sun/javadoc/testOptions/pkg/Foo.java | 27 - .../test/com/sun/javadoc/testOrdering/C.java | 74 - .../javadoc/testOrdering/TestOrdering.java | 427 - .../com/sun/javadoc/testOrdering/UsedInC.java | 27 - .../com/sun/javadoc/testOrdering/pkg1/A.java | 61 - .../com/sun/javadoc/testOrdering/pkg1/B.java | 44 - .../com/sun/javadoc/testOrdering/pkg1/C1.java | 55 - .../com/sun/javadoc/testOrdering/pkg1/C2.java | 69 - .../com/sun/javadoc/testOrdering/pkg1/C3.java | 50 - .../com/sun/javadoc/testOrdering/pkg1/C4.java | 50 - .../testOrdering/pkg1/MethodOrder.java | 219 - .../javadoc/testOrdering/pkg1/UsedClass.java | 28 - .../sun/javadoc/testOrdering/src-2/a/A.java | 33 - .../testOrdering/src-2/a/something.java | 37 - .../sun/javadoc/testOrdering/src-2/b/B.java | 33 - .../testOrdering/src-2/b/something.java | 28 - .../testOrdering/src-2/e/something.java | 28 - .../testOrdering/src-2/something/J.java | 30 - .../src-2/something/package-info.java | 27 - .../src-2/something/something.java | 28 - .../TestMultiInheritence.java | 81 - .../TestOverridenMethodDocCopy.java | 59 - .../TestOverridenPrivateMethods.java | 77 - ...verridenPrivateMethodsWithPackageFlag.java | 89 - ...verridenPrivateMethodsWithPrivateFlag.java | 83 - .../testOverridenMethods/pkg1/BaseClass.java | 53 - .../testOverridenMethods/pkg1/SubClass.java | 51 - .../testOverridenMethods/pkg2/SubClass.java | 52 - .../javadoc/testOverridenMethods/pkg3/I0.java | 26 - .../javadoc/testOverridenMethods/pkg3/I1.java | 26 - .../javadoc/testOverridenMethods/pkg3/I2.java | 30 - .../javadoc/testOverridenMethods/pkg3/I3.java | 30 - .../javadoc/testOverridenMethods/pkg3/I4.java | 30 - .../javadoc/testPackageDeprecation/C2.java | 55 - .../testPackageDeprecation/FooDepr.java | 34 - .../TestPackageDeprecation.java | 81 - .../javadoc/testPackageDeprecation/pkg/A.java | 35 - .../pkg1/ClassUseTest1.java | 31 - .../testPackageDeprecation/pkg1/Foo.java | 36 - .../testPackageDeprecation/pkg1/Foo2.java | 26 - .../pkg1/package-info.java | 28 - .../testPackagePage/TestPackagePage.java | 86 - .../javadoc/testPackagePage/com/pkg/C.java | 26 - .../testPackagePage/com/pkg/package.html | 5 - .../sun/javadoc/testPackagePage/pkg2/C.java | 29 - .../testParamTaglet/TestParamTaglet.java | 66 - .../sun/javadoc/testParamTaglet/pkg/C.java | 41 - .../javadoc/testParamTaglet/pkg/Parent.java | 32 - .../TestPrivateClasses.java | 235 - .../pkg/PrivateInterface.java | 51 - .../testPrivateClasses/pkg/PrivateParent.java | 56 - .../testPrivateClasses/pkg/PublicChild.java | 48 - .../pkg/PublicInterface.java | 29 - .../javadoc/testPrivateClasses/pkg2/C.java | 28 - .../javadoc/testPrivateClasses/pkg2/I.java | 31 - .../TestRecurseSubPackages.java | 59 - .../testRecurseSubPackages/pkg1/C1.java | 26 - .../testRecurseSubPackages/pkg1/C2.java | 26 - .../testRecurseSubPackages/pkg1/pkg2/C3.java | 26 - .../testRecurseSubPackages/pkg1/pkg2/C4.java | 26 - .../pkg2/packageToExclude/DummyClass.java | 26 - .../pkg1/pkg2/pkg3/C5.java | 26 - .../pkg1/pkg2/pkg3/C6.java | 26 - .../testRelativeLinks/TestRelativeLinks.java | 91 - .../sun/javadoc/testRelativeLinks/pkg/C.java | 51 - .../testRelativeLinks/pkg/package.html | 7 - .../javadoc/testRelativeLinks/pkg2/Foo.java | 29 - .../TestRepeatedAnnotations.java | 151 - .../testRepeatedAnnotations/pkg/C.java | 39 - .../pkg/ContaineeRegDoc.java | 36 - .../pkg/ContaineeSynthDoc.java | 37 - .../pkg/ContainerRegDoc.java | 38 - .../pkg/ContainerRegNotDoc.java | 37 - .../pkg/ContainerSynthDoc.java | 38 - .../testRepeatedAnnotations/pkg/D.java | 37 - .../pkg/NonSynthDocContainer.java | 38 - .../pkg/RegArryDoc.java | 38 - .../pkg/RegContaineeDoc.java | 36 - .../pkg/RegContaineeNotDoc.java | 36 - .../pkg/RegContainerDoc.java | 38 - .../pkg/RegContainerNotDoc.java | 37 - .../testRepeatedAnnotations/pkg/RegDoc.java | 38 - .../testRepeatedAnnotations/pkg1/C.java | 38 - .../pkg1/ContaineeNotDoc.java | 36 - .../pkg1/ContaineeSynthDoc.java | 37 - .../pkg1/ContainerSynthNotDoc.java | 37 - .../pkg1/ContainerValDoc.java | 40 - .../pkg1/ContainerValNotDoc.java | 39 - .../pkg1/RegContaineeDoc.java | 36 - .../pkg1/RegContaineeNotDoc.java | 35 - .../pkg1/RegContainerValDoc.java | 40 - .../pkg1/RegContainerValNotDoc.java | 39 - .../javadoc/testReturnTag/TestReturnTag.java | 60 - .../sun/javadoc/testSearch/TestSearch.java | 380 - .../javadoc/testSearch/UnnamedPkgClass.java | 30 - .../testSearch/pkg/AnnotationType.java | 36 - .../javadoc/testSearch/pkg/AnotherClass.java | 78 - .../sun/javadoc/testSearch/pkg/TestError.java | 36 - .../javadoc/testSearch/pkg/TestException.java | 36 - .../javadoc/testSearch/pkg/TestInterface.java | 34 - .../javadoc/testSearch/pkg/package-info.java | 28 - .../testSearch/pkg1/NestedInnerClass.java | 60 - .../pkg1/PrivateIncludeInnerClass.java | 60 - .../testSearch/pkg1/ProtectedInnerClass.java | 57 - .../pkg1/PublicExcludeInnerClass.java | 60 - .../sun/javadoc/testSearch/pkg1/RegClass.java | 42 - .../pkg2/DeprecatedClassByAnnotation.java | 37 - .../javadoc/testSearch/pkg2/Interface.java | 33 - .../testSearch/pkg2/TestAnnotationType.java | 43 - .../javadoc/testSearch/pkg2/TestClass.java | 50 - .../sun/javadoc/testSearch/pkg2/TestEnum.java | 35 - .../javadoc/testSearch/pkg2/TestError.java | 46 - .../testSearch/pkg2/TestException.java | 45 - .../testSearch/pkg2/TestInterface.java | 45 - .../testSearch/pkg3/ClassNoConstants.java | 31 - .../com/sun/javadoc/testSearch/pkgfx/C.java | 95 - .../sun/javadoc/testSeeTag/TestSeeTag.java | 55 - .../com/sun/javadoc/testSeeTag/pkg/Test.java | 29 - .../sun/javadoc/testSerialVersionUID/C.java | 27 - .../TestSerialVersionUID.java | 52 - .../TestSerializedForm.java | 161 - .../pkg1/NestedInnerClass.java | 60 - .../pkg1/PrivateIncludeInnerClass.java | 60 - .../pkg1/ProtectedInnerClass.java | 57 - .../pkg1/PublicExcludeInnerClass.java | 60 - .../TestSerializedFormDeprecationInfo.java | 166 - .../pkg1/C1.java | 106 - .../pkg1/C2.java | 84 - .../pkg1/C3.java | 63 - .../test/com/sun/javadoc/testSimpleTag/C.java | 31 - .../javadoc/testSimpleTag/TestSimpleTag.java | 63 - .../testSimpleTagExclude/DummyClass.java | 28 - .../TestSimpleTagExclude.java | 54 - .../TestSimpleTagInherit.java | 65 - .../testSimpleTagInherit/p/BaseClass.java | 34 - .../testSimpleTagInherit/p/TestClass.java | 34 - .../javadoc/testSinceTag/TestSinceTag.java | 75 - .../com/sun/javadoc/testSinceTag/pkg1/C1.java | 100 - .../TestSingleQuotedLink.java | 58 - .../javadoc/testSingleQuotedLink/pkg1/C1.java | 29 - .../javadoc/testSingleQuotedLink/pkg1/C2.java | 31 - .../testSingleQuotedLink/pkg1/package.html | 14 - .../javadoc/testSourceTab/DoubleTab/C.java | 37 - .../javadoc/testSourceTab/SingleTab/C.java | 37 - .../javadoc/testSourceTab/TestSourceTab.java | 104 - .../testStylesheet/TestStylesheet.java | 173 - .../com/sun/javadoc/testStylesheet/pkg/A.java | 26 - .../javadoc/testSubTitle/TestSubTitle.java | 65 - .../com/sun/javadoc/testSubTitle/pkg/C.java | 30 - .../sun/javadoc/testSubTitle/pkg/package.html | 8 - .../com/sun/javadoc/testSummaryHeading/C.java | 24 - .../TestSummaryHeading.java | 54 - .../TestSuperClassInSerialForm.java | 54 - .../pkg/SubClass.java | 26 - .../pkg/SuperClass.java | 26 - .../com/sun/javadoc/testSupplementary/C.java | 45 - .../testSupplementary/TestSupplementary.java | 69 - .../TestTagHolderMethod.java | 85 - .../javadoc/testTagHolderMethod/pkg/C.java | 52 - .../TestTagInheritence.java | 70 - .../testTagInheritence/firstSentence/A.java | 31 - .../testTagInheritence/firstSentence/B.java | 31 - .../testTagInheritence/firstSentence2/A.java | 31 - .../testTagInheritence/firstSentence2/B.java | 33 - .../testTagInheritence/firstSentence2/C.java | 33 - .../pkg/TestAbstractClass.java | 74 - .../testTagInheritence/pkg/TestInterface.java | 58 - .../pkg/TestInterfaceForAbstractClass.java | 31 - .../pkg/TestSuperSuperClass.java | 52 - .../pkg/TestSuperSuperInterface.java | 32 - .../pkg/TestTagInheritence.java | 110 - .../javadoc/testTagMisuse/TestTagMisuse.java | 74 - .../javadoc/testTagOutput/TestTagOutput.java | 58 - .../testTagOutput/pkg1/DeprecatedTag.java | 44 - .../test/com/sun/javadoc/testTaglets/C.java | 30 - .../com/sun/javadoc/testTaglets/Child.java | 30 - .../com/sun/javadoc/testTaglets/Parent.java | 30 - .../sun/javadoc/testTaglets/TestTaglets.java | 73 - .../sun/javadoc/testTaglets/taglets/Foo.java | 61 - .../com/sun/javadoc/testThrowsHead/C.java | 26 - .../testThrowsHead/TestThrowsHead.java | 53 - .../sun/javadoc/testThrowsInheritence/C.java | 31 - .../javadoc/testThrowsInheritence/Foo.java | 34 - .../sun/javadoc/testThrowsInheritence/I.java | 30 - .../javadoc/testThrowsInheritence/Iface.java | 34 - .../TestThrowsTagInheritence.java | 63 - .../javadoc/testThrowsTag/TestThrowsTag.java | 61 - .../com/sun/javadoc/testThrowsTag/pkg/C.java | 36 - .../com/sun/javadoc/testThrowsTag/pkg/P.java | 36 - .../com/sun/javadoc/testThrowsTag/pkg/T1.java | 26 - .../com/sun/javadoc/testThrowsTag/pkg/T2.java | 26 - .../com/sun/javadoc/testThrowsTag/pkg/T3.java | 26 - .../com/sun/javadoc/testThrowsTag/pkg/T4.java | 26 - .../com/sun/javadoc/testThrowsTag/pkg/T5.java | 28 - .../com/sun/javadoc/testThrowsTag/pkg/T6.java | 28 - .../com/sun/javadoc/testThrowsTag/pkg/T7.java | 28 - .../com/sun/javadoc/testThrowsTag/pkg/T8.java | 28 - .../testTitleInHref/TestTitleInHref.java | 61 - .../sun/javadoc/testTitleInHref/package-list | 1 - .../javadoc/testTitleInHref/pkg/Class.java | 26 - .../testTitleInHref/pkg/Interface.java | 26 - .../javadoc/testTitleInHref/pkg/Links.java | 32 - .../javadoc/testTopOption/TestTopOption.java | 93 - .../sun/javadoc/testTopOption/overview.html | 5 - .../testTopOption/pkg/AnnotationType.java | 29 - .../com/sun/javadoc/testTopOption/pkg/Cl.java | 28 - .../TestTypeAnnotations.java | 352 - .../typeannos/ClassExtends.java | 45 - .../typeannos/ClassParameters.java | 60 - .../testTypeAnnotations/typeannos/Fields.java | 82 - .../typeannos/MethodReturnType.java | 78 - .../typeannos/MethodTypeParameters.java | 52 - .../typeannos/Parameters.java | 54 - .../typeannos/Receivers.java | 131 - .../testTypeAnnotations/typeannos/Throws.java | 51 - .../typeannos/TypeParameters.java | 60 - .../typeannos/Varargs.java | 43 - .../typeannos/Wildcards.java | 74 - .../testTypeParams/TestTypeParameters.java | 91 - .../com/sun/javadoc/testTypeParams/pkg/C.java | 43 - .../testTypeParams/pkg/ClassUseTest3.java | 37 - .../sun/javadoc/testTypeParams/pkg/Foo4.java | 26 - .../testTypeParams/pkg/ParamTest2.java | 27 - .../javadoc/testTypeParams/pkg/Parent.java | 26 - .../javadoc/testUnnamedPackage/BadSource.java | 24 - .../com/sun/javadoc/testUnnamedPackage/C.java | 27 - .../TestUnnamedPackage.java | 70 - .../javadoc/testUnnamedPackage/package.html | 5 - .../test/com/sun/javadoc/testUseOption/C.java | 41 - .../javadoc/testUseOption/TestUseOption.java | 160 - .../sun/javadoc/testUseOption/UsedInC.java | 26 - .../testUseOption/pkg1/AnAbstract.java | 25 - .../sun/javadoc/testUseOption/pkg1/C1.java | 56 - .../sun/javadoc/testUseOption/pkg1/C10.java | 88 - .../sun/javadoc/testUseOption/pkg1/C2.java | 56 - .../sun/javadoc/testUseOption/pkg1/C4.java | 40 - .../sun/javadoc/testUseOption/pkg1/C5.java | 40 - .../sun/javadoc/testUseOption/pkg1/C6.java | 40 - .../sun/javadoc/testUseOption/pkg1/C7.java | 40 - .../sun/javadoc/testUseOption/pkg1/C8.java | 40 - .../sun/javadoc/testUseOption/pkg1/C9.java | 32 - .../javadoc/testUseOption/pkg1/UsedClass.java | 28 - .../testUseOption/pkg1/UsedInterface.java | 37 - .../testUseOption/pkg1/UsedInterfaceA.java | 37 - .../javadoc/testUseOption/pkg1/package.html | 5 - .../sun/javadoc/testUseOption/pkg2/C3.java | 46 - .../javadoc/testUseOption/pkg2/package.html | 5 - .../sun/javadoc/testUseOption/unique/C1.java | 60 - .../javadoc/testUseOption/unique/UseMe.java | 26 - .../javadoc/testValueTag/TestValueTag.java | 141 - .../sun/javadoc/testValueTag/pkg1/Class1.java | 91 - .../sun/javadoc/testValueTag/pkg1/Class2.java | 65 - .../testValueTag/pkg1/CustomTagUsage.java | 43 - .../sun/javadoc/testValueTag/pkg2/Class3.java | 34 - .../javadoc/testValueTag/pkg2/package.html | 5 - .../sun/javadoc/testWarnBadParamNames/C.java | 33 - .../TestWarnBadParamNames.java | 55 - .../javadoc/testWarnings/TestWarnings.java | 80 - .../com/sun/javadoc/testWarnings/pkg/X.java | 29 - .../sun/javadoc/testWarnings/pkg/package.html | 4 - .../testWindowTitle/TestWindowTitle.java | 218 - .../sun/javadoc/testWindowTitle/p1/C1.java | 27 - .../sun/javadoc/testWindowTitle/p2/C2.java | 27 - .../sun/javadoc/testXOption/TestXOption.java | 73 - .../typeAnnotations/smoke/TestSmoke.java | 110 - .../smoke/pkg/TargetTypes.java | 234 - .../jdk/javadoc/tool/EnsureNewOldDoclet.java | 169 +- .../test/tools/javadoc/6942366/T6942366.java | 22 +- .../test/tools/javadoc/6958836/Test.java | 95 +- .../tools/javadoc/6958836/errs/Errors.java | 38 - .../tools/javadoc/6958836/warns/Warnings.java | 57 - .../test/tools/javadoc/6964914/Test.java | 4 +- .../test/tools/javadoc/BadOptionsTest.java | 40 +- .../test/tools/javadoc/CheckResourceKeys.java | 9 +- langtools/test/tools/javadoc/MaxWarns.java | 56 +- .../test/tools/javadoc/ReleaseOption.java | 4 +- langtools/test/tools/javadoc/T4696488.java | 57 - langtools/test/tools/javadoc/T6551367.java | 55 - langtools/test/tools/javadoc/T6968833.java | 13 +- .../tools/javadoc/TestScriptInComment.java | 314 - .../javadoc/api/basic/TagletPathTest.java | 111 - .../test/tools/javadoc/badSuper/BadSuper.java | 40 - .../test/tools/javadoc/badSuper/p/A.java | 27 - .../test/tools/javadoc/badSuper/p/B.java | 30 - .../test/tools/javadoc/lib/ToyDoclet.java | 80 + .../tools/javadoc/nonConstExprs/Test.java | 3 +- .../javadoc/parser/7091528/T7091528.java | 19 +- .../javadoc/sampleapi/SampleApiTest.java | 94 - .../test/tools/javadoc/sampleapi/res/fx.xml | 48 - .../tools/javadoc/sampleapi/res/simple.xml | 533 - .../test/tools/javadoc/sampleapi/res/sub.xml | 92 - .../test/tools/javadoc/sampleapi/res/tiny.xml | 73 - 849 files changed, 270 insertions(+), 110604 deletions(-) delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/Taglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractTreeWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AllClassesFrameWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeFieldWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkOutputImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageFrameWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SearchIndexItem.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SectionName.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SourceToHTMLConverter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SplitIndexWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/TreeWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/WriterFactoryImpl.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/Comment.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/ContentBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/DocType.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlAttr.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlConstants.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocument.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlStyle.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTag.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlVersion.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/RawHtml.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/StringContent.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/package-info.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/package-info.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard.properties delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard_ja.properties delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard_zh_CN.properties delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeFieldWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeOptionalMemberWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeRequiredMemberWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ClassWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/Configuration.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ConstantsSummaryWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ConstructorWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/Content.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/EnumConstantWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/FieldWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/MemberSummaryWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/MethodWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/NestedClassWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/PackageSummaryWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/PropertyWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/SerializedFormWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/WriterFactory.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractMemberBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeFieldBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeOptionalMemberBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeRequiredMemberBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/BuilderFactory.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ClassBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstantsSummaryBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstructorBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/EnumConstantBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/FieldBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/LayoutParser.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MemberSummaryBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MethodBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/PackageSummaryBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/PropertyBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/XMLNode.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/package-info.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/package-info.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclet.xml delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets.properties delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_ja.properties delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_zh_CN.properties delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/glass.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/external/jquery/jquery.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-bg_flat_0_aaaaaa_40x100.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-bg_flat_75_ffffff_40x100.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-bg_glass_65_ffffff_1x400.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-bg_glass_75_dadada_1x400.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-bg_glass_95_fef1ec_1x400.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-icons_222222_256x240.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-icons_2e83ff_256x240.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-icons_454545_256x240.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-icons_888888_256x240.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/images/ui-icons_cd0a0a_256x240.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jquery-1.10.2.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jquery-ui.css delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jquery-ui.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jquery-ui.min.css delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jquery-ui.min.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jquery-ui.structure.css delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jquery-ui.structure.min.css delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jszip-utils/dist/jszip-utils-ie.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jszip-utils/dist/jszip-utils-ie.min.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jszip-utils/dist/jszip-utils.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jszip-utils/dist/jszip-utils.min.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jszip/dist/jszip.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/jquery/jszip/dist/jszip.min.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/script.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/search.js delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/x.png delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/BaseExecutableMemberTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/BaseInlineTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/BasePropertyTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/BaseTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/CodeTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/DeprecatedTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/DocRootTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/IndexTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/InheritDocTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/InheritableTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/LegacyTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/LiteralTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ParamTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/PropertyGetterTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/PropertySetterTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ReturnTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/SeeTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/SimpleTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/Taglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/TagletManager.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/TagletWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ThrowsTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ValueTaglet.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/package-info.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/ClassDocCatalog.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/ClassTree.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/ClassUseMapper.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/DeprecatedAPIListBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocFile.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocFileFactory.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocFinder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocLink.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocPath.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocPaths.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocletAbortException.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocletConstants.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/Extern.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/FatalError.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/Group.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/ImplementedMethods.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/IndexBuilder.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/MessageRetriever.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/MetaKeywords.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/MethodTypes.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/PackageListWriter.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/StandardDocFileFactory.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/TextTag.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/Utils.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/VisibleMemberMap.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/links/LinkFactory.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/links/LinkInfo.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/links/LinkOutput.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/links/package-info.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/package-info.java delete mode 100644 langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/package-info.java delete mode 100644 langtools/test/com/sun/javadoc/5093723/DocumentedClass.java delete mode 100644 langtools/test/com/sun/javadoc/5093723/T5093723.java delete mode 100644 langtools/test/com/sun/javadoc/5093723/UndocumentedClass.java delete mode 100644 langtools/test/com/sun/javadoc/AccessAsciiArt/AccessAsciiArt.java delete mode 100644 langtools/test/com/sun/javadoc/AccessAsciiArt/p1/C.java delete mode 100644 langtools/test/com/sun/javadoc/AccessAsciiArt/p1/I.java delete mode 100644 langtools/test/com/sun/javadoc/AccessAsciiArt/p1/SC.java delete mode 100644 langtools/test/com/sun/javadoc/AccessAsciiArt/p1/SI.java delete mode 100644 langtools/test/com/sun/javadoc/AccessAsciiArt/p1/subpkg/SSC.java delete mode 100644 langtools/test/com/sun/javadoc/AccessFrameTitle/AccessFrameTitle.java delete mode 100644 langtools/test/com/sun/javadoc/AccessFrameTitle/p1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/AccessFrameTitle/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/AccessH1/AccessH1.java delete mode 100644 langtools/test/com/sun/javadoc/AccessH1/p1/C.java delete mode 100644 langtools/test/com/sun/javadoc/AccessH1/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/AccessSkipNav/AccessSkipNav.java delete mode 100644 langtools/test/com/sun/javadoc/AccessSkipNav/p1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/AccessSkipNav/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/AccessSummary/AccessSummary.java delete mode 100644 langtools/test/com/sun/javadoc/AccessSummary/p1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/AccessSummary/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/AuthorDD/AuthorDD.java delete mode 100644 langtools/test/com/sun/javadoc/AuthorDD/p1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/DocRootSlash/DocRootSlash.java delete mode 100644 langtools/test/com/sun/javadoc/DocRootSlash/overview.html delete mode 100644 langtools/test/com/sun/javadoc/DocRootSlash/p1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/DocRootSlash/p1/package.html delete mode 100644 langtools/test/com/sun/javadoc/DocRootSlash/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/DocRootSlash/p2/package.html delete mode 100644 langtools/test/com/sun/javadoc/InheritDocForUserTags/DocTest.java delete mode 100644 langtools/test/com/sun/javadoc/JavascriptWinTitle/JavascriptWinTitle.java delete mode 100644 langtools/test/com/sun/javadoc/JavascriptWinTitle/overview.html delete mode 100644 langtools/test/com/sun/javadoc/JavascriptWinTitle/p1/C.java delete mode 100644 langtools/test/com/sun/javadoc/JavascriptWinTitle/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/JavascriptWinTitle/package-list delete mode 100644 langtools/test/com/sun/javadoc/MetaTag/MetaTag.java delete mode 100644 langtools/test/com/sun/javadoc/MetaTag/p1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/MetaTag/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/PackagesHeader/PackagesHeader.java delete mode 100644 langtools/test/com/sun/javadoc/PackagesHeader/p1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/PackagesHeader/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/T6735320/SerialFieldTest.java delete mode 100644 langtools/test/com/sun/javadoc/T6735320/T6735320.java delete mode 100644 langtools/test/com/sun/javadoc/ValidHtml/ValidHtml.java delete mode 100644 langtools/test/com/sun/javadoc/ValidHtml/overview.html delete mode 100644 langtools/test/com/sun/javadoc/ValidHtml/p1/C.java delete mode 100644 langtools/test/com/sun/javadoc/ValidHtml/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/VersionNumber/VersionNumber.java delete mode 100644 langtools/test/com/sun/javadoc/VersionNumber/p1/C.java delete mode 100644 langtools/test/com/sun/javadoc/WindowTitles/WindowTitles.java delete mode 100644 langtools/test/com/sun/javadoc/WindowTitles/p1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/WindowTitles/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/_template/Template.java delete mode 100644 langtools/test/com/sun/javadoc/_template/TemplateComplete.java delete mode 100644 langtools/test/com/sun/javadoc/constantValues/A.java delete mode 100644 langtools/test/com/sun/javadoc/constantValues/TestConstantValues.java delete mode 100644 langtools/test/com/sun/javadoc/constantValues/TestConstantValues2.java delete mode 100644 langtools/test/com/sun/javadoc/constantValues/TestConstantValuesDriver.java delete mode 100644 langtools/test/com/sun/javadoc/dupThrowsTags/TestDupThrowsTags.java delete mode 100644 langtools/test/com/sun/javadoc/lib/JavadocTester.java delete mode 100644 langtools/test/com/sun/javadoc/testAbsLinkPath/TestAbsLinkPath.java delete mode 100644 langtools/test/com/sun/javadoc/testAbsLinkPath/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testAbsLinkPath/pkg2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testAbstractMethod/TestAbstractMethod.java delete mode 100644 langtools/test/com/sun/javadoc/testAbstractMethod/pkg/A.java delete mode 100644 langtools/test/com/sun/javadoc/testAbstractMethod/pkg/B.java delete mode 100644 langtools/test/com/sun/javadoc/testAbstractMethod/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testAnchorNames/TestAnchorNames.java delete mode 100644 langtools/test/com/sun/javadoc/testAnchorNames/pkg1/DeprMemClass.java delete mode 100644 langtools/test/com/sun/javadoc/testAnchorNames/pkg1/RegClass.java delete mode 100644 langtools/test/com/sun/javadoc/testAnnotationOptional/TestAnnotationOptional.java delete mode 100644 langtools/test/com/sun/javadoc/testAnnotationOptional/pkg/AnnotationOptional.java delete mode 100644 langtools/test/com/sun/javadoc/testAnnotationTypes/TestAnnotationTypes.java delete mode 100644 langtools/test/com/sun/javadoc/testAnnotationTypes/pkg/AnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testAnnotationTypes/pkg/AnnotationTypeField.java delete mode 100644 langtools/test/com/sun/javadoc/testBackSlashInLink/C.java delete mode 100644 langtools/test/com/sun/javadoc/testBackSlashInLink/TestBackSlashInLink.java delete mode 100644 langtools/test/com/sun/javadoc/testBadPackageFileInJar/TestBadPackageFileInJar.java delete mode 100644 langtools/test/com/sun/javadoc/testBadPackageFileInJar/badPackageFileInJar.jar delete mode 100644 langtools/test/com/sun/javadoc/testBadPackageFileInJar/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testBadSourceFile/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testBadSourceFile/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testBadSourceFile/TestBadSourceFile.java delete mode 100644 langtools/test/com/sun/javadoc/testBaseClass/Bar.java delete mode 100644 langtools/test/com/sun/javadoc/testBaseClass/BaseClass.java delete mode 100644 langtools/test/com/sun/javadoc/testBaseClass/TestBaseClass.java delete mode 100644 langtools/test/com/sun/javadoc/testBaseClass/baz/Foo.java delete mode 100644 langtools/test/com/sun/javadoc/testBreakIterator/TestBreakIterator.java delete mode 100644 langtools/test/com/sun/javadoc/testBreakIterator/pkg/BreakIteratorTest.java delete mode 100644 langtools/test/com/sun/javadoc/testCRLineSeparator/TestCRLineSeparator.java delete mode 100644 langtools/test/com/sun/javadoc/testCRLineSeparator/pkg/MyClass.java delete mode 100644 langtools/test/com/sun/javadoc/testCharset/TestCharset.java delete mode 100644 langtools/test/com/sun/javadoc/testCharset/pkg/Foo.java delete mode 100644 langtools/test/com/sun/javadoc/testClassCrossReferences/C.java delete mode 100644 langtools/test/com/sun/javadoc/testClassCrossReferences/TestClassCrossReferences.java delete mode 100644 langtools/test/com/sun/javadoc/testClassCrossReferences/package-list delete mode 100644 langtools/test/com/sun/javadoc/testClassTree/TestClassTree.java delete mode 100644 langtools/test/com/sun/javadoc/testClassTree/pkg/AnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testClassTree/pkg/ChildClass.java delete mode 100644 langtools/test/com/sun/javadoc/testClassTree/pkg/Coin.java delete mode 100644 langtools/test/com/sun/javadoc/testClassTree/pkg/ParentClass.java delete mode 100644 langtools/test/com/sun/javadoc/testCmndLineClass/C5.java delete mode 100644 langtools/test/com/sun/javadoc/testCmndLineClass/TestCmndLineClass.java delete mode 100644 langtools/test/com/sun/javadoc/testCmndLineClass/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testCmndLineClass/pkg1/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testCmndLineClass/pkg1/package.html delete mode 100644 langtools/test/com/sun/javadoc/testCmndLineClass/pkg2/C3.java delete mode 100644 langtools/test/com/sun/javadoc/testCmndLineClass/pkg2/C4.java delete mode 100644 langtools/test/com/sun/javadoc/testCmndLineClass/pkg2/package.html delete mode 100644 langtools/test/com/sun/javadoc/testCompletionFailure/TestCompletionFailure.java delete mode 100644 langtools/test/com/sun/javadoc/testCompletionFailure/pkg1/NumberFormatTest.java delete mode 100644 langtools/test/com/sun/javadoc/testConstantValuesPage/TestConstantValuesPage.java delete mode 100644 langtools/test/com/sun/javadoc/testConstructorIndent/C.java delete mode 100644 langtools/test/com/sun/javadoc/testConstructorIndent/TestConstructorIndent.java delete mode 100644 langtools/test/com/sun/javadoc/testConstructors/TestConstructors.java delete mode 100644 langtools/test/com/sun/javadoc/testConstructors/pkg1/Outer.java delete mode 100644 langtools/test/com/sun/javadoc/testCustomTag/TagTestClass.java delete mode 100644 langtools/test/com/sun/javadoc/testCustomTag/TestCustomTag.java delete mode 100644 langtools/test/com/sun/javadoc/testCustomTag/taglets/CustomTag.java delete mode 100644 langtools/test/com/sun/javadoc/testDeprecatedDocs/TestDeprecatedDocs.java delete mode 100644 langtools/test/com/sun/javadoc/testDeprecatedDocs/pkg/DeprecatedClassByAnnotation.java delete mode 100644 langtools/test/com/sun/javadoc/testDeprecatedDocs/pkg/TestAnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testDeprecatedDocs/pkg/TestClass.java delete mode 100644 langtools/test/com/sun/javadoc/testDeprecatedDocs/pkg/TestEnum.java delete mode 100644 langtools/test/com/sun/javadoc/testDeprecatedDocs/pkg/TestError.java delete mode 100644 langtools/test/com/sun/javadoc/testDeprecatedDocs/pkg/TestException.java delete mode 100644 langtools/test/com/sun/javadoc/testDeprecatedDocs/pkg/TestInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testDocEncoding/TestDocEncoding.java delete mode 100644 langtools/test/com/sun/javadoc/testDocEncoding/pkg/Test.java delete mode 100644 langtools/test/com/sun/javadoc/testDocErrorReporter/TestDocErrorReporter.java delete mode 100644 langtools/test/com/sun/javadoc/testDocFileDir/TestDocFileDir.java delete mode 100644 langtools/test/com/sun/javadoc/testDocFileDir/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testDocFileDir/pkg/doc-files/subdir-excluded1/testfile.txt delete mode 100644 langtools/test/com/sun/javadoc/testDocFileDir/pkg/doc-files/subdir-excluded2/testfile.txt delete mode 100644 langtools/test/com/sun/javadoc/testDocFileDir/pkg/doc-files/subdir-used1/testfile.txt delete mode 100644 langtools/test/com/sun/javadoc/testDocFileDir/pkg/doc-files/subdir-used2/testfile.txt delete mode 100644 langtools/test/com/sun/javadoc/testDocFileDir/pkg/doc-files/testfile.txt delete mode 100644 langtools/test/com/sun/javadoc/testDocFiles/TestDocFiles.java delete mode 100644 langtools/test/com/sun/javadoc/testDocFiles/pkg/Test.java delete mode 100644 langtools/test/com/sun/javadoc/testDocFiles/pkg/doc-files/test.txt delete mode 100644 langtools/test/com/sun/javadoc/testDocRootInlineTag/TestDocRootInlineTag.java delete mode 100644 langtools/test/com/sun/javadoc/testDocRootInlineTag/TestDocRootTag.java delete mode 100644 langtools/test/com/sun/javadoc/testDocRootInlineTag/package-list delete mode 100644 langtools/test/com/sun/javadoc/testDocRootInlineTag/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testDocRootLink/TestDocRootLink.java delete mode 100644 langtools/test/com/sun/javadoc/testDocRootLink/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testDocRootLink/pkg1/package.html delete mode 100644 langtools/test/com/sun/javadoc/testDocRootLink/pkg2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testDocRootLink/pkg2/package.html delete mode 100644 langtools/test/com/sun/javadoc/testDupParamWarn/TestDupParamWarn.java delete mode 100644 langtools/test/com/sun/javadoc/testDupParamWarn/pkg/Bar.java delete mode 100644 langtools/test/com/sun/javadoc/testDupParamWarn/pkg/Foo.java delete mode 100644 langtools/test/com/sun/javadoc/testEmptyClass/TestEmptyClass.java delete mode 100644 langtools/test/com/sun/javadoc/testEmptyClass/src/Empty.java delete mode 100644 langtools/test/com/sun/javadoc/testEnclosingClass/TestEnclosingClass.java delete mode 100644 langtools/test/com/sun/javadoc/testEnclosingClass/pkg/MyClass.java delete mode 100644 langtools/test/com/sun/javadoc/testEncoding/EncodeTest.java delete mode 100644 langtools/test/com/sun/javadoc/testEncoding/TestEncoding.java delete mode 100644 langtools/test/com/sun/javadoc/testExternalOverridenMethod/TestExternalOverridenMethod.java delete mode 100644 langtools/test/com/sun/javadoc/testExternalOverridenMethod/package-list delete mode 100644 langtools/test/com/sun/javadoc/testExternalOverridenMethod/pkg/XReader.java delete mode 100644 langtools/test/com/sun/javadoc/testGeneratedBy/TestGeneratedBy.java delete mode 100644 langtools/test/com/sun/javadoc/testGeneratedBy/pkg/MyClass.java delete mode 100644 langtools/test/com/sun/javadoc/testGroupOption/TestGroupOption.java delete mode 100644 langtools/test/com/sun/javadoc/testGroupOption/pkg1/C.java delete mode 100644 langtools/test/com/sun/javadoc/testGroupOption/pkg2/C.java delete mode 100644 langtools/test/com/sun/javadoc/testGroupOption/pkg3/C.java delete mode 100644 langtools/test/com/sun/javadoc/testHeadings/TestHeadings.java delete mode 100644 langtools/test/com/sun/javadoc/testHeadings/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testHeadings/pkg2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testHelpFile/TestHelpFile.java delete mode 100644 langtools/test/com/sun/javadoc/testHelpOption/TestHelpOption.java delete mode 100644 langtools/test/com/sun/javadoc/testHiddenMembers/TestHiddenMembers.java delete mode 100644 langtools/test/com/sun/javadoc/testHiddenMembers/pkg/BaseClass.java delete mode 100644 langtools/test/com/sun/javadoc/testHiddenMembers/pkg/SubClass.java delete mode 100644 langtools/test/com/sun/javadoc/testHref/TestHref.java delete mode 100644 langtools/test/com/sun/javadoc/testHref/package-list delete mode 100644 langtools/test/com/sun/javadoc/testHref/pkg/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testHref/pkg/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testHref/pkg/C4.java delete mode 100644 langtools/test/com/sun/javadoc/testHrefInDocComment/TestHrefInDocComment.java delete mode 100644 langtools/test/com/sun/javadoc/testHrefInDocComment/pkg/I1.java delete mode 100644 langtools/test/com/sun/javadoc/testHrefInDocComment/pkg/I2.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlComments/C.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlComments/TestHtmlComments.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/pkg1/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/pkg1/C3.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/pkg1/C4.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/pkg1/C5.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/pkg1/package-info.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDocument/TestHtmlDocument.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDocument/testLink.html delete mode 100644 langtools/test/com/sun/javadoc/testHtmlDocument/testMarkup.html delete mode 100644 langtools/test/com/sun/javadoc/testHtmlStrongTag/TestHtmlStrongTag.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlStrongTag/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlStrongTag/pkg2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableStyles/pkg2/TestUse.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableTags/TestHtmlTableTags.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableTags/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableTags/pkg1/I1.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableTags/pkg1/package-info.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableTags/pkg2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableTags/pkg2/C3.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableTags/pkg2/C4.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTableTags/pkg2/package-info.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTag/TestHtmlTag.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTag/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlTag/pkg2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/TestHtmlVersion.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg/AnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg/AnotherClass.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg/TestError.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg/TestException.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg/TestInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg/package-info.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg1/NestedInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg1/PrivateIncludeInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg1/ProtectedInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg1/PublicExcludeInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg1/RegClass.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg2/DeprecatedClassByAnnotation.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg2/Interface.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg2/TestAnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg2/TestClass.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg2/TestEnum.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg2/TestError.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg2/TestException.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg2/TestInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/pkg3/ClassNoConstants.java delete mode 100644 langtools/test/com/sun/javadoc/testHtmlVersion/profile-rtjar-includes.txt delete mode 100644 langtools/test/com/sun/javadoc/testIndentation/TestIndentation.java delete mode 100644 langtools/test/com/sun/javadoc/testIndentation/p/Indent.java delete mode 100644 langtools/test/com/sun/javadoc/testIndentation/p/IndentAnnot.java delete mode 100644 langtools/test/com/sun/javadoc/testIndex/NoPackage.java delete mode 100644 langtools/test/com/sun/javadoc/testIndex/TestIndex.java delete mode 100644 langtools/test/com/sun/javadoc/testIndex/pkg/AnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testIndex/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testIndex/pkg/Coin.java delete mode 100644 langtools/test/com/sun/javadoc/testIndex/pkg/Interface.java delete mode 100644 langtools/test/com/sun/javadoc/testInlineLinkLabel/TestInlineLinkLabel.java delete mode 100644 langtools/test/com/sun/javadoc/testInlineLinkLabel/pkg/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testInlineLinkLabel/pkg/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testInlineLinkLabel/pkg/package.html delete mode 100644 langtools/test/com/sun/javadoc/testInterface/TestInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testInterface/pkg/Child.java delete mode 100644 langtools/test/com/sun/javadoc/testInterface/pkg/Interface.java delete mode 100644 langtools/test/com/sun/javadoc/testInterface/pkg/Parent.java delete mode 100644 langtools/test/com/sun/javadoc/testJavaFX/TestJavaFX.java delete mode 100644 langtools/test/com/sun/javadoc/testJavaFX/pkg1/C.java delete mode 100644 langtools/test/com/sun/javadoc/testJavaFX/pkg1/D.java delete mode 100644 langtools/test/com/sun/javadoc/testJavaFX/pkg2/Test.java delete mode 100644 langtools/test/com/sun/javadoc/testJavascript/TestJavascript.java delete mode 100644 langtools/test/com/sun/javadoc/testJavascript/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testLambdaFeature/TestLambdaFeature.java delete mode 100644 langtools/test/com/sun/javadoc/testLambdaFeature/pkg/A.java delete mode 100644 langtools/test/com/sun/javadoc/testLambdaFeature/pkg/B.java delete mode 100644 langtools/test/com/sun/javadoc/testLambdaFeature/pkg1/FuncInf.java delete mode 100644 langtools/test/com/sun/javadoc/testLambdaFeature/pkg1/NotAFuncInf.java delete mode 100644 langtools/test/com/sun/javadoc/testLeadingSpaces/LeadingSpaces.java delete mode 100644 langtools/test/com/sun/javadoc/testLegacyTaglet/C.java delete mode 100644 langtools/test/com/sun/javadoc/testLegacyTaglet/Check.java delete mode 100644 langtools/test/com/sun/javadoc/testLegacyTaglet/TestLegacyTaglet.java delete mode 100644 langtools/test/com/sun/javadoc/testLegacyTaglet/ToDoTaglet.java delete mode 100644 langtools/test/com/sun/javadoc/testLegacyTaglet/UnderlineTaglet.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/TestBadLinkOption.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/TestLinkOption.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/TestNewLineInLink.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/extra/StringBuilder.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/jdk/package-list delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/mylib/lang/StringBuilderChild.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/pkg2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/testNewLineInLink/C.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkOption/testNewLineInLink/package.html delete mode 100644 langtools/test/com/sun/javadoc/testLinkTaglet/TestLinkTaglet.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkTaglet/checkPkg/A.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkTaglet/checkPkg/B.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkTaglet/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkToSerialForm/TestLinkToSerialForm.java delete mode 100644 langtools/test/com/sun/javadoc/testLinkToSerialForm/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testLiteralCodeInPre/TestLiteralCodeInPre.java delete mode 100644 langtools/test/com/sun/javadoc/testLiteralCodeInPre/pkg/Test.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/TestMemberInheritence.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/diamond/A.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/diamond/B.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/diamond/C.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/diamond/X.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/diamond/Z.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/inheritDist/A.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/inheritDist/B.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/inheritDist/C.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/pkg/BaseClass.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/pkg/BaseInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberInheritence/pkg/SubClass.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberSummary/TestMemberSummary.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberSummary/pkg/PrivateParent.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberSummary/pkg/PublicChild.java delete mode 100644 langtools/test/com/sun/javadoc/testMemberSummary/pkg2/A.java delete mode 100644 langtools/test/com/sun/javadoc/testMethodTypes/TestMethodTypes.java delete mode 100644 langtools/test/com/sun/javadoc/testMethodTypes/pkg1/A.java delete mode 100644 langtools/test/com/sun/javadoc/testMethodTypes/pkg1/B.java delete mode 100644 langtools/test/com/sun/javadoc/testMethodTypes/pkg1/D.java delete mode 100644 langtools/test/com/sun/javadoc/testModifier/Interface.java delete mode 100644 langtools/test/com/sun/javadoc/testModifier/ModifierAbstract.java delete mode 100644 langtools/test/com/sun/javadoc/testModifier/Test.java delete mode 100644 langtools/test/com/sun/javadoc/testModifier/TestModifier.java delete mode 100644 langtools/test/com/sun/javadoc/testNavigation/TestNavigation.java delete mode 100644 langtools/test/com/sun/javadoc/testNavigation/pkg/A.java delete mode 100644 langtools/test/com/sun/javadoc/testNavigation/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testNavigation/pkg/E.java delete mode 100644 langtools/test/com/sun/javadoc/testNavigation/pkg/I.java delete mode 100644 langtools/test/com/sun/javadoc/testNestedGenerics/TestNestedGenerics.java delete mode 100644 langtools/test/com/sun/javadoc/testNestedGenerics/pkg/NestedGenerics.java delete mode 100644 langtools/test/com/sun/javadoc/testNestedInlineTag/TestNestedInlineTag.java delete mode 100644 langtools/test/com/sun/javadoc/testNestedInlineTag/testtaglets/BoldTaglet.java delete mode 100644 langtools/test/com/sun/javadoc/testNestedInlineTag/testtaglets/GreenTaglet.java delete mode 100644 langtools/test/com/sun/javadoc/testNestedInlineTag/testtaglets/UnderlineTaglet.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/AnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/AnnotationTypeUndocumented.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/AnnotationTypeUsage.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/Coin.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/MultiTypeParameters.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/SubInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/SuperInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/TypeParameterSubClass.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/TypeParameterSuperClass.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/TypeParameters.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/VarArgs.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/Wildcards.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg/package-info.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg1/A.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg1/B.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/ClassUseTest1.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/ClassUseTest2.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/ClassUseTest3.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/Foo.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/Foo2.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/Foo3.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/Foo4.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/ParamTest.java delete mode 100644 langtools/test/com/sun/javadoc/testNewLanguageFeatures/pkg2/ParamTest2.java delete mode 100644 langtools/test/com/sun/javadoc/testNoPackagesFile/C.java delete mode 100644 langtools/test/com/sun/javadoc/testNoPackagesFile/TestNoPackagesFile.java delete mode 100644 langtools/test/com/sun/javadoc/testNonInlineHtmlTagRemoval/C.java delete mode 100644 langtools/test/com/sun/javadoc/testNonInlineHtmlTagRemoval/Negative.java delete mode 100644 langtools/test/com/sun/javadoc/testNonInlineHtmlTagRemoval/TestNonInlineHtmlTagRemoval.java delete mode 100644 langtools/test/com/sun/javadoc/testNotifications/TestNotifications.java delete mode 100644 langtools/test/com/sun/javadoc/testNotifications/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testOptions/TestOptions.java delete mode 100644 langtools/test/com/sun/javadoc/testOptions/pkg/Foo.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/C.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/TestOrdering.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/UsedInC.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/pkg1/A.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/pkg1/B.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/pkg1/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/pkg1/C3.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/pkg1/C4.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/pkg1/MethodOrder.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/pkg1/UsedClass.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/src-2/a/A.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/src-2/a/something.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/src-2/b/B.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/src-2/b/something.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/src-2/e/something.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/src-2/something/J.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/src-2/something/package-info.java delete mode 100644 langtools/test/com/sun/javadoc/testOrdering/src-2/something/something.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/TestMultiInheritence.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenMethodDocCopy.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethods.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPackageFlag.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPrivateFlag.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/pkg1/BaseClass.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/pkg1/SubClass.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/pkg2/SubClass.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/pkg3/I0.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/pkg3/I1.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/pkg3/I2.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/pkg3/I3.java delete mode 100644 langtools/test/com/sun/javadoc/testOverridenMethods/pkg3/I4.java delete mode 100644 langtools/test/com/sun/javadoc/testPackageDeprecation/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testPackageDeprecation/FooDepr.java delete mode 100644 langtools/test/com/sun/javadoc/testPackageDeprecation/TestPackageDeprecation.java delete mode 100644 langtools/test/com/sun/javadoc/testPackageDeprecation/pkg/A.java delete mode 100644 langtools/test/com/sun/javadoc/testPackageDeprecation/pkg1/ClassUseTest1.java delete mode 100644 langtools/test/com/sun/javadoc/testPackageDeprecation/pkg1/Foo.java delete mode 100644 langtools/test/com/sun/javadoc/testPackageDeprecation/pkg1/Foo2.java delete mode 100644 langtools/test/com/sun/javadoc/testPackageDeprecation/pkg1/package-info.java delete mode 100644 langtools/test/com/sun/javadoc/testPackagePage/TestPackagePage.java delete mode 100644 langtools/test/com/sun/javadoc/testPackagePage/com/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testPackagePage/com/pkg/package.html delete mode 100644 langtools/test/com/sun/javadoc/testPackagePage/pkg2/C.java delete mode 100644 langtools/test/com/sun/javadoc/testParamTaglet/TestParamTaglet.java delete mode 100644 langtools/test/com/sun/javadoc/testParamTaglet/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testParamTaglet/pkg/Parent.java delete mode 100644 langtools/test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java delete mode 100644 langtools/test/com/sun/javadoc/testPrivateClasses/pkg/PrivateInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testPrivateClasses/pkg/PrivateParent.java delete mode 100644 langtools/test/com/sun/javadoc/testPrivateClasses/pkg/PublicChild.java delete mode 100644 langtools/test/com/sun/javadoc/testPrivateClasses/pkg/PublicInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testPrivateClasses/pkg2/C.java delete mode 100644 langtools/test/com/sun/javadoc/testPrivateClasses/pkg2/I.java delete mode 100644 langtools/test/com/sun/javadoc/testRecurseSubPackages/TestRecurseSubPackages.java delete mode 100644 langtools/test/com/sun/javadoc/testRecurseSubPackages/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testRecurseSubPackages/pkg1/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testRecurseSubPackages/pkg1/pkg2/C3.java delete mode 100644 langtools/test/com/sun/javadoc/testRecurseSubPackages/pkg1/pkg2/C4.java delete mode 100644 langtools/test/com/sun/javadoc/testRecurseSubPackages/pkg1/pkg2/packageToExclude/DummyClass.java delete mode 100644 langtools/test/com/sun/javadoc/testRecurseSubPackages/pkg1/pkg2/pkg3/C5.java delete mode 100644 langtools/test/com/sun/javadoc/testRecurseSubPackages/pkg1/pkg2/pkg3/C6.java delete mode 100644 langtools/test/com/sun/javadoc/testRelativeLinks/TestRelativeLinks.java delete mode 100644 langtools/test/com/sun/javadoc/testRelativeLinks/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testRelativeLinks/pkg/package.html delete mode 100644 langtools/test/com/sun/javadoc/testRelativeLinks/pkg2/Foo.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/ContaineeRegDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/ContaineeSynthDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/ContainerRegDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/ContainerRegNotDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/ContainerSynthDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/D.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/NonSynthDocContainer.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/RegArryDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/RegContaineeDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/RegContaineeNotDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/RegContainerDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/RegContainerNotDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg/RegDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/C.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/ContaineeNotDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/ContaineeSynthDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/ContainerSynthNotDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/ContainerValDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/ContainerValNotDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/RegContaineeDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/RegContaineeNotDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/RegContainerValDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testRepeatedAnnotations/pkg1/RegContainerValNotDoc.java delete mode 100644 langtools/test/com/sun/javadoc/testReturnTag/TestReturnTag.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/TestSearch.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/UnnamedPkgClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg/AnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg/AnotherClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg/TestError.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg/TestException.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg/TestInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg/package-info.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg1/NestedInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg1/PrivateIncludeInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg1/ProtectedInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg1/PublicExcludeInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg1/RegClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg2/DeprecatedClassByAnnotation.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg2/Interface.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg2/TestAnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg2/TestClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg2/TestEnum.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg2/TestError.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg2/TestException.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg2/TestInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkg3/ClassNoConstants.java delete mode 100644 langtools/test/com/sun/javadoc/testSearch/pkgfx/C.java delete mode 100644 langtools/test/com/sun/javadoc/testSeeTag/TestSeeTag.java delete mode 100644 langtools/test/com/sun/javadoc/testSeeTag/pkg/Test.java delete mode 100644 langtools/test/com/sun/javadoc/testSerialVersionUID/C.java delete mode 100644 langtools/test/com/sun/javadoc/testSerialVersionUID/TestSerialVersionUID.java delete mode 100644 langtools/test/com/sun/javadoc/testSerializedForm/TestSerializedForm.java delete mode 100644 langtools/test/com/sun/javadoc/testSerializedForm/pkg1/NestedInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSerializedForm/pkg1/PrivateIncludeInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSerializedForm/pkg1/ProtectedInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSerializedForm/pkg1/PublicExcludeInnerClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSerializedFormDeprecationInfo/TestSerializedFormDeprecationInfo.java delete mode 100644 langtools/test/com/sun/javadoc/testSerializedFormDeprecationInfo/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testSerializedFormDeprecationInfo/pkg1/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testSerializedFormDeprecationInfo/pkg1/C3.java delete mode 100644 langtools/test/com/sun/javadoc/testSimpleTag/C.java delete mode 100644 langtools/test/com/sun/javadoc/testSimpleTag/TestSimpleTag.java delete mode 100644 langtools/test/com/sun/javadoc/testSimpleTagExclude/DummyClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSimpleTagExclude/TestSimpleTagExclude.java delete mode 100644 langtools/test/com/sun/javadoc/testSimpleTagInherit/TestSimpleTagInherit.java delete mode 100644 langtools/test/com/sun/javadoc/testSimpleTagInherit/p/BaseClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSimpleTagInherit/p/TestClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSinceTag/TestSinceTag.java delete mode 100644 langtools/test/com/sun/javadoc/testSinceTag/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testSingleQuotedLink/TestSingleQuotedLink.java delete mode 100644 langtools/test/com/sun/javadoc/testSingleQuotedLink/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testSingleQuotedLink/pkg1/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testSingleQuotedLink/pkg1/package.html delete mode 100644 langtools/test/com/sun/javadoc/testSourceTab/DoubleTab/C.java delete mode 100644 langtools/test/com/sun/javadoc/testSourceTab/SingleTab/C.java delete mode 100644 langtools/test/com/sun/javadoc/testSourceTab/TestSourceTab.java delete mode 100644 langtools/test/com/sun/javadoc/testStylesheet/TestStylesheet.java delete mode 100644 langtools/test/com/sun/javadoc/testStylesheet/pkg/A.java delete mode 100644 langtools/test/com/sun/javadoc/testSubTitle/TestSubTitle.java delete mode 100644 langtools/test/com/sun/javadoc/testSubTitle/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testSubTitle/pkg/package.html delete mode 100644 langtools/test/com/sun/javadoc/testSummaryHeading/C.java delete mode 100644 langtools/test/com/sun/javadoc/testSummaryHeading/TestSummaryHeading.java delete mode 100644 langtools/test/com/sun/javadoc/testSuperclassInSerialForm/TestSuperClassInSerialForm.java delete mode 100644 langtools/test/com/sun/javadoc/testSuperclassInSerialForm/pkg/SubClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSuperclassInSerialForm/pkg/SuperClass.java delete mode 100644 langtools/test/com/sun/javadoc/testSupplementary/C.java delete mode 100644 langtools/test/com/sun/javadoc/testSupplementary/TestSupplementary.java delete mode 100644 langtools/test/com/sun/javadoc/testTagHolderMethod/TestTagHolderMethod.java delete mode 100644 langtools/test/com/sun/javadoc/testTagHolderMethod/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/TestTagInheritence.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/firstSentence/A.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/firstSentence/B.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/firstSentence2/A.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/firstSentence2/B.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/firstSentence2/C.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/pkg/TestAbstractClass.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/pkg/TestInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/pkg/TestInterfaceForAbstractClass.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/pkg/TestSuperSuperClass.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/pkg/TestSuperSuperInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testTagInheritence/pkg/TestTagInheritence.java delete mode 100644 langtools/test/com/sun/javadoc/testTagMisuse/TestTagMisuse.java delete mode 100644 langtools/test/com/sun/javadoc/testTagOutput/TestTagOutput.java delete mode 100644 langtools/test/com/sun/javadoc/testTagOutput/pkg1/DeprecatedTag.java delete mode 100644 langtools/test/com/sun/javadoc/testTaglets/C.java delete mode 100644 langtools/test/com/sun/javadoc/testTaglets/Child.java delete mode 100644 langtools/test/com/sun/javadoc/testTaglets/Parent.java delete mode 100644 langtools/test/com/sun/javadoc/testTaglets/TestTaglets.java delete mode 100644 langtools/test/com/sun/javadoc/testTaglets/taglets/Foo.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsHead/C.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsHead/TestThrowsHead.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsInheritence/C.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsInheritence/Foo.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsInheritence/I.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsInheritence/Iface.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsInheritence/TestThrowsTagInheritence.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/TestThrowsTag.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/P.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/T1.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/T2.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/T3.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/T4.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/T5.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/T6.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/T7.java delete mode 100644 langtools/test/com/sun/javadoc/testThrowsTag/pkg/T8.java delete mode 100644 langtools/test/com/sun/javadoc/testTitleInHref/TestTitleInHref.java delete mode 100644 langtools/test/com/sun/javadoc/testTitleInHref/package-list delete mode 100644 langtools/test/com/sun/javadoc/testTitleInHref/pkg/Class.java delete mode 100644 langtools/test/com/sun/javadoc/testTitleInHref/pkg/Interface.java delete mode 100644 langtools/test/com/sun/javadoc/testTitleInHref/pkg/Links.java delete mode 100644 langtools/test/com/sun/javadoc/testTopOption/TestTopOption.java delete mode 100644 langtools/test/com/sun/javadoc/testTopOption/overview.html delete mode 100644 langtools/test/com/sun/javadoc/testTopOption/pkg/AnnotationType.java delete mode 100644 langtools/test/com/sun/javadoc/testTopOption/pkg/Cl.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/TestTypeAnnotations.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/ClassExtends.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/ClassParameters.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/Fields.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/MethodReturnType.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/MethodTypeParameters.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/Parameters.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/Receivers.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/Throws.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/TypeParameters.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/Varargs.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeAnnotations/typeannos/Wildcards.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeParams/TestTypeParameters.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeParams/pkg/C.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeParams/pkg/ClassUseTest3.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeParams/pkg/Foo4.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeParams/pkg/ParamTest2.java delete mode 100644 langtools/test/com/sun/javadoc/testTypeParams/pkg/Parent.java delete mode 100644 langtools/test/com/sun/javadoc/testUnnamedPackage/BadSource.java delete mode 100644 langtools/test/com/sun/javadoc/testUnnamedPackage/C.java delete mode 100644 langtools/test/com/sun/javadoc/testUnnamedPackage/TestUnnamedPackage.java delete mode 100644 langtools/test/com/sun/javadoc/testUnnamedPackage/package.html delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/C.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/TestUseOption.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/UsedInC.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/AnAbstract.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/C10.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/C4.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/C5.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/C6.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/C7.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/C8.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/C9.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/UsedClass.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/UsedInterface.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/UsedInterfaceA.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg1/package.html delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg2/C3.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/pkg2/package.html delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/unique/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testUseOption/unique/UseMe.java delete mode 100644 langtools/test/com/sun/javadoc/testValueTag/TestValueTag.java delete mode 100644 langtools/test/com/sun/javadoc/testValueTag/pkg1/Class1.java delete mode 100644 langtools/test/com/sun/javadoc/testValueTag/pkg1/Class2.java delete mode 100644 langtools/test/com/sun/javadoc/testValueTag/pkg1/CustomTagUsage.java delete mode 100644 langtools/test/com/sun/javadoc/testValueTag/pkg2/Class3.java delete mode 100644 langtools/test/com/sun/javadoc/testValueTag/pkg2/package.html delete mode 100644 langtools/test/com/sun/javadoc/testWarnBadParamNames/C.java delete mode 100644 langtools/test/com/sun/javadoc/testWarnBadParamNames/TestWarnBadParamNames.java delete mode 100644 langtools/test/com/sun/javadoc/testWarnings/TestWarnings.java delete mode 100644 langtools/test/com/sun/javadoc/testWarnings/pkg/X.java delete mode 100644 langtools/test/com/sun/javadoc/testWarnings/pkg/package.html delete mode 100644 langtools/test/com/sun/javadoc/testWindowTitle/TestWindowTitle.java delete mode 100644 langtools/test/com/sun/javadoc/testWindowTitle/p1/C1.java delete mode 100644 langtools/test/com/sun/javadoc/testWindowTitle/p2/C2.java delete mode 100644 langtools/test/com/sun/javadoc/testXOption/TestXOption.java delete mode 100644 langtools/test/com/sun/javadoc/typeAnnotations/smoke/TestSmoke.java delete mode 100644 langtools/test/com/sun/javadoc/typeAnnotations/smoke/pkg/TargetTypes.java delete mode 100644 langtools/test/tools/javadoc/6958836/errs/Errors.java delete mode 100644 langtools/test/tools/javadoc/6958836/warns/Warnings.java delete mode 100644 langtools/test/tools/javadoc/T4696488.java delete mode 100644 langtools/test/tools/javadoc/T6551367.java delete mode 100644 langtools/test/tools/javadoc/TestScriptInComment.java delete mode 100644 langtools/test/tools/javadoc/api/basic/TagletPathTest.java delete mode 100644 langtools/test/tools/javadoc/badSuper/BadSuper.java delete mode 100644 langtools/test/tools/javadoc/badSuper/p/A.java delete mode 100644 langtools/test/tools/javadoc/badSuper/p/B.java create mode 100644 langtools/test/tools/javadoc/lib/ToyDoclet.java delete mode 100644 langtools/test/tools/javadoc/sampleapi/SampleApiTest.java delete mode 100644 langtools/test/tools/javadoc/sampleapi/res/fx.xml delete mode 100644 langtools/test/tools/javadoc/sampleapi/res/simple.xml delete mode 100644 langtools/test/tools/javadoc/sampleapi/res/sub.xml delete mode 100644 langtools/test/tools/javadoc/sampleapi/res/tiny.xml diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/Taglet.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/Taglet.java deleted file mode 100644 index a1bf6c016ef..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/Taglet.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright (c) 2001, 2017, 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.doclets; - -import com.sun.javadoc.*; - -/** - * The interface for a custom tag used by Doclets. A custom - * tag must implement this interface. - * - *

    - * Note: This interface has been superseded by its replacement, - * {@link jdk.javadoc.doclet.Taglet}. - *

    - * - * To be loaded and used by - * doclets at run-time, the taglet must have a static method called - * register that accepts a {@link java.util.Map} as an - * argument with the following signature: - *
    - *   public void register(Map map)
    - * 
    - * This method should add an instance of the custom taglet to the map - * with the name of the taglet as the key. If overriding a taglet, - * to avoid a name conflict, the overridden taglet must be deleted from - * the map before an instance of the new taglet is added to the map. - *

    - * It is recommended that the taglet throw an exception when it fails - * to register itself. The exception that it throws is up to the user. - *

    - * Here are two sample taglets:
    - *

    - *

    - * For more information on how to create your own Taglets, please see the - * Taglet Overview. - * - * @since 1.4 - * @author Jamie Ho - * - * @deprecated - * This interface has been superseded by its replacement, - * {@link jdk.javadoc.doclet.Taglet}. - */ -@Deprecated -public interface Taglet { - - /** - * Return true if this Taglet - * is used in field documentation. Set to - * false for inline tags. - * @return true if this Taglet - * is used in field documentation and false - * otherwise. - */ - public abstract boolean inField(); - - /** - * Return true if this Taglet - * is used in constructor documentation. Set to - * false for inline tags. - * @return true if this Taglet - * is used in constructor documentation and false - * otherwise. - */ - public abstract boolean inConstructor(); - - /** - * Return true if this Taglet - * is used in method documentation. Set to - * false for inline tags. - * @return true if this Taglet - * is used in method documentation and false - * otherwise. - */ - public abstract boolean inMethod(); - - /** - * Return true if this Taglet - * is used in overview documentation. Set to - * false for inline tags. - * @return true if this Taglet - * is used in method documentation and false - * otherwise. - */ - public abstract boolean inOverview(); - - /** - * Return true if this Taglet - * is used in package documentation. Set to - * false for inline tags. - * @return true if this Taglet - * is used in package documentation and false - * otherwise. - */ - public abstract boolean inPackage(); - - /** - * Return true if this Taglet - * is used in type documentation (classes or - * interfaces). Set to false for inline tags. - * @return true if this Taglet - * is used in type documentation and false - * otherwise. - */ - public abstract boolean inType(); - - /** - * Return true if this Taglet - * is an inline tag. Return false otherwise. - * @return true if this Taglet - * is an inline tag and false otherwise. - */ - public abstract boolean isInlineTag(); - - /** - * Return the name of this custom tag. - * @return the name of this custom tag. - */ - public abstract String getName(); - - /** - * Given the Tag representation of this custom - * tag, return its string representation, which is output - * to the generated page. - * @param tag the Tag representation of this custom tag. - * @return the string representation of this Tag. - */ - public abstract String toString(Tag tag); - - /** - * Given an array of Tags representing this custom - * tag, return its string representation, which is output - * to the generated page. This method should - * return null if this taglet represents an inline tag. - * @param tags the array of Tags representing of this custom tag. - * @return the string representation of this Tag. - */ - public abstract String toString(Tag[] tags); - -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java deleted file mode 100644 index b86d03739f8..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java +++ /dev/null @@ -1,310 +0,0 @@ -/* - * Copyright (c) 1997, 2013, 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.doclets.formats.html; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Print method and constructor info. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert Field - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public abstract class AbstractExecutableMemberWriter extends AbstractMemberWriter { - - public AbstractExecutableMemberWriter(SubWriterHolderWriter writer, - ClassDoc classdoc) { - super(writer, classdoc); - } - - public AbstractExecutableMemberWriter(SubWriterHolderWriter writer) { - super(writer); - } - - /** - * Add the type parameters for the executable member. - * - * @param member the member to write type parameters for. - * @param htmltree the content tree to which the parameters will be added. - */ - protected void addTypeParameters(ExecutableMemberDoc member, Content htmltree) { - Content typeParameters = getTypeParameters(member); - if (!typeParameters.isEmpty()) { - htmltree.addContent(typeParameters); - htmltree.addContent(writer.getSpace()); - } - } - - /** - * Get the type parameters for the executable member. - * - * @param member the member for which to get the type parameters. - * @return the type parameters. - */ - protected Content getTypeParameters(ExecutableMemberDoc member) { - LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.MEMBER_TYPE_PARAMS, member); - return writer.getTypeParameterLinks(linkInfo); - } - - /** - * {@inheritDoc} - */ - protected Content getDeprecatedLink(ProgramElementDoc member) { - ExecutableMemberDoc emd = (ExecutableMemberDoc)member; - return writer.getDocLink(LinkInfoImpl.Kind.MEMBER, (MemberDoc) emd, - emd.qualifiedName() + emd.flatSignature()); - } - - /** - * Add the summary link for the member. - * - * @param context the id of the context where the link will be printed - * @param cd the classDoc that we should link to - * @param member the member being linked to - * @param tdSummary the content tree to which the link will be added - */ - protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, - Content tdSummary) { - ExecutableMemberDoc emd = (ExecutableMemberDoc)member; - String name = emd.name(); - Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, - writer.getDocLink(context, cd, (MemberDoc) emd, - name, false)); - Content code = HtmlTree.CODE(memberLink); - addParameters(emd, false, code, name.length() - 1); - tdSummary.addContent(code); - } - - /** - * Add the inherited summary link for the member. - * - * @param cd the classDoc that we should link to - * @param member the member being linked to - * @param linksTree the content tree to which the link will be added - */ - protected void addInheritedSummaryLink(ClassDoc cd, - ProgramElementDoc member, Content linksTree) { - linksTree.addContent( - writer.getDocLink(LinkInfoImpl.Kind.MEMBER, cd, (MemberDoc) member, - member.name(), false)); - } - - /** - * Add the parameter for the executable member. - * - * @param member the member to write parameter for. - * @param param the parameter that needs to be written. - * @param isVarArg true if this is a link to var arg. - * @param tree the content tree to which the parameter information will be added. - */ - protected void addParam(ExecutableMemberDoc member, Parameter param, - boolean isVarArg, Content tree) { - if (param.type() != null) { - Content link = writer.getLink(new LinkInfoImpl( - configuration, LinkInfoImpl.Kind.EXECUTABLE_MEMBER_PARAM, - param.type()).varargs(isVarArg)); - tree.addContent(link); - } - if(param.name().length() > 0) { - tree.addContent(writer.getSpace()); - tree.addContent(param.name()); - } - } - - /** - * Add the receiver annotations information. - * - * @param member the member to write receiver annotations for. - * @param rcvrType the receiver type. - * @param descList list of annotation description. - * @param tree the content tree to which the information will be added. - */ - protected void addReceiverAnnotations(ExecutableMemberDoc member, Type rcvrType, - AnnotationDesc[] descList, Content tree) { - writer.addReceiverAnnotationInfo(member, descList, tree); - tree.addContent(writer.getSpace()); - tree.addContent(rcvrType.typeName()); - LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_SIGNATURE, rcvrType); - tree.addContent(writer.getTypeParameterLinks(linkInfo)); - tree.addContent(writer.getSpace()); - tree.addContent("this"); - } - - - /** - * Add all the parameters for the executable member. - * - * @param member the member to write parameters for. - * @param htmltree the content tree to which the parameters information will be added. - */ - protected void addParameters(ExecutableMemberDoc member, Content htmltree, int indentSize) { - addParameters(member, true, htmltree, indentSize); - } - - /** - * Add all the parameters for the executable member. - * - * @param member the member to write parameters for. - * @param includeAnnotations true if annotation information needs to be added. - * @param htmltree the content tree to which the parameters information will be added. - */ - protected void addParameters(ExecutableMemberDoc member, - boolean includeAnnotations, Content htmltree, int indentSize) { - htmltree.addContent("("); - String sep = ""; - Parameter[] params = member.parameters(); - String indent = makeSpace(indentSize + 1); - Type rcvrType = member.receiverType(); - if (includeAnnotations && rcvrType instanceof AnnotatedType) { - AnnotationDesc[] descList = rcvrType.asAnnotatedType().annotations(); - if (descList.length > 0) { - addReceiverAnnotations(member, rcvrType, descList, htmltree); - sep = "," + DocletConstants.NL + indent; - } - } - int paramstart; - for (paramstart = 0; paramstart < params.length; paramstart++) { - htmltree.addContent(sep); - Parameter param = params[paramstart]; - if (!param.name().startsWith("this$")) { - if (includeAnnotations) { - boolean foundAnnotations = - writer.addAnnotationInfo(indent.length(), - member, param, htmltree); - if (foundAnnotations) { - htmltree.addContent(DocletConstants.NL); - htmltree.addContent(indent); - } - } - addParam(member, param, - (paramstart == params.length - 1) && member.isVarArgs(), htmltree); - break; - } - } - - for (int i = paramstart + 1; i < params.length; i++) { - htmltree.addContent(","); - htmltree.addContent(DocletConstants.NL); - htmltree.addContent(indent); - if (includeAnnotations) { - boolean foundAnnotations = - writer.addAnnotationInfo(indent.length(), member, params[i], - htmltree); - if (foundAnnotations) { - htmltree.addContent(DocletConstants.NL); - htmltree.addContent(indent); - } - } - addParam(member, params[i], (i == params.length - 1) && member.isVarArgs(), - htmltree); - } - htmltree.addContent(")"); - } - - /** - * Add exceptions for the executable member. - * - * @param member the member to write exceptions for. - * @param htmltree the content tree to which the exceptions information will be added. - */ - protected void addExceptions(ExecutableMemberDoc member, Content htmltree, int indentSize) { - Type[] exceptions = member.thrownExceptionTypes(); - if (exceptions.length > 0) { - LinkInfoImpl memberTypeParam = new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.MEMBER, member); - String indent = makeSpace(indentSize + 1 - 7); - htmltree.addContent(DocletConstants.NL); - htmltree.addContent(indent); - htmltree.addContent("throws "); - indent = makeSpace(indentSize + 1); - Content link = writer.getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.MEMBER, exceptions[0])); - htmltree.addContent(link); - for(int i = 1; i < exceptions.length; i++) { - htmltree.addContent(","); - htmltree.addContent(DocletConstants.NL); - htmltree.addContent(indent); - Content exceptionLink = writer.getLink(new LinkInfoImpl( - configuration, LinkInfoImpl.Kind.MEMBER, exceptions[i])); - htmltree.addContent(exceptionLink); - } - } - } - - protected ClassDoc implementsMethodInIntfac(MethodDoc method, - ClassDoc[] intfacs) { - for (ClassDoc intf : intfacs) { - MethodDoc[] methods = intf.methods(); - if (methods.length > 0) { - for (MethodDoc md : methods) { - if (md.name().equals(method.name()) && - md.signature().equals(method.signature())) { - return intf; - } - } - } - } - return null; - } - - /** - * For backward compatibility, include an anchor using the erasures of the - * parameters. NOTE: We won't need this method anymore after we fix - * see tags so that they use the type instead of the erasure. - * - * @param emd the ExecutableMemberDoc to anchor to. - * @return the 1.4.x style anchor for the ExecutableMemberDoc. - */ - protected String getErasureAnchor(ExecutableMemberDoc emd) { - StringBuilder buf = new StringBuilder(emd.name() + "("); - Parameter[] params = emd.parameters(); - boolean foundTypeVariable = false; - for (int i = 0; i < params.length; i++) { - if (i > 0) { - buf.append(","); - } - Type t = params[i].type(); - foundTypeVariable = foundTypeVariable || t.asTypeVariable() != null; - buf.append(t.isPrimitive() ? - t.typeName() : t.asClassDoc().qualifiedName()); - buf.append(t.dimension()); - } - buf.append(")"); - return foundTypeVariable ? writer.getName(buf.toString()) : null; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java deleted file mode 100644 index afcceca1990..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java +++ /dev/null @@ -1,436 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; -import java.nio.file.*; -import java.util.zip.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate Index for all the Member Names with Indexing in - * Unicode Order. This class is a base class for {@link SingleIndexWriter} and - * {@link SplitIndexWriter}. It uses the functionality from - * {@link HtmlDocletWriter} to generate the Index Contents. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @see IndexBuilder - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class AbstractIndexWriter extends HtmlDocletWriter { - - /** - * The index of all the members with unicode character. - */ - protected IndexBuilder indexbuilder; - - /** - * This constructor will be used by {@link SplitIndexWriter}. Initializes - * path to this file and relative path from this file. - * - * @param configuration The current configuration - * @param path Path to the file which is getting generated. - * @param indexbuilder Unicode based Index from {@link IndexBuilder} - */ - protected AbstractIndexWriter(ConfigurationImpl configuration, - DocPath path, - IndexBuilder indexbuilder) - throws IOException { - super(configuration, path); - this.indexbuilder = indexbuilder; - } - - /** - * Get the index label for navigation bar. - * - * @return a content tree for the tree label - */ - protected Content getNavLinkIndex() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, indexLabel); - return li; - } - - /** - * Add the member information for the unicode character along with the - * list of the members. - * - * @param uc Unicode for which member list information to be generated - * @param memberlist List of members for the unicode character - * @param contentTree the content tree to which the information will be added - */ - protected void addContents(Character uc, List memberlist, - Content contentTree) { - addHeading(uc, contentTree); - int memberListSize = memberlist.size(); - // Display the list only if there are elements to be displayed. - if (memberListSize > 0) { - Content dl = new HtmlTree(HtmlTag.DL); - for (Doc element : memberlist) { - addDescription(dl, element); - } - contentTree.addContent(dl); - } - } - - protected void addSearchContents(Character uc, List searchList, - Content contentTree) { - addHeading(uc, contentTree); - // Display the list only if there are elements to be displayed. - if (!searchList.isEmpty()) { - Content dl = new HtmlTree(HtmlTag.DL); - for (SearchIndexItem sii : searchList) { - addDescription(sii, dl); - } - contentTree.addContent(dl); - } - } - - protected void addContents(Character uc, List memberlist, List searchList, - Content contentTree) { - addHeading(uc, contentTree); - int memberListSize = memberlist.size(); - int searchListSize = searchList.size(); - int i = 0; - int j = 0; - Content dl = new HtmlTree(HtmlTag.DL); - while (i < memberListSize && j < searchListSize) { - if (memberlist.get(i).name().compareTo(searchList.get(j).getLabel()) < 0) { - addDescription(dl, memberlist.get(i)); - i++; - } else if (memberlist.get(i).name().compareTo(searchList.get(j).getLabel()) > 0) { - addDescription(searchList.get(j), dl); - j++; - } else { - addDescription(dl, memberlist.get(i)); - addDescription(searchList.get(j), dl); - j++; - i++; - } - } - if (i >= memberListSize) { - while (j < searchListSize) { - addDescription(searchList.get(j), dl); - j++; - } - } - if (j >= searchListSize) { - while (i < memberListSize) { - addDescription(dl, memberlist.get(i)); - i++; - } - } - contentTree.addContent(dl); - } - - protected void addHeading(Character uc, Content contentTree) { - String unicode = uc.toString(); - contentTree.addContent(getMarkerAnchorForIndex(unicode)); - Content headContent = new StringContent(unicode); - Content heading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, false, - HtmlStyle.title, headContent); - contentTree.addContent(heading); - } - - protected void addDescription(Content dl, Doc element) { - SearchIndexItem si = new SearchIndexItem(); - if (element instanceof MemberDoc) { - addDescription((MemberDoc) element, dl, si); - configuration.memberSearchIndex.add(si); - } else if (element instanceof ClassDoc) { - addDescription((ClassDoc) element, dl, si); - configuration.typeSearchIndex.add(si); - } else if (element instanceof PackageDoc) { - addDescription((PackageDoc) element, dl, si); - configuration.packageSearchIndex.add(si); - } - } - /** - * Add one line summary comment for the package. - * - * @param pkg the package to be documented - * @param dlTree the content tree to which the description will be added - */ - protected void addDescription(PackageDoc pkg, Content dlTree, SearchIndexItem si) { - Content link = getPackageLink(pkg, new StringContent(utils.getPackageName(pkg))); - si.setLabel(utils.getPackageName(pkg)); - si.setCategory(getResource("doclet.Packages").toString()); - Content dt = HtmlTree.DT(link); - dt.addContent(" - "); - dt.addContent(getResource("doclet.package")); - dt.addContent(" " + pkg.name()); - dlTree.addContent(dt); - Content dd = new HtmlTree(HtmlTag.DD); - addSummaryComment(pkg, dd); - dlTree.addContent(dd); - } - - /** - * Add one line summary comment for the class. - * - * @param cd the class being documented - * @param dlTree the content tree to which the description will be added - */ - protected void addDescription(ClassDoc cd, Content dlTree, SearchIndexItem si) { - Content link = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.INDEX, cd).strong(true)); - si.setContainingPackage(utils.getPackageName(cd.containingPackage())); - si.setLabel(cd.typeName()); - si.setCategory(getResource("doclet.Types").toString()); - Content dt = HtmlTree.DT(link); - dt.addContent(" - "); - addClassInfo(cd, dt); - dlTree.addContent(dt); - Content dd = new HtmlTree(HtmlTag.DD); - addComment(cd, dd); - dlTree.addContent(dd); - } - - /** - * Add the classkind (class, interface, exception), error of the class - * passed. - * - * @param cd the class being documented - * @param contentTree the content tree to which the class info will be added - */ - protected void addClassInfo(ClassDoc cd, Content contentTree) { - contentTree.addContent(getResource("doclet.in", - utils.getTypeName(configuration, cd, false), - getPackageLink(cd.containingPackage(), - utils.getPackageName(cd.containingPackage())) - )); - } - - /** - * Add description for Class, Field, Method or Constructor. - * - * @param member MemberDoc for the member of the Class Kind - * @param dlTree the content tree to which the description will be added - */ - protected void addDescription(MemberDoc member, Content dlTree, SearchIndexItem si) { - String name = (member instanceof ExecutableMemberDoc)? - member.name() + ((ExecutableMemberDoc)member).flatSignature() : - member.name(); - si.setContainingPackage(utils.getPackageName((member.containingClass()).containingPackage())); - si.setContainingClass((member.containingClass()).typeName()); - if (member instanceof ExecutableMemberDoc) { - ExecutableMemberDoc emd = (ExecutableMemberDoc)member; - si.setLabel(member.name() + emd.flatSignature()); - if (!((emd.signature()).equals(emd.flatSignature()))) { - si.setUrl(getName(getAnchor((ExecutableMemberDoc) member))); - } - } else { - si.setLabel(member.name()); - } - si.setCategory(getResource("doclet.Members").toString()); - Content span = HtmlTree.SPAN(HtmlStyle.memberNameLink, - getDocLink(LinkInfoImpl.Kind.INDEX, member, name)); - Content dt = HtmlTree.DT(span); - dt.addContent(" - "); - addMemberDesc(member, dt); - dlTree.addContent(dt); - Content dd = new HtmlTree(HtmlTag.DD); - addComment(member, dd); - dlTree.addContent(dd); - } - - protected void addDescription(SearchIndexItem sii, Content dlTree) { - String path = pathToRoot.isEmpty() ? "" : pathToRoot.getPath() + "/"; - path += sii.getUrl(); - HtmlTree labelLink = HtmlTree.A(path, new StringContent(sii.getLabel())); - Content dt = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.searchTagLink, labelLink)); - dt.addContent(" - "); - dt.addContent(getResource("doclet.Search_tag_in", sii.getHolder())); - dlTree.addContent(dt); - Content dd = new HtmlTree(HtmlTag.DD); - if (sii.getDescription().isEmpty()) { - dd.addContent(getSpace()); - } else { - dd.addContent(sii.getDescription()); - } - dlTree.addContent(dd); - } - - /** - * Add comment for each element in the index. If the element is deprecated - * and it has a @deprecated tag, use that comment. Else if the containing - * class for this element is deprecated, then add the word "Deprecated." at - * the start and then print the normal comment. - * - * @param element Index element - * @param contentTree the content tree to which the comment will be added - */ - protected void addComment(ProgramElementDoc element, Content contentTree) { - Tag[] tags; - Content span = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.block); - if (utils.isDeprecated(element)) { - div.addContent(span); - if ((tags = element.tags("deprecated")).length > 0) - addInlineDeprecatedComment(element, tags[0], div); - contentTree.addContent(div); - } else { - ClassDoc cont = element.containingClass(); - while (cont != null) { - if (utils.isDeprecated(cont)) { - div.addContent(span); - contentTree.addContent(div); - break; - } - cont = cont.containingClass(); - } - addSummaryComment(element, contentTree); - } - } - - /** - * Add description about the Static Varible/Method/Constructor for a - * member. - * - * @param member MemberDoc for the member within the Class Kind - * @param contentTree the content tree to which the member description will be added - */ - protected void addMemberDesc(MemberDoc member, Content contentTree) { - ClassDoc containing = member.containingClass(); - String classdesc = utils.getTypeName( - configuration, containing, true) + " "; - if (member.isField()) { - if (member.isStatic()) { - contentTree.addContent( - getResource("doclet.Static_variable_in", classdesc)); - } else { - contentTree.addContent( - getResource("doclet.Variable_in", classdesc)); - } - } else if (member.isConstructor()) { - contentTree.addContent( - getResource("doclet.Constructor_for", classdesc)); - } else if (member.isMethod()) { - if (member.isStatic()) { - contentTree.addContent( - getResource("doclet.Static_method_in", classdesc)); - } else { - contentTree.addContent( - getResource("doclet.Method_in", classdesc)); - } - } - addPreQualifiedClassLink(LinkInfoImpl.Kind.INDEX, containing, - false, contentTree); - } - - /** - * Get the marker anchor which will be added to the index documentation tree. - * - * @param anchorNameForIndex the anchor name attribute for index page - * @return a content tree for the marker anchor - */ - public Content getMarkerAnchorForIndex(String anchorNameForIndex) { - return getMarkerAnchor(getNameForIndex(anchorNameForIndex), null); - } - - /** - * Generate a valid HTML name for member index page. - * - * @param unicode the string that needs to be converted to valid HTML name. - * @return a valid HTML name string. - */ - public String getNameForIndex(String unicode) { - return "I:" + getName(unicode); - } - - protected void createSearchIndexFiles() { - createSearchIndexFile(DocPaths.PACKAGE_SEARCH_INDEX_JSON, DocPaths.PACKAGE_SEARCH_INDEX_ZIP, - configuration.packageSearchIndex); - createSearchIndexFile(DocPaths.TYPE_SEARCH_INDEX_JSON, DocPaths.TYPE_SEARCH_INDEX_ZIP, - configuration.typeSearchIndex); - createSearchIndexFile(DocPaths.MEMBER_SEARCH_INDEX_JSON, DocPaths.MEMBER_SEARCH_INDEX_ZIP, - configuration.memberSearchIndex); - createSearchIndexFile(DocPaths.TAG_SEARCH_INDEX_JSON, DocPaths.TAG_SEARCH_INDEX_ZIP, - configuration.tagSearchIndex); - } - - protected void createSearchIndexFile(DocPath searchIndexFile, DocPath searchIndexZip, - List searchIndex) { - if (!searchIndex.isEmpty()) { - try { - StringBuilder searchVar = new StringBuilder("["); - boolean first = true; - DocFile searchFile = DocFile.createFileForOutput(configuration, searchIndexFile); - Path p = Paths.get(searchFile.getPath()); - for (SearchIndexItem item : searchIndex) { - if (first) { - searchVar.append(item.toString()); - first = false; - } else { - searchVar.append(",").append(item.toString()); - } - } - searchVar.append("]"); - Files.write(p, searchVar.toString().getBytes()); - DocFile zipFile = DocFile.createFileForOutput(configuration, searchIndexZip); - try (FileOutputStream fos = new FileOutputStream(zipFile.getPath()); - ZipOutputStream zos = new ZipOutputStream(fos)) { - zipFile(searchFile.getPath(), searchIndexFile, zos); - } - Files.delete(p); - } catch (IOException ie) { - throw new DocletAbortException(ie); - } - } - } - - protected void zipFile(String inputFile, DocPath file, ZipOutputStream zos) { - try { - try { - ZipEntry ze = new ZipEntry(file.getPath()); - zos.putNextEntry(ze); - try (FileInputStream fis = new FileInputStream(new File(inputFile))) { - byte[] buf = new byte[2048]; - int len = fis.read(buf); - while (len > 0) { - zos.write(buf, 0, len); - len = fis.read(buf); - } - } - } finally { - zos.closeEntry(); - } - } catch (IOException e) { - throw new DocletAbortException(e); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java deleted file mode 100644 index b50374e7ba6..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java +++ /dev/null @@ -1,699 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.lang.reflect.Modifier; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.taglets.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * The base class for member writers. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert Field - * @author Atul M Dambalkar - * @author Jamie Ho (Re-write) - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public abstract class AbstractMemberWriter { - - protected final ConfigurationImpl configuration; - protected final Utils utils; - protected final SubWriterHolderWriter writer; - protected final ClassDoc classdoc; - protected Map typeMap = new LinkedHashMap<>(); - protected Set methodTypes = EnumSet.noneOf(MethodTypes.class); - private int methodTypesOr = 0; - public final boolean nodepr; - - protected boolean printedSummaryHeader = false; - - public AbstractMemberWriter(SubWriterHolderWriter writer, ClassDoc classdoc) { - this.configuration = writer.configuration; - this.writer = writer; - this.nodepr = configuration.nodeprecated; - this.classdoc = classdoc; - this.utils = writer.configuration.utils; - } - - public AbstractMemberWriter(SubWriterHolderWriter writer) { - this(writer, null); - } - - /*** abstracts ***/ - - /** - * Add the summary label for the member. - * - * @param memberTree the content tree to which the label will be added - */ - public abstract void addSummaryLabel(Content memberTree); - - /** - * Get the summary for the member summary table. - * - * @return a string for the table summary - */ - public abstract String getTableSummary(); - - /** - * Get the caption for the member summary table. - * - * @return a string for the table caption - */ - public abstract Content getCaption(); - - /** - * Get the summary table header for the member. - * - * @param member the member to be documented - * @return the summary table header - */ - public abstract String[] getSummaryTableHeader(ProgramElementDoc member); - - /** - * Add inherited summary lable for the member. - * - * @param cd the class doc to which to link to - * @param inheritedTree the content tree to which the inherited summary label will be added - */ - public abstract void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree); - - /** - * Add the anchor for the summary section of the member. - * - * @param cd the class doc to be documented - * @param memberTree the content tree to which the summary anchor will be added - */ - public abstract void addSummaryAnchor(ClassDoc cd, Content memberTree); - - /** - * Add the anchor for the inherited summary section of the member. - * - * @param cd the class doc to be documented - * @param inheritedTree the content tree to which the inherited summary anchor will be added - */ - public abstract void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree); - - /** - * Add the summary type for the member. - * - * @param member the member to be documented - * @param tdSummaryType the content tree to which the type will be added - */ - protected abstract void addSummaryType(ProgramElementDoc member, - Content tdSummaryType); - - /** - * Add the summary link for the member. - * - * @param cd the class doc to be documented - * @param member the member to be documented - * @param tdSummary the content tree to which the link will be added - */ - protected void addSummaryLink(ClassDoc cd, ProgramElementDoc member, - Content tdSummary) { - addSummaryLink(LinkInfoImpl.Kind.MEMBER, cd, member, tdSummary); - } - - /** - * Add the summary link for the member. - * - * @param context the id of the context where the link will be printed - * @param cd the class doc to be documented - * @param member the member to be documented - * @param tdSummary the content tree to which the summary link will be added - */ - protected abstract void addSummaryLink(LinkInfoImpl.Kind context, - ClassDoc cd, ProgramElementDoc member, Content tdSummary); - - /** - * Add the inherited summary link for the member. - * - * @param cd the class doc to be documented - * @param member the member to be documented - * @param linksTree the content tree to which the inherited summary link will be added - */ - protected abstract void addInheritedSummaryLink(ClassDoc cd, - ProgramElementDoc member, Content linksTree); - - /** - * Get the deprecated link. - * - * @param member the member being linked to - * @return a content tree representing the link - */ - protected abstract Content getDeprecatedLink(ProgramElementDoc member); - - /** - * Get the navigation summary link. - * - * @param cd the class doc to be documented - * @param link true if its a link else the label to be printed - * @return a content tree for the navigation summary link. - */ - protected abstract Content getNavSummaryLink(ClassDoc cd, boolean link); - - /** - * Add the navigation detail link. - * - * @param link true if its a link else the label to be printed - * @param liNav the content tree to which the navigation detail link will be added - */ - protected abstract void addNavDetailLink(boolean link, Content liNav); - - /** - * Add the member name to the content tree. - * - * @param name the member name to be added to the content tree. - * @param htmltree the content tree to which the name will be added. - */ - protected void addName(String name, Content htmltree) { - htmltree.addContent(name); - } - - /** - * Return a string describing the access modifier flags. - * Don't include native or synchronized. - * - * The modifier names are returned in canonical order, as - * specified by The Java Language Specification. - */ - protected String modifierString(MemberDoc member) { - int ms = member.modifierSpecifier(); - int no = Modifier.NATIVE | Modifier.SYNCHRONIZED; - return Modifier.toString(ms & ~no); - } - - protected String typeString(MemberDoc member) { - String type = ""; - if (member instanceof MethodDoc) { - type = ((MethodDoc)member).returnType().toString(); - } else if (member instanceof FieldDoc) { - type = ((FieldDoc)member).type().toString(); - } - return type; - } - - /** - * Add the modifier for the member. - * - * @param member the member for which teh modifier will be added. - * @param htmltree the content tree to which the modifier information will be added. - */ - protected void addModifiers(MemberDoc member, Content htmltree) { - String mod = modifierString(member); - // According to JLS, we should not be showing public modifier for - // interface methods. - if ((member.isField() || member.isMethod()) && - writer instanceof ClassWriterImpl && - ((ClassWriterImpl) writer).getClassDoc().isInterface()) { - // This check for isDefault() and the default modifier needs to be - // added for it to appear on the method details section. Once the - // default modifier is added to the Modifier list on DocEnv and once - // it is updated to use the javax.lang.model.element.Modifier, we - // will need to remove this. - mod = (member.isMethod() && ((MethodDoc)member).isDefault()) ? - utils.replaceText(mod, "public", "default").trim() : - utils.replaceText(mod, "public", "").trim(); - } - if(mod.length() > 0) { - htmltree.addContent(mod); - htmltree.addContent(writer.getSpace()); - } - } - - protected String makeSpace(int len) { - if (len <= 0) { - return ""; - } - StringBuilder sb = new StringBuilder(len); - for (int i = 0; i < len; i++) { - sb.append(' '); - } - return sb.toString(); - } - - /** - * Add the modifier and type for the member in the member summary. - * - * @param member the member to add the type for - * @param type the type to add - * @param tdSummaryType the content tree to which the modified and type will be added - */ - protected void addModifierAndType(ProgramElementDoc member, Type type, - Content tdSummaryType) { - HtmlTree code = new HtmlTree(HtmlTag.CODE); - addModifier(member, code); - if (type == null) { - if (member.isClass()) { - code.addContent("class"); - } else { - code.addContent("interface"); - } - code.addContent(writer.getSpace()); - } else { - if (member instanceof ExecutableMemberDoc && - ((ExecutableMemberDoc) member).typeParameters().length > 0) { - Content typeParameters = ((AbstractExecutableMemberWriter) this).getTypeParameters( - (ExecutableMemberDoc) member); - code.addContent(typeParameters); - //Code to avoid ugly wrapping in member summary table. - if (typeParameters.charCount() > 10) { - code.addContent(new HtmlTree(HtmlTag.BR)); - } else { - code.addContent(writer.getSpace()); - } - code.addContent( - writer.getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.SUMMARY_RETURN_TYPE, type))); - } else { - code.addContent( - writer.getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.SUMMARY_RETURN_TYPE, type))); - } - - } - tdSummaryType.addContent(code); - } - - /** - * Add the modifier for the member. - * - * @param member the member to add the type for - * @param code the content tree to which the modified will be added - */ - private void addModifier(ProgramElementDoc member, Content code) { - if (member.isProtected()) { - code.addContent("protected "); - } else if (member.isPrivate()) { - code.addContent("private "); - } else if (!member.isPublic()) { // Package private - code.addContent(configuration.getText("doclet.Package_private")); - code.addContent(" "); - } - if (member.isMethod()) { - if (!(member.containingClass().isInterface()) && - ((MethodDoc)member).isAbstract()) { - code.addContent("abstract "); - } - // This check for isDefault() and the default modifier needs to be - // added for it to appear on the "Modifier and Type" column in the - // method summary section. Once the default modifier is added - // to the Modifier list on DocEnv and once it is updated to use the - // javax.lang.model.element.Modifier, we will need to remove this. - if (((MethodDoc)member).isDefault()) { - code.addContent("default "); - } - } - if (member.isStatic()) { - code.addContent("static "); - } - } - - /** - * Add the deprecated information for the given member. - * - * @param member the member being documented. - * @param contentTree the content tree to which the deprecated information will be added. - */ - protected void addDeprecatedInfo(ProgramElementDoc member, Content contentTree) { - Content output = (new DeprecatedTaglet()).getTagletOutput(member, - writer.getTagletWriterInstance(false)); - if (!output.isEmpty()) { - Content deprecatedContent = output; - Content div = HtmlTree.DIV(HtmlStyle.block, deprecatedContent); - contentTree.addContent(div); - } - } - - /** - * Add the comment for the given member. - * - * @param member the member being documented. - * @param htmltree the content tree to which the comment will be added. - */ - protected void addComment(ProgramElementDoc member, Content htmltree) { - if (member.inlineTags().length > 0) { - writer.addInlineComment(member, htmltree); - } - } - - protected String name(ProgramElementDoc member) { - return member.name(); - } - - /** - * Get the header for the section. - * - * @param member the member being documented. - * @return a header content for the section. - */ - protected Content getHead(MemberDoc member) { - Content memberContent = new StringContent(member.name()); - Content heading = HtmlTree.HEADING(HtmlConstants.MEMBER_HEADING, memberContent); - return heading; - } - - /** - * Return true if the given ProgramElement is inherited - * by the class that is being documented. - * - * @param ped The ProgramElement being checked. - * return true if the ProgramElement is being inherited and - * false otherwise. - */ - protected boolean isInherited(ProgramElementDoc ped){ - if(ped.isPrivate() || (ped.isPackagePrivate() && - ! ped.containingPackage().equals(classdoc.containingPackage()))){ - return false; - } - return true; - } - - /** - * Add deprecated information to the documentation tree - * - * @param deprmembers list of deprecated members - * @param headingKey the caption for the deprecated members table - * @param tableSummary the summary for the deprecated members table - * @param tableHeader table headers for the deprecated members table - * @param contentTree the content tree to which the deprecated members table will be added - */ - protected void addDeprecatedAPI(List deprmembers, String headingKey, - String tableSummary, String[] tableHeader, Content contentTree) { - if (deprmembers.size() > 0) { - Content caption = writer.getTableCaption(configuration.getResource(headingKey)); - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.deprecatedSummary, caption) - : HtmlTree.TABLE(HtmlStyle.deprecatedSummary, tableSummary, caption); - table.addContent(writer.getSummaryTableHeader(tableHeader, "col")); - Content tbody = new HtmlTree(HtmlTag.TBODY); - for (int i = 0; i < deprmembers.size(); i++) { - ProgramElementDoc member =(ProgramElementDoc)deprmembers.get(i); - HtmlTree td = HtmlTree.TD(HtmlStyle.colOne, getDeprecatedLink(member)); - if (member.tags("deprecated").length > 0) - writer.addInlineDeprecatedComment(member, - member.tags("deprecated")[0], td); - HtmlTree tr = HtmlTree.TR(td); - if (i%2 == 0) - tr.addStyle(HtmlStyle.altColor); - else - tr.addStyle(HtmlStyle.rowColor); - tbody.addContent(tr); - } - table.addContent(tbody); - Content li = HtmlTree.LI(HtmlStyle.blockList, table); - Content ul = HtmlTree.UL(HtmlStyle.blockList, li); - contentTree.addContent(ul); - } - } - - /** - * Add use information to the documentation tree. - * - * @param mems list of program elements for which the use information will be added - * @param heading the section heading - * @param tableSummary the summary for the use table - * @param contentTree the content tree to which the use information will be added - */ - protected void addUseInfo(List mems, - Content heading, String tableSummary, Content contentTree) { - if (mems == null) { - return; - } - List members = mems; - boolean printedUseTableHeader = false; - if (members.size() > 0) { - Content caption = writer.getTableCaption(heading); - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.useSummary, caption) - : HtmlTree.TABLE(HtmlStyle.useSummary, tableSummary, caption); - Content tbody = new HtmlTree(HtmlTag.TBODY); - Iterator it = members.iterator(); - for (int i = 0; it.hasNext(); i++) { - ProgramElementDoc pgmdoc = it.next(); - ClassDoc cd = pgmdoc.containingClass(); - if (!printedUseTableHeader) { - table.addContent(writer.getSummaryTableHeader( - this.getSummaryTableHeader(pgmdoc), "col")); - printedUseTableHeader = true; - } - HtmlTree tr = new HtmlTree(HtmlTag.TR); - if (i % 2 == 0) { - tr.addStyle(HtmlStyle.altColor); - } else { - tr.addStyle(HtmlStyle.rowColor); - } - HtmlTree tdFirst = new HtmlTree(HtmlTag.TD); - tdFirst.addStyle(HtmlStyle.colFirst); - writer.addSummaryType(this, pgmdoc, tdFirst); - tr.addContent(tdFirst); - HtmlTree tdLast = new HtmlTree(HtmlTag.TD); - tdLast.addStyle(HtmlStyle.colLast); - if (cd != null && !(pgmdoc instanceof ConstructorDoc) - && !(pgmdoc instanceof ClassDoc)) { - HtmlTree name = new HtmlTree(HtmlTag.SPAN); - name.addStyle(HtmlStyle.typeNameLabel); - name.addContent(cd.name() + "."); - tdLast.addContent(name); - } - addSummaryLink(pgmdoc instanceof ClassDoc ? - LinkInfoImpl.Kind.CLASS_USE : LinkInfoImpl.Kind.MEMBER, - cd, pgmdoc, tdLast); - writer.addSummaryLinkComment(this, pgmdoc, tdLast); - tr.addContent(tdLast); - tbody.addContent(tr); - } - table.addContent(tbody); - contentTree.addContent(table); - } - } - - /** - * Add the navigation detail link. - * - * @param members the members to be linked - * @param liNav the content tree to which the navigation detail link will be added - */ - protected void addNavDetailLink(List members, Content liNav) { - addNavDetailLink(members.size() > 0 ? true : false, liNav); - } - - /** - * Add the navigation summary link. - * - * @param members members to be linked - * @param visibleMemberMap the visible inherited members map - * @param liNav the content tree to which the navigation summary link will be added - */ - protected void addNavSummaryLink(List members, - VisibleMemberMap visibleMemberMap, Content liNav) { - if (members.size() > 0) { - liNav.addContent(getNavSummaryLink(null, true)); - return; - } - ClassDoc icd = classdoc.superclass(); - while (icd != null) { - List inhmembers = visibleMemberMap.getMembersFor(icd); - if (inhmembers.size() > 0) { - liNav.addContent(getNavSummaryLink(icd, true)); - return; - } - icd = icd.superclass(); - } - liNav.addContent(getNavSummaryLink(null, false)); - } - - protected void serialWarning(SourcePosition pos, String key, String a1, String a2) { - if (configuration.serialwarn) { - configuration.getDocletSpecificMsg().warning(pos, key, a1, a2); - } - } - - public ProgramElementDoc[] eligibleMembers(ProgramElementDoc[] members) { - return nodepr? utils.excludeDeprecatedMembers(members): members; - } - - /** - * Add the member summary for the given class. - * - * @param classDoc the class that is being documented - * @param member the member being documented - * @param firstSentenceTags the first sentence tags to be added to the summary - * @param tableContents the list of contents to which the documentation will be added - * @param counter the counter for determining id and style for the table row - */ - public void addMemberSummary(ClassDoc classDoc, ProgramElementDoc member, - Tag[] firstSentenceTags, List tableContents, int counter) { - HtmlTree tdSummaryType = new HtmlTree(HtmlTag.TD); - tdSummaryType.addStyle(HtmlStyle.colFirst); - writer.addSummaryType(this, member, tdSummaryType); - HtmlTree tdSummary = new HtmlTree(HtmlTag.TD); - setSummaryColumnStyle(tdSummary); - addSummaryLink(classDoc, member, tdSummary); - writer.addSummaryLinkComment(this, member, firstSentenceTags, tdSummary); - HtmlTree tr = HtmlTree.TR(tdSummaryType); - tr.addContent(tdSummary); - if (member instanceof MethodDoc && !member.isAnnotationTypeElement()) { - int methodType = (member.isStatic()) ? MethodTypes.STATIC.value() : - MethodTypes.INSTANCE.value(); - if (member.containingClass().isInterface()) { - methodType = (((MethodDoc) member).isAbstract()) - ? methodType | MethodTypes.ABSTRACT.value() - : methodType | MethodTypes.DEFAULT.value(); - } else { - methodType = (((MethodDoc) member).isAbstract()) - ? methodType | MethodTypes.ABSTRACT.value() - : methodType | MethodTypes.CONCRETE.value(); - } - if (utils.isDeprecated(member) || utils.isDeprecated(classdoc)) { - methodType = methodType | MethodTypes.DEPRECATED.value(); - } - methodTypesOr = methodTypesOr | methodType; - String tableId = "i" + counter; - typeMap.put(tableId, methodType); - tr.addAttr(HtmlAttr.ID, tableId); - } - if (counter%2 == 0) - tr.addStyle(HtmlStyle.altColor); - else - tr.addStyle(HtmlStyle.rowColor); - tableContents.add(tr); - } - - /** - * Generate the method types set and return true if the method summary table - * needs to show tabs. - * - * @return true if the table should show tabs - */ - public boolean showTabs() { - int value; - for (MethodTypes type : EnumSet.allOf(MethodTypes.class)) { - value = type.value(); - if ((value & methodTypesOr) == value) { - methodTypes.add(type); - } - } - boolean showTabs = methodTypes.size() > 1; - if (showTabs) { - methodTypes.add(MethodTypes.ALL); - } - return showTabs; - } - - /** - * Set the style for the summary column. - * - * @param tdTree the column for which the style will be set - */ - public void setSummaryColumnStyle(HtmlTree tdTree) { - tdTree.addStyle(HtmlStyle.colLast); - } - - /** - * Add inherited member summary for the given class and member. - * - * @param classDoc the class the inherited member belongs to - * @param nestedClass the inherited member that is summarized - * @param isFirst true if this is the first member in the list - * @param isLast true if this is the last member in the list - * @param linksTree the content tree to which the summary will be added - */ - public void addInheritedMemberSummary(ClassDoc classDoc, - ProgramElementDoc nestedClass, boolean isFirst, boolean isLast, - Content linksTree) { - writer.addInheritedMemberSummary(this, classDoc, nestedClass, isFirst, - linksTree); - } - - /** - * Get the inherited summary header for the given class. - * - * @param classDoc the class the inherited member belongs to - * @return a content tree for the inherited summary header - */ - public Content getInheritedSummaryHeader(ClassDoc classDoc) { - Content inheritedTree = writer.getMemberTreeHeader(); - writer.addInheritedSummaryHeader(this, classDoc, inheritedTree); - return inheritedTree; - } - - /** - * Get the inherited summary links tree. - * - * @return a content tree for the inherited summary links - */ - public Content getInheritedSummaryLinksTree() { - return new HtmlTree(HtmlTag.CODE); - } - - /** - * Get the summary table tree for the given class. - * - * @param classDoc the class for which the summary table is generated - * @param tableContents list of contents to be displayed in the summary table - * @return a content tree for the summary table - */ - public Content getSummaryTableTree(ClassDoc classDoc, List tableContents) { - return writer.getSummaryTableTree(this, classDoc, tableContents, showTabs()); - } - - /** - * Get the member tree to be documented. - * - * @param memberTree the content tree of member to be documented - * @return a content tree that will be added to the class documentation - */ - public Content getMemberTree(Content memberTree) { - return writer.getMemberTree(memberTree); - } - - /** - * Get the member tree to be documented. - * - * @param memberTree the content tree of member to be documented - * @param isLastContent true if the content to be added is the last content - * @return a content tree that will be added to the class documentation - */ - public Content getMemberTree(Content memberTree, boolean isLastContent) { - if (isLastContent) - return HtmlTree.UL(HtmlStyle.blockListLast, memberTree); - else - return HtmlTree.UL(HtmlStyle.blockList, memberTree); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java deleted file mode 100644 index 23b71ebcdda..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright (c) 1998, 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 com.sun.tools.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.DocPath; - -/** - * Abstract class to generate the overview files in - * Frame and Non-Frame format. This will be sub-classed by to - * generate overview-frame.html as well as overview-summary.html. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public abstract class AbstractPackageIndexWriter extends HtmlDocletWriter { - - /** - * A Set of Packages to be documented. - */ - protected SortedSet packages; - - /** - * Constructor. Also initializes the packages variable. - * - * @param configuration The current configuration - * @param filename Name of the package index file to be generated. - */ - public AbstractPackageIndexWriter(ConfigurationImpl configuration, - DocPath filename) throws IOException { - super(configuration, filename); - packages = configuration.packages; - } - - /** - * Adds the navigation bar header to the documentation tree. - * - * @param body the document tree to which the navigation bar header will be added - */ - protected abstract void addNavigationBarHeader(Content body); - - /** - * Adds the navigation bar footer to the documentation tree. - * - * @param body the document tree to which the navigation bar footer will be added - */ - protected abstract void addNavigationBarFooter(Content body); - - /** - * Adds the overview header to the documentation tree. - * - * @param body the document tree to which the overview header will be added - */ - protected abstract void addOverviewHeader(Content body); - - /** - * Adds the packages list to the documentation tree. - * - * @param packages a collection of packagedoc objects - * @param text caption for the table - * @param tableSummary summary for the table - * @param body the document tree to which the packages list will be added - */ - protected abstract void addPackagesList(Collection packages, String text, - String tableSummary, Content body); - - /** - * Generate and prints the contents in the package index file. Call appropriate - * methods from the sub-class in order to generate Frame or Non - * Frame format. - * - * @param title the title of the window. - * @param includeScript boolean set true if windowtitle script is to be included - */ - protected void buildPackageIndexFile(String title, boolean includeScript) throws IOException { - String windowOverview = configuration.getText(title); - Content body = getBody(includeScript, getWindowTitle(windowOverview)); - addNavigationBarHeader(body); - addOverviewHeader(body); - addIndex(body); - addOverview(body); - addNavigationBarFooter(body); - printHtmlDocument(configuration.metakeywords.getOverviewMetaKeywords(title, - configuration.doctitle), includeScript, body); - } - - /** - * Default to no overview, override to add overview. - * - * @param body the document tree to which the overview will be added - */ - protected void addOverview(Content body) throws IOException { - } - - /** - * Adds the frame or non-frame package index to the documentation tree. - * - * @param body the document tree to which the index will be added - */ - protected void addIndex(Content body) { - addIndexContents(packages, "doclet.Package_Summary", - configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Package_Summary"), - configuration.getText("doclet.packages")), body); - } - - /** - * Adds package index contents. Call appropriate methods from - * the sub-classes. Adds it to the body HtmlTree - * - * @param packages a collection of packages to be documented - * @param text string which will be used as the heading - * @param tableSummary summary for the table - * @param body the document tree to which the index contents will be added - */ - protected void addIndexContents(Collection packages, String text, - String tableSummary, Content body) { - if (!packages.isEmpty()) { - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.NAV)) - ? HtmlTree.NAV() - : new HtmlTree(HtmlTag.DIV); - htmlTree.addStyle(HtmlStyle.indexNav); - HtmlTree ul = new HtmlTree(HtmlTag.UL); - addAllClassesLink(ul); - htmlTree.addContent(ul); - body.addContent(htmlTree); - addPackagesList(packages, text, tableSummary, body); - } - } - - /** - * Adds the doctitle to the documentation tree, if it is specified on the command line. - * - * @param body the document tree to which the title will be added - */ - protected void addConfigurationTitle(Content body) { - if (configuration.doctitle.length() > 0) { - Content title = new RawHtml(configuration.doctitle); - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, - HtmlStyle.title, title); - Content div = HtmlTree.DIV(HtmlStyle.header, heading); - body.addContent(div); - } - } - - /** - * Returns highlighted "Overview", in the navigation bar as this is the - * overview page. - * - * @return a Content object to be added to the documentation tree - */ - protected Content getNavLinkContents() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, overviewLabel); - return li; - } - - /** - * Do nothing. This will be overridden. - * - * @param div the document tree to which the all classes link will be added - */ - protected void addAllClassesLink(Content div) { - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractTreeWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractTreeWriter.java deleted file mode 100644 index 920061c428f..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AbstractTreeWriter.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Abstract class to print the class hierarchy page for all the Classes. This - * is sub-classed by {@link PackageTreeWriter} and {@link TreeWriter} to - * generate the Package Tree and global Tree(for all the classes and packages) - * pages. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - */ -@Deprecated -public abstract class AbstractTreeWriter extends HtmlDocletWriter { - - /** - * The class and interface tree built by using {@link ClassTree} - */ - protected final ClassTree classtree; - - /** - * Constructor initializes classtree variable. This constructor will be used - * while generating global tree file "overview-tree.html". - * - * @param configuration The current configuration - * @param filename File to be generated. - * @param classtree Tree built by {@link ClassTree}. - * @throws IOException - * @throws DocletAbortException - */ - protected AbstractTreeWriter(ConfigurationImpl configuration, - DocPath filename, ClassTree classtree) - throws IOException { - super(configuration, filename); - this.classtree = classtree; - } - - /** - * Add each level of the class tree. For each sub-class or - * sub-interface indents the next level information. - * Recurses itself to add subclasses info. - * - * @param parent the superclass or superinterface of the list - * @param list list of the sub-classes at this level - * @param isEnum true if we are generating a tree for enums - * @param contentTree the content tree to which the level information will be added - */ - protected void addLevelInfo(ClassDoc parent, Collection list, - boolean isEnum, Content contentTree) { - if (!list.isEmpty()) { - Content ul = new HtmlTree(HtmlTag.UL); - for (ClassDoc local : list) { - HtmlTree li = new HtmlTree(HtmlTag.LI); - li.addStyle(HtmlStyle.circle); - addPartialInfo(local, li); - addExtendsImplements(parent, local, li); - addLevelInfo(local, classtree.subs(local, isEnum), - isEnum, li); // Recurse - ul.addContent(li); - } - contentTree.addContent(ul); - } - } - - /** - * Add the heading for the tree depending upon tree type if it's a - * Class Tree or Interface tree. - * - * @param list List of classes which are at the most base level, all the - * other classes in this run will derive from these classes - * @param heading heading for the tree - * @param div the content tree to which the tree will be added - */ - protected void addTree(SortedSet list, String heading, HtmlTree div) { - if (!list.isEmpty()) { - ClassDoc firstClassDoc = list.first(); - Content headingContent = getResource(heading); - Content sectionHeading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, true, - headingContent); - HtmlTree htmlTree; - if (configuration.allowTag(HtmlTag.SECTION)) { - htmlTree = HtmlTree.SECTION(sectionHeading); - } else { - div.addContent(sectionHeading); - htmlTree = div; - } - addLevelInfo(!firstClassDoc.isInterface()? firstClassDoc : null, - list, list == classtree.baseEnums(), htmlTree); - if (configuration.allowTag(HtmlTag.SECTION)) { - div.addContent(htmlTree); - } - } - } - - /** - * Add information regarding the classes which this class extends or - * implements. - * - * @param parent the parent class of the class being documented - * @param cd the classdoc under consideration - * @param contentTree the content tree to which the information will be added - */ - protected void addExtendsImplements(ClassDoc parent, ClassDoc cd, - Content contentTree) { - ClassDoc[] interfaces = cd.interfaces(); - if (interfaces.length > (cd.isInterface()? 1 : 0)) { - Arrays.sort(interfaces); - int counter = 0; - for (ClassDoc intf : interfaces) { - if (parent != intf) { - if (!(intf.isPublic() || - utils.isLinkable(intf, configuration))) { - continue; - } - if (counter == 0) { - if (cd.isInterface()) { - contentTree.addContent(" ("); - contentTree.addContent(getResource("doclet.also")); - contentTree.addContent(" extends "); - } else { - contentTree.addContent(" (implements "); - } - } else { - contentTree.addContent(", "); - } - addPreQualifiedClassLink(LinkInfoImpl.Kind.TREE, - intf, contentTree); - counter++; - } - } - if (counter > 0) { - contentTree.addContent(")"); - } - } - } - - /** - * Add information about the class kind, if it's a "class" or "interface". - * - * @param cd the class being documented - * @param contentTree the content tree to which the information will be added - */ - protected void addPartialInfo(ClassDoc cd, Content contentTree) { - addPreQualifiedStrongClassLink(LinkInfoImpl.Kind.TREE, cd, contentTree); - } - - /** - * Get the tree label for the navigation bar. - * - * @return a content tree for the tree label - */ - protected Content getNavLinkTree() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, treeLabel); - return li; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AllClassesFrameWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AllClassesFrameWriter.java deleted file mode 100644 index db1fca799fd..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AllClassesFrameWriter.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate the file with list of all the classes in this run. This page will be - * used in the left-hand bottom frame, when "All Classes" link is clicked in - * the left-hand top frame. The name of the generated file is - * "allclasses-frame.html". - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - * @author Doug Kramer - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class AllClassesFrameWriter extends HtmlDocletWriter { - - /** - * Index of all the classes. - */ - protected IndexBuilder indexbuilder; - - /** - * BR tag to be used within a document tree. - */ - final HtmlTree BR = new HtmlTree(HtmlTag.BR); - - /** - * Construct AllClassesFrameWriter object. Also initializes the indexbuilder - * variable in this class. - * @param configuration The current configuration - * @param filename Path to the file which is getting generated. - * @param indexbuilder Unicode based Index from {@link IndexBuilder} - * @throws IOException - * @throws DocletAbortException - */ - public AllClassesFrameWriter(ConfigurationImpl configuration, - DocPath filename, IndexBuilder indexbuilder) - throws IOException { - super(configuration, filename); - this.indexbuilder = indexbuilder; - } - - /** - * Create AllClassesFrameWriter object. Then use it to generate the - * "allclasses-frame.html" file. Generate the file in the current or the - * destination directory. - * - * @param indexbuilder IndexBuilder object for all classes index. - * @throws DocletAbortException - */ - public static void generate(ConfigurationImpl configuration, - IndexBuilder indexbuilder) { - AllClassesFrameWriter allclassgen; - DocPath filename = DocPaths.ALLCLASSES_FRAME; - try { - allclassgen = new AllClassesFrameWriter(configuration, - filename, indexbuilder); - allclassgen.buildAllClassesFile(true); - allclassgen.close(); - filename = DocPaths.ALLCLASSES_NOFRAME; - allclassgen = new AllClassesFrameWriter(configuration, - filename, indexbuilder); - allclassgen.buildAllClassesFile(false); - allclassgen.close(); - } catch (IOException exc) { - configuration.standardmessage. - error("doclet.exception_encountered", - exc.toString(), filename); - throw new DocletAbortException(exc); - } - } - - /** - * Print all the classes in the file. - * @param wantFrames True if we want frames. - */ - protected void buildAllClassesFile(boolean wantFrames) throws IOException { - String label = configuration.getText("doclet.All_Classes"); - Content body = getBody(false, getWindowTitle(label)); - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, - HtmlStyle.bar, allclassesLabel); - body.addContent(heading); - Content ul = new HtmlTree(HtmlTag.UL); - // Generate the class links and add it to the tdFont tree. - addAllClasses(ul, wantFrames); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN)) - ? HtmlTree.MAIN(HtmlStyle.indexContainer, ul) - : HtmlTree.DIV(HtmlStyle.indexContainer, ul); - body.addContent(htmlTree); - printHtmlDocument(null, false, body); - } - - /** - * Use the sorted index of all the classes and add all the classes to the - * content list. - * - * @param content HtmlTree content to which all classes information will be added - * @param wantFrames True if we want frames. - */ - protected void addAllClasses(Content content, boolean wantFrames) { - for (int i = 0; i < indexbuilder.elements().length; i++) { - Character unicode = (Character)((indexbuilder.elements())[i]); - addContents(indexbuilder.getMemberList(unicode), wantFrames, content); - } - } - - /** - * Given a list of classes, generate links for each class or interface. - * If the class kind is interface, print it in the italics font. Also all - * links should target the right-hand frame. If clicked on any class name - * in this page, appropriate class page should get opened in the right-hand - * frame. - * - * @param classlist Sorted list of classes. - * @param wantFrames True if we want frames. - * @param content HtmlTree content to which the links will be added - */ - protected void addContents(List classlist, boolean wantFrames, - Content content) { - for (Doc doc : classlist) { - ClassDoc cd = (ClassDoc) doc; - if (!utils.isCoreClass(cd)) { - continue; - } - Content label = italicsClassName(cd, false); - Content linkContent; - if (wantFrames) { - linkContent = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.ALL_CLASSES_FRAME, cd).label(label).target("classFrame")); - } else { - linkContent = getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.DEFAULT, cd).label(label)); - } - Content li = HtmlTree.LI(linkContent); - content.addContent(li); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeFieldWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeFieldWriterImpl.java deleted file mode 100644 index 5a35613aadf..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeFieldWriterImpl.java +++ /dev/null @@ -1,315 +0,0 @@ -/* - * Copyright (c) 2013, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; - -/** - * Writes annotation type field documentation in HTML format. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public class AnnotationTypeFieldWriterImpl extends AbstractMemberWriter - implements AnnotationTypeFieldWriter, MemberSummaryWriter { - - /** - * Construct a new AnnotationTypeFieldWriterImpl. - * - * @param writer the writer that will write the output. - * @param annotationType the AnnotationType that holds this member. - */ - public AnnotationTypeFieldWriterImpl(SubWriterHolderWriter writer, - AnnotationTypeDoc annotationType) { - super(writer, annotationType); - } - - /** - * {@inheritDoc} - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree) { - memberSummaryTree.addContent( - HtmlConstants.START_OF_ANNOTATION_TYPE_FIELD_SUMMARY); - Content memberTree = writer.getMemberTreeHeader(); - writer.addSummaryHeader(this, classDoc, memberTree); - return memberTree; - } - - /** - * {@inheritDoc} - */ - public Content getMemberTreeHeader() { - return writer.getMemberTreeHeader(); - } - - /** - * {@inheritDoc} - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - writer.addMemberTree(memberSummaryTree, memberTree); - } - - /** - * {@inheritDoc} - */ - public void addAnnotationFieldDetailsMarker(Content memberDetails) { - memberDetails.addContent(HtmlConstants.START_OF_ANNOTATION_TYPE_FIELD_DETAILS); - } - - /** - * {@inheritDoc} - */ - public void addAnnotationDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree) { - if (!writer.printedAnnotationFieldHeading) { - memberDetailsTree.addContent(writer.getMarkerAnchor( - SectionName.ANNOTATION_TYPE_FIELD_DETAIL)); - Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, - writer.fieldDetailsLabel); - memberDetailsTree.addContent(heading); - writer.printedAnnotationFieldHeading = true; - } - } - - /** - * {@inheritDoc} - */ - public Content getAnnotationDocTreeHeader(MemberDoc member, - Content annotationDetailsTree) { - annotationDetailsTree.addContent( - writer.getMarkerAnchor(member.name())); - Content annotationDocTree = writer.getMemberTreeHeader(); - Content heading = new HtmlTree(HtmlConstants.MEMBER_HEADING); - heading.addContent(member.name()); - annotationDocTree.addContent(heading); - return annotationDocTree; - } - - /** - * {@inheritDoc} - */ - public Content getSignature(MemberDoc member) { - Content pre = new HtmlTree(HtmlTag.PRE); - writer.addAnnotationInfo(member, pre); - addModifiers(member, pre); - Content link = - writer.getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.MEMBER, getType(member))); - pre.addContent(link); - pre.addContent(writer.getSpace()); - if (configuration.linksource) { - Content memberName = new StringContent(member.name()); - writer.addSrcLink(member, memberName, pre); - } else { - addName(member.name(), pre); - } - return pre; - } - - /** - * {@inheritDoc} - */ - public void addDeprecated(MemberDoc member, Content annotationDocTree) { - addDeprecatedInfo(member, annotationDocTree); - } - - /** - * {@inheritDoc} - */ - public void addComments(MemberDoc member, Content annotationDocTree) { - addComment(member, annotationDocTree); - } - - /** - * {@inheritDoc} - */ - public void addTags(MemberDoc member, Content annotationDocTree) { - writer.addTagsInfo(member, annotationDocTree); - } - - /** - * {@inheritDoc} - */ - public Content getAnnotationDetails(Content annotationDetailsTree) { - if (configuration.allowTag(HtmlTag.SECTION)) { - HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(annotationDetailsTree)); - return htmlTree; - } - return getMemberTree(annotationDetailsTree); - } - - /** - * {@inheritDoc} - */ - public Content getAnnotationDoc(Content annotationDocTree, - boolean isLastContent) { - return getMemberTree(annotationDocTree, isLastContent); - } - - /** - * Close the writer. - */ - public void close() throws IOException { - writer.close(); - } - - /** - * {@inheritDoc} - */ - public void addSummaryLabel(Content memberTree) { - Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, - writer.getResource("doclet.Field_Summary")); - memberTree.addContent(label); - } - - /** - * {@inheritDoc} - */ - public String getTableSummary() { - return configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Field_Summary"), - configuration.getText("doclet.fields")); - } - - /** - * {@inheritDoc} - */ - public Content getCaption() { - return configuration.getResource("doclet.Fields"); - } - - /** - * {@inheritDoc} - */ - public String[] getSummaryTableHeader(ProgramElementDoc member) { - String[] header = new String[] { - writer.getModifierTypeHeader(), - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Fields"), - configuration.getText("doclet.Description")) - }; - return header; - } - - /** - * {@inheritDoc} - */ - public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor( - SectionName.ANNOTATION_TYPE_FIELD_SUMMARY)); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { - } - - /** - * {@inheritDoc} - */ - protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, - Content tdSummary) { - Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, - writer.getDocLink(context, (MemberDoc) member, member.name(), false)); - Content code = HtmlTree.CODE(memberLink); - tdSummary.addContent(code); - } - - /** - * {@inheritDoc} - */ - protected void addInheritedSummaryLink(ClassDoc cd, - ProgramElementDoc member, Content linksTree) { - //Not applicable. - } - - /** - * {@inheritDoc} - */ - protected void addSummaryType(ProgramElementDoc member, Content tdSummaryType) { - MemberDoc m = (MemberDoc)member; - addModifierAndType(m, getType(m), tdSummaryType); - } - - /** - * {@inheritDoc} - */ - protected Content getDeprecatedLink(ProgramElementDoc member) { - return writer.getDocLink(LinkInfoImpl.Kind.MEMBER, - (MemberDoc) member, ((MemberDoc)member).qualifiedName()); - } - - /** - * {@inheritDoc} - */ - protected Content getNavSummaryLink(ClassDoc cd, boolean link) { - if (link) { - return writer.getHyperLink( - SectionName.ANNOTATION_TYPE_FIELD_SUMMARY, - writer.getResource("doclet.navField")); - } else { - return writer.getResource("doclet.navField"); - } - } - - /** - * {@inheritDoc} - */ - protected void addNavDetailLink(boolean link, Content liNav) { - if (link) { - liNav.addContent(writer.getHyperLink( - SectionName.ANNOTATION_TYPE_FIELD_DETAIL, - writer.getResource("doclet.navField"))); - } else { - liNav.addContent(writer.getResource("doclet.navField")); - } - } - - private Type getType(MemberDoc member) { - if (member instanceof FieldDoc) { - return ((FieldDoc) member).type(); - } else { - return ((MethodDoc) member).returnType(); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java deleted file mode 100644 index 91064762b12..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; - -/** - * Writes annotation type optional member documentation in HTML format. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class AnnotationTypeOptionalMemberWriterImpl extends - AnnotationTypeRequiredMemberWriterImpl - implements AnnotationTypeOptionalMemberWriter, MemberSummaryWriter { - - /** - * Construct a new AnnotationTypeOptionalMemberWriterImpl. - * - * @param writer the writer that will write the output. - * @param annotationType the AnnotationType that holds this member. - */ - public AnnotationTypeOptionalMemberWriterImpl(SubWriterHolderWriter writer, - AnnotationTypeDoc annotationType) { - super(writer, annotationType); - } - - /** - * {@inheritDoc} - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree) { - memberSummaryTree.addContent( - HtmlConstants.START_OF_ANNOTATION_TYPE_OPTIONAL_MEMBER_SUMMARY); - Content memberTree = writer.getMemberTreeHeader(); - writer.addSummaryHeader(this, classDoc, memberTree); - return memberTree; - } - - /** - * {@inheritDoc} - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - writer.addMemberTree(memberSummaryTree, memberTree); - } - - /** - * {@inheritDoc} - */ - public void addDefaultValueInfo(MemberDoc member, Content annotationDocTree) { - if (((AnnotationTypeElementDoc) member).defaultValue() != null) { - Content dt = HtmlTree.DT(writer.getResource("doclet.Default")); - Content dl = HtmlTree.DL(dt); - Content dd = HtmlTree.DD(new StringContent( - ((AnnotationTypeElementDoc) member).defaultValue().toString())); - dl.addContent(dd); - annotationDocTree.addContent(dl); - } - } - - /** - * {@inheritDoc} - */ - public void close() throws IOException { - writer.close(); - } - - /** - * {@inheritDoc} - */ - public void addSummaryLabel(Content memberTree) { - Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, - writer.getResource("doclet.Annotation_Type_Optional_Member_Summary")); - memberTree.addContent(label); - } - - /** - * {@inheritDoc} - */ - public String getTableSummary() { - return configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Annotation_Type_Optional_Member_Summary"), - configuration.getText("doclet.annotation_type_optional_members")); - } - - /** - * {@inheritDoc} - */ - public Content getCaption() { - return configuration.getResource("doclet.Annotation_Type_Optional_Members"); - } - - /** - * {@inheritDoc} - */ - public String[] getSummaryTableHeader(ProgramElementDoc member) { - String[] header = new String[] { - writer.getModifierTypeHeader(), - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Annotation_Type_Optional_Member"), - configuration.getText("doclet.Description")) - }; - return header; - } - - /** - * {@inheritDoc} - */ - public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor( - SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY)); - } - - /** - * {@inheritDoc} - */ - protected Content getNavSummaryLink(ClassDoc cd, boolean link) { - if (link) { - return writer.getHyperLink( - SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY, - writer.getResource("doclet.navAnnotationTypeOptionalMember")); - } else { - return writer.getResource("doclet.navAnnotationTypeOptionalMember"); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java deleted file mode 100644 index 1b6f76d91cc..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java +++ /dev/null @@ -1,317 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; - -/** - * Writes annotation type required member documentation in HTML format. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class AnnotationTypeRequiredMemberWriterImpl extends AbstractMemberWriter - implements AnnotationTypeRequiredMemberWriter, MemberSummaryWriter { - - /** - * Construct a new AnnotationTypeRequiredMemberWriterImpl. - * - * @param writer the writer that will write the output. - * @param annotationType the AnnotationType that holds this member. - */ - public AnnotationTypeRequiredMemberWriterImpl(SubWriterHolderWriter writer, - AnnotationTypeDoc annotationType) { - super(writer, annotationType); - } - - /** - * {@inheritDoc} - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree) { - memberSummaryTree.addContent( - HtmlConstants.START_OF_ANNOTATION_TYPE_REQUIRED_MEMBER_SUMMARY); - Content memberTree = writer.getMemberTreeHeader(); - writer.addSummaryHeader(this, classDoc, memberTree); - return memberTree; - } - - /** - * {@inheritDoc} - */ - public Content getMemberTreeHeader() { - return writer.getMemberTreeHeader(); - } - - /** - * {@inheritDoc} - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - writer.addMemberTree(memberSummaryTree, memberTree); - } - - /** - * {@inheritDoc} - */ - public void addAnnotationDetailsMarker(Content memberDetails) { - memberDetails.addContent(HtmlConstants.START_OF_ANNOTATION_TYPE_DETAILS); - } - - /** - * {@inheritDoc} - */ - public void addAnnotationDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree) { - if (!writer.printedAnnotationHeading) { - memberDetailsTree.addContent(writer.getMarkerAnchor( - SectionName.ANNOTATION_TYPE_ELEMENT_DETAIL)); - Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, - writer.annotationTypeDetailsLabel); - memberDetailsTree.addContent(heading); - writer.printedAnnotationHeading = true; - } - } - - /** - * {@inheritDoc} - */ - public Content getAnnotationDocTreeHeader(MemberDoc member, - Content annotationDetailsTree) { - annotationDetailsTree.addContent( - writer.getMarkerAnchor(member.name() + - ((ExecutableMemberDoc) member).signature())); - Content annotationDocTree = writer.getMemberTreeHeader(); - Content heading = new HtmlTree(HtmlConstants.MEMBER_HEADING); - heading.addContent(member.name()); - annotationDocTree.addContent(heading); - return annotationDocTree; - } - - /** - * {@inheritDoc} - */ - public Content getSignature(MemberDoc member) { - Content pre = new HtmlTree(HtmlTag.PRE); - writer.addAnnotationInfo(member, pre); - addModifiers(member, pre); - Content link = - writer.getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.MEMBER, getType(member))); - pre.addContent(link); - pre.addContent(writer.getSpace()); - if (configuration.linksource) { - Content memberName = new StringContent(member.name()); - writer.addSrcLink(member, memberName, pre); - } else { - addName(member.name(), pre); - } - return pre; - } - - /** - * {@inheritDoc} - */ - public void addDeprecated(MemberDoc member, Content annotationDocTree) { - addDeprecatedInfo(member, annotationDocTree); - } - - /** - * {@inheritDoc} - */ - public void addComments(MemberDoc member, Content annotationDocTree) { - addComment(member, annotationDocTree); - } - - /** - * {@inheritDoc} - */ - public void addTags(MemberDoc member, Content annotationDocTree) { - writer.addTagsInfo(member, annotationDocTree); - } - - /** - * {@inheritDoc} - */ - public Content getAnnotationDetails(Content annotationDetailsTree) { - if (configuration.allowTag(HtmlTag.SECTION)) { - HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(annotationDetailsTree)); - return htmlTree; - } - return getMemberTree(annotationDetailsTree); - } - - /** - * {@inheritDoc} - */ - public Content getAnnotationDoc(Content annotationDocTree, - boolean isLastContent) { - return getMemberTree(annotationDocTree, isLastContent); - } - - /** - * Close the writer. - */ - public void close() throws IOException { - writer.close(); - } - - /** - * {@inheritDoc} - */ - public void addSummaryLabel(Content memberTree) { - Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, - writer.getResource("doclet.Annotation_Type_Required_Member_Summary")); - memberTree.addContent(label); - } - - /** - * {@inheritDoc} - */ - public String getTableSummary() { - return configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Annotation_Type_Required_Member_Summary"), - configuration.getText("doclet.annotation_type_required_members")); - } - - /** - * {@inheritDoc} - */ - public Content getCaption() { - return configuration.getResource("doclet.Annotation_Type_Required_Members"); - } - - /** - * {@inheritDoc} - */ - public String[] getSummaryTableHeader(ProgramElementDoc member) { - String[] header = new String[] { - writer.getModifierTypeHeader(), - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Annotation_Type_Required_Member"), - configuration.getText("doclet.Description")) - }; - return header; - } - - /** - * {@inheritDoc} - */ - public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor( - SectionName.ANNOTATION_TYPE_REQUIRED_ELEMENT_SUMMARY)); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { - } - - /** - * {@inheritDoc} - */ - protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, - Content tdSummary) { - Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, - writer.getDocLink(context, (MemberDoc) member, member.name(), false)); - Content code = HtmlTree.CODE(memberLink); - tdSummary.addContent(code); - } - - /** - * {@inheritDoc} - */ - protected void addInheritedSummaryLink(ClassDoc cd, - ProgramElementDoc member, Content linksTree) { - //Not applicable. - } - - /** - * {@inheritDoc} - */ - protected void addSummaryType(ProgramElementDoc member, Content tdSummaryType) { - MemberDoc m = (MemberDoc)member; - addModifierAndType(m, getType(m), tdSummaryType); - } - - /** - * {@inheritDoc} - */ - protected Content getDeprecatedLink(ProgramElementDoc member) { - return writer.getDocLink(LinkInfoImpl.Kind.MEMBER, - (MemberDoc) member, ((MemberDoc)member).qualifiedName()); - } - - /** - * {@inheritDoc} - */ - protected Content getNavSummaryLink(ClassDoc cd, boolean link) { - if (link) { - return writer.getHyperLink( - SectionName.ANNOTATION_TYPE_REQUIRED_ELEMENT_SUMMARY, - writer.getResource("doclet.navAnnotationTypeRequiredMember")); - } else { - return writer.getResource("doclet.navAnnotationTypeRequiredMember"); - } - } - - /** - * {@inheritDoc} - */ - protected void addNavDetailLink(boolean link, Content liNav) { - if (link) { - liNav.addContent(writer.getHyperLink( - SectionName.ANNOTATION_TYPE_ELEMENT_DETAIL, - writer.getResource("doclet.navAnnotationTypeMember"))); - } else { - liNav.addContent(writer.getResource("doclet.navAnnotationTypeMember")); - } - } - - private Type getType(MemberDoc member) { - if (member instanceof FieldDoc) { - return ((FieldDoc) member).type(); - } else { - return ((MethodDoc) member).returnType(); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java deleted file mode 100644 index d77902733b0..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java +++ /dev/null @@ -1,432 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.formats.html; - -import java.io.IOException; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.builders.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate the Class Information Page. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @see com.sun.javadoc.ClassDoc - * @see java.util.Collections - * @see java.util.List - * @see java.util.ArrayList - * @see java.util.HashMap - * - * @author Atul M Dambalkar - * @author Robert Field - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class AnnotationTypeWriterImpl extends SubWriterHolderWriter - implements AnnotationTypeWriter { - - protected AnnotationTypeDoc annotationType; - - protected Type prev; - - protected Type next; - - /** - * @param annotationType the annotation type being documented. - * @param prevType the previous class that was documented. - * @param nextType the next class being documented. - */ - public AnnotationTypeWriterImpl(ConfigurationImpl configuration, - AnnotationTypeDoc annotationType, Type prevType, Type nextType) - throws Exception { - super(configuration, DocPath.forClass(annotationType)); - this.annotationType = annotationType; - configuration.currentcd = annotationType.asClassDoc(); - this.prev = prevType; - this.next = nextType; - } - - /** - * Get this package link. - * - * @return a content tree for the package link - */ - protected Content getNavLinkPackage() { - Content linkContent = getHyperLink(DocPaths.PACKAGE_SUMMARY, - packageLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get the class link. - * - * @return a content tree for the class link - */ - protected Content getNavLinkClass() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, classLabel); - return li; - } - - /** - * Get the class use link. - * - * @return a content tree for the class use link - */ - protected Content getNavLinkClassUse() { - Content linkContent = getHyperLink(DocPaths.CLASS_USE.resolve(filename), useLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get link to previous class. - * - * @return a content tree for the previous class link - */ - public Content getNavLinkPrevious() { - Content li; - if (prev != null) { - Content prevLink = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS, prev.asClassDoc()) - .label(prevclassLabel).strong(true)); - li = HtmlTree.LI(prevLink); - } - else - li = HtmlTree.LI(prevclassLabel); - return li; - } - - /** - * Get link to next class. - * - * @return a content tree for the next class link - */ - public Content getNavLinkNext() { - Content li; - if (next != null) { - Content nextLink = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS, next.asClassDoc()) - .label(nextclassLabel).strong(true)); - li = HtmlTree.LI(nextLink); - } - else - li = HtmlTree.LI(nextclassLabel); - return li; - } - - /** - * {@inheritDoc} - */ - public Content getHeader(String header) { - String pkgname = (annotationType.containingPackage() != null)? - annotationType.containingPackage().name(): ""; - String clname = annotationType.name(); - HtmlTree bodyTree = getBody(true, getWindowTitle(clname)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - bodyTree.addContent(HtmlConstants.START_OF_CLASS_DATA); - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.header); - if (pkgname.length() > 0) { - Content pkgNameContent = new StringContent(pkgname); - Content pkgNameDiv = HtmlTree.DIV(HtmlStyle.subTitle, pkgNameContent); - div.addContent(pkgNameDiv); - } - LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_HEADER, annotationType); - Content headerContent = new StringContent(header); - Content heading = HtmlTree.HEADING(HtmlConstants.CLASS_PAGE_HEADING, true, - HtmlStyle.title, headerContent); - heading.addContent(getTypeParameterLinks(linkInfo)); - div.addContent(heading); - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(div); - } else { - bodyTree.addContent(div); - } - return bodyTree; - } - - /** - * {@inheritDoc} - */ - public Content getAnnotationContentHeader() { - return getContentHeader(); - } - - /** - * {@inheritDoc} - */ - public void addFooter(Content contentTree) { - contentTree.addContent(HtmlConstants.END_OF_CLASS_DATA); - Content htmlTree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : contentTree; - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - contentTree.addContent(htmlTree); - } - } - - /** - * {@inheritDoc} - */ - public void printDocument(Content contentTree) throws IOException { - printHtmlDocument(configuration.metakeywords.getMetaKeywords(annotationType), - true, contentTree); - } - - /** - * {@inheritDoc} - */ - public Content getAnnotationInfoTreeHeader() { - return getMemberTreeHeader(); - } - - /** - * {@inheritDoc} - */ - public Content getAnnotationInfo(Content annotationInfoTree) { - return getMemberTree(HtmlStyle.description, annotationInfoTree); - } - - /** - * {@inheritDoc} - */ - public void addAnnotationTypeSignature(String modifiers, Content annotationInfoTree) { - annotationInfoTree.addContent(new HtmlTree(HtmlTag.BR)); - Content pre = new HtmlTree(HtmlTag.PRE); - addAnnotationInfo(annotationType, pre); - pre.addContent(modifiers); - LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_SIGNATURE, annotationType); - Content annotationName = new StringContent(annotationType.name()); - Content parameterLinks = getTypeParameterLinks(linkInfo); - if (configuration.linksource) { - addSrcLink(annotationType, annotationName, pre); - pre.addContent(parameterLinks); - } else { - Content span = HtmlTree.SPAN(HtmlStyle.memberNameLabel, annotationName); - span.addContent(parameterLinks); - pre.addContent(span); - } - annotationInfoTree.addContent(pre); - } - - /** - * {@inheritDoc} - */ - public void addAnnotationTypeDescription(Content annotationInfoTree) { - if(!configuration.nocomment) { - if (annotationType.inlineTags().length > 0) { - addInlineComment(annotationType, annotationInfoTree); - } - } - } - - /** - * {@inheritDoc} - */ - public void addAnnotationTypeTagInfo(Content annotationInfoTree) { - if(!configuration.nocomment) { - addTagsInfo(annotationType, annotationInfoTree); - } - } - - /** - * {@inheritDoc} - */ - public void addAnnotationTypeDeprecationInfo(Content annotationInfoTree) { - Content hr = new HtmlTree(HtmlTag.HR); - annotationInfoTree.addContent(hr); - Tag[] deprs = annotationType.tags("deprecated"); - if (utils.isDeprecated(annotationType)) { - Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); - Content div = HtmlTree.DIV(HtmlStyle.block, deprLabel); - if (deprs.length > 0) { - Tag[] commentTags = deprs[0].inlineTags(); - if (commentTags.length > 0) { - div.addContent(getSpace()); - addInlineDeprecatedComment(annotationType, deprs[0], div); - } - } - annotationInfoTree.addContent(div); - } - } - - /** - * {@inheritDoc} - */ - protected Content getNavLinkTree() { - Content treeLinkContent = getHyperLink(DocPaths.PACKAGE_TREE, - treeLabel, "", ""); - Content li = HtmlTree.LI(treeLinkContent); - return li; - } - - /** - * Add summary details to the navigation bar. - * - * @param subDiv the content tree to which the summary detail links will be added - */ - protected void addSummaryDetailLinks(Content subDiv) { - try { - Content div = HtmlTree.DIV(getNavSummaryLinks()); - div.addContent(getNavDetailLinks()); - subDiv.addContent(div); - } catch (Exception e) { - e.printStackTrace(); - throw new DocletAbortException(e); - } - } - - /** - * Get summary links for navigation bar. - * - * @return the content tree for the navigation summary links - */ - protected Content getNavSummaryLinks() throws Exception { - Content li = HtmlTree.LI(summaryLabel); - li.addContent(getSpace()); - Content ulNav = HtmlTree.UL(HtmlStyle.subNavList, li); - MemberSummaryBuilder memberSummaryBuilder = (MemberSummaryBuilder) - configuration.getBuilderFactory().getMemberSummaryBuilder(this); - Content liNavField = new HtmlTree(HtmlTag.LI); - addNavSummaryLink(memberSummaryBuilder, - "doclet.navField", - VisibleMemberMap.ANNOTATION_TYPE_FIELDS, liNavField); - addNavGap(liNavField); - ulNav.addContent(liNavField); - Content liNavReq = new HtmlTree(HtmlTag.LI); - addNavSummaryLink(memberSummaryBuilder, - "doclet.navAnnotationTypeRequiredMember", - VisibleMemberMap.ANNOTATION_TYPE_MEMBER_REQUIRED, liNavReq); - addNavGap(liNavReq); - ulNav.addContent(liNavReq); - Content liNavOpt = new HtmlTree(HtmlTag.LI); - addNavSummaryLink(memberSummaryBuilder, - "doclet.navAnnotationTypeOptionalMember", - VisibleMemberMap.ANNOTATION_TYPE_MEMBER_OPTIONAL, liNavOpt); - ulNav.addContent(liNavOpt); - return ulNav; - } - - /** - * Add the navigation summary link. - * - * @param builder builder for the member to be documented - * @param label the label for the navigation - * @param type type to be documented - * @param liNav the content tree to which the navigation summary link will be added - */ - protected void addNavSummaryLink(MemberSummaryBuilder builder, - String label, int type, Content liNav) { - AbstractMemberWriter writer = ((AbstractMemberWriter) builder. - getMemberSummaryWriter(type)); - if (writer == null) { - liNav.addContent(getResource(label)); - } else { - liNav.addContent(writer.getNavSummaryLink(null, - ! builder.getVisibleMemberMap(type).noVisibleMembers())); - } - } - - /** - * Get detail links for the navigation bar. - * - * @return the content tree for the detail links - */ - protected Content getNavDetailLinks() throws Exception { - Content li = HtmlTree.LI(detailLabel); - li.addContent(getSpace()); - Content ulNav = HtmlTree.UL(HtmlStyle.subNavList, li); - MemberSummaryBuilder memberSummaryBuilder = (MemberSummaryBuilder) - configuration.getBuilderFactory().getMemberSummaryBuilder(this); - AbstractMemberWriter writerField = - ((AbstractMemberWriter) memberSummaryBuilder. - getMemberSummaryWriter(VisibleMemberMap.ANNOTATION_TYPE_FIELDS)); - AbstractMemberWriter writerOptional = - ((AbstractMemberWriter) memberSummaryBuilder. - getMemberSummaryWriter(VisibleMemberMap.ANNOTATION_TYPE_MEMBER_OPTIONAL)); - AbstractMemberWriter writerRequired = - ((AbstractMemberWriter) memberSummaryBuilder. - getMemberSummaryWriter(VisibleMemberMap.ANNOTATION_TYPE_MEMBER_REQUIRED)); - Content liNavField = new HtmlTree(HtmlTag.LI); - if (writerField != null){ - writerField.addNavDetailLink(annotationType.fields().length > 0, liNavField); - } else { - liNavField.addContent(getResource("doclet.navField")); - } - addNavGap(liNavField); - ulNav.addContent(liNavField); - if (writerOptional != null){ - Content liNavOpt = new HtmlTree(HtmlTag.LI); - writerOptional.addNavDetailLink(annotationType.elements().length > 0, liNavOpt); - ulNav.addContent(liNavOpt); - } else if (writerRequired != null){ - Content liNavReq = new HtmlTree(HtmlTag.LI); - writerRequired.addNavDetailLink(annotationType.elements().length > 0, liNavReq); - ulNav.addContent(liNavReq); - } else { - Content liNav = HtmlTree.LI(getResource("doclet.navAnnotationTypeMember")); - ulNav.addContent(liNav); - } - return ulNav; - } - - /** - * Add gap between navigation bar elements. - * - * @param liNav the content tree to which the gap will be added - */ - protected void addNavGap(Content liNav) { - liNav.addContent(getSpace()); - liNav.addContent("|"); - liNav.addContent(getSpace()); - } - - /** - * {@inheritDoc} - */ - public AnnotationTypeDoc getAnnotationTypeDoc() { - return annotationType; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java deleted file mode 100644 index 04b163155cd..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java +++ /dev/null @@ -1,550 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.SortedSet; -import java.util.TreeSet; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate class usage information. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert G. Field - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class ClassUseWriter extends SubWriterHolderWriter { - - final ClassDoc classdoc; - Set pkgToPackageAnnotations = null; - final Map> pkgToClassTypeParameter; - final Map> pkgToClassAnnotations; - final Map> pkgToMethodTypeParameter; - final Map> pkgToMethodArgTypeParameter; - final Map> pkgToMethodReturnTypeParameter; - final Map> pkgToMethodAnnotations; - final Map> pkgToMethodParameterAnnotations; - final Map> pkgToFieldTypeParameter; - final Map> pkgToFieldAnnotations; - final Map> pkgToSubclass; - final Map> pkgToSubinterface; - final Map> pkgToImplementingClass; - final Map> pkgToField; - final Map> pkgToMethodReturn; - final Map> pkgToMethodArgs; - final Map> pkgToMethodThrows; - final Map> pkgToConstructorAnnotations; - final Map> pkgToConstructorParameterAnnotations; - final Map> pkgToConstructorArgs; - final Map> pkgToConstructorArgTypeParameter; - final Map> pkgToConstructorThrows; - final SortedSet pkgSet; - final MethodWriterImpl methodSubWriter; - final ConstructorWriterImpl constrSubWriter; - final FieldWriterImpl fieldSubWriter; - final NestedClassWriterImpl classSubWriter; - // Summary for various use tables. - final String classUseTableSummary; - final String subclassUseTableSummary; - final String subinterfaceUseTableSummary; - final String fieldUseTableSummary; - final String methodUseTableSummary; - final String constructorUseTableSummary; - - /** - * The HTML tree for main tag. - */ - protected HtmlTree mainTree = HtmlTree.MAIN(); - - /** - * Constructor. - * - * @param filename the file to be generated. - * @throws IOException - * @throws DocletAbortException - */ - public ClassUseWriter(ConfigurationImpl configuration, - ClassUseMapper mapper, DocPath filename, - ClassDoc classdoc) throws IOException { - super(configuration, filename); - this.classdoc = classdoc; - if (mapper.classToPackageAnnotations.containsKey(classdoc.qualifiedName())) - pkgToPackageAnnotations = new TreeSet<>(mapper.classToPackageAnnotations.get(classdoc.qualifiedName())); - configuration.currentcd = classdoc; - this.pkgSet = new TreeSet<>(); - this.pkgToClassTypeParameter = pkgDivide(mapper.classToClassTypeParam); - this.pkgToClassAnnotations = pkgDivide(mapper.classToClassAnnotations); - this.pkgToMethodTypeParameter = pkgDivide(mapper.classToExecMemberDocTypeParam); - this.pkgToMethodArgTypeParameter = pkgDivide(mapper.classToExecMemberDocArgTypeParam); - this.pkgToFieldTypeParameter = pkgDivide(mapper.classToFieldDocTypeParam); - this.pkgToFieldAnnotations = pkgDivide(mapper.annotationToFieldDoc); - this.pkgToMethodReturnTypeParameter = pkgDivide(mapper.classToExecMemberDocReturnTypeParam); - this.pkgToMethodAnnotations = pkgDivide(mapper.classToExecMemberDocAnnotations); - this.pkgToMethodParameterAnnotations = pkgDivide(mapper.classToExecMemberDocParamAnnotation); - this.pkgToSubclass = pkgDivide(mapper.classToSubclass); - this.pkgToSubinterface = pkgDivide(mapper.classToSubinterface); - this.pkgToImplementingClass = pkgDivide(mapper.classToImplementingClass); - this.pkgToField = pkgDivide(mapper.classToField); - this.pkgToMethodReturn = pkgDivide(mapper.classToMethodReturn); - this.pkgToMethodArgs = pkgDivide(mapper.classToMethodArgs); - this.pkgToMethodThrows = pkgDivide(mapper.classToMethodThrows); - this.pkgToConstructorAnnotations = pkgDivide(mapper.classToConstructorAnnotations); - this.pkgToConstructorParameterAnnotations = pkgDivide(mapper.classToConstructorParamAnnotation); - this.pkgToConstructorArgs = pkgDivide(mapper.classToConstructorArgs); - this.pkgToConstructorArgTypeParameter = pkgDivide(mapper.classToConstructorDocArgTypeParam); - this.pkgToConstructorThrows = pkgDivide(mapper.classToConstructorThrows); - //tmp test - if (pkgSet.size() > 0 && - mapper.classToPackage.containsKey(classdoc.qualifiedName()) && - !pkgSet.equals(mapper.classToPackage.get(classdoc.qualifiedName()))) { - configuration.root.printWarning("Internal error: package sets don't match: " + pkgSet + " with: " + - mapper.classToPackage.get(classdoc.qualifiedName())); - } - methodSubWriter = new MethodWriterImpl(this); - constrSubWriter = new ConstructorWriterImpl(this); - fieldSubWriter = new FieldWriterImpl(this); - classSubWriter = new NestedClassWriterImpl(this); - classUseTableSummary = configuration.getText("doclet.Use_Table_Summary", - configuration.getText("doclet.classes")); - subclassUseTableSummary = configuration.getText("doclet.Use_Table_Summary", - configuration.getText("doclet.subclasses")); - subinterfaceUseTableSummary = configuration.getText("doclet.Use_Table_Summary", - configuration.getText("doclet.subinterfaces")); - fieldUseTableSummary = configuration.getText("doclet.Use_Table_Summary", - configuration.getText("doclet.fields")); - methodUseTableSummary = configuration.getText("doclet.Use_Table_Summary", - configuration.getText("doclet.methods")); - constructorUseTableSummary = configuration.getText("doclet.Use_Table_Summary", - configuration.getText("doclet.constructors")); - } - - /** - * Write out class use pages. - * @throws DocletAbortException - */ - public static void generate(ConfigurationImpl configuration, - ClassTree classtree) { - ClassUseMapper mapper = new ClassUseMapper(configuration, classtree); - for (ClassDoc aClass : configuration.root.classes()) { - // If -nodeprecated option is set and the containing package is marked - // as deprecated, do not generate the class-use page. We will still generate - // the class-use page if the class is marked as deprecated but the containing - // package is not since it could still be linked from that package-use page. - if (!(configuration.nodeprecated && - configuration.utils.isDeprecated(aClass.containingPackage()))) - ClassUseWriter.generate(configuration, mapper, aClass); - } - for (PackageDoc pkg : configuration.packages) { - // If -nodeprecated option is set and the package is marked - // as deprecated, do not generate the package-use page. - if (!(configuration.nodeprecated && configuration.utils.isDeprecated(pkg))) - PackageUseWriter.generate(configuration, mapper, pkg); - } - } - - private Map> pkgDivide(Map> classMap) { - Map> map = new HashMap<>(); - List list= classMap.get(classdoc.qualifiedName()); - if (list != null) { - Collections.sort(list, utils.makeComparatorForClassUse()); - for (ProgramElementDoc doc : list) { - PackageDoc pkg = doc.containingPackage(); - pkgSet.add(pkg); - List inPkg = map.get(pkg.name()); - if (inPkg == null) { - inPkg = new ArrayList<>(); - map.put(pkg.name(), inPkg); - } - inPkg.add(doc); - } - } - return map; - } - - /** - * Generate a class page. - */ - public static void generate(ConfigurationImpl configuration, - ClassUseMapper mapper, ClassDoc classdoc) { - ClassUseWriter clsgen; - DocPath path = DocPath.forPackage(classdoc) - .resolve(DocPaths.CLASS_USE) - .resolve(DocPath.forName(classdoc)); - try { - clsgen = new ClassUseWriter(configuration, - mapper, path, - classdoc); - clsgen.generateClassUseFile(); - clsgen.close(); - } catch (IOException exc) { - configuration.standardmessage. - error("doclet.exception_encountered", - exc.toString(), path.getPath()); - throw new DocletAbortException(exc); - } - } - - /** - * Generate the class use list. - */ - protected void generateClassUseFile() throws IOException { - HtmlTree body = getClassUseHeader(); - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.classUseContainer); - if (pkgSet.size() > 0) { - addClassUse(div); - } else { - div.addContent(getResource("doclet.ClassUse_No.usage.of.0", - classdoc.qualifiedName())); - } - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(div); - body.addContent(mainTree); - } else { - body.addContent(div); - } - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : body; - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - body.addContent(htmlTree); - } - printHtmlDocument(null, true, body); - } - - /** - * Add the class use documentation. - * - * @param contentTree the content tree to which the class use information will be added - */ - protected void addClassUse(Content contentTree) throws IOException { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - if (configuration.packages.size() > 1) { - addPackageList(ul); - addPackageAnnotationList(ul); - } - addClassList(ul); - contentTree.addContent(ul); - } - - /** - * Add the packages list that use the given class. - * - * @param contentTree the content tree to which the packages list will be added - */ - protected void addPackageList(Content contentTree) throws IOException { - Content caption = getTableCaption(configuration.getResource( - "doclet.ClassUse_Packages.that.use.0", - getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.CLASS_USE_HEADER, classdoc)))); - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.useSummary, caption) - : HtmlTree.TABLE(HtmlStyle.useSummary, useTableSummary, caption); - table.addContent(getSummaryTableHeader(packageTableHeader, "col")); - Content tbody = new HtmlTree(HtmlTag.TBODY); - Iterator it = pkgSet.iterator(); - for (int i = 0; it.hasNext(); i++) { - PackageDoc pkg = it.next(); - HtmlTree tr = new HtmlTree(HtmlTag.TR); - if (i % 2 == 0) { - tr.addStyle(HtmlStyle.altColor); - } else { - tr.addStyle(HtmlStyle.rowColor); - } - addPackageUse(pkg, tr); - tbody.addContent(tr); - } - table.addContent(tbody); - Content li = HtmlTree.LI(HtmlStyle.blockList, table); - contentTree.addContent(li); - } - - /** - * Add the package annotation list. - * - * @param contentTree the content tree to which the package annotation list will be added - */ - protected void addPackageAnnotationList(Content contentTree) throws IOException { - if ((!classdoc.isAnnotationType()) || - pkgToPackageAnnotations == null || - pkgToPackageAnnotations.isEmpty()) { - return; - } - Content caption = getTableCaption(configuration.getResource( - "doclet.ClassUse_PackageAnnotation", - getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_USE_HEADER, classdoc)))); - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.useSummary, caption) - : HtmlTree.TABLE(HtmlStyle.useSummary, useTableSummary, caption); - table.addContent(getSummaryTableHeader(packageTableHeader, "col")); - Content tbody = new HtmlTree(HtmlTag.TBODY); - Iterator it = pkgToPackageAnnotations.iterator(); - for (int i = 0; it.hasNext(); i++) { - PackageDoc pkg = it.next(); - HtmlTree tr = new HtmlTree(HtmlTag.TR); - if (i % 2 == 0) { - tr.addStyle(HtmlStyle.altColor); - } else { - tr.addStyle(HtmlStyle.rowColor); - } - Content tdFirst = HtmlTree.TD(HtmlStyle.colFirst, - getPackageLink(pkg, new StringContent(pkg.name()))); - tr.addContent(tdFirst); - HtmlTree tdLast = new HtmlTree(HtmlTag.TD); - tdLast.addStyle(HtmlStyle.colLast); - addSummaryComment(pkg, tdLast); - tr.addContent(tdLast); - tbody.addContent(tr); - } - table.addContent(tbody); - Content li = HtmlTree.LI(HtmlStyle.blockList, table); - contentTree.addContent(li); - } - - /** - * Add the class list that use the given class. - * - * @param contentTree the content tree to which the class list will be added - */ - protected void addClassList(Content contentTree) throws IOException { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - for (PackageDoc pkg : pkgSet) { - Content markerAnchor = getMarkerAnchor(getPackageAnchorName(pkg)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(markerAnchor) - : HtmlTree.LI(HtmlStyle.blockList, markerAnchor); - Content link = getResource("doclet.ClassUse_Uses.of.0.in.1", - getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.CLASS_USE_HEADER, - classdoc)), - getPackageLink(pkg, utils.getPackageName(pkg))); - Content heading = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, link); - htmlTree.addContent(heading); - addClassUse(pkg, htmlTree); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - } - Content li = HtmlTree.LI(HtmlStyle.blockList, ul); - contentTree.addContent(li); - } - - /** - * Add the package use information. - * - * @param pkg the package that uses the given class - * @param contentTree the content tree to which the package use information will be added - */ - protected void addPackageUse(PackageDoc pkg, Content contentTree) throws IOException { - Content tdFirst = HtmlTree.TD(HtmlStyle.colFirst, - getHyperLink(getPackageAnchorName(pkg), new StringContent(utils.getPackageName(pkg)))); - contentTree.addContent(tdFirst); - HtmlTree tdLast = new HtmlTree(HtmlTag.TD); - tdLast.addStyle(HtmlStyle.colLast); - addSummaryComment(pkg, tdLast); - contentTree.addContent(tdLast); - } - - /** - * Add the class use information. - * - * @param pkg the package that uses the given class - * @param contentTree the content tree to which the class use information will be added - */ - protected void addClassUse(PackageDoc pkg, Content contentTree) throws IOException { - Content classLink = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_USE_HEADER, classdoc)); - Content pkgLink = getPackageLink(pkg, utils.getPackageName(pkg)); - classSubWriter.addUseInfo(pkgToClassAnnotations.get(pkg.name()), - configuration.getResource("doclet.ClassUse_Annotation", classLink, - pkgLink), classUseTableSummary, contentTree); - classSubWriter.addUseInfo(pkgToClassTypeParameter.get(pkg.name()), - configuration.getResource("doclet.ClassUse_TypeParameter", classLink, - pkgLink), classUseTableSummary, contentTree); - classSubWriter.addUseInfo(pkgToSubclass.get(pkg.name()), - configuration.getResource("doclet.ClassUse_Subclass", classLink, - pkgLink), subclassUseTableSummary, contentTree); - classSubWriter.addUseInfo(pkgToSubinterface.get(pkg.name()), - configuration.getResource("doclet.ClassUse_Subinterface", classLink, - pkgLink), subinterfaceUseTableSummary, contentTree); - classSubWriter.addUseInfo(pkgToImplementingClass.get(pkg.name()), - configuration.getResource("doclet.ClassUse_ImplementingClass", classLink, - pkgLink), classUseTableSummary, contentTree); - fieldSubWriter.addUseInfo(pkgToField.get(pkg.name()), - configuration.getResource("doclet.ClassUse_Field", classLink, - pkgLink), fieldUseTableSummary, contentTree); - fieldSubWriter.addUseInfo(pkgToFieldAnnotations.get(pkg.name()), - configuration.getResource("doclet.ClassUse_FieldAnnotations", classLink, - pkgLink), fieldUseTableSummary, contentTree); - fieldSubWriter.addUseInfo(pkgToFieldTypeParameter.get(pkg.name()), - configuration.getResource("doclet.ClassUse_FieldTypeParameter", classLink, - pkgLink), fieldUseTableSummary, contentTree); - methodSubWriter.addUseInfo(pkgToMethodAnnotations.get(pkg.name()), - configuration.getResource("doclet.ClassUse_MethodAnnotations", classLink, - pkgLink), methodUseTableSummary, contentTree); - methodSubWriter.addUseInfo(pkgToMethodParameterAnnotations.get(pkg.name()), - configuration.getResource("doclet.ClassUse_MethodParameterAnnotations", classLink, - pkgLink), methodUseTableSummary, contentTree); - methodSubWriter.addUseInfo(pkgToMethodTypeParameter.get(pkg.name()), - configuration.getResource("doclet.ClassUse_MethodTypeParameter", classLink, - pkgLink), methodUseTableSummary, contentTree); - methodSubWriter.addUseInfo(pkgToMethodReturn.get(pkg.name()), - configuration.getResource("doclet.ClassUse_MethodReturn", classLink, - pkgLink), methodUseTableSummary, contentTree); - methodSubWriter.addUseInfo(pkgToMethodReturnTypeParameter.get(pkg.name()), - configuration.getResource("doclet.ClassUse_MethodReturnTypeParameter", classLink, - pkgLink), methodUseTableSummary, contentTree); - methodSubWriter.addUseInfo(pkgToMethodArgs.get(pkg.name()), - configuration.getResource("doclet.ClassUse_MethodArgs", classLink, - pkgLink), methodUseTableSummary, contentTree); - methodSubWriter.addUseInfo(pkgToMethodArgTypeParameter.get(pkg.name()), - configuration.getResource("doclet.ClassUse_MethodArgsTypeParameters", classLink, - pkgLink), methodUseTableSummary, contentTree); - methodSubWriter.addUseInfo(pkgToMethodThrows.get(pkg.name()), - configuration.getResource("doclet.ClassUse_MethodThrows", classLink, - pkgLink), methodUseTableSummary, contentTree); - constrSubWriter.addUseInfo(pkgToConstructorAnnotations.get(pkg.name()), - configuration.getResource("doclet.ClassUse_ConstructorAnnotations", classLink, - pkgLink), constructorUseTableSummary, contentTree); - constrSubWriter.addUseInfo(pkgToConstructorParameterAnnotations.get(pkg.name()), - configuration.getResource("doclet.ClassUse_ConstructorParameterAnnotations", classLink, - pkgLink), constructorUseTableSummary, contentTree); - constrSubWriter.addUseInfo(pkgToConstructorArgs.get(pkg.name()), - configuration.getResource("doclet.ClassUse_ConstructorArgs", classLink, - pkgLink), constructorUseTableSummary, contentTree); - constrSubWriter.addUseInfo(pkgToConstructorArgTypeParameter.get(pkg.name()), - configuration.getResource("doclet.ClassUse_ConstructorArgsTypeParameters", classLink, - pkgLink), constructorUseTableSummary, contentTree); - constrSubWriter.addUseInfo(pkgToConstructorThrows.get(pkg.name()), - configuration.getResource("doclet.ClassUse_ConstructorThrows", classLink, - pkgLink), constructorUseTableSummary, contentTree); - } - - /** - * Get the header for the class use Listing. - * - * @return a content tree representing the class use header - */ - protected HtmlTree getClassUseHeader() { - String cltype = configuration.getText(classdoc.isInterface()? - "doclet.Interface":"doclet.Class"); - String clname = classdoc.qualifiedName(); - String title = configuration.getText("doclet.Window_ClassUse_Header", - cltype, clname); - HtmlTree bodyTree = getBody(true, getWindowTitle(title)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - ContentBuilder headContent = new ContentBuilder(); - headContent.addContent(getResource("doclet.ClassUse_Title", cltype)); - headContent.addContent(new HtmlTree(HtmlTag.BR)); - headContent.addContent(clname); - Content heading = HtmlTree.HEADING(HtmlConstants.CLASS_PAGE_HEADING, - true, HtmlStyle.title, headContent); - Content div = HtmlTree.DIV(HtmlStyle.header, heading); - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(div); - } else { - bodyTree.addContent(div); - } - return bodyTree; - } - - /** - * Get this package link. - * - * @return a content tree for the package link - */ - protected Content getNavLinkPackage() { - Content linkContent = - getHyperLink(DocPath.parent.resolve(DocPaths.PACKAGE_SUMMARY), packageLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get class page link. - * - * @return a content tree for the class page link - */ - protected Content getNavLinkClass() { - Content linkContent = getLink(new LinkInfoImpl( - configuration, LinkInfoImpl.Kind.CLASS_USE_HEADER, classdoc) - .label(configuration.getText("doclet.Class"))); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get the use link. - * - * @return a content tree for the use link - */ - protected Content getNavLinkClassUse() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, useLabel); - return li; - } - - /** - * Get the tree link. - * - * @return a content tree for the tree link - */ - protected Content getNavLinkTree() { - Content linkContent = classdoc.containingPackage().isIncluded() ? - getHyperLink(DocPath.parent.resolve(DocPaths.PACKAGE_TREE), treeLabel) : - getHyperLink(pathToRoot.resolve(DocPaths.OVERVIEW_TREE), treeLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java deleted file mode 100644 index 8e14be9b376..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java +++ /dev/null @@ -1,738 +0,0 @@ -/* - * Copyright (c) 1997, 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 com.sun.tools.doclets.formats.html; - -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.javadoc.main.RootDocImpl; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.builders.*; -import com.sun.tools.doclets.internal.toolkit.taglets.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -import java.io.IOException; - -/** - * Generate the Class Information Page. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @see com.sun.javadoc.ClassDoc - * @see java.util.Collections - * @see java.util.List - * @see java.util.ArrayList - * @see java.util.HashMap - * - * @author Atul M Dambalkar - * @author Robert Field - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class ClassWriterImpl extends SubWriterHolderWriter - implements ClassWriter { - - protected final ClassDoc classDoc; - - protected final ClassTree classtree; - - protected final ClassDoc prev; - - protected final ClassDoc next; - - /** - * @param configuration the configuration data for the doclet - * @param classDoc the class being documented. - * @param prevClass the previous class that was documented. - * @param nextClass the next class being documented. - * @param classTree the class tree for the given class. - */ - public ClassWriterImpl (ConfigurationImpl configuration, ClassDoc classDoc, - ClassDoc prevClass, ClassDoc nextClass, ClassTree classTree) - throws IOException { - super(configuration, DocPath.forClass(classDoc)); - this.classDoc = classDoc; - configuration.currentcd = classDoc; - this.classtree = classTree; - this.prev = prevClass; - this.next = nextClass; - } - - /** - * Get this package link. - * - * @return a content tree for the package link - */ - protected Content getNavLinkPackage() { - Content linkContent = getHyperLink(DocPaths.PACKAGE_SUMMARY, - packageLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get the class link. - * - * @return a content tree for the class link - */ - protected Content getNavLinkClass() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, classLabel); - return li; - } - - /** - * Get the class use link. - * - * @return a content tree for the class use link - */ - protected Content getNavLinkClassUse() { - Content linkContent = getHyperLink(DocPaths.CLASS_USE.resolve(filename), useLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get link to previous class. - * - * @return a content tree for the previous class link - */ - public Content getNavLinkPrevious() { - Content li; - if (prev != null) { - Content prevLink = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS, prev) - .label(prevclassLabel).strong(true)); - li = HtmlTree.LI(prevLink); - } - else - li = HtmlTree.LI(prevclassLabel); - return li; - } - - /** - * Get link to next class. - * - * @return a content tree for the next class link - */ - public Content getNavLinkNext() { - Content li; - if (next != null) { - Content nextLink = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS, next) - .label(nextclassLabel).strong(true)); - li = HtmlTree.LI(nextLink); - } - else - li = HtmlTree.LI(nextclassLabel); - return li; - } - - /** - * {@inheritDoc} - */ - public Content getHeader(String header) { - String pkgname = (classDoc.containingPackage() != null)? - classDoc.containingPackage().name(): ""; - String clname = classDoc.name(); - HtmlTree bodyTree = getBody(true, getWindowTitle(clname)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - bodyTree.addContent(HtmlConstants.START_OF_CLASS_DATA); - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.header); - if (pkgname.length() > 0) { - Content classPackageLabel = HtmlTree.SPAN(HtmlStyle.packageLabelInClass, packageLabel); - Content pkgNameDiv = HtmlTree.DIV(HtmlStyle.subTitle, classPackageLabel); - pkgNameDiv.addContent(getSpace()); - Content pkgNameContent = getTargetPackageLink(classDoc.containingPackage(), - "classFrame", new StringContent(pkgname)); - pkgNameDiv.addContent(pkgNameContent); - div.addContent(pkgNameDiv); - } - LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_HEADER, classDoc); - //Let's not link to ourselves in the header. - linkInfo.linkToSelf = false; - Content headerContent = new StringContent(header); - Content heading = HtmlTree.HEADING(HtmlConstants.CLASS_PAGE_HEADING, true, - HtmlStyle.title, headerContent); - heading.addContent(getTypeParameterLinks(linkInfo)); - div.addContent(heading); - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(div); - } else { - bodyTree.addContent(div); - } - return bodyTree; - } - - /** - * {@inheritDoc} - */ - public Content getClassContentHeader() { - return getContentHeader(); - } - - /** - * {@inheritDoc} - */ - public void addFooter(Content contentTree) { - contentTree.addContent(HtmlConstants.END_OF_CLASS_DATA); - Content htmlTree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : contentTree; - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - contentTree.addContent(htmlTree); - } - } - - /** - * {@inheritDoc} - */ - public void printDocument(Content contentTree) throws IOException { - printHtmlDocument(configuration.metakeywords.getMetaKeywords(classDoc), - true, contentTree); - } - - /** - * {@inheritDoc} - */ - public Content getClassInfoTreeHeader() { - return getMemberTreeHeader(); - } - - /** - * {@inheritDoc} - */ - public Content getClassInfo(Content classInfoTree) { - return getMemberTree(HtmlStyle.description, classInfoTree); - } - - /** - * {@inheritDoc} - */ - public void addClassSignature(String modifiers, Content classInfoTree) { - boolean isInterface = classDoc.isInterface(); - classInfoTree.addContent(new HtmlTree(HtmlTag.BR)); - Content pre = new HtmlTree(HtmlTag.PRE); - addAnnotationInfo(classDoc, pre); - pre.addContent(modifiers); - LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_SIGNATURE, classDoc); - //Let's not link to ourselves in the signature. - linkInfo.linkToSelf = false; - Content className = new StringContent(classDoc.name()); - Content parameterLinks = getTypeParameterLinks(linkInfo); - if (configuration.linksource) { - addSrcLink(classDoc, className, pre); - pre.addContent(parameterLinks); - } else { - Content span = HtmlTree.SPAN(HtmlStyle.typeNameLabel, className); - span.addContent(parameterLinks); - pre.addContent(span); - } - if (!isInterface) { - Type superclass = utils.getFirstVisibleSuperClass(classDoc, - configuration); - if (superclass != null) { - pre.addContent(DocletConstants.NL); - pre.addContent("extends "); - Content link = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_SIGNATURE_PARENT_NAME, - superclass)); - pre.addContent(link); - } - } - Type[] implIntfacs = classDoc.interfaceTypes(); - if (implIntfacs != null && implIntfacs.length > 0) { - int counter = 0; - for (Type implType : implIntfacs) { - ClassDoc classDoc = implType.asClassDoc(); - if (!(classDoc.isPublic() || utils.isLinkable(classDoc, configuration))) { - continue; - } - if (counter == 0) { - pre.addContent(DocletConstants.NL); - pre.addContent(isInterface ? "extends " : "implements "); - } else { - pre.addContent(", "); - } - Content link = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_SIGNATURE_PARENT_NAME, - implType)); - pre.addContent(link); - counter++; - } - } - classInfoTree.addContent(pre); - } - - /** - * {@inheritDoc} - */ - public void addClassDescription(Content classInfoTree) { - if(!configuration.nocomment) { - // generate documentation for the class. - if (classDoc.inlineTags().length > 0) { - addInlineComment(classDoc, classInfoTree); - } - } - } - - /** - * {@inheritDoc} - */ - public void addClassTagInfo(Content classInfoTree) { - if(!configuration.nocomment) { - // Print Information about all the tags here - addTagsInfo(classDoc, classInfoTree); - } - } - - /** - * Get the class hierarchy tree for the given class. - * - * @param type the class to print the hierarchy for - * @return a content tree for class inheritence - */ - private Content getClassInheritenceTree(Type type) { - Type sup; - HtmlTree classTreeUl = new HtmlTree(HtmlTag.UL); - classTreeUl.addStyle(HtmlStyle.inheritance); - Content liTree = null; - do { - sup = utils.getFirstVisibleSuperClass( - type instanceof ClassDoc ? (ClassDoc) type : type.asClassDoc(), - configuration); - if (sup != null) { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.inheritance); - ul.addContent(getTreeForClassHelper(type)); - if (liTree != null) - ul.addContent(liTree); - Content li = HtmlTree.LI(ul); - liTree = li; - type = sup; - } - else - classTreeUl.addContent(getTreeForClassHelper(type)); - } - while (sup != null); - if (liTree != null) - classTreeUl.addContent(liTree); - return classTreeUl; - } - - /** - * Get the class helper tree for the given class. - * - * @param type the class to print the helper for - * @return a content tree for class helper - */ - private Content getTreeForClassHelper(Type type) { - Content li = new HtmlTree(HtmlTag.LI); - if (type.equals(classDoc)) { - Content typeParameters = getTypeParameterLinks( - new LinkInfoImpl(configuration, LinkInfoImpl.Kind.TREE, - classDoc)); - if (configuration.shouldExcludeQualifier( - classDoc.containingPackage().name())) { - li.addContent(type.asClassDoc().name()); - li.addContent(typeParameters); - } else { - li.addContent(type.asClassDoc().qualifiedName()); - li.addContent(typeParameters); - } - } else { - Content link = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS_TREE_PARENT, type) - .label(configuration.getClassName(type.asClassDoc()))); - li.addContent(link); - } - return li; - } - - /** - * {@inheritDoc} - */ - public void addClassTree(Content classContentTree) { - if (!classDoc.isClass()) { - return; - } - classContentTree.addContent(getClassInheritenceTree(classDoc)); - } - - /** - * {@inheritDoc} - */ - public void addTypeParamInfo(Content classInfoTree) { - if (classDoc.typeParamTags().length > 0) { - Content typeParam = (new ParamTaglet()).getTagletOutput(classDoc, - getTagletWriterInstance(false)); - Content dl = HtmlTree.DL(typeParam); - classInfoTree.addContent(dl); - } - } - - /** - * {@inheritDoc} - */ - public void addSubClassInfo(Content classInfoTree) { - if (classDoc.isClass()) { - if (classDoc.qualifiedName().equals("java.lang.Object") || - classDoc.qualifiedName().equals("org.omg.CORBA.Object")) { - return; // Don't generate the list, too huge - } - SortedSet subclasses = classtree.subs(classDoc, false); - if (!subclasses.isEmpty()) { - Content label = getResource( - "doclet.Subclasses"); - Content dt = HtmlTree.DT(label); - Content dl = HtmlTree.DL(dt); - dl.addContent(getClassLinks(LinkInfoImpl.Kind.SUBCLASSES, - subclasses)); - classInfoTree.addContent(dl); - } - } - } - - /** - * {@inheritDoc} - */ - public void addSubInterfacesInfo(Content classInfoTree) { - if (classDoc.isInterface()) { - SortedSet subInterfaces = classtree.allSubs(classDoc, false); - if (!subInterfaces.isEmpty()) { - Content label = getResource( - "doclet.Subinterfaces"); - Content dt = HtmlTree.DT(label); - Content dl = HtmlTree.DL(dt); - dl.addContent(getClassLinks(LinkInfoImpl.Kind.SUBINTERFACES, - subInterfaces)); - classInfoTree.addContent(dl); - } - } - } - - /** - * {@inheritDoc} - */ - public void addInterfaceUsageInfo (Content classInfoTree) { - if (! classDoc.isInterface()) { - return; - } - if (classDoc.qualifiedName().equals("java.lang.Cloneable") || - classDoc.qualifiedName().equals("java.io.Serializable")) { - return; // Don't generate the list, too big - } - SortedSet implcl = classtree.implementingclasses(classDoc); - if (!implcl.isEmpty()) { - Content label = getResource( - "doclet.Implementing_Classes"); - Content dt = HtmlTree.DT(label); - Content dl = HtmlTree.DL(dt); - dl.addContent(getClassLinks(LinkInfoImpl.Kind.IMPLEMENTED_CLASSES, - implcl)); - classInfoTree.addContent(dl); - } - } - - /** - * {@inheritDoc} - */ - public void addImplementedInterfacesInfo(Content classInfoTree) { - //NOTE: we really should be using ClassDoc.interfaceTypes() here, but - // it doesn't walk up the tree like we want it to. - List interfaceArray = utils.getAllInterfaces(classDoc, configuration); - if (classDoc.isClass() && interfaceArray.size() > 0) { - Content label = getResource( - "doclet.All_Implemented_Interfaces"); - Content dt = HtmlTree.DT(label); - Content dl = HtmlTree.DL(dt); - dl.addContent(getClassLinks(LinkInfoImpl.Kind.IMPLEMENTED_INTERFACES, - interfaceArray)); - classInfoTree.addContent(dl); - } - } - - /** - * {@inheritDoc} - */ - public void addSuperInterfacesInfo(Content classInfoTree) { - //NOTE: we really should be using ClassDoc.interfaceTypes() here, but - // it doesn't walk up the tree like we want it to. - List interfaceArray = utils.getAllInterfaces(classDoc, configuration); - if (classDoc.isInterface() && interfaceArray.size() > 0) { - Content label = getResource( - "doclet.All_Superinterfaces"); - Content dt = HtmlTree.DT(label); - Content dl = HtmlTree.DL(dt); - dl.addContent(getClassLinks(LinkInfoImpl.Kind.SUPER_INTERFACES, - interfaceArray)); - classInfoTree.addContent(dl); - } - } - - /** - * {@inheritDoc} - */ - public void addNestedClassInfo(Content classInfoTree) { - ClassDoc outerClass = classDoc.containingClass(); - if (outerClass != null) { - Content label; - if (outerClass.isInterface()) { - label = getResource( - "doclet.Enclosing_Interface"); - } else { - label = getResource( - "doclet.Enclosing_Class"); - } - Content dt = HtmlTree.DT(label); - Content dl = HtmlTree.DL(dt); - Content dd = new HtmlTree(HtmlTag.DD); - dd.addContent(getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CLASS, outerClass))); - dl.addContent(dd); - classInfoTree.addContent(dl); - } - } - - /** - * {@inheritDoc} - */ - public void addFunctionalInterfaceInfo (Content classInfoTree) { - if (isFunctionalInterface()) { - Content dt = HtmlTree.DT(getResource("doclet.Functional_Interface")); - Content dl = HtmlTree.DL(dt); - Content dd = new HtmlTree(HtmlTag.DD); - dd.addContent(getResource("doclet.Functional_Interface_Message")); - dl.addContent(dd); - classInfoTree.addContent(dl); - } - } - - public boolean isFunctionalInterface() { - if (configuration.root instanceof RootDocImpl) { - RootDocImpl root = (RootDocImpl) configuration.root; - AnnotationDesc[] annotationDescList = classDoc.annotations(); - for (AnnotationDesc annoDesc : annotationDescList) { - if (root.isFunctionalInterface(annoDesc)) { - return true; - } - } - } - return false; - } - - /** - * {@inheritDoc} - */ - public void addClassDeprecationInfo(Content classInfoTree) { - Content hr = new HtmlTree(HtmlTag.HR); - classInfoTree.addContent(hr); - Tag[] deprs = classDoc.tags("deprecated"); - if (utils.isDeprecated(classDoc)) { - Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); - Content div = HtmlTree.DIV(HtmlStyle.block, deprLabel); - if (deprs.length > 0) { - Tag[] commentTags = deprs[0].inlineTags(); - if (commentTags.length > 0) { - div.addContent(getSpace()); - addInlineDeprecatedComment(classDoc, deprs[0], div); - } - } - classInfoTree.addContent(div); - } - } - - /** - * Get links to the given classes. - * - * @param context the id of the context where the link will be printed - * @param list the list of classes - * @return a content tree for the class list - */ - private Content getClassLinks(LinkInfoImpl.Kind context, Collection list) { - Object[] typeList = list.toArray(); - Content dd = new HtmlTree(HtmlTag.DD); - boolean isFirst = true; - for (Object item : typeList) { - if (!isFirst) { - Content separator = new StringContent(", "); - dd.addContent(separator); - } else { - isFirst = false; - } - - if (item instanceof ClassDoc) { - Content link = getLink(new LinkInfoImpl(configuration, context, (ClassDoc)item)); - dd.addContent(link); - } else { - Content link = getLink(new LinkInfoImpl(configuration, context, (Type)item)); - dd.addContent(link); - } - } - return dd; - } - - /** - * {@inheritDoc} - */ - protected Content getNavLinkTree() { - Content treeLinkContent = getHyperLink(DocPaths.PACKAGE_TREE, - treeLabel, "", ""); - Content li = HtmlTree.LI(treeLinkContent); - return li; - } - - /** - * Add summary details to the navigation bar. - * - * @param subDiv the content tree to which the summary detail links will be added - */ - protected void addSummaryDetailLinks(Content subDiv) { - try { - Content div = HtmlTree.DIV(getNavSummaryLinks()); - div.addContent(getNavDetailLinks()); - subDiv.addContent(div); - } catch (Exception e) { - e.printStackTrace(); - throw new DocletAbortException(e); - } - } - - /** - * Get summary links for navigation bar. - * - * @return the content tree for the navigation summary links - */ - protected Content getNavSummaryLinks() throws Exception { - Content li = HtmlTree.LI(summaryLabel); - li.addContent(getSpace()); - Content ulNav = HtmlTree.UL(HtmlStyle.subNavList, li); - MemberSummaryBuilder memberSummaryBuilder = (MemberSummaryBuilder) - configuration.getBuilderFactory().getMemberSummaryBuilder(this); - String[] navLinkLabels = new String[] { - "doclet.navNested", "doclet.navEnum", "doclet.navField", "doclet.navConstructor", - "doclet.navMethod" - }; - for (int i = 0; i < navLinkLabels.length; i++ ) { - Content liNav = new HtmlTree(HtmlTag.LI); - if (i == VisibleMemberMap.ENUM_CONSTANTS && ! classDoc.isEnum()) { - continue; - } - if (i == VisibleMemberMap.CONSTRUCTORS && classDoc.isEnum()) { - continue; - } - AbstractMemberWriter writer = - ((AbstractMemberWriter) memberSummaryBuilder. - getMemberSummaryWriter(i)); - if (writer == null) { - liNav.addContent(getResource(navLinkLabels[i])); - } else { - writer.addNavSummaryLink( - memberSummaryBuilder.members(i), - memberSummaryBuilder.getVisibleMemberMap(i), liNav); - } - if (i < navLinkLabels.length-1) { - addNavGap(liNav); - } - ulNav.addContent(liNav); - } - return ulNav; - } - - /** - * Get detail links for the navigation bar. - * - * @return the content tree for the detail links - */ - protected Content getNavDetailLinks() throws Exception { - Content li = HtmlTree.LI(detailLabel); - li.addContent(getSpace()); - Content ulNav = HtmlTree.UL(HtmlStyle.subNavList, li); - MemberSummaryBuilder memberSummaryBuilder = (MemberSummaryBuilder) - configuration.getBuilderFactory().getMemberSummaryBuilder(this); - String[] navLinkLabels = new String[] { - "doclet.navNested", "doclet.navEnum", "doclet.navField", "doclet.navConstructor", - "doclet.navMethod" - }; - for (int i = 1; i < navLinkLabels.length; i++ ) { - Content liNav = new HtmlTree(HtmlTag.LI); - AbstractMemberWriter writer = - ((AbstractMemberWriter) memberSummaryBuilder. - getMemberSummaryWriter(i)); - if (i == VisibleMemberMap.ENUM_CONSTANTS && ! classDoc.isEnum()) { - continue; - } - if (i == VisibleMemberMap.CONSTRUCTORS && classDoc.isEnum()) { - continue; - } - if (writer == null) { - liNav.addContent(getResource(navLinkLabels[i])); - } else { - writer.addNavDetailLink(memberSummaryBuilder.members(i), liNav); - } - if (i < navLinkLabels.length - 1) { - addNavGap(liNav); - } - ulNav.addContent(liNav); - } - return ulNav; - } - - /** - * Add gap between navigation bar elements. - * - * @param liNav the content tree to which the gap will be added - */ - protected void addNavGap(Content liNav) { - liNav.addContent(getSpace()); - liNav.addContent("|"); - liNav.addContent(getSpace()); - } - - /** - * Return the classDoc being documented. - * - * @return the classDoc being documented. - */ - public ClassDoc getClassDoc() { - return classDoc; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java deleted file mode 100644 index 3042dfb86a7..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java +++ /dev/null @@ -1,710 +0,0 @@ -/* - * Copyright (c) 1998, 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 com.sun.tools.doclets.formats.html; - -import java.net.*; -import java.util.*; - -import javax.tools.JavaFileManager; -import javax.tools.JavaFileManager.Location; -import javax.tools.StandardLocation; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; -import com.sun.tools.doclint.DocLint; -import com.sun.tools.javac.file.JavacFileManager; -import com.sun.tools.javac.util.Context; -import com.sun.tools.javac.util.StringUtils; -import com.sun.tools.javadoc.main.JavaScriptScanner; -import com.sun.tools.javadoc.main.RootDocImpl; - -/** - * Configure the output based on the command line options. - *

    - * Also determine the length of the command line option. For example, - * for a option "-header" there will be a string argument associated, then the - * the length of option "-header" is two. But for option "-nohelp" no argument - * is needed so it's length is 1. - *

    - *

    - * Also do the error checking on the options used. For example it is illegal to - * use "-helpfile" option when already "-nohelp" option is used. - *

    - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert Field. - * @author Atul Dambalkar. - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class ConfigurationImpl extends Configuration { - - /** - * The build date. Note: For now, we will use - * a version number instead of a date. - */ - public static final String BUILD_DATE = System.getProperty("java.version"); - - /** - * Argument for command line option "-header". - */ - public String header = ""; - - /** - * Argument for command line option "-packagesheader". - */ - public String packagesheader = ""; - - /** - * Argument for command line option "-footer". - */ - public String footer = ""; - - /** - * Argument for command line option "-doctitle". - */ - public String doctitle = ""; - - /** - * Argument for command line option "-windowtitle". - */ - public String windowtitle = ""; - - /** - * Argument for command line option "-top". - */ - public String top = ""; - - /** - * Argument for command line option "-bottom". - */ - public String bottom = ""; - - /** - * Argument for command line option "-helpfile". - */ - public String helpfile = ""; - - /** - * Argument for command line option "-stylesheetfile". - */ - public String stylesheetfile = ""; - - /** - * Argument for command line option "-Xdocrootparent". - */ - public String docrootparent = ""; - - /** - * True if command line option "-nohelp" is used. Default value is false. - */ - public boolean nohelp = false; - - /** - * True if command line option "-splitindex" is used. Default value is - * false. - */ - public boolean splitindex = false; - - /** - * False if command line option "-noindex" is used. Default value is true. - */ - public boolean createindex = true; - - /** - * True if command line option "-use" is used. Default value is false. - */ - public boolean classuse = false; - - /** - * False if command line option "-notree" is used. Default value is true. - */ - public boolean createtree = true; - - /** - * True if command line option "-nodeprecated" is used. Default value is - * false. - */ - public boolean nodeprecatedlist = false; - - /** - * True if command line option "-nonavbar" is used. Default value is false. - */ - public boolean nonavbar = false; - - /** - * True if command line option "-nooverview" is used. Default value is - * false - */ - private boolean nooverview = false; - - /** - * True if command line option "-overview" is used. Default value is false. - */ - public boolean overview = false; - - /** - * This is true if option "-overview" is used or option "-overview" is not - * used and number of packages is more than one. - */ - public boolean createoverview = false; - - /** - * This is the HTML version of the generated pages. HTML 4.01 is the default output version. - */ - public HtmlVersion htmlVersion = HtmlVersion.HTML4; - - /** - * Collected set of doclint options - */ - public Set doclintOpts = new LinkedHashSet<>(); - - /** - * Whether or not to check for JavaScript in doc comments. - */ - private boolean allowScriptInComments; - - /** - * Unique Resource Handler for this package. - */ - public final MessageRetriever standardmessage; - - /** - * First file to appear in the right-hand frame in the generated - * documentation. - */ - public DocPath topFile = DocPath.empty; - - /** - * The classdoc for the class file getting generated. - */ - public ClassDoc currentcd = null; // Set this classdoc in the ClassWriter. - - protected List memberSearchIndex = new ArrayList<>(); - - protected List packageSearchIndex = new ArrayList<>(); - - protected List tagSearchIndex = new ArrayList<>(); - - protected List typeSearchIndex = new ArrayList<>(); - - protected Map> tagSearchIndexMap = new HashMap<>(); - - protected Set tagSearchIndexKeys; - - /** - * Constructor. Initializes resource for the - * {@link com.sun.tools.doclets.internal.toolkit.util.MessageRetriever MessageRetriever}. - */ - public ConfigurationImpl() { - standardmessage = new MessageRetriever(this, - "com.sun.tools.doclets.formats.html.resources.standard"); - } - - private final String versionRBName = "com.sun.tools.javadoc.resources.version"; - private ResourceBundle versionRB; - - /** - * Return the build date for the doclet. - */ - @Override - public String getDocletSpecificBuildDate() { - if (versionRB == null) { - try { - versionRB = ResourceBundle.getBundle(versionRBName); - } catch (MissingResourceException e) { - return BUILD_DATE; - } - } - - try { - return versionRB.getString("release"); - } catch (MissingResourceException e) { - return BUILD_DATE; - } - } - - /** - * Depending upon the command line options provided by the user, set - * configure the output generation environment. - * - * @param options The array of option names and values. - */ - @Override - public void setSpecificDocletOptions(String[][] options) { - for (int oi = 0; oi < options.length; ++oi) { - String[] os = options[oi]; - String opt = StringUtils.toLowerCase(os[0]); - if (opt.equals("-footer")) { - footer = os[1]; - } else if (opt.equals("-header")) { - header = os[1]; - } else if (opt.equals("-packagesheader")) { - packagesheader = os[1]; - } else if (opt.equals("-doctitle")) { - doctitle = os[1]; - } else if (opt.equals("-windowtitle")) { - windowtitle = os[1].replaceAll("\\<.*?>", ""); - } else if (opt.equals("-top")) { - top = os[1]; - } else if (opt.equals("-bottom")) { - bottom = os[1]; - } else if (opt.equals("-helpfile")) { - helpfile = os[1]; - } else if (opt.equals("-stylesheetfile")) { - stylesheetfile = os[1]; - } else if (opt.equals("-charset")) { - charset = os[1]; - } else if (opt.equals("-xdocrootparent")) { - docrootparent = os[1]; - } else if (opt.equals("-nohelp")) { - nohelp = true; - } else if (opt.equals("-splitindex")) { - splitindex = true; - } else if (opt.equals("-noindex")) { - createindex = false; - } else if (opt.equals("-use")) { - classuse = true; - } else if (opt.equals("-notree")) { - createtree = false; - } else if (opt.equals("-nodeprecatedlist")) { - nodeprecatedlist = true; - } else if (opt.equals("-nonavbar")) { - nonavbar = true; - } else if (opt.equals("-nooverview")) { - nooverview = true; - } else if (opt.equals("-overview")) { - overview = true; - } else if (opt.equals("-html4")) { - htmlVersion = HtmlVersion.HTML4; - } else if (opt.equals("-html5")) { - htmlVersion = HtmlVersion.HTML5; - } else if (opt.equals("-xdoclint")) { - doclintOpts.add(DocLint.XMSGS_OPTION); - } else if (opt.startsWith("-xdoclint:")) { - doclintOpts.add(DocLint.XMSGS_CUSTOM_PREFIX + opt.substring(opt.indexOf(":") + 1)); - } else if (opt.startsWith("-xdoclint/package:")) { - doclintOpts.add(DocLint.XCHECK_PACKAGE + opt.substring(opt.indexOf(":") + 1)); - } else if (opt.equals("--allow-script-in-comments")) { - allowScriptInComments = true; - } - } - - if (root.specifiedClasses().length > 0) { - Map map = new HashMap<>(); - PackageDoc pd; - ClassDoc[] classes = root.classes(); - for (ClassDoc aClass : classes) { - pd = aClass.containingPackage(); - if (!map.containsKey(pd.name())) { - map.put(pd.name(), pd); - } - } - } - - setCreateOverview(); - setTopFile(root); - - if (root instanceof RootDocImpl) { - ((RootDocImpl) root).initDocLint(doclintOpts, tagletManager.getCustomTagNames(), - StringUtils.toLowerCase(htmlVersion.name())); - JavaScriptScanner jss = ((RootDocImpl) root).initJavaScriptScanner(isAllowScriptInComments()); - if (jss != null) { - // In a more object-oriented world, this would be done by methods on the Option objects. - // Note that -windowtitle silently removes any and all HTML elements, and so does not need - // to be handled here. - checkJavaScript(jss, "-header", header); - checkJavaScript(jss, "-footer", footer); - checkJavaScript(jss, "-top", top); - checkJavaScript(jss, "-bottom", bottom); - checkJavaScript(jss, "-doctitle", doctitle); - checkJavaScript(jss, "-packagesheader", packagesheader); - } - } - } - - private void checkJavaScript(JavaScriptScanner jss, final String opt, String value) { - jss.parse(value, new JavaScriptScanner.Reporter() { - public void report() { - root.printError(getText("doclet.JavaScript_in_option", opt)); - throw new FatalError(); - } - }); - } - - /** - * Returns the "length" of a given option. If an option takes no - * arguments, its length is one. If it takes one argument, it's - * length is two, and so on. This method is called by JavaDoc to - * parse the options it does not recognize. It then calls - * {@link #validOptions(String[][], DocErrorReporter)} to - * validate them. - * Note:
    - * The options arrive as case-sensitive strings. For options that - * are not case-sensitive, use toLowerCase() on the option string - * before comparing it. - * - * @return number of arguments + 1 for a option. Zero return means - * option not known. Negative value means error occurred. - */ - public int optionLength(String option) { - int result = -1; - if ((result = super.optionLength(option)) > 0) { - return result; - } - // otherwise look for the options we have added - option = StringUtils.toLowerCase(option); - if (option.equals("-nodeprecatedlist") || - option.equals("-noindex") || - option.equals("-notree") || - option.equals("-nohelp") || - option.equals("-splitindex") || - option.equals("-serialwarn") || - option.equals("-use") || - option.equals("-nonavbar") || - option.equals("-nooverview") || - option.equals("-html4") || - option.equals("-html5") || - option.equals("-xdoclint") || - option.startsWith("-xdoclint:") || - option.startsWith("-xdoclint/package:") || - option.startsWith("--allow-script-in-comments")) { - return 1; - } else if (option.equals("-help")) { - // Uugh: first, this should not be hidden inside optionLength, - // and second, we should not be writing directly to stdout. - // But we have no access to a DocErrorReporter, which would - // allow use of reporter.printNotice - System.out.println(getText("doclet.usage")); - return 1; - } else if (option.equals("-x")) { - // Uugh: first, this should not be hidden inside optionLength, - // and second, we should not be writing directly to stdout. - // But we have no access to a DocErrorReporter, which would - // allow use of reporter.printNotice - System.out.println(getText("doclet.X.usage")); - return 1; - } else if (option.equals("-footer") || - option.equals("-header") || - option.equals("-packagesheader") || - option.equals("-doctitle") || - option.equals("-windowtitle") || - option.equals("-top") || - option.equals("-bottom") || - option.equals("-helpfile") || - option.equals("-stylesheetfile") || - option.equals("-charset") || - option.equals("-overview") || - option.equals("-xdocrootparent")) { - return 2; - } else { - return 0; - } - } - - /** - * {@inheritDoc} - */ - @Override - public boolean validOptions(String options[][], - DocErrorReporter reporter) { - boolean helpfile = false; - boolean nohelp = false; - boolean overview = false; - boolean nooverview = false; - boolean splitindex = false; - boolean noindex = false; - // check shared options - if (!generalValidOptions(options, reporter)) { - return false; - } - // otherwise look at our options - for (int oi = 0; oi < options.length; ++oi) { - String[] os = options[oi]; - String opt = StringUtils.toLowerCase(os[0]); - if (opt.equals("-helpfile")) { - if (nohelp == true) { - reporter.printError(getText("doclet.Option_conflict", - "-helpfile", "-nohelp")); - return false; - } - if (helpfile == true) { - reporter.printError(getText("doclet.Option_reuse", - "-helpfile")); - return false; - } - DocFile help = DocFile.createFileForInput(this, os[1]); - if (!help.exists()) { - reporter.printError(getText("doclet.File_not_found", os[1])); - return false; - } - helpfile = true; - } else if (opt.equals("-nohelp")) { - if (helpfile == true) { - reporter.printError(getText("doclet.Option_conflict", - "-nohelp", "-helpfile")); - return false; - } - nohelp = true; - } else if (opt.equals("-xdocrootparent")) { - try { - new URL(os[1]); - } catch (MalformedURLException e) { - reporter.printError(getText("doclet.MalformedURL", os[1])); - return false; - } - } else if (opt.equals("-overview")) { - if (nooverview == true) { - reporter.printError(getText("doclet.Option_conflict", - "-overview", "-nooverview")); - return false; - } - if (overview == true) { - reporter.printError(getText("doclet.Option_reuse", - "-overview")); - return false; - } - overview = true; - } else if (opt.equals("-nooverview")) { - if (overview == true) { - reporter.printError(getText("doclet.Option_conflict", - "-nooverview", "-overview")); - return false; - } - nooverview = true; - } else if (opt.equals("-splitindex")) { - if (noindex == true) { - reporter.printError(getText("doclet.Option_conflict", - "-splitindex", "-noindex")); - return false; - } - splitindex = true; - } else if (opt.equals("-noindex")) { - if (splitindex == true) { - reporter.printError(getText("doclet.Option_conflict", - "-noindex", "-splitindex")); - return false; - } - noindex = true; - } else if (opt.startsWith("-xdoclint:")) { - if (opt.contains("/")) { - reporter.printError(getText("doclet.Option_doclint_no_qualifiers")); - return false; - } - if (!DocLint.isValidOption( - opt.replace("-xdoclint:", DocLint.XMSGS_CUSTOM_PREFIX))) { - reporter.printError(getText("doclet.Option_doclint_invalid_arg")); - return false; - } - } else if (opt.startsWith("-xdoclint/package:")) { - if (!DocLint.isValidOption( - opt.replace("-xdoclint/package:", DocLint.XCHECK_PACKAGE))) { - reporter.printError(getText("doclet.Option_doclint_package_invalid_arg")); - return false; - } - } - } - return true; - } - - /** - * Return true if the generated output is HTML5. - */ - public boolean isOutputHtml5() { - return htmlVersion == HtmlVersion.HTML5; - } - - /** - * Return true if the tag is allowed for this specific version of HTML. - */ - public boolean allowTag(HtmlTag htmlTag) { - return htmlTag.allowTag(this.htmlVersion); - } - - /** - * {@inheritDoc} - */ - @Override - public MessageRetriever getDocletSpecificMsg() { - return standardmessage; - } - - /** - * Decide the page which will appear first in the right-hand frame. It will - * be "overview-summary.html" if "-overview" option is used or no - * "-overview" but the number of packages is more than one. It will be - * "package-summary.html" of the respective package if there is only one - * package to document. It will be a class page(first in the sorted order), - * if only classes are provided on the command line. - * - * @param root Root of the program structure. - */ - protected void setTopFile(RootDoc root) { - if (!checkForDeprecation(root)) { - return; - } - if (createoverview) { - topFile = DocPaths.OVERVIEW_SUMMARY; - } else { - if (packages.size() == 1 && packages.first().name().equals("")) { - if (root.classes().length > 0) { - ClassDoc[] classarr = root.classes(); - Arrays.sort(classarr); - ClassDoc cd = getValidClass(classarr); - topFile = DocPath.forClass(cd); - } - } else if (!packages.isEmpty()) { - topFile = DocPath.forPackage(packages.first()).resolve(DocPaths.PACKAGE_SUMMARY); - } - } - } - - protected ClassDoc getValidClass(ClassDoc[] classarr) { - if (!nodeprecated) { - return classarr[0]; - } - for (ClassDoc cd : classarr) { - if (cd.tags("deprecated").length == 0) { - return cd; - } - } - return null; - } - - protected boolean checkForDeprecation(RootDoc root) { - for (ClassDoc cd : root.classes()) { - if (isGeneratedDoc(cd)) { - return true; - } - } - return false; - } - - /** - * Generate "overview.html" page if option "-overview" is used or number of - * packages is more than one. Sets {@link #createoverview} field to true. - */ - protected void setCreateOverview() { - if ((overview || packages.size() > 1) && !nooverview) { - createoverview = true; - } - } - - /** - * {@inheritDoc} - */ - @Override - public WriterFactory getWriterFactory() { - return new WriterFactoryImpl(this); - } - - /** - * {@inheritDoc} - */ - @Override - public Comparator getMemberComparator() { - return null; - } - - /** - * {@inheritDoc} - */ - @Override - public Locale getLocale() { - if (root instanceof RootDocImpl) - return ((RootDocImpl)root).getLocale(); - else - return Locale.getDefault(); - } - - /** - * {@inheritDoc} - */ - @Override - public JavaFileManager getFileManager() { - if (fileManager == null) { - if (root instanceof RootDocImpl) - fileManager = ((RootDocImpl) root).getFileManager(); - else - fileManager = new JavacFileManager(new Context(), false, null); - } - return fileManager; - } - - private JavaFileManager fileManager; - - @Override - public boolean showMessage(SourcePosition pos, String key) { - if (root instanceof RootDocImpl) { - return pos == null || ((RootDocImpl) root).showTagMessages(); - } - return true; - } - - @Override - public Content newContent() { - return new ContentBuilder(); - } - - @Override - public Location getLocationForPackage(PackageDoc pd) { - JavaFileManager fm = getFileManager(); - return StandardLocation.SOURCE_PATH; - } - - protected void buildSearchTagIndex() { - for (SearchIndexItem sii : tagSearchIndex) { - String tagLabel = sii.getLabel(); - char ch = (tagLabel.length() == 0) - ? '*' - : Character.toUpperCase(tagLabel.charAt(0)); - Character unicode = ch; - List list = tagSearchIndexMap.get(unicode); - if (list == null) { - list = new ArrayList<>(); - tagSearchIndexMap.put(unicode, list); - } - list.add(sii); - } - tagSearchIndexKeys = tagSearchIndexMap.keySet(); - } - - /** - * Returns whether or not to allow JavaScript in comments. - * Default is off; can be set true from a command line option. - * @return the allowScriptInComments - */ - public boolean isAllowScriptInComments() { - return allowScriptInComments; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java deleted file mode 100644 index 733a8179d0c..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java +++ /dev/null @@ -1,379 +0,0 @@ -/* - * Copyright (c) 2001, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Write the Constants Summary Page in HTML format. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.4 - */ -@Deprecated -public class ConstantsSummaryWriterImpl extends HtmlDocletWriter - implements ConstantsSummaryWriter { - - /** - * The configuration used in this run of the standard doclet. - */ - ConfigurationImpl configuration; - - /** - * The current class being documented. - */ - private ClassDoc currentClassDoc; - - private final String constantsTableSummary; - - private final String[] constantsTableHeader; - - /** - * The HTML tree for main tag. - */ - private HtmlTree mainTree = HtmlTree.MAIN(); - - /** - * The HTML tree for constant values summary. - */ - private HtmlTree summaryTree; - - /** - * Construct a ConstantsSummaryWriter. - * @param configuration the configuration used in this run - * of the standard doclet. - */ - public ConstantsSummaryWriterImpl(ConfigurationImpl configuration) - throws IOException { - super(configuration, DocPaths.CONSTANT_VALUES); - this.configuration = configuration; - constantsTableSummary = configuration.getText("doclet.Constants_Table_Summary", - configuration.getText("doclet.Constants_Summary")); - constantsTableHeader = new String[] { - getModifierTypeHeader(), - configuration.getText("doclet.ConstantField"), - configuration.getText("doclet.Value") - }; - } - - /** - * {@inheritDoc} - */ - public Content getHeader() { - String label = configuration.getText("doclet.Constants_Summary"); - HtmlTree bodyTree = getBody(true, getWindowTitle(label)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - return bodyTree; - } - - /** - * {@inheritDoc} - */ - public Content getContentsHeader() { - return new HtmlTree(HtmlTag.UL); - } - - /** - * {@inheritDoc} - */ - public void addLinkToPackageContent(PackageDoc pkg, String parsedPackageName, - Set printedPackageHeaders, Content contentListTree) { - String packageName = pkg.name(); - //add link to summary - Content link; - if (packageName.length() == 0) { - link = getHyperLink(getDocLink( - SectionName.UNNAMED_PACKAGE_ANCHOR), - defaultPackageLabel, "", ""); - } else { - Content packageNameContent = getPackageLabel(parsedPackageName); - packageNameContent.addContent(".*"); - link = getHyperLink(DocLink.fragment(parsedPackageName), - packageNameContent, "", ""); - printedPackageHeaders.add(parsedPackageName); - } - contentListTree.addContent(HtmlTree.LI(link)); - } - - /** - * {@inheritDoc} - */ - public void addContentsList(Content contentTree, Content contentListTree) { - Content titleContent = getResource( - "doclet.Constants_Summary"); - Content pHeading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true, - HtmlStyle.title, titleContent); - Content div = HtmlTree.DIV(HtmlStyle.header, pHeading); - Content headingContent = getResource( - "doclet.Contents"); - Content heading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, true, - headingContent); - if (configuration.allowTag(HtmlTag.SECTION)) { - HtmlTree section = HtmlTree.SECTION(heading); - section.addContent(contentListTree); - div.addContent(section); - mainTree.addContent(div); - } else { - div.addContent(heading); - div.addContent(contentListTree); - contentTree.addContent(div); - } - } - - /** - * {@inheritDoc} - */ - public Content getConstantSummaries() { - HtmlTree summariesDiv = new HtmlTree(HtmlTag.DIV); - summariesDiv.addStyle(HtmlStyle.constantValuesContainer); - return summariesDiv; - } - - /** - * {@inheritDoc} - */ - public void addPackageName(String parsedPackageName, Content summariesTree, boolean first) { - Content pkgNameContent; - if (!first && configuration.allowTag(HtmlTag.SECTION)) { - summariesTree.addContent(summaryTree); - } - if (parsedPackageName.length() == 0) { - summariesTree.addContent(getMarkerAnchor( - SectionName.UNNAMED_PACKAGE_ANCHOR)); - pkgNameContent = defaultPackageLabel; - } else { - summariesTree.addContent(getMarkerAnchor( - parsedPackageName)); - pkgNameContent = getPackageLabel(parsedPackageName); - } - Content headingContent = new StringContent(".*"); - Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true, - pkgNameContent); - heading.addContent(headingContent); - if (configuration.allowTag(HtmlTag.SECTION)) { - summaryTree = HtmlTree.SECTION(heading); - } else { - summariesTree.addContent(heading); - } - } - - /** - * {@inheritDoc} - */ - public Content getClassConstantHeader() { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - return ul; - } - - /** - * {@inheritDoc} - */ - public void addClassConstant(Content summariesTree, Content classConstantTree) { - if (configuration.allowTag(HtmlTag.SECTION)) { - summaryTree.addContent(classConstantTree); - } else { - summariesTree.addContent(classConstantTree); - } - } - - /** - * Get the table caption and header for the constant summary table - * - * @param cd classdoc to be documented - * @return constant members header content - */ - public Content getConstantMembersHeader(ClassDoc cd) { - //generate links backward only to public classes. - Content classlink = (cd.isPublic() || cd.isProtected()) ? - getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CONSTANT_SUMMARY, cd)) : - new StringContent(cd.qualifiedName()); - String name = cd.containingPackage().name(); - if (name.length() > 0) { - Content cb = new ContentBuilder(); - cb.addContent(name); - cb.addContent("."); - cb.addContent(classlink); - return getClassName(cb); - } else { - return getClassName(classlink); - } - } - - /** - * Get the class name in the table caption and the table header. - * - * @param classStr the class name to print. - * @return the table caption and header - */ - protected Content getClassName(Content classStr) { - Content caption = getTableCaption(classStr); - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.constantsSummary, caption) - : HtmlTree.TABLE(HtmlStyle.constantsSummary, constantsTableSummary, caption); - table.addContent(getSummaryTableHeader(constantsTableHeader, "col")); - return table; - } - - /** - * {@inheritDoc} - */ - public void addConstantMembers(ClassDoc cd, List fields, - Content classConstantTree) { - currentClassDoc = cd; - Content tbody = new HtmlTree(HtmlTag.TBODY); - for (int i = 0; i < fields.size(); ++i) { - HtmlTree tr = new HtmlTree(HtmlTag.TR); - if (i%2 == 0) - tr.addStyle(HtmlStyle.altColor); - else - tr.addStyle(HtmlStyle.rowColor); - addConstantMember(fields.get(i), tr); - tbody.addContent(tr); - } - Content table = getConstantMembersHeader(cd); - table.addContent(tbody); - Content li = HtmlTree.LI(HtmlStyle.blockList, table); - classConstantTree.addContent(li); - } - - /** - * Add the row for the constant summary table. - * - * @param member the field to be documented. - * @param trTree an htmltree object for the table row - */ - private void addConstantMember(FieldDoc member, HtmlTree trTree) { - trTree.addContent(getTypeColumn(member)); - trTree.addContent(getNameColumn(member)); - trTree.addContent(getValue(member)); - } - - /** - * Get the type column for the constant summary table row. - * - * @param member the field to be documented. - * @return the type column of the constant table row - */ - private Content getTypeColumn(FieldDoc member) { - Content anchor = getMarkerAnchor(currentClassDoc.qualifiedName() + - "." + member.name()); - Content tdType = HtmlTree.TD(HtmlStyle.colFirst, anchor); - Content code = new HtmlTree(HtmlTag.CODE); - StringTokenizer mods = new StringTokenizer(member.modifiers()); - while(mods.hasMoreTokens()) { - Content modifier = new StringContent(mods.nextToken()); - code.addContent(modifier); - code.addContent(getSpace()); - } - Content type = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.CONSTANT_SUMMARY, member.type())); - code.addContent(type); - tdType.addContent(code); - return tdType; - } - - /** - * Get the name column for the constant summary table row. - * - * @param member the field to be documented. - * @return the name column of the constant table row - */ - private Content getNameColumn(FieldDoc member) { - Content nameContent = getDocLink( - LinkInfoImpl.Kind.CONSTANT_SUMMARY, member, member.name(), false); - Content code = HtmlTree.CODE(nameContent); - return HtmlTree.TD(code); - } - - /** - * Get the value column for the constant summary table row. - * - * @param member the field to be documented. - * @return the value column of the constant table row - */ - private Content getValue(FieldDoc member) { - Content valueContent = new StringContent(member.constantValueExpression()); - Content code = HtmlTree.CODE(valueContent); - return HtmlTree.TD(HtmlStyle.colLast, code); - } - - /** - * {@inheritDoc} - */ - public void addConstantSummaries(Content contentTree, Content summariesTree) { - if (configuration.allowTag(HtmlTag.SECTION) && summaryTree != null) { - summariesTree.addContent(summaryTree); - } - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(summariesTree); - contentTree.addContent(mainTree); - } else { - contentTree.addContent(summariesTree); - } - } - - /** - * {@inheritDoc} - */ - public void addFooter(Content contentTree) { - Content htmlTree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : contentTree; - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - contentTree.addContent(htmlTree); - } - } - - /** - * {@inheritDoc} - */ - public void printDocument(Content contentTree) throws IOException { - printHtmlDocument(null, true, contentTree); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java deleted file mode 100644 index 4f1f770b1e7..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java +++ /dev/null @@ -1,336 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Writes constructor documentation. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert Field - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class ConstructorWriterImpl extends AbstractExecutableMemberWriter - implements ConstructorWriter, MemberSummaryWriter { - - private boolean foundNonPubConstructor = false; - - /** - * Construct a new ConstructorWriterImpl. - * - * @param writer The writer for the class that the constructors belong to. - * @param classDoc the class being documented. - */ - public ConstructorWriterImpl(SubWriterHolderWriter writer, - ClassDoc classDoc) { - super(writer, classDoc); - VisibleMemberMap visibleMemberMap = new VisibleMemberMap(classDoc, - VisibleMemberMap.CONSTRUCTORS, configuration); - List constructors = new ArrayList<>(visibleMemberMap.getMembersFor(classDoc)); - for (ProgramElementDoc constructor : constructors) { - if (constructor.isProtected() || constructor.isPrivate()) { - setFoundNonPubConstructor(true); - } - } - } - - /** - * Construct a new ConstructorWriterImpl. - * - * @param writer The writer for the class that the constructors belong to. - */ - public ConstructorWriterImpl(SubWriterHolderWriter writer) { - super(writer); - } - - /** - * {@inheritDoc} - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree) { - memberSummaryTree.addContent(HtmlConstants.START_OF_CONSTRUCTOR_SUMMARY); - Content memberTree = writer.getMemberTreeHeader(); - writer.addSummaryHeader(this, classDoc, memberTree); - return memberTree; - } - - /** - * {@inheritDoc} - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - writer.addMemberTree(memberSummaryTree, memberTree); - } - - /** - * {@inheritDoc} - */ - public Content getConstructorDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree) { - memberDetailsTree.addContent(HtmlConstants.START_OF_CONSTRUCTOR_DETAILS); - Content constructorDetailsTree = writer.getMemberTreeHeader(); - constructorDetailsTree.addContent(writer.getMarkerAnchor( - SectionName.CONSTRUCTOR_DETAIL)); - Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, - writer.constructorDetailsLabel); - constructorDetailsTree.addContent(heading); - return constructorDetailsTree; - } - - /** - * {@inheritDoc} - */ - public Content getConstructorDocTreeHeader(ConstructorDoc constructor, - Content constructorDetailsTree) { - String erasureAnchor; - if ((erasureAnchor = getErasureAnchor(constructor)) != null) { - constructorDetailsTree.addContent(writer.getMarkerAnchor((erasureAnchor))); - } - constructorDetailsTree.addContent( - writer.getMarkerAnchor(writer.getAnchor(constructor))); - Content constructorDocTree = writer.getMemberTreeHeader(); - Content heading = new HtmlTree(HtmlConstants.MEMBER_HEADING); - heading.addContent(constructor.name()); - constructorDocTree.addContent(heading); - return constructorDocTree; - } - - /** - * {@inheritDoc} - */ - public Content getSignature(ConstructorDoc constructor) { - Content pre = new HtmlTree(HtmlTag.PRE); - writer.addAnnotationInfo(constructor, pre); - int annotationLength = pre.charCount(); - addModifiers(constructor, pre); - if (configuration.linksource) { - Content constructorName = new StringContent(constructor.name()); - writer.addSrcLink(constructor, constructorName, pre); - } else { - addName(constructor.name(), pre); - } - int indent = pre.charCount() - annotationLength; - addParameters(constructor, pre, indent); - addExceptions(constructor, pre, indent); - return pre; - } - - /** - * {@inheritDoc} - */ - @Override - public void setSummaryColumnStyle(HtmlTree tdTree) { - if (foundNonPubConstructor) - tdTree.addStyle(HtmlStyle.colLast); - else - tdTree.addStyle(HtmlStyle.colOne); - } - - /** - * {@inheritDoc} - */ - public void addDeprecated(ConstructorDoc constructor, Content constructorDocTree) { - addDeprecatedInfo(constructor, constructorDocTree); - } - - /** - * {@inheritDoc} - */ - public void addComments(ConstructorDoc constructor, Content constructorDocTree) { - addComment(constructor, constructorDocTree); - } - - /** - * {@inheritDoc} - */ - public void addTags(ConstructorDoc constructor, Content constructorDocTree) { - writer.addTagsInfo(constructor, constructorDocTree); - } - - /** - * {@inheritDoc} - */ - public Content getConstructorDetails(Content constructorDetailsTree) { - if (configuration.allowTag(HtmlTag.SECTION)) { - HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(constructorDetailsTree)); - return htmlTree; - } - return getMemberTree(constructorDetailsTree); - } - - /** - * {@inheritDoc} - */ - public Content getConstructorDoc(Content constructorDocTree, - boolean isLastContent) { - return getMemberTree(constructorDocTree, isLastContent); - } - - /** - * Close the writer. - */ - public void close() throws IOException { - writer.close(); - } - - /** - * Let the writer know whether a non public constructor was found. - * - * @param foundNonPubConstructor true if we found a non public constructor. - */ - public void setFoundNonPubConstructor(boolean foundNonPubConstructor) { - this.foundNonPubConstructor = foundNonPubConstructor; - } - - /** - * {@inheritDoc} - */ - public void addSummaryLabel(Content memberTree) { - Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, - writer.getResource("doclet.Constructor_Summary")); - memberTree.addContent(label); - } - - /** - * {@inheritDoc} - */ - public String getTableSummary() { - return configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Constructor_Summary"), - configuration.getText("doclet.constructors")); - } - - /** - * {@inheritDoc} - */ - public Content getCaption() { - return configuration.getResource("doclet.Constructors"); - } - - /** - * {@inheritDoc} - */ - public String[] getSummaryTableHeader(ProgramElementDoc member) { - String[] header; - if (foundNonPubConstructor) { - header = new String[] { - configuration.getText("doclet.Modifier"), - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Constructor"), - configuration.getText("doclet.Description")) - }; - } - else { - header = new String[] { - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Constructor"), - configuration.getText("doclet.Description")) - }; - } - return header; - } - - /** - * {@inheritDoc} - */ - public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor( - SectionName.CONSTRUCTOR_SUMMARY)); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { - } - - public int getMemberKind() { - return VisibleMemberMap.CONSTRUCTORS; - } - - /** - * {@inheritDoc} - */ - protected Content getNavSummaryLink(ClassDoc cd, boolean link) { - if (link) { - return writer.getHyperLink(SectionName.CONSTRUCTOR_SUMMARY, - writer.getResource("doclet.navConstructor")); - } else { - return writer.getResource("doclet.navConstructor"); - } - } - - /** - * {@inheritDoc} - */ - protected void addNavDetailLink(boolean link, Content liNav) { - if (link) { - liNav.addContent(writer.getHyperLink( - SectionName.CONSTRUCTOR_DETAIL, - writer.getResource("doclet.navConstructor"))); - } else { - liNav.addContent(writer.getResource("doclet.navConstructor")); - } - } - - /** - * {@inheritDoc} - */ - protected void addSummaryType(ProgramElementDoc member, Content tdSummaryType) { - if (foundNonPubConstructor) { - Content code = new HtmlTree(HtmlTag.CODE); - if (member.isProtected()) { - code.addContent("protected "); - } else if (member.isPrivate()) { - code.addContent("private "); - } else if (member.isPublic()) { - code.addContent(writer.getSpace()); - } else { - code.addContent( - configuration.getText("doclet.Package_private")); - } - tdSummaryType.addContent(code); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java deleted file mode 100644 index c77961a9bec..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java +++ /dev/null @@ -1,267 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate File to list all the deprecated classes and class members with the - * appropriate links. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @see java.util.List - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class DeprecatedListWriter extends SubWriterHolderWriter { - - private static final String[] ANCHORS = new String[] { - "package", "interface", "class", "enum", "exception", "error", - "annotation.type", "field", "method", "constructor", "enum.constant", - "annotation.type.member" - }; - - private static final String[] HEADING_KEYS = new String[] { - "doclet.Deprecated_Packages", "doclet.Deprecated_Interfaces", - "doclet.Deprecated_Classes", "doclet.Deprecated_Enums", - "doclet.Deprecated_Exceptions", "doclet.Deprecated_Errors", - "doclet.Deprecated_Annotation_Types", - "doclet.Deprecated_Fields", - "doclet.Deprecated_Methods", "doclet.Deprecated_Constructors", - "doclet.Deprecated_Enum_Constants", - "doclet.Deprecated_Annotation_Type_Members" - }; - - private static final String[] SUMMARY_KEYS = new String[] { - "doclet.deprecated_packages", "doclet.deprecated_interfaces", - "doclet.deprecated_classes", "doclet.deprecated_enums", - "doclet.deprecated_exceptions", "doclet.deprecated_errors", - "doclet.deprecated_annotation_types", - "doclet.deprecated_fields", - "doclet.deprecated_methods", "doclet.deprecated_constructors", - "doclet.deprecated_enum_constants", - "doclet.deprecated_annotation_type_members" - }; - - private static final String[] HEADER_KEYS = new String[] { - "doclet.Package", "doclet.Interface", "doclet.Class", - "doclet.Enum", "doclet.Exceptions", - "doclet.Errors", - "doclet.AnnotationType", - "doclet.Field", - "doclet.Method", "doclet.Constructor", - "doclet.Enum_Constant", - "doclet.Annotation_Type_Member" - }; - - private AbstractMemberWriter[] writers; - - private ConfigurationImpl configuration; - - /** - * Constructor. - * - * @param filename the file to be generated. - */ - public DeprecatedListWriter(ConfigurationImpl configuration, - DocPath filename) throws IOException { - super(configuration, filename); - this.configuration = configuration; - NestedClassWriterImpl classW = new NestedClassWriterImpl(this); - writers = new AbstractMemberWriter[] - {classW, classW, classW, classW, classW, classW, - new FieldWriterImpl(this), - new MethodWriterImpl(this), - new ConstructorWriterImpl(this), - new EnumConstantWriterImpl(this), - new AnnotationTypeOptionalMemberWriterImpl(this, null)}; - } - - /** - * Get list of all the deprecated classes and members in all the Packages - * specified on the Command Line. - * Then instantiate DeprecatedListWriter and generate File. - * - * @param configuration the current configuration of the doclet. - */ - public static void generate(ConfigurationImpl configuration) { - DocPath filename = DocPaths.DEPRECATED_LIST; - try { - DeprecatedListWriter depr = - new DeprecatedListWriter(configuration, filename); - depr.generateDeprecatedListFile( - new DeprecatedAPIListBuilder(configuration)); - depr.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), filename); - throw new DocletAbortException(exc); - } - } - - /** - * Generate the deprecated API list. - * - * @param deprapi list of deprecated API built already. - */ - protected void generateDeprecatedListFile(DeprecatedAPIListBuilder deprapi) - throws IOException { - HtmlTree body = getHeader(); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN)) - ? HtmlTree.MAIN() - : body; - htmlTree.addContent(getContentsList(deprapi)); - String memberTableSummary; - String[] memberTableHeader = new String[1]; - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.contentContainer); - for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) { - if (deprapi.hasDocumentation(i)) { - addAnchor(deprapi, i, div); - memberTableSummary = - configuration.getText("doclet.Member_Table_Summary", - configuration.getText(HEADING_KEYS[i]), - configuration.getText(SUMMARY_KEYS[i])); - memberTableHeader[0] = configuration.getText("doclet.0_and_1", - configuration.getText(HEADER_KEYS[i]), - configuration.getText("doclet.Description")); - // DeprecatedAPIListBuilder.PACKAGE == 0, so if i == 0, it is - // a PackageDoc. - if (i == DeprecatedAPIListBuilder.PACKAGE) - addPackageDeprecatedAPI(deprapi.getList(i), - HEADING_KEYS[i], memberTableSummary, memberTableHeader, div); - else - writers[i - 1].addDeprecatedAPI(deprapi.getList(i), - HEADING_KEYS[i], memberTableSummary, memberTableHeader, div); - } - } - if (configuration.allowTag(HtmlTag.MAIN)) { - htmlTree.addContent(div); - body.addContent(htmlTree); - } else { - body.addContent(div); - } - htmlTree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : body; - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - body.addContent(htmlTree); - } - printHtmlDocument(null, true, body); - } - - /** - * Add the index link. - * - * @param builder the deprecated list builder - * @param type the type of list being documented - * @param contentTree the content tree to which the index link will be added - */ - private void addIndexLink(DeprecatedAPIListBuilder builder, - int type, Content contentTree) { - if (builder.hasDocumentation(type)) { - Content li = HtmlTree.LI(getHyperLink(ANCHORS[type], - getResource(HEADING_KEYS[type]))); - contentTree.addContent(li); - } - } - - /** - * Get the contents list. - * - * @param deprapi the deprecated list builder - * @return a content tree for the contents list - */ - public Content getContentsList(DeprecatedAPIListBuilder deprapi) { - Content headContent = getResource("doclet.Deprecated_API"); - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true, - HtmlStyle.title, headContent); - Content div = HtmlTree.DIV(HtmlStyle.header, heading); - Content headingContent = getResource("doclet.Contents"); - div.addContent(HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, true, - headingContent)); - Content ul = new HtmlTree(HtmlTag.UL); - for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) { - addIndexLink(deprapi, i, ul); - } - div.addContent(ul); - return div; - } - - /** - * Add the anchor. - * - * @param builder the deprecated list builder - * @param type the type of list being documented - * @param htmlTree the content tree to which the anchor will be added - */ - private void addAnchor(DeprecatedAPIListBuilder builder, int type, Content htmlTree) { - if (builder.hasDocumentation(type)) { - htmlTree.addContent(getMarkerAnchor(ANCHORS[type])); - } - } - - /** - * Get the header for the deprecated API Listing. - * - * @return a content tree for the header - */ - public HtmlTree getHeader() { - String title = configuration.getText("doclet.Window_Deprecated_List"); - HtmlTree bodyTree = getBody(true, getWindowTitle(title)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - return bodyTree; - } - - /** - * Get the deprecated label. - * - * @return a content tree for the deprecated label - */ - protected Content getNavLinkDeprecated() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, deprecatedLabel); - return li; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java deleted file mode 100644 index 9c280caf90a..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java +++ /dev/null @@ -1,305 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Writes enum constant documentation in HTML format. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class EnumConstantWriterImpl extends AbstractMemberWriter - implements EnumConstantWriter, MemberSummaryWriter { - - public EnumConstantWriterImpl(SubWriterHolderWriter writer, - ClassDoc classdoc) { - super(writer, classdoc); - } - - public EnumConstantWriterImpl(SubWriterHolderWriter writer) { - super(writer); - } - - /** - * {@inheritDoc} - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree) { - memberSummaryTree.addContent(HtmlConstants.START_OF_ENUM_CONSTANT_SUMMARY); - Content memberTree = writer.getMemberTreeHeader(); - writer.addSummaryHeader(this, classDoc, memberTree); - return memberTree; - } - - /** - * {@inheritDoc} - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - writer.addMemberTree(memberSummaryTree, memberTree); - } - - /** - * {@inheritDoc} - */ - public Content getEnumConstantsDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree) { - memberDetailsTree.addContent(HtmlConstants.START_OF_ENUM_CONSTANT_DETAILS); - Content enumConstantsDetailsTree = writer.getMemberTreeHeader(); - enumConstantsDetailsTree.addContent(writer.getMarkerAnchor( - SectionName.ENUM_CONSTANT_DETAIL)); - Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, - writer.enumConstantsDetailsLabel); - enumConstantsDetailsTree.addContent(heading); - return enumConstantsDetailsTree; - } - - /** - * {@inheritDoc} - */ - public Content getEnumConstantsTreeHeader(FieldDoc enumConstant, - Content enumConstantsDetailsTree) { - enumConstantsDetailsTree.addContent( - writer.getMarkerAnchor(enumConstant.name())); - Content enumConstantsTree = writer.getMemberTreeHeader(); - Content heading = new HtmlTree(HtmlConstants.MEMBER_HEADING); - heading.addContent(enumConstant.name()); - enumConstantsTree.addContent(heading); - return enumConstantsTree; - } - - /** - * {@inheritDoc} - */ - public Content getSignature(FieldDoc enumConstant) { - Content pre = new HtmlTree(HtmlTag.PRE); - writer.addAnnotationInfo(enumConstant, pre); - addModifiers(enumConstant, pre); - Content enumConstantLink = writer.getLink(new LinkInfoImpl( - configuration, LinkInfoImpl.Kind.MEMBER, enumConstant.type())); - pre.addContent(enumConstantLink); - pre.addContent(" "); - if (configuration.linksource) { - Content enumConstantName = new StringContent(enumConstant.name()); - writer.addSrcLink(enumConstant, enumConstantName, pre); - } else { - addName(enumConstant.name(), pre); - } - return pre; - } - - /** - * {@inheritDoc} - */ - public void addDeprecated(FieldDoc enumConstant, Content enumConstantsTree) { - addDeprecatedInfo(enumConstant, enumConstantsTree); - } - - /** - * {@inheritDoc} - */ - public void addComments(FieldDoc enumConstant, Content enumConstantsTree) { - addComment(enumConstant, enumConstantsTree); - } - - /** - * {@inheritDoc} - */ - public void addTags(FieldDoc enumConstant, Content enumConstantsTree) { - writer.addTagsInfo(enumConstant, enumConstantsTree); - } - - /** - * {@inheritDoc} - */ - public Content getEnumConstantsDetails(Content enumConstantsDetailsTree) { - if (configuration.allowTag(HtmlTag.SECTION)) { - HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(enumConstantsDetailsTree)); - return htmlTree; - } - return getMemberTree(enumConstantsDetailsTree); - } - - /** - * {@inheritDoc} - */ - public Content getEnumConstants(Content enumConstantsTree, - boolean isLastContent) { - return getMemberTree(enumConstantsTree, isLastContent); - } - - /** - * {@inheritDoc} - */ - public void close() throws IOException { - writer.close(); - } - - public int getMemberKind() { - return VisibleMemberMap.ENUM_CONSTANTS; - } - - /** - * {@inheritDoc} - */ - public void addSummaryLabel(Content memberTree) { - Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, - writer.getResource("doclet.Enum_Constant_Summary")); - memberTree.addContent(label); - } - - /** - * {@inheritDoc} - */ - public String getTableSummary() { - return configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Enum_Constant_Summary"), - configuration.getText("doclet.enum_constants")); - } - - /** - * {@inheritDoc} - */ - public Content getCaption() { - return configuration.getResource("doclet.Enum_Constants"); - } - - /** - * {@inheritDoc} - */ - public String[] getSummaryTableHeader(ProgramElementDoc member) { - String[] header = new String[] { - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Enum_Constant"), - configuration.getText("doclet.Description")) - }; - return header; - } - - /** - * {@inheritDoc} - */ - public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor( - SectionName.ENUM_CONSTANT_SUMMARY)); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { - } - - /** - * {@inheritDoc} - */ - protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, - Content tdSummary) { - Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, - writer.getDocLink(context, (MemberDoc) member, member.name(), false)); - Content code = HtmlTree.CODE(memberLink); - tdSummary.addContent(code); - } - - /** - * {@inheritDoc} - */ - @Override - public void setSummaryColumnStyle(HtmlTree tdTree) { - tdTree.addStyle(HtmlStyle.colOne); - } - - /** - * {@inheritDoc} - */ - protected void addInheritedSummaryLink(ClassDoc cd, - ProgramElementDoc member, Content linksTree) { - } - - /** - * {@inheritDoc} - */ - protected void addSummaryType(ProgramElementDoc member, Content tdSummaryType) { - //Not applicable. - } - - /** - * {@inheritDoc} - */ - protected Content getDeprecatedLink(ProgramElementDoc member) { - return writer.getDocLink(LinkInfoImpl.Kind.MEMBER, - (MemberDoc) member, ((FieldDoc)member).qualifiedName()); - } - - /** - * {@inheritDoc} - */ - protected Content getNavSummaryLink(ClassDoc cd, boolean link) { - if (link) { - if (cd == null) { - return writer.getHyperLink(SectionName.ENUM_CONSTANT_SUMMARY, - writer.getResource("doclet.navEnum")); - } else { - return writer.getHyperLink( - SectionName.ENUM_CONSTANTS_INHERITANCE, - configuration.getClassName(cd), writer.getResource("doclet.navEnum")); - } - } else { - return writer.getResource("doclet.navEnum"); - } - } - - /** - * {@inheritDoc} - */ - protected void addNavDetailLink(boolean link, Content liNav) { - if (link) { - liNav.addContent(writer.getHyperLink( - SectionName.ENUM_CONSTANT_DETAIL, - writer.getResource("doclet.navEnum"))); - } else { - liNav.addContent(writer.getResource("doclet.navEnum")); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java deleted file mode 100644 index a823bef9bbd..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java +++ /dev/null @@ -1,336 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Writes field documentation in HTML format. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert Field - * @author Atul M Dambalkar - * @author Jamie Ho (rewrite) - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class FieldWriterImpl extends AbstractMemberWriter - implements FieldWriter, MemberSummaryWriter { - - public FieldWriterImpl(SubWriterHolderWriter writer, ClassDoc classdoc) { - super(writer, classdoc); - } - - public FieldWriterImpl(SubWriterHolderWriter writer) { - super(writer); - } - - /** - * {@inheritDoc} - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree) { - memberSummaryTree.addContent(HtmlConstants.START_OF_FIELD_SUMMARY); - Content memberTree = writer.getMemberTreeHeader(); - writer.addSummaryHeader(this, classDoc, memberTree); - return memberTree; - } - - /** - * {@inheritDoc} - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - writer.addMemberTree(memberSummaryTree, memberTree); - } - - /** - * {@inheritDoc} - */ - public Content getFieldDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree) { - memberDetailsTree.addContent(HtmlConstants.START_OF_FIELD_DETAILS); - Content fieldDetailsTree = writer.getMemberTreeHeader(); - fieldDetailsTree.addContent(writer.getMarkerAnchor( - SectionName.FIELD_DETAIL)); - Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, - writer.fieldDetailsLabel); - fieldDetailsTree.addContent(heading); - return fieldDetailsTree; - } - - /** - * {@inheritDoc} - */ - public Content getFieldDocTreeHeader(FieldDoc field, - Content fieldDetailsTree) { - fieldDetailsTree.addContent( - writer.getMarkerAnchor(field.name())); - Content fieldDocTree = writer.getMemberTreeHeader(); - Content heading = new HtmlTree(HtmlConstants.MEMBER_HEADING); - heading.addContent(field.name()); - fieldDocTree.addContent(heading); - return fieldDocTree; - } - - /** - * {@inheritDoc} - */ - public Content getSignature(FieldDoc field) { - Content pre = new HtmlTree(HtmlTag.PRE); - writer.addAnnotationInfo(field, pre); - addModifiers(field, pre); - Content fieldlink = writer.getLink(new LinkInfoImpl( - configuration, LinkInfoImpl.Kind.MEMBER, field.type())); - pre.addContent(fieldlink); - pre.addContent(" "); - if (configuration.linksource) { - Content fieldName = new StringContent(field.name()); - writer.addSrcLink(field, fieldName, pre); - } else { - addName(field.name(), pre); - } - return pre; - } - - /** - * {@inheritDoc} - */ - public void addDeprecated(FieldDoc field, Content fieldDocTree) { - addDeprecatedInfo(field, fieldDocTree); - } - - /** - * {@inheritDoc} - */ - public void addComments(FieldDoc field, Content fieldDocTree) { - ClassDoc holder = field.containingClass(); - if (field.inlineTags().length > 0) { - if (holder.equals(classdoc) || - (! (holder.isPublic() || utils.isLinkable(holder, configuration)))) { - writer.addInlineComment(field, fieldDocTree); - } else { - Content link = - writer.getDocLink(LinkInfoImpl.Kind.FIELD_DOC_COPY, - holder, field, - holder.isIncluded() ? - holder.typeName() : holder.qualifiedTypeName(), - false); - Content codeLink = HtmlTree.CODE(link); - Content descfrmLabel = HtmlTree.SPAN(HtmlStyle.descfrmTypeLabel, holder.isClass()? - writer.descfrmClassLabel : writer.descfrmInterfaceLabel); - descfrmLabel.addContent(writer.getSpace()); - descfrmLabel.addContent(codeLink); - fieldDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, descfrmLabel)); - writer.addInlineComment(field, fieldDocTree); - } - } - } - - /** - * {@inheritDoc} - */ - public void addTags(FieldDoc field, Content fieldDocTree) { - writer.addTagsInfo(field, fieldDocTree); - } - - /** - * {@inheritDoc} - */ - public Content getFieldDetails(Content fieldDetailsTree) { - if (configuration.allowTag(HtmlTag.SECTION)) { - HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(fieldDetailsTree)); - return htmlTree; - } - return getMemberTree(fieldDetailsTree); - } - - /** - * {@inheritDoc} - */ - public Content getFieldDoc(Content fieldDocTree, - boolean isLastContent) { - return getMemberTree(fieldDocTree, isLastContent); - } - - /** - * Close the writer. - */ - public void close() throws IOException { - writer.close(); - } - - public int getMemberKind() { - return VisibleMemberMap.FIELDS; - } - - /** - * {@inheritDoc} - */ - public void addSummaryLabel(Content memberTree) { - Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, - writer.getResource("doclet.Field_Summary")); - memberTree.addContent(label); - } - - /** - * {@inheritDoc} - */ - public String getTableSummary() { - return configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Field_Summary"), - configuration.getText("doclet.fields")); - } - - /** - * {@inheritDoc} - */ - public Content getCaption() { - return configuration.getResource("doclet.Fields"); - } - - /** - * {@inheritDoc} - */ - public String[] getSummaryTableHeader(ProgramElementDoc member) { - String[] header = new String[] { - writer.getModifierTypeHeader(), - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Field"), - configuration.getText("doclet.Description")) - }; - return header; - } - - /** - * {@inheritDoc} - */ - public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor( - SectionName.FIELD_SUMMARY)); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { - inheritedTree.addContent(writer.getMarkerAnchor( - SectionName.FIELDS_INHERITANCE, configuration.getClassName(cd))); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { - Content classLink = writer.getPreQualifiedClassLink( - LinkInfoImpl.Kind.MEMBER, cd, false); - Content label = new StringContent(cd.isClass() ? - configuration.getText("doclet.Fields_Inherited_From_Class") : - configuration.getText("doclet.Fields_Inherited_From_Interface")); - Content labelHeading = HtmlTree.HEADING(HtmlConstants.INHERITED_SUMMARY_HEADING, - label); - labelHeading.addContent(writer.getSpace()); - labelHeading.addContent(classLink); - inheritedTree.addContent(labelHeading); - } - - /** - * {@inheritDoc} - */ - protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, - Content tdSummary) { - Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, - writer.getDocLink(context, cd , (MemberDoc) member, member.name(), false)); - Content code = HtmlTree.CODE(memberLink); - tdSummary.addContent(code); - } - - /** - * {@inheritDoc} - */ - protected void addInheritedSummaryLink(ClassDoc cd, - ProgramElementDoc member, Content linksTree) { - linksTree.addContent( - writer.getDocLink(LinkInfoImpl.Kind.MEMBER, cd, (MemberDoc)member, - member.name(), false)); - } - - /** - * {@inheritDoc} - */ - protected void addSummaryType(ProgramElementDoc member, Content tdSummaryType) { - FieldDoc field = (FieldDoc)member; - addModifierAndType(field, field.type(), tdSummaryType); - } - - /** - * {@inheritDoc} - */ - protected Content getDeprecatedLink(ProgramElementDoc member) { - return writer.getDocLink(LinkInfoImpl.Kind.MEMBER, - (MemberDoc) member, ((FieldDoc)member).qualifiedName()); - } - - /** - * {@inheritDoc} - */ - protected Content getNavSummaryLink(ClassDoc cd, boolean link) { - if (link) { - if (cd == null) { - return writer.getHyperLink( - SectionName.FIELD_SUMMARY, - writer.getResource("doclet.navField")); - } else { - return writer.getHyperLink( - SectionName.FIELDS_INHERITANCE, - configuration.getClassName(cd), writer.getResource("doclet.navField")); - } - } else { - return writer.getResource("doclet.navField"); - } - } - - /** - * {@inheritDoc} - */ - protected void addNavDetailLink(boolean link, Content liNav) { - if (link) { - liNav.addContent(writer.getHyperLink( - SectionName.FIELD_DETAIL, - writer.getResource("doclet.navField"))); - } else { - liNav.addContent(writer.getResource("doclet.navField")); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java deleted file mode 100644 index adf2f0f90a6..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright (c) 1997, 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 com.sun.tools.doclets.formats.html; - -import java.io.*; - -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate the documentation in the Html "frame" format in the browser. The - * generated documentation will have two or three frames depending upon the - * number of packages on the command line. In general there will be three frames - * in the output, a left-hand top frame will have a list of all packages with - * links to target left-hand bottom frame. The left-hand bottom frame will have - * the particular package contents or the all-classes list, where as the single - * right-hand frame will have overview or package summary or class file. Also - * take care of browsers which do not support Html frames. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - */ -@Deprecated -public class FrameOutputWriter extends HtmlDocletWriter { - - /** - * Number of packages specified on the command line. - */ - int noOfPackages; - - /** - * Constructor to construct FrameOutputWriter object. - * - * @param filename File to be generated. - */ - public FrameOutputWriter(ConfigurationImpl configuration, - DocPath filename) throws IOException { - super(configuration, filename); - noOfPackages = configuration.packages.size(); - } - - /** - * Construct FrameOutputWriter object and then use it to generate the Html - * file which will have the description of all the frames in the - * documentation. The name of the generated file is "index.html" which is - * the default first file for Html documents. - * @throws DocletAbortException - */ - public static void generate(ConfigurationImpl configuration) { - FrameOutputWriter framegen; - DocPath filename = DocPath.empty; - try { - filename = DocPaths.INDEX; - framegen = new FrameOutputWriter(configuration, filename); - framegen.generateFrameFile(); - framegen.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), filename); - throw new DocletAbortException(exc); - } - } - - /** - * Generate the constants in the "index.html" file. Print the frame details - * as well as warning if browser is not supporting the Html frames. - */ - protected void generateFrameFile() throws IOException { - Content frame = getFrameDetails(); - HtmlTree body = new HtmlTree(HtmlTag.BODY); - body.addAttr(HtmlAttr.ONLOAD, "loadFrames()"); - if (configuration.allowTag(HtmlTag.MAIN)) { - HtmlTree main = HtmlTree.MAIN(frame); - body.addContent(main); - } else { - body.addContent(frame); - } - if (configuration.windowtitle.length() > 0) { - printFramesDocument(configuration.windowtitle, configuration, - body); - } else { - printFramesDocument(configuration.getText("doclet.Generated_Docs_Untitled"), - configuration, body); - } - } - - /** - * Get the frame sizes and their contents. - * - * @return a content tree for the frame details - */ - protected Content getFrameDetails() { - HtmlTree leftContainerDiv = new HtmlTree(HtmlTag.DIV); - HtmlTree rightContainerDiv = new HtmlTree(HtmlTag.DIV); - leftContainerDiv.addStyle(HtmlStyle.leftContainer); - rightContainerDiv.addStyle(HtmlStyle.rightContainer); - if (noOfPackages <= 1) { - addAllClassesFrameTag(leftContainerDiv); - } else if (noOfPackages > 1) { - addAllPackagesFrameTag(leftContainerDiv); - addAllClassesFrameTag(leftContainerDiv); - } - addClassFrameTag(rightContainerDiv); - HtmlTree mainContainer = HtmlTree.DIV(HtmlStyle.mainContainer, leftContainerDiv); - mainContainer.addContent(rightContainerDiv); - return mainContainer; - } - - /** - * Add the IFRAME tag for the frame that lists all packages. - * - * @param contentTree the content tree to which the information will be added - */ - private void addAllPackagesFrameTag(Content contentTree) { - HtmlTree frame = HtmlTree.IFRAME(DocPaths.OVERVIEW_FRAME.getPath(), - "packageListFrame", configuration.getText("doclet.All_Packages")); - HtmlTree leftTop = HtmlTree.DIV(HtmlStyle.leftTop, frame); - contentTree.addContent(leftTop); - } - - /** - * Add the IFRAME tag for the frame that lists all classes. - * - * @param contentTree the content tree to which the information will be added - */ - private void addAllClassesFrameTag(Content contentTree) { - HtmlTree frame = HtmlTree.IFRAME(DocPaths.ALLCLASSES_FRAME.getPath(), - "packageFrame", configuration.getText("doclet.All_classes_and_interfaces")); - HtmlTree leftBottom = HtmlTree.DIV(HtmlStyle.leftBottom, frame); - contentTree.addContent(leftBottom); - } - - /** - * Add the IFRAME tag for the frame that describes the class in detail. - * - * @param contentTree the content tree to which the information will be added - */ - private void addClassFrameTag(Content contentTree) { - HtmlTree frame = HtmlTree.IFRAME(configuration.topFile.getPath(), "classFrame", - configuration.getText("doclet.Package_class_and_interface_descriptions")); - frame.addStyle(HtmlStyle.rightIframe); - contentTree.addContent(frame); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java deleted file mode 100644 index d4d685834ad..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java +++ /dev/null @@ -1,443 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate the Help File for the generated API documentation. The help file - * contents are helpful for browsing the generated documentation. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - */ -@Deprecated -public class HelpWriter extends HtmlDocletWriter { - - HtmlTree mainTree = HtmlTree.MAIN(); - - /** - * Constructor to construct HelpWriter object. - * @param filename File to be generated. - */ - public HelpWriter(ConfigurationImpl configuration, - DocPath filename) throws IOException { - super(configuration, filename); - } - - /** - * Construct the HelpWriter object and then use it to generate the help - * file. The name of the generated file is "help-doc.html". The help file - * will get generated if and only if "-helpfile" and "-nohelp" is not used - * on the command line. - * @throws DocletAbortException - */ - public static void generate(ConfigurationImpl configuration) { - HelpWriter helpgen; - DocPath filename = DocPath.empty; - try { - filename = DocPaths.HELP_DOC; - helpgen = new HelpWriter(configuration, filename); - helpgen.generateHelpFile(); - helpgen.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), filename); - throw new DocletAbortException(exc); - } - } - - /** - * Generate the help file contents. - */ - protected void generateHelpFile() throws IOException { - String title = configuration.getText("doclet.Window_Help_title"); - HtmlTree body = getBody(true, getWindowTitle(title)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : body; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - body.addContent(htmlTree); - } - addHelpFileContents(body); - if (configuration.allowTag(HtmlTag.FOOTER)) { - htmlTree = HtmlTree.FOOTER(); - } - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - body.addContent(htmlTree); - } - printHtmlDocument(null, true, body); - } - - /** - * Add the help file contents from the resource file to the content tree. While adding the - * help file contents it also keeps track of user options. If "-notree" - * is used, then the "overview-tree.html" will not get added and hence - * help information also will not get added. - * - * @param contentTree the content tree to which the help file contents will be added - */ - protected void addHelpFileContents(Content contentTree) { - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, false, HtmlStyle.title, - getResource("doclet.Help_line_1")); - Content div = HtmlTree.DIV(HtmlStyle.header, heading); - Content line2 = HtmlTree.DIV(HtmlStyle.subTitle, - getResource("doclet.Help_line_2")); - div.addContent(line2); - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(div); - } else { - contentTree.addContent(div); - } - HtmlTree htmlTree; - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - if (configuration.createoverview) { - Content overviewHeading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Overview")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(overviewHeading) - : HtmlTree.LI(HtmlStyle.blockList, overviewHeading); - Content line3 = getResource("doclet.Help_line_3", - getHyperLink(DocPaths.OVERVIEW_SUMMARY, - configuration.getText("doclet.Overview"))); - Content overviewPara = HtmlTree.P(line3); - htmlTree.addContent(overviewPara); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - } - Content packageHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Package")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(packageHead) - : HtmlTree.LI(HtmlStyle.blockList, packageHead); - Content line4 = getResource("doclet.Help_line_4"); - Content packagePara = HtmlTree.P(line4); - htmlTree.addContent(packagePara); - HtmlTree ulPackage = new HtmlTree(HtmlTag.UL); - ulPackage.addContent(HtmlTree.LI( - getResource("doclet.Interfaces_Italic"))); - ulPackage.addContent(HtmlTree.LI( - getResource("doclet.Classes"))); - ulPackage.addContent(HtmlTree.LI( - getResource("doclet.Enums"))); - ulPackage.addContent(HtmlTree.LI( - getResource("doclet.Exceptions"))); - ulPackage.addContent(HtmlTree.LI( - getResource("doclet.Errors"))); - ulPackage.addContent(HtmlTree.LI( - getResource("doclet.AnnotationTypes"))); - htmlTree.addContent(ulPackage); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - Content classHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Help_line_5")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(classHead) - : HtmlTree.LI(HtmlStyle.blockList, classHead); - Content line6 = getResource("doclet.Help_line_6"); - Content classPara = HtmlTree.P(line6); - htmlTree.addContent(classPara); - HtmlTree ul1 = new HtmlTree(HtmlTag.UL); - ul1.addContent(HtmlTree.LI( - getResource("doclet.Help_line_7"))); - ul1.addContent(HtmlTree.LI( - getResource("doclet.Help_line_8"))); - ul1.addContent(HtmlTree.LI( - getResource("doclet.Help_line_9"))); - ul1.addContent(HtmlTree.LI( - getResource("doclet.Help_line_10"))); - ul1.addContent(HtmlTree.LI( - getResource("doclet.Help_line_11"))); - ul1.addContent(HtmlTree.LI( - getResource("doclet.Help_line_12"))); - htmlTree.addContent(ul1); - HtmlTree ul2 = new HtmlTree(HtmlTag.UL); - ul2.addContent(HtmlTree.LI( - getResource("doclet.Nested_Class_Summary"))); - ul2.addContent(HtmlTree.LI( - getResource("doclet.Field_Summary"))); - ul2.addContent(HtmlTree.LI( - getResource("doclet.Constructor_Summary"))); - ul2.addContent(HtmlTree.LI( - getResource("doclet.Method_Summary"))); - htmlTree.addContent(ul2); - HtmlTree ul3 = new HtmlTree(HtmlTag.UL); - ul3.addContent(HtmlTree.LI( - getResource("doclet.Field_Detail"))); - ul3.addContent(HtmlTree.LI( - getResource("doclet.Constructor_Detail"))); - ul3.addContent(HtmlTree.LI( - getResource("doclet.Method_Detail"))); - htmlTree.addContent(ul3); - Content line13 = getResource("doclet.Help_line_13"); - Content para = HtmlTree.P(line13); - htmlTree.addContent(para); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - //Annotation Types - Content aHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.AnnotationType")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(aHead) - : HtmlTree.LI(HtmlStyle.blockList, aHead); - Content aline1 = getResource("doclet.Help_annotation_type_line_1"); - Content aPara = HtmlTree.P(aline1); - htmlTree.addContent(aPara); - HtmlTree aul = new HtmlTree(HtmlTag.UL); - aul.addContent(HtmlTree.LI( - getResource("doclet.Help_annotation_type_line_2"))); - aul.addContent(HtmlTree.LI( - getResource("doclet.Help_annotation_type_line_3"))); - aul.addContent(HtmlTree.LI( - getResource("doclet.Annotation_Type_Required_Member_Summary"))); - aul.addContent(HtmlTree.LI( - getResource("doclet.Annotation_Type_Optional_Member_Summary"))); - aul.addContent(HtmlTree.LI( - getResource("doclet.Annotation_Type_Member_Detail"))); - htmlTree.addContent(aul); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - //Enums - Content enumHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Enum")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(enumHead) - : HtmlTree.LI(HtmlStyle.blockList, enumHead); - Content eline1 = getResource("doclet.Help_enum_line_1"); - Content enumPara = HtmlTree.P(eline1); - htmlTree.addContent(enumPara); - HtmlTree eul = new HtmlTree(HtmlTag.UL); - eul.addContent(HtmlTree.LI( - getResource("doclet.Help_enum_line_2"))); - eul.addContent(HtmlTree.LI( - getResource("doclet.Help_enum_line_3"))); - eul.addContent(HtmlTree.LI( - getResource("doclet.Enum_Constant_Summary"))); - eul.addContent(HtmlTree.LI( - getResource("doclet.Enum_Constant_Detail"))); - htmlTree.addContent(eul); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - if (configuration.classuse) { - Content useHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Help_line_14")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(useHead) - : HtmlTree.LI(HtmlStyle.blockList, useHead); - Content line15 = getResource("doclet.Help_line_15"); - Content usePara = HtmlTree.P(line15); - htmlTree.addContent(usePara); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - } - if (configuration.createtree) { - Content treeHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Help_line_16")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(treeHead) - : HtmlTree.LI(HtmlStyle.blockList, treeHead); - Content line17 = getResource("doclet.Help_line_17_with_tree_link", - getHyperLink(DocPaths.OVERVIEW_TREE, - configuration.getText("doclet.Class_Hierarchy")), - HtmlTree.CODE(new StringContent("java.lang.Object"))); - Content treePara = HtmlTree.P(line17); - htmlTree.addContent(treePara); - HtmlTree tul = new HtmlTree(HtmlTag.UL); - tul.addContent(HtmlTree.LI( - getResource("doclet.Help_line_18"))); - tul.addContent(HtmlTree.LI( - getResource("doclet.Help_line_19"))); - htmlTree.addContent(tul); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - } - if (!(configuration.nodeprecatedlist || - configuration.nodeprecated)) { - Content dHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Deprecated_API")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(dHead) - : HtmlTree.LI(HtmlStyle.blockList, dHead); - Content line20 = getResource("doclet.Help_line_20_with_deprecated_api_link", - getHyperLink(DocPaths.DEPRECATED_LIST, - configuration.getText("doclet.Deprecated_API"))); - Content dPara = HtmlTree.P(line20); - htmlTree.addContent(dPara); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - } - if (configuration.createindex) { - Content indexlink; - if (configuration.splitindex) { - indexlink = getHyperLink(DocPaths.INDEX_FILES.resolve(DocPaths.indexN(1)), - configuration.getText("doclet.Index")); - } else { - indexlink = getHyperLink(DocPaths.INDEX_ALL, - configuration.getText("doclet.Index")); - } - Content indexHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Help_line_21")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(indexHead) - : HtmlTree.LI(HtmlStyle.blockList, indexHead); - Content line22 = getResource("doclet.Help_line_22", indexlink); - Content indexPara = HtmlTree.P(line22); - htmlTree.addContent(indexPara); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - } - Content prevHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Help_line_23")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(prevHead) - : HtmlTree.LI(HtmlStyle.blockList, prevHead); - Content line24 = getResource("doclet.Help_line_24"); - Content prevPara = HtmlTree.P(line24); - htmlTree.addContent(prevPara); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - Content frameHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Help_line_25")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(frameHead) - : HtmlTree.LI(HtmlStyle.blockList, frameHead); - Content line26 = getResource("doclet.Help_line_26"); - Content framePara = HtmlTree.P(line26); - htmlTree.addContent(framePara); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - Content allclassesHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.All_Classes")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(allclassesHead) - : HtmlTree.LI(HtmlStyle.blockList, allclassesHead); - Content line27 = getResource("doclet.Help_line_27", - getHyperLink(DocPaths.ALLCLASSES_NOFRAME, - configuration.getText("doclet.All_Classes"))); - Content allclassesPara = HtmlTree.P(line27); - htmlTree.addContent(allclassesPara); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - Content sHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Serialized_Form")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(sHead) - : HtmlTree.LI(HtmlStyle.blockList, sHead); - Content line28 = getResource("doclet.Help_line_28"); - Content serialPara = HtmlTree.P(line28); - htmlTree.addContent(serialPara); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - Content constHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - getResource("doclet.Constants_Summary")); - htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION(constHead) - : HtmlTree.LI(HtmlStyle.blockList, constHead); - Content line29 = getResource("doclet.Help_line_29", - getHyperLink(DocPaths.CONSTANT_VALUES, - configuration.getText("doclet.Constants_Summary"))); - Content constPara = HtmlTree.P(line29); - htmlTree.addContent(constPara); - if (configuration.allowTag(HtmlTag.SECTION)) { - ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); - } else { - ul.addContent(htmlTree); - } - Content divContent = HtmlTree.DIV(HtmlStyle.contentContainer, ul); - Content line30 = HtmlTree.SPAN(HtmlStyle.emphasizedPhrase, getResource("doclet.Help_line_30")); - divContent.addContent(line30); - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(divContent); - contentTree.addContent(mainTree); - } else { - contentTree.addContent(divContent); - } - } - - /** - * Get the help label. - * - * @return a content tree for the help label - */ - @Override - protected Content getNavLinkHelp() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, helpLabel); - return li; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java deleted file mode 100644 index e95bb227a41..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDoclet.java +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Copyright (c) 1997, 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 com.sun.tools.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.builders.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * The class with "start" method, calls individual Writers. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - * @author Robert Field - * @author Jamie Ho - * - */ -@Deprecated -public class HtmlDoclet extends AbstractDoclet { - // An instance will be created by validOptions, and used by start. - private static HtmlDoclet docletToStart = null; - - public HtmlDoclet() { - configuration = new ConfigurationImpl(); - } - - /** - * The global configuration information for this run. - */ - public final ConfigurationImpl configuration; - - /** - * The "start" method as required by Javadoc. - * - * @param root the root of the documentation tree. - * @see com.sun.javadoc.RootDoc - * @return true if the doclet ran without encountering any errors. - */ - public static boolean start(RootDoc root) { - // In typical use, options will have been set up by calling validOptions, - // which will create an HtmlDoclet for use here. - HtmlDoclet doclet; - if (docletToStart != null) { - doclet = docletToStart; - docletToStart = null; - } else { - doclet = new HtmlDoclet(); - } - return doclet.startDoclet(root); - } - - /** - * Create the configuration instance. - * Override this method to use a different - * configuration. - */ - public Configuration configuration() { - return configuration; - } - - /** - * Start the generation of files. Call generate methods in the individual - * writers, which will in turn genrate the documentation files. Call the - * TreeWriter generation first to ensure the Class Hierarchy is built - * first and then can be used in the later generation. - * - * For new format. - * - * @see com.sun.javadoc.RootDoc - */ - protected void generateOtherFiles(RootDoc root, ClassTree classtree) - throws Exception { - super.generateOtherFiles(root, classtree); - if (configuration.linksource) { - SourceToHTMLConverter.convertRoot(configuration, - root, DocPaths.SOURCE_OUTPUT); - } - - if (configuration.topFile.isEmpty()) { - configuration.standardmessage. - error("doclet.No_Non_Deprecated_Classes_To_Document"); - return; - } - boolean nodeprecated = configuration.nodeprecated; - performCopy(configuration.helpfile); - performCopy(configuration.stylesheetfile); - // do early to reduce memory footprint - if (configuration.classuse) { - ClassUseWriter.generate(configuration, classtree); - } - IndexBuilder indexbuilder = new IndexBuilder(configuration, nodeprecated); - - if (configuration.createtree) { - TreeWriter.generate(configuration, classtree); - } - if (configuration.createindex) { - configuration.buildSearchTagIndex(); - if (configuration.splitindex) { - SplitIndexWriter.generate(configuration, indexbuilder); - } else { - SingleIndexWriter.generate(configuration, indexbuilder); - } - } - - if (!(configuration.nodeprecatedlist || nodeprecated)) { - DeprecatedListWriter.generate(configuration); - } - - AllClassesFrameWriter.generate(configuration, - new IndexBuilder(configuration, nodeprecated, true)); - - FrameOutputWriter.generate(configuration); - - if (configuration.createoverview) { - PackageIndexWriter.generate(configuration); - } - if (configuration.helpfile.length() == 0 && - !configuration.nohelp) { - HelpWriter.generate(configuration); - } - // If a stylesheet file is not specified, copy the default stylesheet - // and replace newline with platform-specific newline. - DocFile f; - if (configuration.stylesheetfile.length() == 0) { - f = DocFile.createFileForOutput(configuration, DocPaths.STYLESHEET); - f.copyResource(DocPaths.RESOURCES.resolve(DocPaths.STYLESHEET), false, true); - } - f = DocFile.createFileForOutput(configuration, DocPaths.JAVASCRIPT); - f.copyResource(DocPaths.RESOURCES.resolve(DocPaths.JAVASCRIPT), true, true); - if (configuration.createindex) { - f = DocFile.createFileForOutput(configuration, DocPaths.SEARCH_JS); - f.copyResource(DocPaths.RESOURCES.resolve(DocPaths.SEARCH_JS), true, true); - f = DocFile.createFileForOutput(configuration, DocPaths.RESOURCES.resolve(DocPaths.GLASS_IMG)); - f.copyResource(DocPaths.RESOURCES.resolve(DocPaths.GLASS_IMG), true, false); - f = DocFile.createFileForOutput(configuration, DocPaths.RESOURCES.resolve(DocPaths.X_IMG)); - f.copyResource(DocPaths.RESOURCES.resolve(DocPaths.X_IMG), true, false); - copyJqueryFiles(); - } - } - - protected void copyJqueryFiles() { - List files = Arrays.asList( - "jquery-1.10.2.js", - "jquery-ui.js", - "jquery-ui.css", - "jquery-ui.min.js", - "jquery-ui.min.css", - "jquery-ui.structure.min.css", - "jquery-ui.structure.css", - "external/jquery/jquery.js", - "jszip/dist/jszip.js", - "jszip/dist/jszip.min.js", - "jszip-utils/dist/jszip-utils.js", - "jszip-utils/dist/jszip-utils.min.js", - "jszip-utils/dist/jszip-utils-ie.js", - "jszip-utils/dist/jszip-utils-ie.min.js", - "images/ui-bg_flat_0_aaaaaa_40x100.png", - "images/ui-icons_454545_256x240.png", - "images/ui-bg_glass_95_fef1ec_1x400.png", - "images/ui-bg_glass_75_dadada_1x400.png", - "images/ui-bg_highlight-soft_75_cccccc_1x100.png", - "images/ui-icons_888888_256x240.png", - "images/ui-icons_2e83ff_256x240.png", - "images/ui-bg_glass_65_ffffff_1x400.png", - "images/ui-icons_cd0a0a_256x240.png", - "images/ui-bg_glass_55_fbf9ee_1x400.png", - "images/ui-icons_222222_256x240.png", - "images/ui-bg_glass_75_e6e6e6_1x400.png", - "images/ui-bg_flat_75_ffffff_40x100.png"); - DocFile f; - for (String file : files) { - DocPath filePath = DocPaths.JQUERY_FILES.resolve(file); - f = DocFile.createFileForOutput(configuration, filePath); - f.copyResource(DocPaths.RESOURCES.resolve(filePath), true, false); - } - } - - /** - * {@inheritDoc} - */ - protected void generateClassFiles(ClassDoc[] arr, ClassTree classtree) { - Arrays.sort(arr); - for(int i = 0; i < arr.length; i++) { - if (!(configuration.isGeneratedDoc(arr[i]) && arr[i].isIncluded())) { - continue; - } - ClassDoc prev = (i == 0)? - null: - arr[i-1]; - ClassDoc curr = arr[i]; - ClassDoc next = (i+1 == arr.length)? - null: - arr[i+1]; - try { - if (curr.isAnnotationType()) { - AbstractBuilder annotationTypeBuilder = - configuration.getBuilderFactory() - .getAnnotationTypeBuilder((AnnotationTypeDoc) curr, - prev, next); - annotationTypeBuilder.build(); - } else { - AbstractBuilder classBuilder = - configuration.getBuilderFactory() - .getClassBuilder(curr, prev, next, classtree); - classBuilder.build(); - } - } catch (IOException e) { - throw new DocletAbortException(e); - } catch (FatalError fe) { - throw fe; - } catch (DocletAbortException de) { - de.printStackTrace(); - throw de; - } catch (Exception e) { - e.printStackTrace(); - throw new DocletAbortException(e); - } - } - } - - PackageDoc getNamedPackage(List list, int idx) { - if (idx < list.size()) { - PackageDoc pkg = list.get(idx); - if (!pkg.name().isEmpty()) { - return pkg; - } - } - return null; - } - - /** - * {@inheritDoc} - */ - protected void generatePackageFiles(ClassTree classtree) throws Exception { - Set packages = configuration.packages; - if (packages.size() > 1) { - PackageIndexFrameWriter.generate(configuration); - } - List pList = new ArrayList<>(configuration.packages); - PackageDoc prev = null, next; - for (int i = 0; i < pList.size(); i++) { - // if -nodeprecated option is set and the package is marked as - // deprecated, do not generate the package-summary.html, package-frame.html - // and package-tree.html pages for that package. - PackageDoc pkg = pList.get(i); - if (!(configuration.nodeprecated && utils.isDeprecated(pkg))) { - PackageFrameWriter.generate(configuration, pkg); - next = getNamedPackage(pList, i + 1); - //If the next package is unnamed package, skip 2 ahead if possible - if (next == null) - next = getNamedPackage(pList, i + 2); - AbstractBuilder packageSummaryBuilder = - configuration.getBuilderFactory().getPackageSummaryBuilder( - pkg, prev, next); - packageSummaryBuilder.build(); - if (configuration.createtree) { - PackageTreeWriter.generate(configuration, - pkg, prev, next, - configuration.nodeprecated); - } - prev = pkg; - } - } - } - - public static final ConfigurationImpl sharedInstanceForOptions = - new ConfigurationImpl(); - - /** - * Check for doclet added options here. - * - * @return number of arguments to option. Zero return means - * option not known. Negative value means error occurred. - */ - public static int optionLength(String option) { - // Construct temporary configuration for check - return sharedInstanceForOptions.optionLength(option); - } - - /** - * Check that options have the correct arguments here. - *

    - * This method is not required and will default gracefully - * (to true) if absent. - *

    - * Printing option related error messages (using the provided - * DocErrorReporter) is the responsibility of this method. - * - * @return true if the options are valid. - */ - public static boolean validOptions(String options[][], - DocErrorReporter reporter) { - docletToStart = new HtmlDoclet(); - return docletToStart.configuration.validOptions(options, reporter); - } - - private void performCopy(String filename) { - if (filename.isEmpty()) - return; - - try { - DocFile fromfile = DocFile.createFileForInput(configuration, filename); - DocPath path = DocPath.create(fromfile.getName()); - DocFile toFile = DocFile.createFileForOutput(configuration, path); - if (toFile.isSameFile(fromfile)) - return; - - configuration.message.notice((SourcePosition) null, - "doclet.Copying_File_0_To_File_1", - fromfile.toString(), path.getPath()); - toFile.copyFile(fromfile); - } catch (IOException exc) { - configuration.message.error((SourcePosition) null, - "doclet.perform_copy_exception_encountered", - exc.toString()); - throw new DocletAbortException(exc); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java deleted file mode 100644 index 5f2107d4196..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java +++ /dev/null @@ -1,2148 +0,0 @@ -/* - * Copyright (c) 1998, 2017, 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.doclets.formats.html; - -import java.io.*; -import java.text.SimpleDateFormat; -import java.util.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.taglets.*; -import com.sun.tools.doclets.internal.toolkit.util.*; -import com.sun.tools.javac.util.StringUtils; - -/** - * Class for the Html Format Code Generation specific to JavaDoc. - * This Class contains methods related to the Html Code Generation which - * are used extensively while generating the entire documentation. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @since 1.2 - * @author Atul M Dambalkar - * @author Robert Field - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class HtmlDocletWriter extends HtmlDocWriter { - - /** - * Relative path from the file getting generated to the destination - * directory. For example, if the file getting generated is - * "java/lang/Object.html", then the path to the root is "../..". - * This string can be empty if the file getting generated is in - * the destination directory. - */ - public final DocPath pathToRoot; - - /** - * Platform-independent path from the current or the - * destination directory to the file getting generated. - * Used when creating the file. - */ - public final DocPath path; - - /** - * Name of the file getting generated. If the file getting generated is - * "java/lang/Object.html", then the filename is "Object.html". - */ - public final DocPath filename; - - /** - * The global configuration information for this run. - */ - public final ConfigurationImpl configuration; - - protected final Utils utils; - - /** - * To check whether annotation heading is printed or not. - */ - protected boolean printedAnnotationHeading = false; - - /** - * To check whether annotation field heading is printed or not. - */ - protected boolean printedAnnotationFieldHeading = false; - - /** - * To check whether the repeated annotations is documented or not. - */ - private boolean isAnnotationDocumented = false; - - /** - * To check whether the container annotations is documented or not. - */ - private boolean isContainerDocumented = false; - - HtmlTree fixedNavDiv = new HtmlTree(HtmlTag.DIV); - - /** - * Constructor to construct the HtmlStandardWriter object. - * - * @param path File to be generated. - */ - public HtmlDocletWriter(ConfigurationImpl configuration, DocPath path) - throws IOException { - super(configuration, path); - this.configuration = configuration; - this.utils = configuration.utils; - this.path = path; - this.pathToRoot = path.parent().invert(); - this.filename = path.basename(); - } - - /** - * Replace {@docRoot} tag used in options that accept HTML text, such - * as -header, -footer, -top and -bottom, and when converting a relative - * HREF where commentTagsToString inserts a {@docRoot} where one was - * missing. (Also see DocRootTaglet for {@docRoot} tags in doc - * comments.) - *

    - * Replace {@docRoot} tag in htmlstr with the relative path to the - * destination directory from the directory where the file is being - * written, looping to handle all such tags in htmlstr. - *

    - * For example, for "-d docs" and -header containing {@docRoot}, when - * the HTML page for source file p/C1.java is being generated, the - * {@docRoot} tag would be inserted into the header as "../", - * the relative path from docs/p/ to docs/ (the document root). - *

    - * Note: This doc comment was written with '&#064;' representing '@' - * to prevent the inline tag from being interpreted. - */ - public String replaceDocRootDir(String htmlstr) { - // Return if no inline tags exist - int index = htmlstr.indexOf("{@"); - if (index < 0) { - return htmlstr; - } - Matcher docrootMatcher = docrootPattern.matcher(htmlstr); - if (!docrootMatcher.find()) { - return htmlstr; - } - StringBuilder buf = new StringBuilder(); - int prevEnd = 0; - do { - int match = docrootMatcher.start(); - // append htmlstr up to start of next {@docroot} - buf.append(htmlstr.substring(prevEnd, match)); - prevEnd = docrootMatcher.end(); - if (configuration.docrootparent.length() > 0 && htmlstr.startsWith("/..", prevEnd)) { - // Insert the absolute link if {@docRoot} is followed by "/..". - buf.append(configuration.docrootparent); - prevEnd += 3; - } else { - // Insert relative path where {@docRoot} was located - buf.append(pathToRoot.isEmpty() ? "." : pathToRoot.getPath()); - } - // Append slash if next character is not a slash - if (prevEnd < htmlstr.length() && htmlstr.charAt(prevEnd) != '/') { - buf.append('/'); - } - } while (docrootMatcher.find()); - buf.append(htmlstr.substring(prevEnd)); - return buf.toString(); - } - //where: - // Note: {@docRoot} is not case sensitive when passed in w/command line option: - private static final Pattern docrootPattern = - Pattern.compile(Pattern.quote("{@docroot}"), Pattern.CASE_INSENSITIVE); - - /** - * Get the script to show or hide the All classes link. - * - * @param id id of the element to show or hide - * @return a content tree for the script - */ - public Content getAllClassesLinkScript(String id) { - HtmlTree script = HtmlTree.SCRIPT(); - String scriptCode = "" + DocletConstants.NL; - Content scriptContent = new RawHtml(scriptCode); - script.addContent(scriptContent); - Content div = HtmlTree.DIV(script); - Content div_noscript = HtmlTree.DIV(getResource("doclet.No_Script_Message")); - Content noScript = HtmlTree.NOSCRIPT(div_noscript); - div.addContent(noScript); - return div; - } - - /** - * Add method information. - * - * @param method the method to be documented - * @param dl the content tree to which the method information will be added - */ - private void addMethodInfo(MethodDoc method, Content dl) { - ClassDoc[] intfacs = method.containingClass().interfaces(); - MethodDoc overriddenMethod = method.overriddenMethod(); - // Check whether there is any implementation or overridden info to be - // printed. If no overridden or implementation info needs to be - // printed, do not print this section. - if ((intfacs.length > 0 && - new ImplementedMethods(method, this.configuration).build().length > 0) || - overriddenMethod != null) { - MethodWriterImpl.addImplementsInfo(this, method, dl); - if (overriddenMethod != null) { - MethodWriterImpl.addOverridden(this, - method.overriddenType(), overriddenMethod, dl); - } - } - } - - /** - * Adds the tags information. - * - * @param doc the doc for which the tags will be generated - * @param htmltree the documentation tree to which the tags will be added - */ - protected void addTagsInfo(Doc doc, Content htmltree) { - if (configuration.nocomment) { - return; - } - Content dl = new HtmlTree(HtmlTag.DL); - if (doc instanceof MethodDoc) { - addMethodInfo((MethodDoc) doc, dl); - } - Content output = new ContentBuilder(); - TagletWriter.genTagOuput(configuration.tagletManager, doc, - configuration.tagletManager.getCustomTaglets(doc), - getTagletWriterInstance(false), output); - dl.addContent(output); - htmltree.addContent(dl); - } - - /** - * Check whether there are any tags for Serialization Overview - * section to be printed. - * - * @param field the FieldDoc object to check for tags. - * @return true if there are tags to be printed else return false. - */ - protected boolean hasSerializationOverviewTags(FieldDoc field) { - Content output = new ContentBuilder(); - TagletWriter.genTagOuput(configuration.tagletManager, field, - configuration.tagletManager.getCustomTaglets(field), - getTagletWriterInstance(false), output); - return !output.isEmpty(); - } - - /** - * Returns a TagletWriter that knows how to write HTML. - * - * @return a TagletWriter that knows how to write HTML. - */ - public TagletWriter getTagletWriterInstance(boolean isFirstSentence) { - return new TagletWriterImpl(this, isFirstSentence); - } - - /** - * Get Package link, with target frame. - * - * @param pd The link will be to the "package-summary.html" page for this package - * @param target name of the target frame - * @param label tag for the link - * @return a content for the target package link - */ - public Content getTargetPackageLink(PackageDoc pd, String target, - Content label) { - return getHyperLink(pathString(pd, DocPaths.PACKAGE_SUMMARY), label, "", target); - } - - /** - * Generates the HTML document tree and prints it out. - * - * @param metakeywords Array of String keywords for META tag. Each element - * of the array is assigned to a separate META tag. - * Pass in null for no array - * @param includeScript true if printing windowtitle script - * false for files that appear in the left-hand frames - * @param body the body htmltree to be included in the document - */ - public void printHtmlDocument(String[] metakeywords, boolean includeScript, - Content body) throws IOException { - Content htmlDocType = configuration.isOutputHtml5() - ? DocType.HTML5 - : DocType.TRANSITIONAL; - Content htmlComment = new Comment(configuration.getText("doclet.New_Page")); - Content head = new HtmlTree(HtmlTag.HEAD); - head.addContent(getGeneratedBy(!configuration.notimestamp)); - head.addContent(getTitle()); - Content meta = HtmlTree.META("Content-Type", CONTENT_TYPE, - (configuration.charset.length() > 0) ? - configuration.charset : HtmlConstants.HTML_DEFAULT_CHARSET); - head.addContent(meta); - if (!configuration.notimestamp) { - SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); - meta = HtmlTree.META(configuration.isOutputHtml5() - ? "dc.created" - : "date", dateFormat.format(new Date())); - head.addContent(meta); - } - if (metakeywords != null) { - for (String metakeyword : metakeywords) { - meta = HtmlTree.META("keywords", metakeyword); - head.addContent(meta); - } - } - addStyleSheetProperties(head); - addScriptProperties(head); - Content htmlTree = HtmlTree.HTML(configuration.getLocale().getLanguage(), - head, body); - Content htmlDocument = new HtmlDocument(htmlDocType, - htmlComment, htmlTree); - write(htmlDocument); - } - - /** - * Get the window title. - * - * @param title the title string to construct the complete window title - * @return the window title string - */ - public String getWindowTitle(String title) { - if (configuration.windowtitle.length() > 0) { - title += " (" + configuration.windowtitle + ")"; - } - return title; - } - - /** - * Get user specified header and the footer. - * - * @param header if true print the user provided header else print the - * user provided footer. - */ - public Content getUserHeaderFooter(boolean header) { - String content; - if (header) { - content = replaceDocRootDir(configuration.header); - } else { - if (configuration.footer.length() != 0) { - content = replaceDocRootDir(configuration.footer); - } else { - content = replaceDocRootDir(configuration.header); - } - } - Content rawContent = new RawHtml(content); - return rawContent; - } - - /** - * Adds the user specified top. - * - * @param htmlTree the content tree to which user specified top will be added - */ - public void addTop(Content htmlTree) { - Content top = new RawHtml(replaceDocRootDir(configuration.top)); - fixedNavDiv.addContent(top); - } - - /** - * Adds the user specified bottom. - * - * @param htmlTree the content tree to which user specified bottom will be added - */ - public void addBottom(Content htmlTree) { - Content bottom = new RawHtml(replaceDocRootDir(configuration.bottom)); - Content small = HtmlTree.SMALL(bottom); - Content p = HtmlTree.P(HtmlStyle.legalCopy, small); - htmlTree.addContent(p); - } - - /** - * Adds the navigation bar for the Html page at the top and and the bottom. - * - * @param header If true print navigation bar at the top of the page else - * @param htmlTree the HtmlTree to which the nav links will be added - */ - protected void addNavLinks(boolean header, Content htmlTree) { - if (!configuration.nonavbar) { - Content tree = (configuration.allowTag(HtmlTag.NAV)) - ? HtmlTree.NAV() - : htmlTree; - String allClassesId = "allclasses_"; - HtmlTree navDiv = new HtmlTree(HtmlTag.DIV); - fixedNavDiv.addStyle(HtmlStyle.fixedNav); - Content skipNavLinks = configuration.getResource("doclet.Skip_navigation_links"); - if (header) { - fixedNavDiv.addContent(HtmlConstants.START_OF_TOP_NAVBAR); - navDiv.addStyle(HtmlStyle.topNav); - allClassesId += "navbar_top"; - Content a = getMarkerAnchor(SectionName.NAVBAR_TOP); - //WCAG - Hyperlinks should contain text or an image with alt text - for AT tools - navDiv.addContent(a); - Content skipLinkContent = HtmlTree.DIV(HtmlStyle.skipNav, getHyperLink( - getDocLink(SectionName.SKIP_NAVBAR_TOP), skipNavLinks, - skipNavLinks.toString(), "")); - navDiv.addContent(skipLinkContent); - } else { - tree.addContent(HtmlConstants.START_OF_BOTTOM_NAVBAR); - navDiv.addStyle(HtmlStyle.bottomNav); - allClassesId += "navbar_bottom"; - Content a = getMarkerAnchor(SectionName.NAVBAR_BOTTOM); - navDiv.addContent(a); - Content skipLinkContent = HtmlTree.DIV(HtmlStyle.skipNav, getHyperLink( - getDocLink(SectionName.SKIP_NAVBAR_BOTTOM), skipNavLinks, - skipNavLinks.toString(), "")); - navDiv.addContent(skipLinkContent); - } - if (header) { - navDiv.addContent(getMarkerAnchor(SectionName.NAVBAR_TOP_FIRSTROW)); - } else { - navDiv.addContent(getMarkerAnchor(SectionName.NAVBAR_BOTTOM_FIRSTROW)); - } - HtmlTree navList = new HtmlTree(HtmlTag.UL); - navList.addStyle(HtmlStyle.navList); - navList.addAttr(HtmlAttr.TITLE, - configuration.getText("doclet.Navigation")); - if (configuration.createoverview) { - navList.addContent(getNavLinkContents()); - } - if (configuration.packages.size() == 1) { - navList.addContent(getNavLinkPackage(configuration.packages.first())); - } else if (configuration.packages.size() > 1) { - navList.addContent(getNavLinkPackage()); - } - navList.addContent(getNavLinkClass()); - if(configuration.classuse) { - navList.addContent(getNavLinkClassUse()); - } - if(configuration.createtree) { - navList.addContent(getNavLinkTree()); - } - if(!(configuration.nodeprecated || - configuration.nodeprecatedlist)) { - navList.addContent(getNavLinkDeprecated()); - } - if(configuration.createindex) { - navList.addContent(getNavLinkIndex()); - } - if (!configuration.nohelp) { - navList.addContent(getNavLinkHelp()); - } - navDiv.addContent(navList); - Content aboutDiv = HtmlTree.DIV(HtmlStyle.aboutLanguage, getUserHeaderFooter(header)); - navDiv.addContent(aboutDiv); - if (header) { - fixedNavDiv.addContent(navDiv); - } else { - tree.addContent(navDiv); - } - Content ulNav = HtmlTree.UL(HtmlStyle.navList, getNavLinkPrevious()); - ulNav.addContent(getNavLinkNext()); - Content subDiv = HtmlTree.DIV(HtmlStyle.subNav, ulNav); - Content ulFrames = HtmlTree.UL(HtmlStyle.navList, getNavShowLists()); - ulFrames.addContent(getNavHideLists(filename)); - subDiv.addContent(ulFrames); - HtmlTree ulAllClasses = HtmlTree.UL(HtmlStyle.navList, getNavLinkClassIndex()); - ulAllClasses.addAttr(HtmlAttr.ID, allClassesId.toString()); - subDiv.addContent(ulAllClasses); - if (header && configuration.createindex) { - HtmlTree inputText = HtmlTree.INPUT("text", "search"); - HtmlTree inputReset = HtmlTree.INPUT("reset", "reset"); - Content searchTxt = configuration.getResource("doclet.search"); - searchTxt.addContent(getSpace()); - HtmlTree liInput = HtmlTree.LI(HtmlTree.SPAN(searchTxt)); - liInput.addContent(inputText); - liInput.addContent(inputReset); - HtmlTree ulSearch = HtmlTree.UL(HtmlStyle.navListSearch, liInput); - subDiv.addContent(ulSearch); - } - subDiv.addContent(getAllClassesLinkScript(allClassesId.toString())); - addSummaryDetailLinks(subDiv); - if (header) { - subDiv.addContent(getMarkerAnchor(SectionName.SKIP_NAVBAR_TOP)); - fixedNavDiv.addContent(subDiv); - fixedNavDiv.addContent(HtmlConstants.END_OF_TOP_NAVBAR); - tree.addContent(fixedNavDiv); - HtmlTree paddingDiv = HtmlTree.DIV(HtmlStyle.navPadding, getSpace()); - tree.addContent(paddingDiv); - } else { - subDiv.addContent(getMarkerAnchor(SectionName.SKIP_NAVBAR_BOTTOM)); - tree.addContent(subDiv); - tree.addContent(HtmlConstants.END_OF_BOTTOM_NAVBAR); - } - if (configuration.allowTag(HtmlTag.NAV)) { - htmlTree.addContent(tree); - } - } - } - - /** - * Get the word "NEXT" to indicate that no link is available. Override - * this method to customize next link. - * - * @return a content tree for the link - */ - protected Content getNavLinkNext() { - return getNavLinkNext(null); - } - - /** - * Get the word "PREV" to indicate that no link is available. Override - * this method to customize prev link. - * - * @return a content tree for the link - */ - protected Content getNavLinkPrevious() { - return getNavLinkPrevious(null); - } - - /** - * Do nothing. This is the default method. - */ - protected void addSummaryDetailLinks(Content navDiv) { - } - - /** - * Get link to the "overview-summary.html" page. - * - * @return a content tree for the link - */ - protected Content getNavLinkContents() { - Content linkContent = getHyperLink(pathToRoot.resolve(DocPaths.OVERVIEW_SUMMARY), - overviewLabel, "", ""); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get link to the "package-summary.html" page for the package passed. - * - * @param pkg Package to which link will be generated - * @return a content tree for the link - */ - protected Content getNavLinkPackage(PackageDoc pkg) { - Content linkContent = getPackageLink(pkg, - packageLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get the word "Package" , to indicate that link is not available here. - * - * @return a content tree for the link - */ - protected Content getNavLinkPackage() { - Content li = HtmlTree.LI(packageLabel); - return li; - } - - /** - * Get the word "Use", to indicate that link is not available. - * - * @return a content tree for the link - */ - protected Content getNavLinkClassUse() { - Content li = HtmlTree.LI(useLabel); - return li; - } - - /** - * Get link for previous file. - * - * @param prev File name for the prev link - * @return a content tree for the link - */ - public Content getNavLinkPrevious(DocPath prev) { - Content li; - if (prev != null) { - li = HtmlTree.LI(getHyperLink(prev, prevLabel, "", "")); - } - else - li = HtmlTree.LI(prevLabel); - return li; - } - - /** - * Get link for next file. If next is null, just print the label - * without linking it anywhere. - * - * @param next File name for the next link - * @return a content tree for the link - */ - public Content getNavLinkNext(DocPath next) { - Content li; - if (next != null) { - li = HtmlTree.LI(getHyperLink(next, nextLabel, "", "")); - } - else - li = HtmlTree.LI(nextLabel); - return li; - } - - /** - * Get "FRAMES" link, to switch to the frame version of the output. - * - * @param link File to be linked, "index.html" - * @return a content tree for the link - */ - protected Content getNavShowLists(DocPath link) { - DocLink dl = new DocLink(link, path.getPath(), null); - Content framesContent = getHyperLink(dl, framesLabel, "", "_top"); - Content li = HtmlTree.LI(framesContent); - return li; - } - - /** - * Get "FRAMES" link, to switch to the frame version of the output. - * - * @return a content tree for the link - */ - protected Content getNavShowLists() { - return getNavShowLists(pathToRoot.resolve(DocPaths.INDEX)); - } - - /** - * Get "NO FRAMES" link, to switch to the non-frame version of the output. - * - * @param link File to be linked - * @return a content tree for the link - */ - protected Content getNavHideLists(DocPath link) { - Content noFramesContent = getHyperLink(link, noframesLabel, "", "_top"); - Content li = HtmlTree.LI(noFramesContent); - return li; - } - - /** - * Get "Tree" link in the navigation bar. If there is only one package - * specified on the command line, then the "Tree" link will be to the - * only "package-tree.html" file otherwise it will be to the - * "overview-tree.html" file. - * - * @return a content tree for the link - */ - protected Content getNavLinkTree() { - Content treeLinkContent; - PackageDoc[] packages = configuration.root.specifiedPackages(); - if (packages.length == 1 && configuration.root.specifiedClasses().length == 0) { - treeLinkContent = getHyperLink(pathString(packages[0], - DocPaths.PACKAGE_TREE), treeLabel, - "", ""); - } else { - treeLinkContent = getHyperLink(pathToRoot.resolve(DocPaths.OVERVIEW_TREE), - treeLabel, "", ""); - } - Content li = HtmlTree.LI(treeLinkContent); - return li; - } - - /** - * Get the overview tree link for the main tree. - * - * @param label the label for the link - * @return a content tree for the link - */ - protected Content getNavLinkMainTree(String label) { - Content mainTreeContent = getHyperLink(pathToRoot.resolve(DocPaths.OVERVIEW_TREE), - new StringContent(label)); - Content li = HtmlTree.LI(mainTreeContent); - return li; - } - - /** - * Get the word "Class", to indicate that class link is not available. - * - * @return a content tree for the link - */ - protected Content getNavLinkClass() { - Content li = HtmlTree.LI(classLabel); - return li; - } - - /** - * Get "Deprecated" API link in the navigation bar. - * - * @return a content tree for the link - */ - protected Content getNavLinkDeprecated() { - Content linkContent = getHyperLink(pathToRoot.resolve(DocPaths.DEPRECATED_LIST), - deprecatedLabel, "", ""); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get link for generated index. If the user has used "-splitindex" - * command line option, then link to file "index-files/index-1.html" is - * generated otherwise link to file "index-all.html" is generated. - * - * @return a content tree for the link - */ - protected Content getNavLinkClassIndex() { - Content allClassesContent = getHyperLink(pathToRoot.resolve( - DocPaths.ALLCLASSES_NOFRAME), - allclassesLabel, "", ""); - Content li = HtmlTree.LI(allClassesContent); - return li; - } - - /** - * Get link for generated class index. - * - * @return a content tree for the link - */ - protected Content getNavLinkIndex() { - Content linkContent = getHyperLink(pathToRoot.resolve( - (configuration.splitindex - ? DocPaths.INDEX_FILES.resolve(DocPaths.indexN(1)) - : DocPaths.INDEX_ALL)), - indexLabel, "", ""); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get help file link. If user has provided a help file, then generate a - * link to the user given file, which is already copied to current or - * destination directory. - * - * @return a content tree for the link - */ - protected Content getNavLinkHelp() { - String helpfile = configuration.helpfile; - DocPath helpfilenm; - if (helpfile.isEmpty()) { - helpfilenm = DocPaths.HELP_DOC; - } else { - DocFile file = DocFile.createFileForInput(configuration, helpfile); - helpfilenm = DocPath.create(file.getName()); - } - Content linkContent = getHyperLink(pathToRoot.resolve(helpfilenm), - helpLabel, "", ""); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get summary table header. - * - * @param header the header for the table - * @param scope the scope of the headers - * @return a content tree for the header - */ - public Content getSummaryTableHeader(String[] header, String scope) { - Content tr = new HtmlTree(HtmlTag.TR); - int size = header.length; - Content tableHeader; - if (size == 1) { - tableHeader = new StringContent(header[0]); - tr.addContent(HtmlTree.TH(HtmlStyle.colOne, scope, tableHeader)); - return tr; - } - for (int i = 0; i < size; i++) { - tableHeader = new StringContent(header[i]); - if(i == 0) - tr.addContent(HtmlTree.TH(HtmlStyle.colFirst, scope, tableHeader)); - else if(i == (size - 1)) - tr.addContent(HtmlTree.TH(HtmlStyle.colLast, scope, tableHeader)); - else - tr.addContent(HtmlTree.TH(scope, tableHeader)); - } - return tr; - } - - /** - * Get table caption. - * - * @param rawText the caption for the table which could be raw Html - * @return a content tree for the caption - */ - public Content getTableCaption(Content title) { - Content captionSpan = HtmlTree.SPAN(title); - Content space = getSpace(); - Content tabSpan = HtmlTree.SPAN(HtmlStyle.tabEnd, space); - Content caption = HtmlTree.CAPTION(captionSpan); - caption.addContent(tabSpan); - return caption; - } - - /** - * Get the marker anchor which will be added to the documentation tree. - * - * @param anchorName the anchor name attribute - * @return a content tree for the marker anchor - */ - public Content getMarkerAnchor(String anchorName) { - return getMarkerAnchor(getName(anchorName), null); - } - - /** - * Get the marker anchor which will be added to the documentation tree. - * - * @param sectionName the section name anchor attribute for page - * @return a content tree for the marker anchor - */ - public Content getMarkerAnchor(SectionName sectionName) { - return getMarkerAnchor(sectionName.getName(), null); - } - - /** - * Get the marker anchor which will be added to the documentation tree. - * - * @param sectionName the section name anchor attribute for page - * @param anchorName the anchor name combined with section name attribute for the page - * @return a content tree for the marker anchor - */ - public Content getMarkerAnchor(SectionName sectionName, String anchorName) { - return getMarkerAnchor(sectionName.getName() + getName(anchorName), null); - } - - /** - * Get the marker anchor which will be added to the documentation tree. - * - * @param anchorName the anchor name or id attribute - * @param anchorContent the content that should be added to the anchor - * @return a content tree for the marker anchor - */ - public Content getMarkerAnchor(String anchorName, Content anchorContent) { - if (anchorContent == null) - anchorContent = new Comment(" "); - Content markerAnchor = HtmlTree.A(configuration.htmlVersion, anchorName, anchorContent); - return markerAnchor; - } - - /** - * Returns a packagename content. - * - * @param packageDoc the package to check - * @return package name content - */ - public Content getPackageName(PackageDoc packageDoc) { - return packageDoc == null || packageDoc.name().isEmpty() ? - defaultPackageLabel : - getPackageLabel(packageDoc.name()); - } - - /** - * Returns a package name label. - * - * @param packageName the package name - * @return the package name content - */ - public Content getPackageLabel(String packageName) { - return new StringContent(packageName); - } - - /** - * Add package deprecation information to the documentation tree - * - * @param deprPkgs list of deprecated packages - * @param headingKey the caption for the deprecated package table - * @param tableSummary the summary for the deprecated package table - * @param tableHeader table headers for the deprecated package table - * @param contentTree the content tree to which the deprecated package table will be added - */ - protected void addPackageDeprecatedAPI(List deprPkgs, String headingKey, - String tableSummary, String[] tableHeader, Content contentTree) { - if (deprPkgs.size() > 0) { - Content caption = getTableCaption(configuration.getResource(headingKey)); - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.deprecatedSummary, caption) - : HtmlTree.TABLE(HtmlStyle.deprecatedSummary, tableSummary, caption); - table.addContent(getSummaryTableHeader(tableHeader, "col")); - Content tbody = new HtmlTree(HtmlTag.TBODY); - for (int i = 0; i < deprPkgs.size(); i++) { - PackageDoc pkg = (PackageDoc) deprPkgs.get(i); - HtmlTree td = HtmlTree.TD(HtmlStyle.colOne, - getPackageLink(pkg, getPackageName(pkg))); - if (pkg.tags("deprecated").length > 0) { - addInlineDeprecatedComment(pkg, pkg.tags("deprecated")[0], td); - } - HtmlTree tr = HtmlTree.TR(td); - if (i % 2 == 0) { - tr.addStyle(HtmlStyle.altColor); - } else { - tr.addStyle(HtmlStyle.rowColor); - } - tbody.addContent(tr); - } - table.addContent(tbody); - Content li = HtmlTree.LI(HtmlStyle.blockList, table); - Content ul = HtmlTree.UL(HtmlStyle.blockList, li); - contentTree.addContent(ul); - } - } - - /** - * Return the path to the class page for a classdoc. - * - * @param cd Class to which the path is requested. - * @param name Name of the file(doesn't include path). - */ - protected DocPath pathString(ClassDoc cd, DocPath name) { - return pathString(cd.containingPackage(), name); - } - - /** - * Return path to the given file name in the given package. So if the name - * passed is "Object.html" and the name of the package is "java.lang", and - * if the relative path is "../.." then returned string will be - * "../../java/lang/Object.html" - * - * @param pd Package in which the file name is assumed to be. - * @param name File name, to which path string is. - */ - protected DocPath pathString(PackageDoc pd, DocPath name) { - return pathToRoot.resolve(DocPath.forPackage(pd).resolve(name)); - } - - /** - * Given a package, return the name to be used in HTML anchor tag. - * @param packageDoc the package. - * @return the name to be used in HTML anchor tag. - */ - public String getPackageAnchorName(PackageDoc packageDoc) { - return packageDoc == null || packageDoc.name().length() == 0 ? - SectionName.UNNAMED_PACKAGE_ANCHOR.getName() : packageDoc.name(); - } - - /** - * Return the link to the given package. - * - * @param pkg the package to link to. - * @param label the label for the link. - * @return a content tree for the package link. - */ - public Content getPackageLink(PackageDoc pkg, String label) { - return getPackageLink(pkg, new StringContent(label)); - } - - /** - * Return the link to the given package. - * - * @param pkg the package to link to. - * @param label the label for the link. - * @return a content tree for the package link. - */ - public Content getPackageLink(PackageDoc pkg, Content label) { - boolean included = pkg != null && pkg.isIncluded(); - if (! included) { - for (PackageDoc p : configuration.packages) { - if (p.equals(pkg)) { - included = true; - break; - } - } - } - if (included || pkg == null) { - return getHyperLink(pathString(pkg, DocPaths.PACKAGE_SUMMARY), - label); - } else { - DocLink crossPkgLink = getCrossPackageLink(utils.getPackageName(pkg)); - if (crossPkgLink != null) { - return getHyperLink(crossPkgLink, label); - } else { - return label; - } - } - } - - public Content italicsClassName(ClassDoc cd, boolean qual) { - Content name = new StringContent((qual)? cd.qualifiedName(): cd.name()); - return (cd.isInterface())? HtmlTree.SPAN(HtmlStyle.interfaceName, name): name; - } - - /** - * Add the link to the content tree. - * - * @param doc program element doc for which the link will be added - * @param label label for the link - * @param htmltree the content tree to which the link will be added - */ - public void addSrcLink(ProgramElementDoc doc, Content label, Content htmltree) { - if (doc == null) { - return; - } - ClassDoc cd = doc.containingClass(); - if (cd == null) { - //d must be a class doc since in has no containing class. - cd = (ClassDoc) doc; - } - DocPath href = pathToRoot - .resolve(DocPaths.SOURCE_OUTPUT) - .resolve(DocPath.forClass(cd)); - Content linkContent = getHyperLink(href.fragment(SourceToHTMLConverter.getAnchorName(doc)), label, "", ""); - htmltree.addContent(linkContent); - } - - /** - * Return the link to the given class. - * - * @param linkInfo the information about the link. - * - * @return the link for the given class. - */ - public Content getLink(LinkInfoImpl linkInfo) { - LinkFactoryImpl factory = new LinkFactoryImpl(this); - return factory.getLink(linkInfo); - } - - /** - * Return the type parameters for the given class. - * - * @param linkInfo the information about the link. - * @return the type for the given class. - */ - public Content getTypeParameterLinks(LinkInfoImpl linkInfo) { - LinkFactoryImpl factory = new LinkFactoryImpl(this); - return factory.getTypeParameterLinks(linkInfo, false); - } - - /************************************************************* - * Return a class cross link to external class documentation. - * The name must be fully qualified to determine which package - * the class is in. The -link option does not allow users to - * link to external classes in the "default" package. - * - * @param qualifiedClassName the qualified name of the external class. - * @param refMemName the name of the member being referenced. This should - * be null or empty string if no member is being referenced. - * @param label the label for the external link. - * @param strong true if the link should be strong. - * @param style the style of the link. - * @param code true if the label should be code font. - */ - public Content getCrossClassLink(String qualifiedClassName, String refMemName, - Content label, boolean strong, String style, - boolean code) { - String className = ""; - String packageName = qualifiedClassName == null ? "" : qualifiedClassName; - int periodIndex; - while ((periodIndex = packageName.lastIndexOf('.')) != -1) { - className = packageName.substring(periodIndex + 1, packageName.length()) + - (className.length() > 0 ? "." + className : ""); - Content defaultLabel = new StringContent(className); - if (code) - defaultLabel = HtmlTree.CODE(defaultLabel); - packageName = packageName.substring(0, periodIndex); - if (getCrossPackageLink(packageName) != null) { - //The package exists in external documentation, so link to the external - //class (assuming that it exists). This is definitely a limitation of - //the -link option. There are ways to determine if an external package - //exists, but no way to determine if the external class exists. We just - //have to assume that it does. - DocLink link = configuration.extern.getExternalLink(packageName, pathToRoot, - className + ".html", refMemName); - return getHyperLink(link, - (label == null) || label.isEmpty() ? defaultLabel : label, - strong, style, - configuration.getText("doclet.Href_Class_Or_Interface_Title", packageName), - ""); - } - } - return null; - } - - public boolean isClassLinkable(ClassDoc cd) { - if (cd.isIncluded()) { - return configuration.isGeneratedDoc(cd); - } - return configuration.extern.isExternal(cd); - } - - public DocLink getCrossPackageLink(String pkgName) { - return configuration.extern.getExternalLink(pkgName, pathToRoot, - DocPaths.PACKAGE_SUMMARY.getPath()); - } - - /** - * Get the class link. - * - * @param context the id of the context where the link will be added - * @param cd the class doc to link to - * @return a content tree for the link - */ - public Content getQualifiedClassLink(LinkInfoImpl.Kind context, ClassDoc cd) { - return getLink(new LinkInfoImpl(configuration, context, cd) - .label(configuration.getClassName(cd))); - } - - /** - * Add the class link. - * - * @param context the id of the context where the link will be added - * @param cd the class doc to link to - * @param contentTree the content tree to which the link will be added - */ - public void addPreQualifiedClassLink(LinkInfoImpl.Kind context, ClassDoc cd, Content contentTree) { - addPreQualifiedClassLink(context, cd, false, contentTree); - } - - /** - * Retrieve the class link with the package portion of the label in - * plain text. If the qualifier is excluded, it will not be included in the - * link label. - * - * @param cd the class to link to. - * @param isStrong true if the link should be strong. - * @return the link with the package portion of the label in plain text. - */ - public Content getPreQualifiedClassLink(LinkInfoImpl.Kind context, - ClassDoc cd, boolean isStrong) { - ContentBuilder classlink = new ContentBuilder(); - PackageDoc pd = cd.containingPackage(); - if (pd != null && ! configuration.shouldExcludeQualifier(pd.name())) { - classlink.addContent(getPkgName(cd)); - } - classlink.addContent(getLink(new LinkInfoImpl(configuration, - context, cd).label(cd.name()).strong(isStrong))); - return classlink; - } - - /** - * Add the class link with the package portion of the label in - * plain text. If the qualifier is excluded, it will not be included in the - * link label. - * - * @param context the id of the context where the link will be added - * @param cd the class to link to - * @param isStrong true if the link should be strong - * @param contentTree the content tree to which the link with be added - */ - public void addPreQualifiedClassLink(LinkInfoImpl.Kind context, - ClassDoc cd, boolean isStrong, Content contentTree) { - PackageDoc pd = cd.containingPackage(); - if(pd != null && ! configuration.shouldExcludeQualifier(pd.name())) { - contentTree.addContent(getPkgName(cd)); - } - contentTree.addContent(getLink(new LinkInfoImpl(configuration, - context, cd).label(cd.name()).strong(isStrong))); - } - - /** - * Add the class link, with only class name as the strong link and prefixing - * plain package name. - * - * @param context the id of the context where the link will be added - * @param cd the class to link to - * @param contentTree the content tree to which the link with be added - */ - public void addPreQualifiedStrongClassLink(LinkInfoImpl.Kind context, ClassDoc cd, Content contentTree) { - addPreQualifiedClassLink(context, cd, true, contentTree); - } - - /** - * Get the link for the given member. - * - * @param context the id of the context where the link will be added - * @param doc the member being linked to - * @param label the label for the link - * @return a content tree for the doc link - */ - public Content getDocLink(LinkInfoImpl.Kind context, MemberDoc doc, String label) { - return getDocLink(context, doc.containingClass(), doc, - new StringContent(label)); - } - - /** - * Return the link for the given member. - * - * @param context the id of the context where the link will be printed. - * @param doc the member being linked to. - * @param label the label for the link. - * @param strong true if the link should be strong. - * @return the link for the given member. - */ - public Content getDocLink(LinkInfoImpl.Kind context, MemberDoc doc, String label, - boolean strong) { - return getDocLink(context, doc.containingClass(), doc, label, strong); - } - - /** - * Return the link for the given member. - * - * @param context the id of the context where the link will be printed. - * @param classDoc the classDoc that we should link to. This is not - * necessarily equal to doc.containingClass(). We may be - * inheriting comments. - * @param doc the member being linked to. - * @param label the label for the link. - * @param strong true if the link should be strong. - * @return the link for the given member. - */ - public Content getDocLink(LinkInfoImpl.Kind context, ClassDoc classDoc, MemberDoc doc, - String label, boolean strong) { - return getDocLink(context, classDoc, doc, label, strong, false); - } - public Content getDocLink(LinkInfoImpl.Kind context, ClassDoc classDoc, MemberDoc doc, - Content label, boolean strong) { - return getDocLink(context, classDoc, doc, label, strong, false); - } - - /** - * Return the link for the given member. - * - * @param context the id of the context where the link will be printed. - * @param classDoc the classDoc that we should link to. This is not - * necessarily equal to doc.containingClass(). We may be - * inheriting comments. - * @param doc the member being linked to. - * @param label the label for the link. - * @param strong true if the link should be strong. - * @param isProperty true if the doc parameter is a JavaFX property. - * @return the link for the given member. - */ - public Content getDocLink(LinkInfoImpl.Kind context, ClassDoc classDoc, MemberDoc doc, - String label, boolean strong, boolean isProperty) { - return getDocLink(context, classDoc, doc, new StringContent(check(label)), strong, isProperty); - } - - String check(String s) { - if (s.matches(".*[&<>].*"))throw new IllegalArgumentException(s); - return s; - } - - public Content getDocLink(LinkInfoImpl.Kind context, ClassDoc classDoc, MemberDoc doc, - Content label, boolean strong, boolean isProperty) { - if (! (doc.isIncluded() || - utils.isLinkable(classDoc, configuration))) { - return label; - } else if (doc instanceof ExecutableMemberDoc) { - ExecutableMemberDoc emd = (ExecutableMemberDoc)doc; - return getLink(new LinkInfoImpl(configuration, context, classDoc) - .label(label).where(getName(getAnchor(emd, isProperty))).strong(strong)); - } else if (doc instanceof MemberDoc) { - return getLink(new LinkInfoImpl(configuration, context, classDoc) - .label(label).where(getName(doc.name())).strong(strong)); - } else { - return label; - } - } - - /** - * Return the link for the given member. - * - * @param context the id of the context where the link will be added - * @param classDoc the classDoc that we should link to. This is not - * necessarily equal to doc.containingClass(). We may be - * inheriting comments - * @param doc the member being linked to - * @param label the label for the link - * @return the link for the given member - */ - public Content getDocLink(LinkInfoImpl.Kind context, ClassDoc classDoc, MemberDoc doc, - Content label) { - if (! (doc.isIncluded() || - utils.isLinkable(classDoc, configuration))) { - return label; - } else if (doc instanceof ExecutableMemberDoc) { - ExecutableMemberDoc emd = (ExecutableMemberDoc) doc; - return getLink(new LinkInfoImpl(configuration, context, classDoc) - .label(label).where(getName(getAnchor(emd)))); - } else if (doc instanceof MemberDoc) { - return getLink(new LinkInfoImpl(configuration, context, classDoc) - .label(label).where(getName(doc.name()))); - } else { - return label; - } - } - - public String getAnchor(ExecutableMemberDoc emd) { - return getAnchor(emd, false); - } - - public String getAnchor(ExecutableMemberDoc emd, boolean isProperty) { - if (isProperty) { - return emd.name(); - } - StringBuilder signature = new StringBuilder(emd.signature()); - StringBuilder signatureParsed = new StringBuilder(); - int counter = 0; - for (int i = 0; i < signature.length(); i++) { - char c = signature.charAt(i); - if (c == '<') { - counter++; - } else if (c == '>') { - counter--; - } else if (counter == 0) { - signatureParsed.append(c); - } - } - return emd.name() + signatureParsed.toString(); - } - - public Content seeTagToContent(SeeTag see) { - String tagName = see.name(); - if (! (tagName.startsWith("@link") || tagName.equals("@see"))) { - return new ContentBuilder(); - } - - String seetext = replaceDocRootDir(utils.normalizeNewlines(see.text())); - - //Check if @see is an href or "string" - if (seetext.startsWith("<") || seetext.startsWith("\"")) { - return new RawHtml(seetext); - } - - boolean plain = tagName.equalsIgnoreCase("@linkplain"); - Content label = plainOrCode(plain, new RawHtml(see.label())); - - //The text from the @see tag. We will output this text when a label is not specified. - Content text = plainOrCode(plain, new RawHtml(seetext)); - - ClassDoc refClass = see.referencedClass(); - String refClassName = see.referencedClassName(); - MemberDoc refMem = see.referencedMember(); - String refMemName = see.referencedMemberName(); - - if (refClass == null) { - //@see is not referencing an included class - PackageDoc refPackage = see.referencedPackage(); - if (refPackage != null && refPackage.isIncluded()) { - //@see is referencing an included package - if (label.isEmpty()) - label = plainOrCode(plain, new StringContent(refPackage.name())); - return getPackageLink(refPackage, label); - } else { - //@see is not referencing an included class or package. Check for cross links. - Content classCrossLink; - DocLink packageCrossLink = getCrossPackageLink(refClassName); - if (packageCrossLink != null) { - //Package cross link found - return getHyperLink(packageCrossLink, - (label.isEmpty() ? text : label)); - } else if ((classCrossLink = getCrossClassLink(refClassName, - refMemName, label, false, "", !plain)) != null) { - //Class cross link found (possibly to a member in the class) - return classCrossLink; - } else { - //No cross link found so print warning - configuration.getDocletSpecificMsg().warning(see.position(), "doclet.see.class_or_package_not_found", - tagName, seetext); - return (label.isEmpty() ? text: label); - } - } - } else if (refMemName == null) { - // Must be a class reference since refClass is not null and refMemName is null. - if (label.isEmpty()) { - label = plainOrCode(plain, new StringContent(refClass.name())); - } - return getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.DEFAULT, refClass) - .label(label)); - } else if (refMem == null) { - // Must be a member reference since refClass is not null and refMemName is not null. - // However, refMem is null, so this referenced member does not exist. - return (label.isEmpty() ? text: label); - } else { - // Must be a member reference since refClass is not null and refMemName is not null. - // refMem is not null, so this @see tag must be referencing a valid member. - ClassDoc containing = refMem.containingClass(); - if (see.text().trim().startsWith("#") && - ! (containing.isPublic() || - utils.isLinkable(containing, configuration))) { - // Since the link is relative and the holder is not even being - // documented, this must be an inherited link. Redirect it. - // The current class either overrides the referenced member or - // inherits it automatically. - if (this instanceof ClassWriterImpl) { - containing = ((ClassWriterImpl) this).getClassDoc(); - } else if (!containing.isPublic()){ - configuration.getDocletSpecificMsg().warning( - see.position(), "doclet.see.class_or_package_not_accessible", - tagName, containing.qualifiedName()); - } else { - configuration.getDocletSpecificMsg().warning( - see.position(), "doclet.see.class_or_package_not_found", - tagName, seetext); - } - } - if (configuration.currentcd != containing) { - refMemName = (refMem instanceof ConstructorDoc) ? - refMemName : containing.name() + "." + refMemName; - } - if (refMem instanceof ExecutableMemberDoc) { - if (refMemName.indexOf('(') < 0) { - refMemName += ((ExecutableMemberDoc)refMem).signature(); - } - } - - text = plainOrCode(plain, new StringContent(refMemName)); - - return getDocLink(LinkInfoImpl.Kind.SEE_TAG, containing, - refMem, (label.isEmpty() ? text: label), false); - } - } - - private Content plainOrCode(boolean plain, Content body) { - return (plain || body.isEmpty()) ? body : HtmlTree.CODE(body); - } - - /** - * Add the inline comment. - * - * @param doc the doc for which the inline comment will be added - * @param tag the inline tag to be added - * @param htmltree the content tree to which the comment will be added - */ - public void addInlineComment(Doc doc, Tag tag, Content htmltree) { - addCommentTags(doc, tag, tag.inlineTags(), false, false, htmltree); - } - - /** - * Add the inline deprecated comment. - * - * @param doc the doc for which the inline deprecated comment will be added - * @param tag the inline tag to be added - * @param htmltree the content tree to which the comment will be added - */ - public void addInlineDeprecatedComment(Doc doc, Tag tag, Content htmltree) { - addCommentTags(doc, tag.inlineTags(), true, false, htmltree); - } - - /** - * Adds the summary content. - * - * @param doc the doc for which the summary will be generated - * @param htmltree the documentation tree to which the summary will be added - */ - public void addSummaryComment(Doc doc, Content htmltree) { - addSummaryComment(doc, doc.firstSentenceTags(), htmltree); - } - - /** - * Adds the summary content. - * - * @param doc the doc for which the summary will be generated - * @param firstSentenceTags the first sentence tags for the doc - * @param htmltree the documentation tree to which the summary will be added - */ - public void addSummaryComment(Doc doc, Tag[] firstSentenceTags, Content htmltree) { - addCommentTags(doc, firstSentenceTags, false, true, htmltree); - } - - public void addSummaryDeprecatedComment(Doc doc, Tag tag, Content htmltree) { - addCommentTags(doc, tag.firstSentenceTags(), true, true, htmltree); - } - - /** - * Adds the inline comment. - * - * @param doc the doc for which the inline comments will be generated - * @param htmltree the documentation tree to which the inline comments will be added - */ - public void addInlineComment(Doc doc, Content htmltree) { - addCommentTags(doc, doc.inlineTags(), false, false, htmltree); - } - - /** - * Adds the comment tags. - * - * @param doc the doc for which the comment tags will be generated - * @param tags the first sentence tags for the doc - * @param depr true if it is deprecated - * @param first true if the first sentence tags should be added - * @param htmltree the documentation tree to which the comment tags will be added - */ - private void addCommentTags(Doc doc, Tag[] tags, boolean depr, - boolean first, Content htmltree) { - addCommentTags(doc, null, tags, depr, first, htmltree); - } - - /** - * Adds the comment tags. - * - * @param doc the doc for which the comment tags will be generated - * @param holderTag the block tag context for the inline tags - * @param tags the first sentence tags for the doc - * @param depr true if it is deprecated - * @param first true if the first sentence tags should be added - * @param htmltree the documentation tree to which the comment tags will be added - */ - private void addCommentTags(Doc doc, Tag holderTag, Tag[] tags, boolean depr, - boolean first, Content htmltree) { - if(configuration.nocomment){ - return; - } - Content div; - Content result = commentTagsToContent(null, doc, tags, first); - if (depr) { - Content italic = HtmlTree.SPAN(HtmlStyle.deprecationComment, result); - div = HtmlTree.DIV(HtmlStyle.block, italic); - htmltree.addContent(div); - } - else { - div = HtmlTree.DIV(HtmlStyle.block, result); - htmltree.addContent(div); - } - if (tags.length == 0) { - htmltree.addContent(getSpace()); - } - } - - /** - * Converts inline tags and text to text strings, expanding the - * inline tags along the way. Called wherever text can contain - * an inline tag, such as in comments or in free-form text arguments - * to non-inline tags. - * - * @param holderTag specific tag where comment resides - * @param doc specific doc where comment resides - * @param tags array of text tags and inline tags (often alternating) - * present in the text of interest for this doc - * @param isFirstSentence true if text is first sentence - */ - public Content commentTagsToContent(Tag holderTag, Doc doc, Tag[] tags, - boolean isFirstSentence) { - Content result = new ContentBuilder(); - boolean textTagChange = false; - // Array of all possible inline tags for this javadoc run - configuration.tagletManager.checkTags(doc, tags, true); - for (int i = 0; i < tags.length; i++) { - Tag tagelem = tags[i]; - String tagName = tagelem.name(); - if (tagelem instanceof SeeTag) { - result.addContent(seeTagToContent((SeeTag) tagelem)); - } else if (! tagName.equals("Text")) { - boolean wasEmpty = result.isEmpty(); - Content output; - if (configuration.docrootparent.length() > 0 - && tagelem.name().equals("@docRoot") - && ((tags[i + 1]).text()).startsWith("/..")) { - // If Xdocrootparent switch ON, set the flag to remove the /.. occurrence after - // {@docRoot} tag in the very next Text tag. - textTagChange = true; - // Replace the occurrence of {@docRoot}/.. with the absolute link. - output = new StringContent(configuration.docrootparent); - } else { - output = TagletWriter.getInlineTagOuput( - configuration.tagletManager, holderTag, - tagelem, getTagletWriterInstance(isFirstSentence)); - } - if (output != null) - result.addContent(output); - if (wasEmpty && isFirstSentence && tagelem.name().equals("@inheritDoc") && !result.isEmpty()) { - break; - } else { - continue; - } - } else { - String text = tagelem.text(); - //If Xdocrootparent switch ON, remove the /.. occurrence after {@docRoot} tag. - if (textTagChange) { - text = text.replaceFirst("/..", ""); - textTagChange = false; - } - //This is just a regular text tag. The text may contain html links () - //or inline tag {@docRoot}, which will be handled as special cases. - text = redirectRelativeLinks(tagelem.holder(), text); - - // Replace @docRoot only if not represented by an instance of DocRootTaglet, - // that is, only if it was not present in a source file doc comment. - // This happens when inserted by the doclet (a few lines - // above in this method). [It might also happen when passed in on the command - // line as a text argument to an option (like -header).] - text = replaceDocRootDir(text); - if (isFirstSentence) { - text = removeNonInlineHtmlTags(text); - } - text = utils.replaceTabs(configuration, text); - text = utils.normalizeNewlines(text); - result.addContent(new RawHtml(text)); - } - } - return result; - } - - /** - * Return true if relative links should not be redirected. - * - * @return Return true if a relative link should not be redirected. - */ - private boolean shouldNotRedirectRelativeLinks() { - return this instanceof AnnotationTypeWriter || - this instanceof ClassWriter || - this instanceof PackageSummaryWriter; - } - - /** - * Suppose a piece of documentation has a relative link. When you copy - * that documentation to another place such as the index or class-use page, - * that relative link will no longer work. We should redirect those links - * so that they will work again. - *

    - * Here is the algorithm used to fix the link: - *

    - * {@literal => docRoot + + } - *

    - * For example, suppose com.sun.javadoc.RootDoc has this link: - * {@literal The package Page } - *

    - * If this link appeared in the index, we would redirect - * the link like this: - * - * {@literal The package Page} - * - * @param doc the Doc object whose documentation is being written. - * @param text the text being written. - * - * @return the text, with all the relative links redirected to work. - */ - private String redirectRelativeLinks(Doc doc, String text) { - if (doc == null || shouldNotRedirectRelativeLinks()) { - return text; - } - - DocPath redirectPathFromRoot; - if (doc instanceof ClassDoc) { - redirectPathFromRoot = DocPath.forPackage(((ClassDoc) doc).containingPackage()); - } else if (doc instanceof MemberDoc) { - redirectPathFromRoot = DocPath.forPackage(((MemberDoc) doc).containingPackage()); - } else if (doc instanceof PackageDoc) { - redirectPathFromRoot = DocPath.forPackage((PackageDoc) doc); - } else { - return text; - } - - //Redirect all relative links. - int end, begin = StringUtils.indexOfIgnoreCase(text, "= 0){ - StringBuilder textBuff = new StringBuilder(text); - - while(begin >=0){ - if (textBuff.length() > begin + 2 && ! Character.isWhitespace(textBuff.charAt(begin+2))) { - begin = StringUtils.indexOfIgnoreCase(textBuff.toString(), "", begin +1); - if(begin == 0){ - //Link has no equal symbol. - configuration.root.printWarning( - doc.position(), - configuration.getText("doclet.malformed_html_link_tag", text)); - break; - } - if (end == -1) { - //Break without warning. This tag is not necessarily malformed. The text - //might be missing '>' character because the href has an inline tag. - break; - } - - String quote = textBuff.substring(begin, end); - quote = quote.contains("\"") ? "\"" : - quote.contains("\'") ? "\'" : null; - if (quote != null) { - begin = textBuff.indexOf(quote, begin) + 1; - end = textBuff.indexOf(quote, begin +1); - if (begin == 0 || end == -1){ - //Link is missing a quote. - break; - } - } - String relativeLink = textBuff.substring(begin, end); - String relativeLinkLowerCase = StringUtils.toLowerCase(relativeLink); - if (!(relativeLinkLowerCase.startsWith("mailto:") || - relativeLinkLowerCase.startsWith("http:") || - relativeLinkLowerCase.startsWith("https:") || - relativeLinkLowerCase.startsWith("file:"))) { - relativeLink = "{@"+(new DocRootTaglet()).getName() + "}/" - + redirectPathFromRoot.resolve(relativeLink).getPath(); - textBuff.replace(begin, end, relativeLink); - } - begin = StringUtils.indexOfIgnoreCase(textBuff.toString(), " blockTags = new HashSet<>(); - static { - for (HtmlTag t: HtmlTag.values()) { - if (t.blockType == HtmlTag.BlockType.BLOCK) - blockTags.add(t.value); - } - } - - public static String removeNonInlineHtmlTags(String text) { - final int len = text.length(); - - int startPos = 0; // start of text to copy - int lessThanPos = text.indexOf('<'); // position of latest '<' - if (lessThanPos < 0) { - return text; - } - StringBuilder result = new StringBuilder(); - main: while (lessThanPos != -1) { - int currPos = lessThanPos + 1; - if (currPos == len) - break; - char ch = text.charAt(currPos); - if (ch == '/') { - if (++currPos == len) - break; - ch = text.charAt(currPos); - } - int tagPos = currPos; - while (isHtmlTagLetterOrDigit(ch)) { - if (++currPos == len) - break main; - ch = text.charAt(currPos); - } - String tagFound = StringUtils.toLowerCase(text.substring(tagPos, currPos)); - if (blockTags.contains(tagFound)) { - result.append(text, startPos, lessThanPos); - currPos = tagPos + tagFound.length(); - boolean foundGT = false; - Character quoteKind = null; - while (!foundGT) { - if (ch == '\"' || ch == '\'') { - if (quoteKind == null) { - quoteKind = ch; - } else if (quoteKind == ch) { - quoteKind = null; - } - } - if (ch == '>' && quoteKind == null) { - foundGT = true; - } - if (++currPos == len) { - break; - } - ch = text.charAt(currPos); - } - startPos = currPos; - } - lessThanPos = text.indexOf('<', currPos); - } - result.append(text.substring(startPos)); - return result.toString(); - } - - private static boolean isHtmlTagLetterOrDigit(char ch) { - return ('a' <= ch && ch <= 'z') || - ('A' <= ch && ch <= 'Z') || - ('1' <= ch && ch <= '6'); - } - - /** - * Add a link to the stylesheet file. - * - * @param head the content tree to which the files will be added - */ - public void addStyleSheetProperties(Content head) { - String stylesheetfile = configuration.stylesheetfile; - DocPath stylesheet; - if (stylesheetfile.isEmpty()) { - stylesheet = DocPaths.STYLESHEET; - } else { - DocFile file = DocFile.createFileForInput(configuration, stylesheetfile); - stylesheet = DocPath.create(file.getName()); - } - HtmlTree link = HtmlTree.LINK("stylesheet", "text/css", - pathToRoot.resolve(stylesheet).getPath(), - "Style"); - head.addContent(link); - if (configuration.createindex) { - HtmlTree jq_link = HtmlTree.LINK("stylesheet", "text/css", - pathToRoot.resolve(DocPaths.JQUERY_FILES.resolve(DocPaths.JQUERY_STYLESHEET_FILE)).getPath(), - "Style"); - head.addContent(jq_link); - } - } - - /** - * Add a link to the JavaScript file. - * - * @param head the content tree to which the files will be added - */ - public void addScriptProperties(Content head) { - HtmlTree javascript = HtmlTree.SCRIPT(pathToRoot.resolve(DocPaths.JAVASCRIPT).getPath()); - head.addContent(javascript); - if (configuration.createindex) { - if (pathToRoot != null && script != null) { - String path = pathToRoot.isEmpty() ? "." : pathToRoot.getPath(); - script.addContent(new RawHtml("var pathtoroot = \"" + path + "/\";loadScripts(document, \'script\');")); - } - addJQueryFile(head, DocPaths.JSZIP_MIN); - addJQueryFile(head, DocPaths.JSZIPUTILS_MIN); - head.addContent(new RawHtml("")); - addJQueryFile(head, DocPaths.JQUERY_JS_1_10); - addJQueryFile(head, DocPaths.JQUERY_JS); - } - } - - /** - * Add a link to the JQuery javascript file. - * - * @param head the content tree to which the files will be added - * @param filePath the DocPath of the file that needs to be added - */ - private void addJQueryFile(Content head, DocPath filePath) { - HtmlTree jqyeryScriptFile = HtmlTree.SCRIPT( - pathToRoot.resolve(DocPaths.JQUERY_FILES.resolve(filePath)).getPath()); - head.addContent(jqyeryScriptFile); - } - - /** - * According to - * The Java™ Language Specification, - * all the outer classes and static nested classes are core classes. - */ - public boolean isCoreClass(ClassDoc cd) { - return cd.containingClass() == null || cd.isStatic(); - } - - /** - * Adds the annotatation types for the given packageDoc. - * - * @param packageDoc the package to write annotations for. - * @param htmltree the documentation tree to which the annotation info will be - * added - */ - public void addAnnotationInfo(PackageDoc packageDoc, Content htmltree) { - addAnnotationInfo(packageDoc, packageDoc.annotations(), htmltree); - } - - /** - * Add the annotation types of the executable receiver. - * - * @param method the executable to write the receiver annotations for. - * @param descList list of annotation description. - * @param htmltree the documentation tree to which the annotation info will be - * added - */ - public void addReceiverAnnotationInfo(ExecutableMemberDoc method, AnnotationDesc[] descList, - Content htmltree) { - addAnnotationInfo(0, method, descList, false, htmltree); - } - - /** - * Adds the annotatation types for the given doc. - * - * @param doc the package to write annotations for - * @param htmltree the content tree to which the annotation types will be added - */ - public void addAnnotationInfo(ProgramElementDoc doc, Content htmltree) { - addAnnotationInfo(doc, doc.annotations(), htmltree); - } - - /** - * Add the annotatation types for the given doc and parameter. - * - * @param indent the number of spaces to indent the parameters. - * @param doc the doc to write annotations for. - * @param param the parameter to write annotations for. - * @param tree the content tree to which the annotation types will be added - */ - public boolean addAnnotationInfo(int indent, Doc doc, Parameter param, - Content tree) { - return addAnnotationInfo(indent, doc, param.annotations(), false, tree); - } - - /** - * Adds the annotatation types for the given doc. - * - * @param doc the doc to write annotations for. - * @param descList the array of {@link AnnotationDesc}. - * @param htmltree the documentation tree to which the annotation info will be - * added - */ - private void addAnnotationInfo(Doc doc, AnnotationDesc[] descList, - Content htmltree) { - addAnnotationInfo(0, doc, descList, true, htmltree); - } - - /** - * Adds the annotation types for the given doc. - * - * @param indent the number of extra spaces to indent the annotations. - * @param doc the doc to write annotations for. - * @param descList the array of {@link AnnotationDesc}. - * @param htmltree the documentation tree to which the annotation info will be - * added - */ - private boolean addAnnotationInfo(int indent, Doc doc, - AnnotationDesc[] descList, boolean lineBreak, Content htmltree) { - List annotations = getAnnotations(indent, descList, lineBreak); - String sep =""; - if (annotations.isEmpty()) { - return false; - } - for (Content annotation: annotations) { - htmltree.addContent(sep); - htmltree.addContent(annotation); - if (!lineBreak) { - sep = " "; - } - } - return true; - } - - /** - * Return the string representations of the annotation types for - * the given doc. - * - * @param indent the number of extra spaces to indent the annotations. - * @param descList the array of {@link AnnotationDesc}. - * @param linkBreak if true, add new line between each member value. - * @return an array of strings representing the annotations being - * documented. - */ - private List getAnnotations(int indent, AnnotationDesc[] descList, boolean linkBreak) { - return getAnnotations(indent, descList, linkBreak, true); - } - - /** - * Return the string representations of the annotation types for - * the given doc. - * - * A {@code null} {@code elementType} indicates that all the - * annotations should be returned without any filtering. - * - * @param indent the number of extra spaces to indent the annotations. - * @param descList the array of {@link AnnotationDesc}. - * @param linkBreak if true, add new line between each member value. - * @param elementType the type of targeted element (used for filtering - * type annotations from declaration annotations) - * @return an array of strings representing the annotations being - * documented. - */ - public List getAnnotations(int indent, AnnotationDesc[] descList, boolean linkBreak, - boolean isJava5DeclarationLocation) { - List results = new ArrayList<>(); - ContentBuilder annotation; - for (AnnotationDesc aDesc : descList) { - AnnotationTypeDoc annotationDoc = aDesc.annotationType(); - // If an annotation is not documented, do not add it to the list. If - // the annotation is of a repeatable type, and if it is not documented - // and also if its container annotation is not documented, do not add it - // to the list. If an annotation of a repeatable type is not documented - // but its container is documented, it will be added to the list. - if (!utils.isDocumentedAnnotation(annotationDoc) && - (!isAnnotationDocumented && !isContainerDocumented)) { - continue; - } - /* TODO: check logic here to correctly handle declaration - * and type annotations. - if (util.isDeclarationAnnotation(annotationDoc, isJava5DeclarationLocation)) { - continue; - }*/ - annotation = new ContentBuilder(); - isAnnotationDocumented = false; - LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.ANNOTATION, annotationDoc); - AnnotationDesc.ElementValuePair[] pairs = aDesc.elementValues(); - // If the annotation is synthesized, do not print the container. - if (aDesc.isSynthesized()) { - for (AnnotationDesc.ElementValuePair pair : pairs) { - AnnotationValue annotationValue = pair.value(); - List annotationTypeValues = new ArrayList<>(); - if (annotationValue.value() instanceof AnnotationValue[]) { - AnnotationValue[] annotationArray = - (AnnotationValue[]) annotationValue.value(); - annotationTypeValues.addAll(Arrays.asList(annotationArray)); - } else { - annotationTypeValues.add(annotationValue); - } - String sep = ""; - for (AnnotationValue av : annotationTypeValues) { - annotation.addContent(sep); - annotation.addContent(annotationValueToContent(av)); - sep = " "; - } - } - } - else if (isAnnotationArray(pairs)) { - // If the container has 1 or more value defined and if the - // repeatable type annotation is not documented, do not print - // the container. - if (pairs.length == 1 && isAnnotationDocumented) { - AnnotationValue[] annotationArray = - (AnnotationValue[]) (pairs[0].value()).value(); - List annotationTypeValues = new ArrayList<>(); - annotationTypeValues.addAll(Arrays.asList(annotationArray)); - String sep = ""; - for (AnnotationValue av : annotationTypeValues) { - annotation.addContent(sep); - annotation.addContent(annotationValueToContent(av)); - sep = " "; - } - } - // If the container has 1 or more value defined and if the - // repeatable type annotation is not documented, print the container. - else { - addAnnotations(annotationDoc, linkInfo, annotation, pairs, - indent, false); - } - } - else { - addAnnotations(annotationDoc, linkInfo, annotation, pairs, - indent, linkBreak); - } - annotation.addContent(linkBreak ? DocletConstants.NL : ""); - results.add(annotation); - } - return results; - } - - /** - * Add annotation to the annotation string. - * - * @param annotationDoc the annotation being documented - * @param linkInfo the information about the link - * @param annotation the annotation string to which the annotation will be added - * @param pairs annotation type element and value pairs - * @param indent the number of extra spaces to indent the annotations. - * @param linkBreak if true, add new line between each member value - */ - private void addAnnotations(AnnotationTypeDoc annotationDoc, LinkInfoImpl linkInfo, - ContentBuilder annotation, AnnotationDesc.ElementValuePair[] pairs, - int indent, boolean linkBreak) { - linkInfo.label = new StringContent("@" + annotationDoc.name()); - annotation.addContent(getLink(linkInfo)); - if (pairs.length > 0) { - annotation.addContent("("); - for (int j = 0; j < pairs.length; j++) { - if (j > 0) { - annotation.addContent(","); - if (linkBreak) { - annotation.addContent(DocletConstants.NL); - int spaces = annotationDoc.name().length() + 2; - for (int k = 0; k < (spaces + indent); k++) { - annotation.addContent(" "); - } - } - } - annotation.addContent(getDocLink(LinkInfoImpl.Kind.ANNOTATION, - pairs[j].element(), pairs[j].element().name(), false)); - annotation.addContent("="); - AnnotationValue annotationValue = pairs[j].value(); - List annotationTypeValues = new ArrayList<>(); - if (annotationValue.value() instanceof AnnotationValue[]) { - AnnotationValue[] annotationArray = - (AnnotationValue[]) annotationValue.value(); - annotationTypeValues.addAll(Arrays.asList(annotationArray)); - } else { - annotationTypeValues.add(annotationValue); - } - annotation.addContent(annotationTypeValues.size() == 1 ? "" : "{"); - String sep = ""; - for (AnnotationValue av : annotationTypeValues) { - annotation.addContent(sep); - annotation.addContent(annotationValueToContent(av)); - sep = ","; - } - annotation.addContent(annotationTypeValues.size() == 1 ? "" : "}"); - isContainerDocumented = false; - } - annotation.addContent(")"); - } - } - - /** - * Check if the annotation contains an array of annotation as a value. This - * check is to verify if a repeatable type annotation is present or not. - * - * @param pairs annotation type element and value pairs - * - * @return true if the annotation contains an array of annotation as a value. - */ - private boolean isAnnotationArray(AnnotationDesc.ElementValuePair[] pairs) { - AnnotationValue annotationValue; - for (AnnotationDesc.ElementValuePair pair : pairs) { - annotationValue = pair.value(); - if (annotationValue.value() instanceof AnnotationValue[]) { - AnnotationValue[] annotationArray = - (AnnotationValue[]) annotationValue.value(); - if (annotationArray.length > 1) { - if (annotationArray[0].value() instanceof AnnotationDesc) { - AnnotationTypeDoc annotationDoc = - ((AnnotationDesc) annotationArray[0].value()).annotationType(); - isContainerDocumented = true; - if (utils.isDocumentedAnnotation(annotationDoc)) { - isAnnotationDocumented = true; - } - return true; - } - } - } - } - return false; - } - - private Content annotationValueToContent(AnnotationValue annotationValue) { - if (annotationValue.value() instanceof Type) { - Type type = (Type) annotationValue.value(); - if (type.asClassDoc() != null) { - LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.ANNOTATION, type); - linkInfo.label = new StringContent((type.asClassDoc().isIncluded() ? - type.typeName() : - type.qualifiedTypeName()) + type.dimension() + ".class"); - return getLink(linkInfo); - } else { - return new StringContent(type.typeName() + type.dimension() + ".class"); - } - } else if (annotationValue.value() instanceof AnnotationDesc) { - List list = getAnnotations(0, - new AnnotationDesc[]{(AnnotationDesc) annotationValue.value()}, - false); - ContentBuilder buf = new ContentBuilder(); - for (Content c: list) { - buf.addContent(c); - } - return buf; - } else if (annotationValue.value() instanceof MemberDoc) { - return getDocLink(LinkInfoImpl.Kind.ANNOTATION, - (MemberDoc) annotationValue.value(), - ((MemberDoc) annotationValue.value()).name(), false); - } else { - return new StringContent(annotationValue.toString()); - } - } - - /** - * Return the configuation for this doclet. - * - * @return the configuration for this doclet. - */ - public Configuration configuration() { - return configuration; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java deleted file mode 100644 index d9317c40812..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright (c) 1998, 2013, 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.doclets.formats.html; - -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.taglets.*; - -/** - * Generate serialized form for serializable fields. - * Documentation denoted by the tags serial and - * serialField is processed. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Joe Fialli - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class HtmlSerialFieldWriter extends FieldWriterImpl - implements SerializedFormWriter.SerialFieldWriter { - ProgramElementDoc[] members = null; - - public HtmlSerialFieldWriter(SubWriterHolderWriter writer, - ClassDoc classdoc) { - super(writer, classdoc); - } - - public List members(ClassDoc cd) { - return Arrays.asList(cd.serializableFields()); - } - - /** - * Return the header for serializable fields section. - * - * @return a content tree for the header - */ - public Content getSerializableFieldsHeader() { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - return ul; - } - - /** - * Return the header for serializable fields content section. - * - * @param isLastContent true if the cotent being documented is the last content. - * @return a content tree for the header - */ - public Content getFieldsContentHeader(boolean isLastContent) { - HtmlTree li = new HtmlTree(HtmlTag.LI); - if (isLastContent) - li.addStyle(HtmlStyle.blockListLast); - else - li.addStyle(HtmlStyle.blockList); - return li; - } - - /** - * Add serializable fields. - * - * @param heading the heading for the section - * @param serializableFieldsTree the tree to be added to the serializable fileds - * content tree - * @return a content tree for the serializable fields content - */ - public Content getSerializableFields(String heading, Content serializableFieldsTree) { - HtmlTree li = new HtmlTree(HtmlTag.LI); - li.addStyle(HtmlStyle.blockList); - if (serializableFieldsTree.isValid()) { - Content headingContent = new StringContent(heading); - Content serialHeading = HtmlTree.HEADING(HtmlConstants.SERIALIZED_MEMBER_HEADING, - headingContent); - li.addContent(serialHeading); - li.addContent(serializableFieldsTree); - } - return li; - } - - /** - * Add the member header. - * - * @param fieldType the class document to be listed - * @param fieldTypeStr the string for the field type to be documented - * @param fieldDimensions the dimensions of the field string to be added - * @param fieldName name of the field to be added - * @param contentTree the content tree to which the member header will be added - */ - public void addMemberHeader(ClassDoc fieldType, String fieldTypeStr, - String fieldDimensions, String fieldName, Content contentTree) { - Content nameContent = new RawHtml(fieldName); - Content heading = HtmlTree.HEADING(HtmlConstants.MEMBER_HEADING, nameContent); - contentTree.addContent(heading); - Content pre = new HtmlTree(HtmlTag.PRE); - if (fieldType == null) { - pre.addContent(fieldTypeStr); - } else { - Content fieldContent = writer.getLink(new LinkInfoImpl( - configuration, LinkInfoImpl.Kind.SERIAL_MEMBER, fieldType)); - pre.addContent(fieldContent); - } - pre.addContent(fieldDimensions + " "); - pre.addContent(fieldName); - contentTree.addContent(pre); - } - - /** - * Add the deprecated information for this member. - * - * @param field the field to document. - * @param contentTree the tree to which the deprecated info will be added - */ - public void addMemberDeprecatedInfo(FieldDoc field, Content contentTree) { - addDeprecatedInfo(field, contentTree); - } - - /** - * Add the description text for this member. - * - * @param field the field to document. - * @param contentTree the tree to which the deprecated info will be added - */ - public void addMemberDescription(FieldDoc field, Content contentTree) { - if (field.inlineTags().length > 0) { - writer.addInlineComment(field, contentTree); - } - Tag[] tags = field.tags("serial"); - if (tags.length > 0) { - writer.addInlineComment(field, tags[0], contentTree); - } - } - - /** - * Add the description text for this member represented by the tag. - * - * @param serialFieldTag the field to document (represented by tag) - * @param contentTree the tree to which the deprecated info will be added - */ - public void addMemberDescription(SerialFieldTag serialFieldTag, Content contentTree) { - String serialFieldTagDesc = serialFieldTag.description().trim(); - if (!serialFieldTagDesc.isEmpty()) { - Content serialFieldContent = new RawHtml(serialFieldTagDesc); - Content div = HtmlTree.DIV(HtmlStyle.block, serialFieldContent); - contentTree.addContent(div); - } - } - - /** - * Add the tag information for this member. - * - * @param field the field to document. - * @param contentTree the tree to which the member tags info will be added - */ - public void addMemberTags(FieldDoc field, Content contentTree) { - Content tagContent = new ContentBuilder(); - TagletWriter.genTagOuput(configuration.tagletManager, field, - configuration.tagletManager.getCustomTaglets(field), - writer.getTagletWriterInstance(false), tagContent); - Content dlTags = new HtmlTree(HtmlTag.DL); - dlTags.addContent(tagContent); - contentTree.addContent(dlTags); // TODO: what if empty? - } - - /** - * Check to see if overview details should be printed. If - * nocomment option set or if there is no text to be printed - * for deprecation info, comment or tags, do not print overview details. - * - * @param field the field to check overview details for. - * @return true if overview details need to be printed - */ - public boolean shouldPrintOverview(FieldDoc field) { - if (!configuration.nocomment) { - if(!field.commentText().isEmpty() || - writer.hasSerializationOverviewTags(field)) - return true; - } - if (field.tags("deprecated").length > 0) - return true; - return false; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java deleted file mode 100644 index 5e8b94fc286..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.taglets.*; - -/** - * Generate serialized form for Serializable/Externalizable methods. - * Documentation denoted by the serialData tag is processed. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Joe Fialli - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class HtmlSerialMethodWriter extends MethodWriterImpl implements - SerializedFormWriter.SerialMethodWriter{ - - public HtmlSerialMethodWriter(SubWriterHolderWriter writer, - ClassDoc classdoc) { - super(writer, classdoc); - } - - /** - * Return the header for serializable methods section. - * - * @return a content tree for the header - */ - public Content getSerializableMethodsHeader() { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - return ul; - } - - /** - * Return the header for serializable methods content section. - * - * @param isLastContent true if the cotent being documented is the last content. - * @return a content tree for the header - */ - public Content getMethodsContentHeader(boolean isLastContent) { - HtmlTree li = new HtmlTree(HtmlTag.LI); - if (isLastContent) - li.addStyle(HtmlStyle.blockListLast); - else - li.addStyle(HtmlStyle.blockList); - return li; - } - - /** - * Add serializable methods. - * - * @param heading the heading for the section - * @param serializableMethodContent the tree to be added to the serializable methods - * content tree - * @return a content tree for the serializable methods content - */ - public Content getSerializableMethods(String heading, Content serializableMethodContent) { - Content headingContent = new StringContent(heading); - Content serialHeading = HtmlTree.HEADING(HtmlConstants.SERIALIZED_MEMBER_HEADING, - headingContent); - Content li = HtmlTree.LI(HtmlStyle.blockList, serialHeading); - li.addContent(serializableMethodContent); - return li; - } - - /** - * Return the no customization message. - * - * @param msg the message to be displayed - * @return no customization message content - */ - public Content getNoCustomizationMsg(String msg) { - Content noCustomizationMsg = new StringContent(msg); - return noCustomizationMsg; - } - - /** - * Add the member header. - * - * @param member the method document to be listed - * @param methodsContentTree the content tree to which the member header will be added - */ - public void addMemberHeader(MethodDoc member, Content methodsContentTree) { - methodsContentTree.addContent(getHead(member)); - methodsContentTree.addContent(getSignature(member)); - } - - /** - * Add the deprecated information for this member. - * - * @param member the method to document. - * @param methodsContentTree the tree to which the deprecated info will be added - */ - public void addDeprecatedMemberInfo(MethodDoc member, Content methodsContentTree) { - addDeprecatedInfo(member, methodsContentTree); - } - - /** - * Add the description text for this member. - * - * @param member the method to document. - * @param methodsContentTree the tree to which the deprecated info will be added - */ - public void addMemberDescription(MethodDoc member, Content methodsContentTree) { - addComment(member, methodsContentTree); - } - - /** - * Add the tag information for this member. - * - * @param member the method to document. - * @param methodsContentTree the tree to which the member tags info will be added - */ - public void addMemberTags(MethodDoc member, Content methodsContentTree) { - Content tagContent = new ContentBuilder(); - TagletManager tagletManager = - configuration.tagletManager; - TagletWriter.genTagOuput(tagletManager, member, - tagletManager.getSerializedFormTaglets(), - writer.getTagletWriterInstance(false), tagContent); - Content dlTags = new HtmlTree(HtmlTag.DL); - dlTags.addContent(tagContent); - methodsContentTree.addContent(dlTags); - MethodDoc method = member; - if (method.name().compareTo("writeExternal") == 0 - && method.tags("serialData").length == 0) { - serialWarning(member.position(), "doclet.MissingSerialDataTag", - method.containingClass().qualifiedName(), method.name()); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java deleted file mode 100644 index 059ab6bd81f..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright (c) 2003, 2014, 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.doclets.formats.html; - -import java.util.List; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.ContentBuilder; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; -import com.sun.tools.doclets.internal.toolkit.util.links.*; - -/** - * A factory that returns a link given the information about it. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @since 1.5 - */ -@Deprecated -public class LinkFactoryImpl extends LinkFactory { - - private HtmlDocletWriter m_writer; - - public LinkFactoryImpl(HtmlDocletWriter writer) { - m_writer = writer; - } - - /** - * {@inheritDoc} - */ - protected Content newContent() { - return new ContentBuilder(); - } - - /** - * {@inheritDoc} - */ - protected Content getClassLink(LinkInfo linkInfo) { - LinkInfoImpl classLinkInfo = (LinkInfoImpl) linkInfo; - boolean noLabel = linkInfo.label == null || linkInfo.label.isEmpty(); - ClassDoc classDoc = classLinkInfo.classDoc; - //Create a tool tip if we are linking to a class or interface. Don't - //create one if we are linking to a member. - String title = - (classLinkInfo.where == null || classLinkInfo.where.length() == 0) ? - getClassToolTip(classDoc, - classLinkInfo.type != null && - !classDoc.qualifiedTypeName().equals(classLinkInfo.type.qualifiedTypeName())) : - ""; - Content label = classLinkInfo.getClassLinkLabel(m_writer.configuration); - Configuration configuration = m_writer.configuration; - Content link = new ContentBuilder(); - if (classDoc.isIncluded()) { - if (configuration.isGeneratedDoc(classDoc)) { - DocPath filename = getPath(classLinkInfo); - if (linkInfo.linkToSelf || - !(DocPath.forName(classDoc)).equals(m_writer.filename)) { - link.addContent(m_writer.getHyperLink( - filename.fragment(classLinkInfo.where), - label, - classLinkInfo.isStrong, classLinkInfo.styleName, - title, classLinkInfo.target)); - if (noLabel && !classLinkInfo.excludeTypeParameterLinks) { - link.addContent(getTypeParameterLinks(linkInfo)); - } - return link; - } - } - } else { - Content crossLink = m_writer.getCrossClassLink( - classDoc.qualifiedName(), classLinkInfo.where, - label, classLinkInfo.isStrong, classLinkInfo.styleName, - true); - if (crossLink != null) { - link.addContent(crossLink); - if (noLabel && !classLinkInfo.excludeTypeParameterLinks) { - link.addContent(getTypeParameterLinks(linkInfo)); - } - return link; - } - } - // Can't link so just write label. - link.addContent(label); - if (noLabel && !classLinkInfo.excludeTypeParameterLinks) { - link.addContent(getTypeParameterLinks(linkInfo)); - } - return link; - } - - /** - * {@inheritDoc} - */ - protected Content getTypeParameterLink(LinkInfo linkInfo, - Type typeParam) { - LinkInfoImpl typeLinkInfo = new LinkInfoImpl(m_writer.configuration, - ((LinkInfoImpl) linkInfo).getContext(), typeParam); - typeLinkInfo.excludeTypeBounds = linkInfo.excludeTypeBounds; - typeLinkInfo.excludeTypeParameterLinks = linkInfo.excludeTypeParameterLinks; - typeLinkInfo.linkToSelf = linkInfo.linkToSelf; - typeLinkInfo.isJava5DeclarationLocation = false; - return getLink(typeLinkInfo); - } - - protected Content getTypeAnnotationLink(LinkInfo linkInfo, - AnnotationDesc annotation) { - throw new RuntimeException("Not implemented yet!"); - } - - public Content getTypeAnnotationLinks(LinkInfo linkInfo) { - ContentBuilder links = new ContentBuilder(); - AnnotationDesc[] annotations; - if (linkInfo.type instanceof AnnotatedType) { - annotations = linkInfo.type.asAnnotatedType().annotations(); - } else if (linkInfo.type instanceof TypeVariable) { - annotations = linkInfo.type.asTypeVariable().annotations(); - } else { - return links; - } - - if (annotations.length == 0) - return links; - - List annos = m_writer.getAnnotations(0, annotations, false, linkInfo.isJava5DeclarationLocation); - - boolean isFirst = true; - for (Content anno : annos) { - if (!isFirst) { - links.addContent(" "); - } - links.addContent(anno); - isFirst = false; - } - if (!annos.isEmpty()) { - links.addContent(" "); - } - - return links; - } - - /** - * Given a class, return the appropriate tool tip. - * - * @param classDoc the class to get the tool tip for. - * @return the tool tip for the appropriate class. - */ - private String getClassToolTip(ClassDoc classDoc, boolean isTypeLink) { - Configuration configuration = m_writer.configuration; - Utils utils = configuration.utils; - if (isTypeLink) { - return configuration.getText("doclet.Href_Type_Param_Title", - classDoc.name()); - } else if (classDoc.isInterface()){ - return configuration.getText("doclet.Href_Interface_Title", - utils.getPackageName(classDoc.containingPackage())); - } else if (classDoc.isAnnotationType()) { - return configuration.getText("doclet.Href_Annotation_Title", - utils.getPackageName(classDoc.containingPackage())); - } else if (classDoc.isEnum()) { - return configuration.getText("doclet.Href_Enum_Title", - utils.getPackageName(classDoc.containingPackage())); - } else { - return configuration.getText("doclet.Href_Class_Title", - utils.getPackageName(classDoc.containingPackage())); - } - } - - /** - * Return path to the given file name in the given package. So if the name - * passed is "Object.html" and the name of the package is "java.lang", and - * if the relative path is "../.." then returned string will be - * "../../java/lang/Object.html" - * - * @param linkInfo the information about the link. - */ - private DocPath getPath(LinkInfoImpl linkInfo) { - if (linkInfo.context == LinkInfoImpl.Kind.PACKAGE_FRAME) { - //Not really necessary to do this but we want to be consistent - //with 1.4.2 output. - return DocPath.forName(linkInfo.classDoc); - } - return m_writer.pathToRoot.resolve(DocPath.forClass(linkInfo.classDoc)); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java deleted file mode 100644 index e0660d7a130..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java +++ /dev/null @@ -1,430 +0,0 @@ -/* - * Copyright (c) 2003, 2014, 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.doclets.formats.html; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.ContentBuilder; -import com.sun.tools.doclets.formats.html.markup.StringContent; -import com.sun.tools.doclets.internal.toolkit.Content; -import com.sun.tools.doclets.internal.toolkit.util.links.*; - -/** - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - */ -@Deprecated -public class LinkInfoImpl extends LinkInfo { - - public enum Kind { - DEFAULT, - - /** - * Indicate that the link appears in a class list. - */ - ALL_CLASSES_FRAME, - - /** - * Indicate that the link appears in a class documentation. - */ - CLASS, - - /** - * Indicate that the link appears in member documentation. - */ - MEMBER, - - /** - * Indicate that the link appears in class use documentation. - */ - CLASS_USE, - - /** - * Indicate that the link appears in index documentation. - */ - INDEX, - - /** - * Indicate that the link appears in constant value summary. - */ - CONSTANT_SUMMARY, - - /** - * Indicate that the link appears in serialized form documentation. - */ - SERIALIZED_FORM, - - /** - * Indicate that the link appears in serial member documentation. - */ - SERIAL_MEMBER, - - /** - * Indicate that the link appears in package documentation. - */ - PACKAGE, - - /** - * Indicate that the link appears in see tag documentation. - */ - SEE_TAG, - - /** - * Indicate that the link appears in value tag documentation. - */ - VALUE_TAG, - - /** - * Indicate that the link appears in tree documentation. - */ - TREE, - - /** - * Indicate that the link appears in a class list. - */ - PACKAGE_FRAME, - - /** - * The header in the class documentation. - */ - CLASS_HEADER, - - /** - * The signature in the class documentation. - */ - CLASS_SIGNATURE, - - /** - * The return type of a method. - */ - RETURN_TYPE, - - /** - * The return type of a method in a member summary. - */ - SUMMARY_RETURN_TYPE, - - /** - * The type of a method/constructor parameter. - */ - EXECUTABLE_MEMBER_PARAM, - - /** - * Super interface links. - */ - SUPER_INTERFACES, - - /** - * Implemented interface links. - */ - IMPLEMENTED_INTERFACES, - - /** - * Implemented class links. - */ - IMPLEMENTED_CLASSES, - - /** - * Subinterface links. - */ - SUBINTERFACES, - - /** - * Subclasses links. - */ - SUBCLASSES, - - /** - * The signature in the class documentation (implements/extends portion). - */ - CLASS_SIGNATURE_PARENT_NAME, - - /** - * The header for method documentation copied from parent. - */ - METHOD_DOC_COPY, - - /** - * Method "specified by" link. - */ - METHOD_SPECIFIED_BY, - - /** - * Method "overrides" link. - */ - METHOD_OVERRIDES, - - /** - * Annotation link. - */ - ANNOTATION, - - /** - * The header for field documentation copied from parent. - */ - FIELD_DOC_COPY, - - /** - * The parent nodes in the class tree. - */ - CLASS_TREE_PARENT, - - /** - * The type parameters of a method or constructor. - */ - MEMBER_TYPE_PARAMS, - - /** - * Indicate that the link appears in class use documentation. - */ - CLASS_USE_HEADER, - - /** - * The header for property documentation copied from parent. - */ - PROPERTY_DOC_COPY - } - - public final ConfigurationImpl configuration; - - /** - * The location of the link. - */ - public Kind context = Kind.DEFAULT; - - /** - * The value of the marker #. - */ - public String where = ""; - - /** - * String style of text defined in style sheet. - */ - public String styleName = ""; - - /** - * The value of the target. - */ - public String target = ""; - - /** - * Construct a LinkInfo object. - * - * @param configuration the configuration data for the doclet - * @param context the context of the link. - * @param context the context of the link. - * @param executableMemberDoc the member to link to. - */ - public LinkInfoImpl(ConfigurationImpl configuration, - Kind context, ExecutableMemberDoc executableMemberDoc) { - this.configuration = configuration; - this.executableMemberDoc = executableMemberDoc; - setContext(context); - } - - /** - * {@inheritDoc} - */ - protected Content newContent() { - return new ContentBuilder(); - } - - /** - * Construct a LinkInfo object. - * - * @param configuration the configuration data for the doclet - * @param context the context of the link. - * @param classDoc the class to link to. - */ - public LinkInfoImpl(ConfigurationImpl configuration, - Kind context, ClassDoc classDoc) { - this.configuration = configuration; - this.classDoc = classDoc; - setContext(context); - } - - /** - * Construct a LinkInfo object. - * - * @param configuration the configuration data for the doclet - * @param context the context of the link. - * @param type the class to link to. - */ - public LinkInfoImpl(ConfigurationImpl configuration, - Kind context, Type type) { - this.configuration = configuration; - this.type = type; - setContext(context); - } - - - /** - * Set the label for the link. - * @param label plain-text label for the link - */ - public LinkInfoImpl label(String label) { - this.label = new StringContent(label); - return this; - } - - /** - * Set the label for the link. - */ - public LinkInfoImpl label(Content label) { - this.label = label; - return this; - } - - /** - * Set whether or not the link should be strong. - */ - public LinkInfoImpl strong(boolean strong) { - this.isStrong = strong; - return this; - } - - /** - * Set the style to be used for the link. - * @param styleName String style of text defined in style sheet. - */ - public LinkInfoImpl styleName(String styleName) { - this.styleName = styleName; - return this; - } - - /** - * Set the target to be used for the link. - * @param styleName String style of text defined in style sheet. - */ - public LinkInfoImpl target(String target) { - this.target = target; - return this; - } - - /** - * Set whether or not this is a link to a varargs parameter. - */ - public LinkInfoImpl varargs(boolean varargs) { - this.isVarArg = varargs; - return this; - } - - /** - * Set the fragment specifier for the link. - */ - public LinkInfoImpl where(String where) { - this.where = where; - return this; - } - - /** - * {@inheritDoc} - */ - public Kind getContext() { - return context; - } - - /** - * {@inheritDoc} - * - * This method sets the link attributes to the appropriate values - * based on the context. - * - * @param c the context id to set. - */ - public final void setContext(Kind c) { - //NOTE: Put context specific link code here. - switch (c) { - case ALL_CLASSES_FRAME: - case PACKAGE_FRAME: - case IMPLEMENTED_CLASSES: - case SUBCLASSES: - case METHOD_DOC_COPY: - case FIELD_DOC_COPY: - case PROPERTY_DOC_COPY: - case CLASS_USE_HEADER: - includeTypeInClassLinkLabel = false; - break; - - case ANNOTATION: - excludeTypeParameterLinks = true; - excludeTypeBounds = true; - break; - - case IMPLEMENTED_INTERFACES: - case SUPER_INTERFACES: - case SUBINTERFACES: - case CLASS_TREE_PARENT: - case TREE: - case CLASS_SIGNATURE_PARENT_NAME: - excludeTypeParameterLinks = true; - excludeTypeBounds = true; - includeTypeInClassLinkLabel = false; - includeTypeAsSepLink = true; - break; - - case PACKAGE: - case CLASS_USE: - case CLASS_HEADER: - case CLASS_SIGNATURE: - excludeTypeParameterLinks = true; - includeTypeAsSepLink = true; - includeTypeInClassLinkLabel = false; - break; - - case MEMBER_TYPE_PARAMS: - includeTypeAsSepLink = true; - includeTypeInClassLinkLabel = false; - break; - - case RETURN_TYPE: - case SUMMARY_RETURN_TYPE: - excludeTypeBounds = true; - break; - case EXECUTABLE_MEMBER_PARAM: - excludeTypeBounds = true; - break; - } - context = c; - if (type != null && - type.asTypeVariable()!= null && - type.asTypeVariable().owner() instanceof ExecutableMemberDoc) { - excludeTypeParameterLinks = true; - } - } - - /** - * Return true if this link is linkable and false if we can't link to the - * desired place. - * - * @return true if this link is linkable and false if we can't link to the - * desired place. - */ - public boolean isLinkable() { - return configuration.utils.isLinkable(classDoc, configuration); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkOutputImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkOutputImpl.java deleted file mode 100644 index cca252c7b6d..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/LinkOutputImpl.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.formats.html; - -import com.sun.tools.doclets.internal.toolkit.util.links.*; - -/** - * Stores output of a link. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @since 1.5 - */ -@Deprecated -public class LinkOutputImpl implements LinkOutput { - - /** - * The output of the link. - */ - public StringBuilder output; - - /** - * Construct a new LinkOutputImpl. - */ - public LinkOutputImpl() { - output = new StringBuilder(); - } - - /** - * {@inheritDoc} - */ - public void append(Object o) { - output.append(o instanceof String ? - (String) o : ((LinkOutputImpl)o).toString()); - } - - /** - * {@inheritDoc} - */ - public void insert(int offset, Object o) { - output.insert(offset, o.toString()); - } - - /** - * {@inheritDoc} - */ - public String toString() { - return output.toString(); - } - -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java deleted file mode 100644 index 7603ec30351..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java +++ /dev/null @@ -1,424 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; -import com.sun.tools.javac.util.StringUtils; - -/** - * Writes method documentation in HTML format. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert Field - * @author Atul M Dambalkar - * @author Jamie Ho (rewrite) - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class MethodWriterImpl extends AbstractExecutableMemberWriter - implements MethodWriter, MemberSummaryWriter { - - /** - * Construct a new MethodWriterImpl. - * - * @param writer the writer for the class that the methods belong to. - * @param classDoc the class being documented. - */ - public MethodWriterImpl(SubWriterHolderWriter writer, ClassDoc classDoc) { - super(writer, classDoc); - } - - /** - * Construct a new MethodWriterImpl. - * - * @param writer The writer for the class that the methods belong to. - */ - public MethodWriterImpl(SubWriterHolderWriter writer) { - super(writer); - } - - /** - * {@inheritDoc} - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree) { - memberSummaryTree.addContent(HtmlConstants.START_OF_METHOD_SUMMARY); - Content memberTree = writer.getMemberTreeHeader(); - writer.addSummaryHeader(this, classDoc, memberTree); - return memberTree; - } - - /** - * {@inheritDoc} - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - writer.addMemberTree(memberSummaryTree, memberTree); - } - - /** - * {@inheritDoc} - */ - public Content getMethodDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree) { - memberDetailsTree.addContent(HtmlConstants.START_OF_METHOD_DETAILS); - Content methodDetailsTree = writer.getMemberTreeHeader(); - methodDetailsTree.addContent(writer.getMarkerAnchor( - SectionName.METHOD_DETAIL)); - Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, - writer.methodDetailsLabel); - methodDetailsTree.addContent(heading); - return methodDetailsTree; - } - - /** - * {@inheritDoc} - */ - public Content getMethodDocTreeHeader(MethodDoc method, - Content methodDetailsTree) { - String erasureAnchor; - if ((erasureAnchor = getErasureAnchor(method)) != null) { - methodDetailsTree.addContent(writer.getMarkerAnchor((erasureAnchor))); - } - methodDetailsTree.addContent( - writer.getMarkerAnchor(writer.getAnchor(method))); - Content methodDocTree = writer.getMemberTreeHeader(); - Content heading = new HtmlTree(HtmlConstants.MEMBER_HEADING); - heading.addContent(method.name()); - methodDocTree.addContent(heading); - return methodDocTree; - } - - /** - * Get the signature for the given method. - * - * @param method the method being documented. - * @return a content object for the signature - */ - public Content getSignature(MethodDoc method) { - Content pre = new HtmlTree(HtmlTag.PRE); - writer.addAnnotationInfo(method, pre); - int annotationLength = pre.charCount(); - addModifiers(method, pre); - addTypeParameters(method, pre); - addReturnType(method, pre); - if (configuration.linksource) { - Content methodName = new StringContent(method.name()); - writer.addSrcLink(method, methodName, pre); - } else { - addName(method.name(), pre); - } - int indent = pre.charCount() - annotationLength; - addParameters(method, pre, indent); - addExceptions(method, pre, indent); - return pre; - } - - /** - * {@inheritDoc} - */ - public void addDeprecated(MethodDoc method, Content methodDocTree) { - addDeprecatedInfo(method, methodDocTree); - } - - /** - * {@inheritDoc} - */ - public void addComments(Type holder, MethodDoc method, Content methodDocTree) { - ClassDoc holderClassDoc = holder.asClassDoc(); - if (method.inlineTags().length > 0) { - if (holder.asClassDoc().equals(classdoc) || - (! (holderClassDoc.isPublic() || - utils.isLinkable(holderClassDoc, configuration)))) { - writer.addInlineComment(method, methodDocTree); - } else { - Content link = - writer.getDocLink(LinkInfoImpl.Kind.METHOD_DOC_COPY, - holder.asClassDoc(), method, - holder.asClassDoc().isIncluded() ? - holder.typeName() : holder.qualifiedTypeName(), - false); - Content codelLink = HtmlTree.CODE(link); - Content descfrmLabel = HtmlTree.SPAN(HtmlStyle.descfrmTypeLabel, holder.asClassDoc().isClass()? - writer.descfrmClassLabel : writer.descfrmInterfaceLabel); - descfrmLabel.addContent(writer.getSpace()); - descfrmLabel.addContent(codelLink); - methodDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, descfrmLabel)); - writer.addInlineComment(method, methodDocTree); - } - } - } - - /** - * {@inheritDoc} - */ - public void addTags(MethodDoc method, Content methodDocTree) { - writer.addTagsInfo(method, methodDocTree); - } - - /** - * {@inheritDoc} - */ - public Content getMethodDetails(Content methodDetailsTree) { - if (configuration.allowTag(HtmlTag.SECTION)) { - HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(methodDetailsTree)); - return htmlTree; - } - return getMemberTree(methodDetailsTree); - } - - /** - * {@inheritDoc} - */ - public Content getMethodDoc(Content methodDocTree, - boolean isLastContent) { - return getMemberTree(methodDocTree, isLastContent); - } - - /** - * Close the writer. - */ - public void close() throws IOException { - writer.close(); - } - - public int getMemberKind() { - return VisibleMemberMap.METHODS; - } - - /** - * {@inheritDoc} - */ - public void addSummaryLabel(Content memberTree) { - Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, - writer.getResource("doclet.Method_Summary")); - memberTree.addContent(label); - } - - /** - * {@inheritDoc} - */ - public String getTableSummary() { - return configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Method_Summary"), - configuration.getText("doclet.methods")); - } - - /** - * {@inheritDoc} - */ - public Content getCaption() { - return configuration.getResource("doclet.Methods"); - } - - /** - * {@inheritDoc} - */ - public String[] getSummaryTableHeader(ProgramElementDoc member) { - String[] header = new String[] { - writer.getModifierTypeHeader(), - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Method"), - configuration.getText("doclet.Description")) - }; - return header; - } - - /** - * {@inheritDoc} - */ - public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor( - SectionName.METHOD_SUMMARY)); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { - inheritedTree.addContent(writer.getMarkerAnchor( - SectionName.METHODS_INHERITANCE, configuration.getClassName(cd))); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { - Content classLink = writer.getPreQualifiedClassLink( - LinkInfoImpl.Kind.MEMBER, cd, false); - Content label = new StringContent(cd.isClass() ? - configuration.getText("doclet.Methods_Inherited_From_Class") : - configuration.getText("doclet.Methods_Inherited_From_Interface")); - Content labelHeading = HtmlTree.HEADING(HtmlConstants.INHERITED_SUMMARY_HEADING, - label); - labelHeading.addContent(writer.getSpace()); - labelHeading.addContent(classLink); - inheritedTree.addContent(labelHeading); - } - - /** - * {@inheritDoc} - */ - protected void addSummaryType(ProgramElementDoc member, Content tdSummaryType) { - MethodDoc meth = (MethodDoc)member; - addModifierAndType(meth, meth.returnType(), tdSummaryType); - } - - /** - * {@inheritDoc} - */ - protected static void addOverridden(HtmlDocletWriter writer, - Type overriddenType, MethodDoc method, Content dl) { - if (writer.configuration.nocomment) { - return; - } - ClassDoc holderClassDoc = overriddenType.asClassDoc(); - if (! (holderClassDoc.isPublic() || - writer.configuration.utils.isLinkable(holderClassDoc, writer.configuration))) { - //This is an implementation detail that should not be documented. - return; - } - if (overriddenType.asClassDoc().isIncluded() && ! method.isIncluded()) { - //The class is included but the method is not. That means that it - //is not visible so don't document this. - return; - } - Content label = writer.overridesLabel; - LinkInfoImpl.Kind context = LinkInfoImpl.Kind.METHOD_OVERRIDES; - - if (method != null) { - if (overriddenType.asClassDoc().isAbstract() && method.isAbstract()){ - //Abstract method is implemented from abstract class, - //not overridden - label = writer.specifiedByLabel; - context = LinkInfoImpl.Kind.METHOD_SPECIFIED_BY; - } - Content dt = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.overrideSpecifyLabel, label)); - dl.addContent(dt); - Content overriddenTypeLink = - writer.getLink(new LinkInfoImpl(writer.configuration, context, overriddenType)); - Content codeOverridenTypeLink = HtmlTree.CODE(overriddenTypeLink); - String name = method.name(); - Content methlink = writer.getLink( - new LinkInfoImpl(writer.configuration, LinkInfoImpl.Kind.MEMBER, - overriddenType.asClassDoc()) - .where(writer.getName(writer.getAnchor(method))).label(name)); - Content codeMethLink = HtmlTree.CODE(methlink); - Content dd = HtmlTree.DD(codeMethLink); - dd.addContent(writer.getSpace()); - dd.addContent(writer.getResource("doclet.in_class")); - dd.addContent(writer.getSpace()); - dd.addContent(codeOverridenTypeLink); - dl.addContent(dd); - } - } - - /** - * {@inheritDoc} - */ - protected static void addImplementsInfo(HtmlDocletWriter writer, - MethodDoc method, Content dl) { - if(writer.configuration.nocomment){ - return; - } - ImplementedMethods implementedMethodsFinder = - new ImplementedMethods(method, writer.configuration); - MethodDoc[] implementedMethods = implementedMethodsFinder.build(); - for (MethodDoc implementedMeth : implementedMethods) { - Type intfac = implementedMethodsFinder.getMethodHolder(implementedMeth); - Content intfaclink = writer.getLink(new LinkInfoImpl( - writer.configuration, LinkInfoImpl.Kind.METHOD_SPECIFIED_BY, intfac)); - Content codeIntfacLink = HtmlTree.CODE(intfaclink); - Content dt = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.overrideSpecifyLabel, writer.specifiedByLabel)); - dl.addContent(dt); - Content methlink = writer.getDocLink( - LinkInfoImpl.Kind.MEMBER, implementedMeth, - implementedMeth.name(), false); - Content codeMethLink = HtmlTree.CODE(methlink); - Content dd = HtmlTree.DD(codeMethLink); - dd.addContent(writer.getSpace()); - dd.addContent(writer.getResource("doclet.in_interface")); - dd.addContent(writer.getSpace()); - dd.addContent(codeIntfacLink); - dl.addContent(dd); - } - } - - /** - * Add the return type. - * - * @param method the method being documented. - * @param htmltree the content tree to which the return type will be added - */ - protected void addReturnType(MethodDoc method, Content htmltree) { - Type type = method.returnType(); - if (type != null) { - Content linkContent = writer.getLink( - new LinkInfoImpl(configuration, LinkInfoImpl.Kind.RETURN_TYPE, type)); - htmltree.addContent(linkContent); - htmltree.addContent(writer.getSpace()); - } - } - - /** - * {@inheritDoc} - */ - protected Content getNavSummaryLink(ClassDoc cd, boolean link) { - if (link) { - if (cd == null) { - return writer.getHyperLink( - SectionName.METHOD_SUMMARY, - writer.getResource("doclet.navMethod")); - } else { - return writer.getHyperLink( - SectionName.METHODS_INHERITANCE, - configuration.getClassName(cd), writer.getResource("doclet.navMethod")); - } - } else { - return writer.getResource("doclet.navMethod"); - } - } - - /** - * {@inheritDoc} - */ - protected void addNavDetailLink(boolean link, Content liNav) { - if (link) { - liNav.addContent(writer.getHyperLink( - SectionName.METHOD_DETAIL, writer.getResource("doclet.navMethod"))); - } else { - liNav.addContent(writer.getResource("doclet.navMethod")); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java deleted file mode 100644 index f1f05e99522..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Writes nested class documentation in HTML format. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert Field - * @author Atul M Dambalkar - * @author Jamie Ho (rewrite) - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class NestedClassWriterImpl extends AbstractMemberWriter - implements MemberSummaryWriter { - - public NestedClassWriterImpl(SubWriterHolderWriter writer, - ClassDoc classdoc) { - super(writer, classdoc); - } - - public NestedClassWriterImpl(SubWriterHolderWriter writer) { - super(writer); - } - - /** - * {@inheritDoc} - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree) { - memberSummaryTree.addContent(HtmlConstants.START_OF_NESTED_CLASS_SUMMARY); - Content memberTree = writer.getMemberTreeHeader(); - writer.addSummaryHeader(this, classDoc, memberTree); - return memberTree; - } - - /** - * {@inheritDoc} - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - writer.addMemberTree(memberSummaryTree, memberTree); - } - - /** - * Close the writer. - */ - public void close() throws IOException { - writer.close(); - } - - public int getMemberKind() { - return VisibleMemberMap.INNERCLASSES; - } - - /** - * {@inheritDoc} - */ - public void addSummaryLabel(Content memberTree) { - Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, - writer.getResource("doclet.Nested_Class_Summary")); - memberTree.addContent(label); - } - - /** - * {@inheritDoc} - */ - public String getTableSummary() { - return configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Nested_Class_Summary"), - configuration.getText("doclet.nested_classes")); - } - - /** - * {@inheritDoc} - */ - public Content getCaption() { - return configuration.getResource("doclet.Nested_Classes"); - } - - /** - * {@inheritDoc} - */ - public String[] getSummaryTableHeader(ProgramElementDoc member) { - String[] header; - if (member.isInterface()) { - header = new String[] { - writer.getModifierTypeHeader(), - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Interface"), - configuration.getText("doclet.Description")) - }; - } - else { - header = new String[] { - writer.getModifierTypeHeader(), - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Class"), - configuration.getText("doclet.Description")) - }; - } - return header; - } - - /** - * {@inheritDoc} - */ - public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor( - SectionName.NESTED_CLASS_SUMMARY)); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { - inheritedTree.addContent(writer.getMarkerAnchor( - SectionName.NESTED_CLASSES_INHERITANCE, - cd.qualifiedName())); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { - Content classLink = writer.getPreQualifiedClassLink( - LinkInfoImpl.Kind.MEMBER, cd, false); - Content label = new StringContent(cd.isInterface() ? - configuration.getText("doclet.Nested_Classes_Interface_Inherited_From_Interface") : - configuration.getText("doclet.Nested_Classes_Interfaces_Inherited_From_Class")); - Content labelHeading = HtmlTree.HEADING(HtmlConstants.INHERITED_SUMMARY_HEADING, - label); - labelHeading.addContent(writer.getSpace()); - labelHeading.addContent(classLink); - inheritedTree.addContent(labelHeading); - } - - /** - * {@inheritDoc} - */ - protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, - Content tdSummary) { - Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, - writer.getLink(new LinkInfoImpl(configuration, context, (ClassDoc)member))); - Content code = HtmlTree.CODE(memberLink); - tdSummary.addContent(code); - } - - /** - * {@inheritDoc} - */ - protected void addInheritedSummaryLink(ClassDoc cd, - ProgramElementDoc member, Content linksTree) { - linksTree.addContent( - writer.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER, - (ClassDoc)member))); - } - - /** - * {@inheritDoc} - */ - protected void addSummaryType(ProgramElementDoc member, - Content tdSummaryType) { - ClassDoc cd = (ClassDoc)member; - addModifierAndType(cd, null, tdSummaryType); - } - - /** - * {@inheritDoc} - */ - protected Content getDeprecatedLink(ProgramElementDoc member) { - return writer.getQualifiedClassLink(LinkInfoImpl.Kind.MEMBER, - (ClassDoc)member); - } - - /** - * {@inheritDoc} - */ - protected Content getNavSummaryLink(ClassDoc cd, boolean link) { - if (link) { - if (cd == null) { - return writer.getHyperLink( - SectionName.NESTED_CLASS_SUMMARY, - writer.getResource("doclet.navNested")); - } else { - return writer.getHyperLink( - SectionName.NESTED_CLASSES_INHERITANCE, - cd.qualifiedName(), writer.getResource("doclet.navNested")); - } - } else { - return writer.getResource("doclet.navNested"); - } - } - - /** - * {@inheritDoc} - */ - protected void addNavDetailLink(boolean link, Content liNav) { - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageFrameWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageFrameWriter.java deleted file mode 100644 index d6192063ba3..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageFrameWriter.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Class to generate file for each package contents in the left-hand bottom - * frame. This will list all the Class Kinds in the package. A click on any - * class-kind will update the right-hand frame with the clicked class-kind page. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class PackageFrameWriter extends HtmlDocletWriter { - - /** - * The package being documented. - */ - private PackageDoc packageDoc; - - /** - * The classes to be documented. Use this to filter out classes - * that will not be documented. - */ - private Set documentedClasses; - - /** - * Constructor to construct PackageFrameWriter object and to generate - * "package-frame.html" file in the respective package directory. - * For example for package "java.lang" this will generate file - * "package-frame.html" file in the "java/lang" directory. It will also - * create "java/lang" directory in the current or the destination directory - * if it doesn't exist. - * - * @param configuration the configuration of the doclet. - * @param packageDoc PackageDoc under consideration. - */ - public PackageFrameWriter(ConfigurationImpl configuration, - PackageDoc packageDoc) - throws IOException { - super(configuration, DocPath.forPackage(packageDoc).resolve(DocPaths.PACKAGE_FRAME)); - this.packageDoc = packageDoc; - if (configuration.root.specifiedPackages().length == 0) { - documentedClasses = new HashSet<>(Arrays.asList(configuration.root.classes())); - } - } - - /** - * Generate a package summary page for the left-hand bottom frame. Construct - * the PackageFrameWriter object and then uses it generate the file. - * - * @param configuration the current configuration of the doclet. - * @param packageDoc The package for which "pacakge-frame.html" is to be generated. - */ - public static void generate(ConfigurationImpl configuration, - PackageDoc packageDoc) { - PackageFrameWriter packgen; - try { - packgen = new PackageFrameWriter(configuration, packageDoc); - String pkgName = configuration.utils.getPackageName(packageDoc); - HtmlTree body = packgen.getBody(false, packgen.getWindowTitle(pkgName)); - Content pkgNameContent = new StringContent(pkgName); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN)) - ? HtmlTree.MAIN() - : body; - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, HtmlStyle.bar, - packgen.getTargetPackageLink(packageDoc, "classFrame", pkgNameContent)); - htmlTree.addContent(heading); - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.indexContainer); - packgen.addClassListing(div); - htmlTree.addContent(div); - if (configuration.allowTag(HtmlTag.MAIN)) { - body.addContent(htmlTree); - } - packgen.printHtmlDocument( - configuration.metakeywords.getMetaKeywords(packageDoc), false, body); - packgen.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), DocPaths.PACKAGE_FRAME.getPath()); - throw new DocletAbortException(exc); - } - } - - /** - * Add class listing for all the classes in this package. Divide class - * listing as per the class kind and generate separate listing for - * Classes, Interfaces, Exceptions and Errors. - * - * @param contentTree the content tree to which the listing will be added - */ - protected void addClassListing(HtmlTree contentTree) { - Configuration config = configuration; - if (packageDoc.isIncluded()) { - addClassKindListing(packageDoc.interfaces(), - getResource("doclet.Interfaces"), contentTree); - addClassKindListing(packageDoc.ordinaryClasses(), - getResource("doclet.Classes"), contentTree); - addClassKindListing(packageDoc.enums(), - getResource("doclet.Enums"), contentTree); - addClassKindListing(packageDoc.exceptions(), - getResource("doclet.Exceptions"), contentTree); - addClassKindListing(packageDoc.errors(), - getResource("doclet.Errors"), contentTree); - addClassKindListing(packageDoc.annotationTypes(), - getResource("doclet.AnnotationTypes"), contentTree); - } else { - String name = utils.getPackageName(packageDoc); - addClassKindListing(config.classDocCatalog.interfaces(name), - getResource("doclet.Interfaces"), contentTree); - addClassKindListing(config.classDocCatalog.ordinaryClasses(name), - getResource("doclet.Classes"), contentTree); - addClassKindListing(config.classDocCatalog.enums(name), - getResource("doclet.Enums"), contentTree); - addClassKindListing(config.classDocCatalog.exceptions(name), - getResource("doclet.Exceptions"), contentTree); - addClassKindListing(config.classDocCatalog.errors(name), - getResource("doclet.Errors"), contentTree); - addClassKindListing(config.classDocCatalog.annotationTypes(name), - getResource("doclet.AnnotationTypes"), contentTree); - } - } - - /** - * Add specific class kind listing. Also add label to the listing. - * - * @param arr Array of specific class kinds, namely Class or Interface or Exception or Error - * @param labelContent content tree of the label to be added - * @param contentTree the content tree to which the class kind listing will be added - */ - protected void addClassKindListing(ClassDoc[] arr, Content labelContent, - HtmlTree contentTree) { - arr = utils.filterOutPrivateClasses(arr, configuration.javafx); - if(arr.length > 0) { - Arrays.sort(arr); - boolean printedHeader = false; - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.SECTION() - : contentTree; - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.setTitle(labelContent); - for (ClassDoc classDoc : arr) { - if (documentedClasses != null && !documentedClasses.contains(classDoc)) { - continue; - } - if (!utils.isCoreClass(classDoc) || !configuration.isGeneratedDoc(classDoc)) { - continue; - } - if (!printedHeader) { - Content heading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, - true, labelContent); - htmlTree.addContent(heading); - printedHeader = true; - } - Content arr_i_name = new StringContent(classDoc.name()); - if (classDoc.isInterface()) - arr_i_name = HtmlTree.SPAN(HtmlStyle.interfaceName, arr_i_name); - Content link = getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.PACKAGE_FRAME, classDoc).label(arr_i_name).target("classFrame")); - Content li = HtmlTree.LI(link); - ul.addContent(li); - } - htmlTree.addContent(ul); - if (configuration.allowTag(HtmlTag.SECTION)) { - contentTree.addContent(htmlTree); - } - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java deleted file mode 100644 index 21b65fcc810..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright (c) 1998, 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 com.sun.tools.doclets.formats.html; - -import java.io.IOException; -import java.util.Collection; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate the package index for the left-hand frame in the generated output. - * A click on the package name in this frame will update the page in the bottom - * left hand frame with the listing of contents of the clicked package. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - */ -@Deprecated -public class PackageIndexFrameWriter extends AbstractPackageIndexWriter { - - /** - * Construct the PackageIndexFrameWriter object. - * - * @param filename Name of the package index file to be generated. - */ - public PackageIndexFrameWriter(ConfigurationImpl configuration, - DocPath filename) throws IOException { - super(configuration, filename); - } - - /** - * Generate the package index file named "overview-frame.html". - * @throws DocletAbortException - */ - public static void generate(ConfigurationImpl configuration) { - PackageIndexFrameWriter packgen; - DocPath filename = DocPaths.OVERVIEW_FRAME; - try { - packgen = new PackageIndexFrameWriter(configuration, filename); - packgen.buildPackageIndexFile("doclet.Window_Overview", false); - packgen.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), filename); - throw new DocletAbortException(exc); - } - } - - /** - * {@inheritDoc} - */ - protected void addPackagesList(Collection packages, String text, - String tableSummary, Content body) { - Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true, - packagesLabel); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN)) - ? HtmlTree.MAIN(HtmlStyle.indexContainer, heading) - : HtmlTree.DIV(HtmlStyle.indexContainer, heading); - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.setTitle(packagesLabel); - for (PackageDoc aPackage : packages) { - // Do not list the package if -nodeprecated option is set and the - // package is marked as deprecated. - if (aPackage != null && - (!(configuration.nodeprecated && utils.isDeprecated(aPackage)))) { - ul.addContent(getPackage(aPackage)); - } - } - htmlTree.addContent(ul); - body.addContent(htmlTree); - } - - /** - * Returns each package name as a separate link. - * - * @param pd PackageDoc - * @return content for the package link - */ - protected Content getPackage(PackageDoc pd) { - Content packageLinkContent; - Content packageLabel; - if (!pd.name().isEmpty()) { - packageLabel = getPackageLabel(pd.name()); - packageLinkContent = getHyperLink(pathString(pd, - DocPaths.PACKAGE_FRAME), packageLabel, "", - "packageFrame"); - } else { - packageLabel = new StringContent(""); - packageLinkContent = getHyperLink(DocPaths.PACKAGE_FRAME, - packageLabel, "", "packageFrame"); - } - Content li = HtmlTree.LI(packageLinkContent); - return li; - } - - /** - * {@inheritDoc} - */ - protected void addNavigationBarHeader(Content body) { - Content headerContent; - if (configuration.packagesheader.length() > 0) { - headerContent = new RawHtml(replaceDocRootDir(configuration.packagesheader)); - } else { - headerContent = new RawHtml(replaceDocRootDir(configuration.header)); - } - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true, - HtmlStyle.bar, headerContent); - body.addContent(heading); - } - - /** - * Do nothing as there is no overview information in this page. - */ - protected void addOverviewHeader(Content body) { - } - - /** - * Adds "All Classes" link for the top of the left-hand frame page to the - * documentation tree. - * - * @param ul the Content object to which the "All Classes" link should be added - */ - protected void addAllClassesLink(Content ul) { - Content linkContent = getHyperLink(DocPaths.ALLCLASSES_FRAME, - allclassesLabel, "", "packageFrame"); - Content li = HtmlTree.LI(linkContent); - ul.addContent(li); - } - - /** - * {@inheritDoc} - */ - protected void addNavigationBarFooter(Content body) { - Content p = HtmlTree.P(getSpace()); - body.addContent(p); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java deleted file mode 100644 index ef8c1cc5f4e..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate the package index page "overview-summary.html" for the right-hand - * frame. A click on the package name on this page will update the same frame - * with the "package-summary.html" file for the clicked package. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class PackageIndexWriter extends AbstractPackageIndexWriter { - - /** - * Root of the program structure. Used for "overview" documentation. - */ - private RootDoc root; - - /** - * Map representing the group of packages as specified on the command line. - * - * @see Group - */ - private Map> groupPackageMap; - - /** - * List to store the order groups as specified on the command line. - */ - private List groupList; - - /** - * HTML tree for main tag. - */ - private HtmlTree htmlTree = HtmlTree.MAIN(); - - /** - * Construct the PackageIndexWriter. Also constructs the grouping - * information as provided on the command line by "-group" option. Stores - * the order of groups specified by the user. - * - * @see Group - */ - public PackageIndexWriter(ConfigurationImpl configuration, - DocPath filename) - throws IOException { - super(configuration, filename); - this.root = configuration.root; - groupPackageMap = configuration.group.groupPackages(packages); - groupList = configuration.group.getGroupList(); - } - - /** - * Generate the package index page for the right-hand frame. - * - * @param configuration the current configuration of the doclet. - */ - public static void generate(ConfigurationImpl configuration) { - PackageIndexWriter packgen; - DocPath filename = DocPaths.OVERVIEW_SUMMARY; - try { - packgen = new PackageIndexWriter(configuration, filename); - packgen.buildPackageIndexFile("doclet.Window_Overview_Summary", true); - packgen.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), filename); - throw new DocletAbortException(exc); - } - } - - /** - * Depending upon the grouping information and their titles, add - * separate table indices for each package group. - * - * @param body the documentation tree to which the index will be added - */ - protected void addIndex(Content body) { - for (String groupname : groupList) { - List list = groupPackageMap.get(groupname); - if (list != null && !list.isEmpty()) { - addIndexContents(list, - groupname, configuration.getText("doclet.Member_Table_Summary", - groupname, configuration.getText("doclet.packages")), body); - } - } - } - - /** - * {@inheritDoc} - */ - protected void addPackagesList(Collection packages, String text, - String tableSummary, Content body) { - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.overviewSummary, getTableCaption(new RawHtml(text))) - : HtmlTree.TABLE(HtmlStyle.overviewSummary, tableSummary, getTableCaption(new RawHtml(text))); - table.addContent(getSummaryTableHeader(packageTableHeader, "col")); - Content tbody = new HtmlTree(HtmlTag.TBODY); - addPackagesList(packages, tbody); - table.addContent(tbody); - Content div = HtmlTree.DIV(HtmlStyle.contentContainer, table); - if (configuration.allowTag(HtmlTag.MAIN)) { - htmlTree.addContent(div); - } else { - body.addContent(div); - } - } - - /** - * Adds list of packages in the index table. Generate link to each package. - * - * @param packages Packages to which link is to be generated - * @param tbody the documentation tree to which the list will be added - */ - protected void addPackagesList(Collection packages, Content tbody) { - boolean altColor = true; - for (PackageDoc pkg : packages) { - if (pkg != null && !pkg.name().isEmpty()) { - if (!(configuration.nodeprecated && utils.isDeprecated(pkg))) { - Content packageLinkContent = getPackageLink(pkg, getPackageName(pkg)); - Content tdPackage = HtmlTree.TD(HtmlStyle.colFirst, packageLinkContent); - HtmlTree tdSummary = new HtmlTree(HtmlTag.TD); - tdSummary.addStyle(HtmlStyle.colLast); - addSummaryComment(pkg, tdSummary); - HtmlTree tr = HtmlTree.TR(tdPackage); - tr.addContent(tdSummary); - tr.addStyle(altColor ? HtmlStyle.altColor : HtmlStyle.rowColor); - tbody.addContent(tr); - } - } - altColor = !altColor; - } - } - - /** - * Adds the overview summary comment for this documentation. Add one line - * summary at the top of the page and generate a link to the description, - * which is added at the end of this page. - * - * @param body the documentation tree to which the overview header will be added - */ - protected void addOverviewHeader(Content body) { - addConfigurationTitle(body); - if (root.inlineTags().length > 0) { - HtmlTree subTitleDiv = new HtmlTree(HtmlTag.DIV); - subTitleDiv.addStyle(HtmlStyle.subTitle); - addSummaryComment(root, subTitleDiv); - Content div = HtmlTree.DIV(HtmlStyle.header, subTitleDiv); - Content see = seeLabel; - see.addContent(" "); - Content descPara = HtmlTree.P(see); - Content descLink = getHyperLink(getDocLink( - SectionName.OVERVIEW_DESCRIPTION), - descriptionLabel, "", ""); - descPara.addContent(descLink); - div.addContent(descPara); - if (configuration.allowTag(HtmlTag.MAIN)) { - htmlTree.addContent(div); - } else { - body.addContent(div); - } - } - } - - /** - * Adds the overview comment as provided in the file specified by the - * "-overview" option on the command line. - * - * @param htmltree the documentation tree to which the overview comment will - * be added - */ - protected void addOverviewComment(Content htmltree) { - if (root.inlineTags().length > 0) { - htmltree.addContent( - getMarkerAnchor(SectionName.OVERVIEW_DESCRIPTION)); - addInlineComment(root, htmltree); - } - } - - /** - * Adds the tag information as provided in the file specified by the - * "-overview" option on the command line. - * - * @param body the documentation tree to which the overview will be added - */ - protected void addOverview(Content body) throws IOException { - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.contentContainer); - addOverviewComment(div); - addTagsInfo(root, div); - if (configuration.allowTag(HtmlTag.MAIN)) { - htmlTree.addContent(div); - body.addContent(htmlTree); - } else { - body.addContent(div); - } - } - - /** - * Adds the top text (from the -top option), the upper - * navigation bar, and then the title (from the"-title" - * option), at the top of page. - * - * @param body the documentation tree to which the navigation bar header will be added - */ - protected void addNavigationBarHeader(Content body) { - Content htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : body; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - body.addContent(htmlTree); - } - } - - /** - * Adds the lower navigation bar and the bottom text - * (from the -bottom option) at the bottom of page. - * - * @param body the documentation tree to which the navigation bar footer will be added - */ - protected void addNavigationBarFooter(Content body) { - Content htmlTree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : body; - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - body.addContent(htmlTree); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java deleted file mode 100644 index ac13d789fcf..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Class to generate Tree page for a package. The name of the file generated is - * "package-tree.html" and it is generated in the respective package directory. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class PackageTreeWriter extends AbstractTreeWriter { - - /** - * Package for which tree is to be generated. - */ - protected PackageDoc packagedoc; - - /** - * The previous package name in the alpha-order list. - */ - protected PackageDoc prev; - - /** - * The next package name in the alpha-order list. - */ - protected PackageDoc next; - - /** - * Constructor. - * @throws IOException - * @throws DocletAbortException - */ - public PackageTreeWriter(ConfigurationImpl configuration, - DocPath path, - PackageDoc packagedoc, - PackageDoc prev, PackageDoc next) - throws IOException { - super(configuration, path, - new ClassTree( - configuration.classDocCatalog.allClasses(packagedoc), - configuration)); - this.packagedoc = packagedoc; - this.prev = prev; - this.next = next; - } - - /** - * Construct a PackageTreeWriter object and then use it to generate the - * package tree page. - * - * @param pkg Package for which tree file is to be generated. - * @param prev Previous package in the alpha-ordered list. - * @param next Next package in the alpha-ordered list. - * @param noDeprecated If true, do not generate any information for - * deprecated classe or interfaces. - * @throws DocletAbortException - */ - public static void generate(ConfigurationImpl configuration, - PackageDoc pkg, PackageDoc prev, - PackageDoc next, boolean noDeprecated) { - PackageTreeWriter packgen; - DocPath path = DocPath.forPackage(pkg).resolve(DocPaths.PACKAGE_TREE); - try { - packgen = new PackageTreeWriter(configuration, path, pkg, - prev, next); - packgen.generatePackageTreeFile(); - packgen.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), path.getPath()); - throw new DocletAbortException(exc); - } - } - - /** - * Generate a separate tree file for each package. - */ - protected void generatePackageTreeFile() throws IOException { - HtmlTree body = getPackageTreeHeader(); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN)) - ? HtmlTree.MAIN() - : body; - Content headContent = getResource("doclet.Hierarchy_For_Package", - utils.getPackageName(packagedoc)); - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, false, - HtmlStyle.title, headContent); - Content div = HtmlTree.DIV(HtmlStyle.header, heading); - if (configuration.packages.size() > 1) { - addLinkToMainTree(div); - } - htmlTree.addContent(div); - HtmlTree divTree = new HtmlTree(HtmlTag.DIV); - divTree.addStyle(HtmlStyle.contentContainer); - addTree(classtree.baseclasses(), "doclet.Class_Hierarchy", divTree); - addTree(classtree.baseinterfaces(), "doclet.Interface_Hierarchy", divTree); - addTree(classtree.baseAnnotationTypes(), "doclet.Annotation_Type_Hierarchy", divTree); - addTree(classtree.baseEnums(), "doclet.Enum_Hierarchy", divTree); - htmlTree.addContent(divTree); - if (configuration.allowTag(HtmlTag.MAIN)) { - body.addContent(htmlTree); - } - HtmlTree tree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : body; - addNavLinks(false, tree); - addBottom(tree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - body.addContent(tree); - } - printHtmlDocument(null, true, body); - } - - /** - * Get the package tree header. - * - * @return a content tree for the header - */ - protected HtmlTree getPackageTreeHeader() { - String title = packagedoc.name() + " " + - configuration.getText("doclet.Window_Class_Hierarchy"); - HtmlTree bodyTree = getBody(true, getWindowTitle(title)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - return bodyTree; - } - - /** - * Add a link to the tree for all the packages. - * - * @param div the content tree to which the link will be added - */ - protected void addLinkToMainTree(Content div) { - Content span = HtmlTree.SPAN(HtmlStyle.packageHierarchyLabel, - getResource("doclet.Package_Hierarchies")); - div.addContent(span); - HtmlTree ul = new HtmlTree (HtmlTag.UL); - ul.addStyle(HtmlStyle.horizontal); - ul.addContent(getNavLinkMainTree(configuration.getText("doclet.All_Packages"))); - div.addContent(ul); - } - - /** - * Get link for the previous package tree file. - * - * @return a content tree for the link - */ - protected Content getNavLinkPrevious() { - if (prev == null) { - return getNavLinkPrevious(null); - } else { - DocPath path = DocPath.relativePath(packagedoc, prev); - return getNavLinkPrevious(path.resolve(DocPaths.PACKAGE_TREE)); - } - } - - /** - * Get link for the next package tree file. - * - * @return a content tree for the link - */ - protected Content getNavLinkNext() { - if (next == null) { - return getNavLinkNext(null); - } else { - DocPath path = DocPath.relativePath(packagedoc, next); - return getNavLinkNext(path.resolve(DocPaths.PACKAGE_TREE)); - } - } - - /** - * Get link to the package summary page for the package of this tree. - * - * @return a content tree for the package link - */ - protected Content getNavLinkPackage() { - Content linkContent = getHyperLink(DocPaths.PACKAGE_SUMMARY, - packageLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java deleted file mode 100644 index ef01f9a3a38..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate package usage information. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert G. Field - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class PackageUseWriter extends SubWriterHolderWriter { - - final PackageDoc pkgdoc; - final SortedMap> usingPackageToUsedClasses = new TreeMap<>(); - protected HtmlTree mainTree = HtmlTree.MAIN(); - - /** - * Constructor. - * - * @param filename the file to be generated. - * @throws IOException - * @throws DocletAbortException - */ - public PackageUseWriter(ConfigurationImpl configuration, - ClassUseMapper mapper, DocPath filename, - PackageDoc pkgdoc) throws IOException { - super(configuration, DocPath.forPackage(pkgdoc).resolve(filename)); - this.pkgdoc = pkgdoc; - - // by examining all classes in this package, find what packages - // use these classes - produce a map between using package and - // used classes. - for (ClassDoc usedClass : pkgdoc.allClasses()) { - Set usingClasses = mapper.classToClass.get(usedClass.qualifiedName()); - if (usingClasses != null) { - for (ClassDoc usingClass : usingClasses) { - PackageDoc usingPackage = usingClass.containingPackage(); - Set usedClasses = usingPackageToUsedClasses - .get(usingPackage.name()); - if (usedClasses == null) { - usedClasses = new TreeSet<>(); - usingPackageToUsedClasses.put(utils.getPackageName(usingPackage), - usedClasses); - } - usedClasses.add(usedClass); - } - } - } - } - - /** - * Generate a class page. - * - * @param configuration the current configuration of the doclet. - * @param mapper the mapping of the class usage. - * @param pkgdoc the package doc being documented. - */ - public static void generate(ConfigurationImpl configuration, - ClassUseMapper mapper, PackageDoc pkgdoc) { - PackageUseWriter pkgusegen; - DocPath filename = DocPaths.PACKAGE_USE; - try { - pkgusegen = new PackageUseWriter(configuration, - mapper, filename, pkgdoc); - pkgusegen.generatePackageUseFile(); - pkgusegen.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), filename); - throw new DocletAbortException(exc); - } - } - - - /** - * Generate the package use list. - */ - protected void generatePackageUseFile() throws IOException { - HtmlTree body = getPackageUseHeader(); - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.contentContainer); - if (usingPackageToUsedClasses.isEmpty()) { - div.addContent(getResource( - "doclet.ClassUse_No.usage.of.0", pkgdoc.name())); - } else { - addPackageUse(div); - } - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(div); - body.addContent(mainTree); - } else { - body.addContent(div); - } - HtmlTree tree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : body; - addNavLinks(false, tree); - addBottom(tree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - body.addContent(tree); - } - printHtmlDocument(null, true, body); - } - - /** - * Add the package use information. - * - * @param contentTree the content tree to which the package use information will be added - */ - protected void addPackageUse(Content contentTree) throws IOException { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - if (configuration.packages.size() > 1) { - addPackageList(ul); - } - addClassList(ul); - contentTree.addContent(ul); - } - - /** - * Add the list of packages that use the given package. - * - * @param contentTree the content tree to which the package list will be added - */ - protected void addPackageList(Content contentTree) throws IOException { - Content caption = getTableCaption(configuration.getResource( - "doclet.ClassUse_Packages.that.use.0", - getPackageLink(pkgdoc, utils.getPackageName(pkgdoc)))); - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.useSummary, caption) - : HtmlTree.TABLE(HtmlStyle.useSummary, useTableSummary, caption); - table.addContent(getSummaryTableHeader(packageTableHeader, "col")); - Content tbody = new HtmlTree(HtmlTag.TBODY); - Iterator it = usingPackageToUsedClasses.keySet().iterator(); - for (int i = 0; it.hasNext(); i++) { - PackageDoc pkg = configuration.root.packageNamed(it.next()); - HtmlTree tr = new HtmlTree(HtmlTag.TR); - if (i % 2 == 0) { - tr.addStyle(HtmlStyle.altColor); - } else { - tr.addStyle(HtmlStyle.rowColor); - } - addPackageUse(pkg, tr); - tbody.addContent(tr); - } - table.addContent(tbody); - Content li = HtmlTree.LI(HtmlStyle.blockList, table); - contentTree.addContent(li); - } - - /** - * Add the list of classes that use the given package. - * - * @param contentTree the content tree to which the class list will be added - */ - protected void addClassList(Content contentTree) throws IOException { - String[] classTableHeader = new String[] { - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Class"), - configuration.getText("doclet.Description")) - }; - for (String packageName : usingPackageToUsedClasses.keySet()) { - PackageDoc usingPackage = configuration.root.packageNamed(packageName); - HtmlTree li = new HtmlTree(HtmlTag.LI); - li.addStyle(HtmlStyle.blockList); - if (usingPackage != null) { - li.addContent(getMarkerAnchor(usingPackage.name())); - } - String tableSummary = configuration.getText("doclet.Use_Table_Summary", - configuration.getText("doclet.classes")); - Content caption = getTableCaption(configuration.getResource( - "doclet.ClassUse_Classes.in.0.used.by.1", - getPackageLink(pkgdoc, utils.getPackageName(pkgdoc)), - getPackageLink(usingPackage, utils.getPackageName(usingPackage)))); - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.useSummary, caption) - : HtmlTree.TABLE(HtmlStyle.useSummary, tableSummary, caption); - table.addContent(getSummaryTableHeader(classTableHeader, "col")); - Content tbody = new HtmlTree(HtmlTag.TBODY); - Iterator itc = - usingPackageToUsedClasses.get(packageName).iterator(); - for (int i = 0; itc.hasNext(); i++) { - HtmlTree tr = new HtmlTree(HtmlTag.TR); - if (i % 2 == 0) { - tr.addStyle(HtmlStyle.altColor); - } else { - tr.addStyle(HtmlStyle.rowColor); - } - addClassRow(itc.next(), usingPackage, tr); - tbody.addContent(tr); - } - table.addContent(tbody); - li.addContent(table); - contentTree.addContent(li); - } - } - - /** - * Add a row for the class that uses the given package. - * - * @param usedClass the class that uses the given package - * @param pkg the package to which the class belongs - * @param contentTree the content tree to which the row will be added - */ - protected void addClassRow(ClassDoc usedClass, PackageDoc pkg, - Content contentTree) { - DocPath dp = pathString(usedClass, - DocPaths.CLASS_USE.resolve(DocPath.forName(usedClass))); - Content td = HtmlTree.TD(HtmlStyle.colOne, - getHyperLink(dp.fragment(getPackageAnchorName(pkg)), new StringContent(usedClass.name()))); - addIndexComment(usedClass, td); - contentTree.addContent(td); - } - - /** - * Add the package use information. - * - * @param pkg the package that used the given package - * @param contentTree the content tree to which the information will be added - */ - protected void addPackageUse(PackageDoc pkg, Content contentTree) throws IOException { - Content tdFirst = HtmlTree.TD(HtmlStyle.colFirst, - getHyperLink(utils.getPackageName(pkg), - new StringContent(utils.getPackageName(pkg)))); - contentTree.addContent(tdFirst); - HtmlTree tdLast = new HtmlTree(HtmlTag.TD); - tdLast.addStyle(HtmlStyle.colLast); - if (pkg != null && pkg.name().length() != 0) { - addSummaryComment(pkg, tdLast); - } else { - tdLast.addContent(getSpace()); - } - contentTree.addContent(tdLast); - } - - /** - * Get the header for the package use listing. - * - * @return a content tree representing the package use header - */ - protected HtmlTree getPackageUseHeader() { - String packageText = configuration.getText("doclet.Package"); - String name = pkgdoc.name(); - String title = configuration.getText("doclet.Window_ClassUse_Header", - packageText, name); - HtmlTree bodyTree = getBody(true, getWindowTitle(title)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - ContentBuilder headContent = new ContentBuilder(); - headContent.addContent(getResource("doclet.ClassUse_Title", packageText)); - headContent.addContent(new HtmlTree(HtmlTag.BR)); - headContent.addContent(name); - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true, - HtmlStyle.title, headContent); - Content div = HtmlTree.DIV(HtmlStyle.header, heading); - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(div); - } else { - bodyTree.addContent(div); - } - return bodyTree; - } - - /** - * Get this package link. - * - * @return a content tree for the package link - */ - protected Content getNavLinkPackage() { - Content linkContent = getHyperLink(DocPaths.PACKAGE_SUMMARY, - packageLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } - - /** - * Get the use link. - * - * @return a content tree for the use link - */ - protected Content getNavLinkClassUse() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, useLabel); - return li; - } - - /** - * Get the tree link. - * - * @return a content tree for the tree link - */ - protected Content getNavLinkTree() { - Content linkContent = getHyperLink(DocPaths.PACKAGE_TREE, - treeLabel); - Content li = HtmlTree.LI(linkContent); - return li; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java deleted file mode 100644 index f9732f90084..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java +++ /dev/null @@ -1,365 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Class to generate file for each package contents in the right-hand - * frame. This will list all the Class Kinds in the package. A click on any - * class-kind will update the frame with the clicked class-kind page. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class PackageWriterImpl extends HtmlDocletWriter - implements PackageSummaryWriter { - - /** - * The prev package name in the alpha-order list. - */ - protected PackageDoc prev; - - /** - * The next package name in the alpha-order list. - */ - protected PackageDoc next; - - /** - * The package being documented. - */ - protected PackageDoc packageDoc; - - /** - * The HTML tree for main tag. - */ - protected HtmlTree mainTree = HtmlTree.MAIN(); - - /** - * The HTML tree for section tag. - */ - protected HtmlTree sectionTree = HtmlTree.SECTION(); - - /** - * Constructor to construct PackageWriter object and to generate - * "package-summary.html" file in the respective package directory. - * For example for package "java.lang" this will generate file - * "package-summary.html" file in the "java/lang" directory. It will also - * create "java/lang" directory in the current or the destination directory - * if it doesn't exist. - * - * @param configuration the configuration of the doclet. - * @param packageDoc PackageDoc under consideration. - * @param prev Previous package in the sorted array. - * @param next Next package in the sorted array. - */ - public PackageWriterImpl(ConfigurationImpl configuration, - PackageDoc packageDoc, PackageDoc prev, PackageDoc next) - throws IOException { - super(configuration, DocPath.forPackage(packageDoc).resolve(DocPaths.PACKAGE_SUMMARY)); - this.prev = prev; - this.next = next; - this.packageDoc = packageDoc; - } - - /** - * {@inheritDoc} - */ - public Content getPackageHeader(String heading) { - HtmlTree bodyTree = getBody(true, getWindowTitle(utils.getPackageName(packageDoc))); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.header); - Content annotationContent = new HtmlTree(HtmlTag.P); - addAnnotationInfo(packageDoc, annotationContent); - div.addContent(annotationContent); - Content tHeading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true, - HtmlStyle.title, packageLabel); - tHeading.addContent(getSpace()); - Content packageHead = new StringContent(heading); - tHeading.addContent(packageHead); - div.addContent(tHeading); - addDeprecationInfo(div); - if (packageDoc.inlineTags().length > 0 && ! configuration.nocomment) { - HtmlTree docSummaryDiv = new HtmlTree(HtmlTag.DIV); - docSummaryDiv.addStyle(HtmlStyle.docSummary); - addSummaryComment(packageDoc, docSummaryDiv); - div.addContent(docSummaryDiv); - Content space = getSpace(); - Content descLink = getHyperLink(getDocLink( - SectionName.PACKAGE_DESCRIPTION), - descriptionLabel, "", ""); - Content descPara = new HtmlTree(HtmlTag.P, seeLabel, space, descLink); - div.addContent(descPara); - } - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(div); - } else { - bodyTree.addContent(div); - } - return bodyTree; - } - - /** - * {@inheritDoc} - */ - public Content getContentHeader() { - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.contentContainer); - return div; - } - - /** - * Add the package deprecation information to the documentation tree. - * - * @param div the content tree to which the deprecation information will be added - */ - public void addDeprecationInfo(Content div) { - Tag[] deprs = packageDoc.tags("deprecated"); - if (utils.isDeprecated(packageDoc)) { - HtmlTree deprDiv = new HtmlTree(HtmlTag.DIV); - deprDiv.addStyle(HtmlStyle.deprecatedContent); - Content deprPhrase = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); - deprDiv.addContent(deprPhrase); - if (deprs.length > 0) { - Tag[] commentTags = deprs[0].inlineTags(); - if (commentTags.length > 0) { - addInlineDeprecatedComment(packageDoc, deprs[0], deprDiv); - } - } - div.addContent(deprDiv); - } - } - - /** - * {@inheritDoc} - */ - public Content getSummaryHeader() { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - return ul; - } - - /** - * {@inheritDoc} - */ - public void addClassesSummary(ClassDoc[] classes, String label, - String tableSummary, String[] tableHeader, Content summaryContentTree) { - if(classes.length > 0) { - Arrays.sort(classes); - Content caption = getTableCaption(new RawHtml(label)); - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.typeSummary, caption) - : HtmlTree.TABLE(HtmlStyle.typeSummary, tableSummary, caption); - table.addContent(getSummaryTableHeader(tableHeader, "col")); - Content tbody = new HtmlTree(HtmlTag.TBODY); - for (int i = 0; i < classes.length; i++) { - if (!utils.isCoreClass(classes[i]) || - !configuration.isGeneratedDoc(classes[i])) { - continue; - } - Content classContent = getLink(new LinkInfoImpl( - configuration, LinkInfoImpl.Kind.PACKAGE, classes[i])); - Content tdClass = HtmlTree.TD(HtmlStyle.colFirst, classContent); - HtmlTree tr = HtmlTree.TR(tdClass); - if (i%2 == 0) - tr.addStyle(HtmlStyle.altColor); - else - tr.addStyle(HtmlStyle.rowColor); - HtmlTree tdClassDescription = new HtmlTree(HtmlTag.TD); - tdClassDescription.addStyle(HtmlStyle.colLast); - if (utils.isDeprecated(classes[i])) { - tdClassDescription.addContent(deprecatedLabel); - if (classes[i].tags("deprecated").length > 0) { - addSummaryDeprecatedComment(classes[i], - classes[i].tags("deprecated")[0], tdClassDescription); - } - } - else - addSummaryComment(classes[i], tdClassDescription); - tr.addContent(tdClassDescription); - tbody.addContent(tr); - } - table.addContent(tbody); - Content li = HtmlTree.LI(HtmlStyle.blockList, table); - summaryContentTree.addContent(li); - } - } - - /** - * {@inheritDoc} - */ - public void addPackageDescription(Content packageContentTree) { - if (packageDoc.inlineTags().length > 0) { - packageContentTree.addContent( - getMarkerAnchor(SectionName.PACKAGE_DESCRIPTION)); - Content h2Content = new StringContent( - configuration.getText("doclet.Package_Description", - packageDoc.name())); - Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true, h2Content); - if (configuration.allowTag(HtmlTag.SECTION)) { - sectionTree.addContent(heading); - addInlineComment(packageDoc, sectionTree); - } else { - packageContentTree.addContent(heading); - addInlineComment(packageDoc, packageContentTree); - } - } - } - - /** - * {@inheritDoc} - */ - public void addPackageTags(Content packageContentTree) { - Content htmlTree = (configuration.allowTag(HtmlTag.SECTION)) - ? sectionTree - : packageContentTree; - addTagsInfo(packageDoc, htmlTree); - } - - /** - * {@inheritDoc} - */ - public void addPackageContent(Content contentTree, Content packageContentTree) { - if (configuration.allowTag(HtmlTag.MAIN)) { - packageContentTree.addContent(sectionTree); - mainTree.addContent(packageContentTree); - contentTree.addContent(mainTree); - } else { - contentTree.addContent(packageContentTree); - } - } - - /** - * {@inheritDoc} - */ - public void addPackageFooter(Content contentTree) { - Content htmlTree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : contentTree; - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - contentTree.addContent(htmlTree); - } - } - - /** - * {@inheritDoc} - */ - public void printDocument(Content contentTree) throws IOException { - printHtmlDocument(configuration.metakeywords.getMetaKeywords(packageDoc), - true, contentTree); - } - - /** - * Get "Use" link for this pacakge in the navigation bar. - * - * @return a content tree for the class use link - */ - protected Content getNavLinkClassUse() { - Content useLink = getHyperLink(DocPaths.PACKAGE_USE, - useLabel, "", ""); - Content li = HtmlTree.LI(useLink); - return li; - } - - /** - * Get "PREV PACKAGE" link in the navigation bar. - * - * @return a content tree for the previous link - */ - public Content getNavLinkPrevious() { - Content li; - if (prev == null) { - li = HtmlTree.LI(prevpackageLabel); - } else { - DocPath path = DocPath.relativePath(packageDoc, prev); - li = HtmlTree.LI(getHyperLink(path.resolve(DocPaths.PACKAGE_SUMMARY), - prevpackageLabel, "", "")); - } - return li; - } - - /** - * Get "NEXT PACKAGE" link in the navigation bar. - * - * @return a content tree for the next link - */ - public Content getNavLinkNext() { - Content li; - if (next == null) { - li = HtmlTree.LI(nextpackageLabel); - } else { - DocPath path = DocPath.relativePath(packageDoc, next); - li = HtmlTree.LI(getHyperLink(path.resolve(DocPaths.PACKAGE_SUMMARY), - nextpackageLabel, "", "")); - } - return li; - } - - /** - * Get "Tree" link in the navigation bar. This will be link to the package - * tree file. - * - * @return a content tree for the tree link - */ - protected Content getNavLinkTree() { - Content useLink = getHyperLink(DocPaths.PACKAGE_TREE, - treeLabel, "", ""); - Content li = HtmlTree.LI(useLink); - return li; - } - - /** - * Highlight "Package" in the navigation bar, as this is the package page. - * - * @return a content tree for the package link - */ - protected Content getNavLinkPackage() { - Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, packageLabel); - return li; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java deleted file mode 100644 index 1ce8e81fa20..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Writes property documentation in HTML format. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert Field - * @author Atul M Dambalkar - * @author Jamie Ho (rewrite) - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class PropertyWriterImpl extends AbstractMemberWriter - implements PropertyWriter, MemberSummaryWriter { - - public PropertyWriterImpl(SubWriterHolderWriter writer, ClassDoc classdoc) { - super(writer, classdoc); - } - - /** - * {@inheritDoc} - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree) { - memberSummaryTree.addContent(HtmlConstants.START_OF_PROPERTY_SUMMARY); - Content memberTree = writer.getMemberTreeHeader(); - writer.addSummaryHeader(this, classDoc, memberTree); - return memberTree; - } - - /** - * {@inheritDoc} - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - writer.addMemberTree(memberSummaryTree, memberTree); - } - - /** - * {@inheritDoc} - */ - public Content getPropertyDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree) { - memberDetailsTree.addContent(HtmlConstants.START_OF_PROPERTY_DETAILS); - Content propertyDetailsTree = writer.getMemberTreeHeader(); - propertyDetailsTree.addContent(writer.getMarkerAnchor( - SectionName.PROPERTY_DETAIL)); - Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING, - writer.propertyDetailsLabel); - propertyDetailsTree.addContent(heading); - return propertyDetailsTree; - } - - /** - * {@inheritDoc} - */ - public Content getPropertyDocTreeHeader(MethodDoc property, - Content propertyDetailsTree) { - propertyDetailsTree.addContent( - writer.getMarkerAnchor(property.name())); - Content propertyDocTree = writer.getMemberTreeHeader(); - Content heading = new HtmlTree(HtmlConstants.MEMBER_HEADING); - heading.addContent(property.name().substring(0, property.name().lastIndexOf("Property"))); - propertyDocTree.addContent(heading); - return propertyDocTree; - } - - /** - * {@inheritDoc} - */ - public Content getSignature(MethodDoc property) { - Content pre = new HtmlTree(HtmlTag.PRE); - writer.addAnnotationInfo(property, pre); - addModifiers(property, pre); - Content propertylink = writer.getLink(new LinkInfoImpl( - configuration, LinkInfoImpl.Kind.MEMBER, - property.returnType())); - pre.addContent(propertylink); - pre.addContent(" "); - if (configuration.linksource) { - Content propertyName = new StringContent(property.name()); - writer.addSrcLink(property, propertyName, pre); - } else { - addName(property.name(), pre); - } - return pre; - } - - /** - * {@inheritDoc} - */ - public void addDeprecated(MethodDoc property, Content propertyDocTree) { - } - - /** - * {@inheritDoc} - */ - public void addComments(MethodDoc property, Content propertyDocTree) { - ClassDoc holder = property.containingClass(); - if (property.inlineTags().length > 0) { - if (holder.equals(classdoc) || - (! (holder.isPublic() || utils.isLinkable(holder, configuration)))) { - writer.addInlineComment(property, propertyDocTree); - } else { - Content link = - writer.getDocLink(LinkInfoImpl.Kind.PROPERTY_DOC_COPY, - holder, property, - holder.isIncluded() ? - holder.typeName() : holder.qualifiedTypeName(), - false); - Content codeLink = HtmlTree.CODE(link); - Content descfrmLabel = HtmlTree.SPAN(HtmlStyle.descfrmTypeLabel, holder.isClass()? - writer.descfrmClassLabel : writer.descfrmInterfaceLabel); - descfrmLabel.addContent(writer.getSpace()); - descfrmLabel.addContent(codeLink); - propertyDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, descfrmLabel)); - writer.addInlineComment(property, propertyDocTree); - } - } - } - - /** - * {@inheritDoc} - */ - public void addTags(MethodDoc property, Content propertyDocTree) { - writer.addTagsInfo(property, propertyDocTree); - } - - /** - * {@inheritDoc} - */ - public Content getPropertyDetails(Content propertyDetailsTree) { - if (configuration.allowTag(HtmlTag.SECTION)) { - HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(propertyDetailsTree)); - return htmlTree; - } - return getMemberTree(propertyDetailsTree); - } - - /** - * {@inheritDoc} - */ - public Content getPropertyDoc(Content propertyDocTree, - boolean isLastContent) { - return getMemberTree(propertyDocTree, isLastContent); - } - - /** - * Close the writer. - */ - public void close() throws IOException { - writer.close(); - } - - public int getMemberKind() { - return VisibleMemberMap.PROPERTIES; - } - - /** - * {@inheritDoc} - */ - public void addSummaryLabel(Content memberTree) { - Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING, - writer.getResource("doclet.Property_Summary")); - memberTree.addContent(label); - } - - /** - * {@inheritDoc} - */ - public String getTableSummary() { - return configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Property_Summary"), - configuration.getText("doclet.properties")); - } - - /** - * {@inheritDoc} - */ - public Content getCaption() { - return configuration.getResource("doclet.Properties"); - } - - /** - * {@inheritDoc} - */ - public String[] getSummaryTableHeader(ProgramElementDoc member) { - String[] header = new String[] { - configuration.getText("doclet.Type"), - configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Property"), - configuration.getText("doclet.Description")) - }; - return header; - } - - /** - * {@inheritDoc} - */ - public void addSummaryAnchor(ClassDoc cd, Content memberTree) { - memberTree.addContent(writer.getMarkerAnchor( - SectionName.PROPERTY_SUMMARY)); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) { - inheritedTree.addContent(writer.getMarkerAnchor( - SectionName.PROPERTIES_INHERITANCE, - configuration.getClassName(cd))); - } - - /** - * {@inheritDoc} - */ - public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) { - Content classLink = writer.getPreQualifiedClassLink( - LinkInfoImpl.Kind.MEMBER, cd, false); - Content label = new StringContent(cd.isClass() ? - configuration.getText("doclet.Properties_Inherited_From_Class") : - configuration.getText("doclet.Properties_Inherited_From_Interface")); - Content labelHeading = HtmlTree.HEADING(HtmlConstants.INHERITED_SUMMARY_HEADING, - label); - labelHeading.addContent(writer.getSpace()); - labelHeading.addContent(classLink); - inheritedTree.addContent(labelHeading); - } - - /** - * {@inheritDoc} - */ - protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member, - Content tdSummary) { - Content memberLink = HtmlTree.SPAN(HtmlStyle.memberNameLink, - writer.getDocLink(context, cd, - (MemberDoc) member, - member.name().substring(0, member.name().lastIndexOf("Property")), - false, - true)); - - Content code = HtmlTree.CODE(memberLink); - tdSummary.addContent(code); - } - - /** - * {@inheritDoc} - */ - protected void addInheritedSummaryLink(ClassDoc cd, - ProgramElementDoc member, Content linksTree) { - linksTree.addContent( - writer.getDocLink(LinkInfoImpl.Kind.MEMBER, cd, (MemberDoc)member, - ((member.name().lastIndexOf("Property") != -1) && configuration.javafx) - ? member.name().substring(0, member.name().length() - "Property".length()) - : member.name(), - false, true)); - } - - /** - * {@inheritDoc} - */ - protected void addSummaryType(ProgramElementDoc member, Content tdSummaryType) { - MethodDoc property = (MethodDoc)member; - addModifierAndType(property, property.returnType(), tdSummaryType); - } - - /** - * {@inheritDoc} - */ - protected Content getDeprecatedLink(ProgramElementDoc member) { - return writer.getDocLink(LinkInfoImpl.Kind.MEMBER, - (MemberDoc) member, ((MethodDoc)member).qualifiedName()); - } - - /** - * {@inheritDoc} - */ - protected Content getNavSummaryLink(ClassDoc cd, boolean link) { - if (link) { - if (cd == null) { - return writer.getHyperLink( - SectionName.PROPERTY_SUMMARY, - writer.getResource("doclet.navProperty")); - } else { - return writer.getHyperLink( - SectionName.PROPERTIES_INHERITANCE, - configuration.getClassName(cd), writer.getResource("doclet.navProperty")); - } - } else { - return writer.getResource("doclet.navProperty"); - } - } - - /** - * {@inheritDoc} - */ - protected void addNavDetailLink(boolean link, Content liNav) { - if (link) { - liNav.addContent(writer.getHyperLink( - SectionName.PROPERTY_DETAIL, - writer.getResource("doclet.navProperty"))); - } else { - liNav.addContent(writer.getResource("doclet.navProperty")); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SearchIndexItem.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SearchIndexItem.java deleted file mode 100644 index e4e76c99bcc..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SearchIndexItem.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) 2015, 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.doclets.formats.html; - -/** - * Index item for search. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - */ -@Deprecated -public class SearchIndexItem { - - private String label = ""; - private String url = ""; - private String category = ""; - private String containingPackage = ""; - private String containingClass = ""; - private String holder = ""; - private String description = ""; - - public void setLabel(String l) { - label = l; - } - - public String getLabel() { - return label; - } - - public void setUrl(String u) { - url = u; - } - - public String getUrl() { - return url; - } - - public void setContainingPackage(String p) { - containingPackage = p; - } - - public void setContainingClass(String c) { - containingClass = c; - } - - public void setCategory(String c) { - category = c; - } - - public void setHolder(String h) { - holder = h; - } - - public String getHolder() { - return holder; - } - - public void setDescription(String d) { - description = d; - } - - public String getDescription() { - return description; - } - - public String toString() { - StringBuilder item = new StringBuilder(""); - if (category.equals("Packages")) { - item.append("{") - .append("\"l\":\"").append(label).append("\"") - .append("}"); - } else if (category.equals("Types")) { - item.append("{") - .append("\"p\":\"").append(containingPackage).append("\",") - .append("\"l\":\"").append(label).append("\"") - .append("}"); - } else if (category.equals("Members")) { - item.append("{") - .append("\"p\":\"").append(containingPackage).append("\",") - .append("\"c\":\"").append(containingClass).append("\",") - .append("\"l\":\"").append(label).append("\""); - if (!url.equals("")) { - item.append(",\"url\":\"").append(url).append("\""); - } - item.append("}"); - } else { - item.append("{") - .append("\"l\":\"").append(label).append("\",") - .append("\"h\":\"").append(holder).append("\","); - if (!description.equals("")) { - item.append("\"d\":\"").append(description).append("\","); - } - item.append("\"u\":\"").append(url).append("\"") - .append("}"); - } - return item.toString(); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SectionName.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SectionName.java deleted file mode 100644 index b281e4eb2ef..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SectionName.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2013, 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.doclets.formats.html; - -/** - * Enum representing various section names of generated API documentation. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public enum SectionName { - - ANNOTATION_TYPE_ELEMENT_DETAIL("annotation.type.element.detail"), - ANNOTATION_TYPE_FIELD_DETAIL("annotation.type.field.detail"), - ANNOTATION_TYPE_FIELD_SUMMARY("annotation.type.field.summary"), - ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY("annotation.type.optional.element.summary"), - ANNOTATION_TYPE_REQUIRED_ELEMENT_SUMMARY("annotation.type.required.element.summary"), - CONSTRUCTOR_DETAIL("constructor.detail"), - CONSTRUCTOR_SUMMARY("constructor.summary"), - ENUM_CONSTANT_DETAIL("enum.constant.detail"), - ENUM_CONSTANTS_INHERITANCE("enum.constants.inherited.from.class."), - ENUM_CONSTANT_SUMMARY("enum.constant.summary"), - FIELD_DETAIL("field.detail"), - FIELDS_INHERITANCE("fields.inherited.from.class."), - FIELD_SUMMARY("field.summary"), - METHOD_DETAIL("method.detail"), - METHODS_INHERITANCE("methods.inherited.from.class."), - METHOD_SUMMARY("method.summary"), - NAVBAR_BOTTOM("navbar.bottom"), - NAVBAR_BOTTOM_FIRSTROW("navbar.bottom.firstrow"), - NAVBAR_TOP("navbar.top"), - NAVBAR_TOP_FIRSTROW("navbar.top.firstrow"), - NESTED_CLASSES_INHERITANCE("nested.classes.inherited.from.class."), - NESTED_CLASS_SUMMARY("nested.class.summary"), - OVERVIEW_DESCRIPTION("overview.description"), - PACKAGE_DESCRIPTION("package.description"), - PROPERTY_DETAIL("property.detail"), - PROPERTIES_INHERITANCE("properties.inherited.from.class."), - PROPERTY_SUMMARY("property.summary"), - SKIP_NAVBAR_BOTTOM("skip.navbar.bottom"), - SKIP_NAVBAR_TOP("skip.navbar.top"), - UNNAMED_PACKAGE_ANCHOR("unnamed.package"); - - private final String value; - - SectionName(String sName) { - this.value = sName; - } - - public String getName() { - return this.value; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java deleted file mode 100644 index f9de12b0b8d..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.DocPaths; -import com.sun.tools.doclets.internal.toolkit.util.DocletAbortException; - -/** - * Generate the Serialized Form Information Page. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - */ -@Deprecated -public class SerializedFormWriterImpl extends SubWriterHolderWriter - implements SerializedFormWriter { - - List visibleClasses; - - /** - * HTML tree for main tag. - */ - private HtmlTree mainTree = HtmlTree.MAIN(); - - /** - * @param configuration the configuration data for the doclet - * @throws IOException - * @throws DocletAbortException - */ - public SerializedFormWriterImpl(ConfigurationImpl configuration) - throws IOException { - super(configuration, DocPaths.SERIALIZED_FORM); - visibleClasses = Arrays.asList(configuration.root.classes()); - } - - /** - * Get the given header. - * - * @param header the header to write - * @return the body content tree - */ - public Content getHeader(String header) { - HtmlTree bodyTree = getBody(true, getWindowTitle(header)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - Content h1Content = new StringContent(header); - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true, - HtmlStyle.title, h1Content); - Content div = HtmlTree.DIV(HtmlStyle.header, heading); - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(div); - } else { - bodyTree.addContent(div); - } - return bodyTree; - } - - /** - * Get the serialized form summaries header. - * - * @return the serialized form summary header tree - */ - public Content getSerializedSummariesHeader() { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - return ul; - } - - /** - * Get the package serialized form header. - * - * @return the package serialized form header tree - */ - public Content getPackageSerializedHeader() { - HtmlTree htmlTree; - if (configuration.allowTag(HtmlTag.SECTION)) { - htmlTree = HtmlTree.SECTION(); - } else { - htmlTree = new HtmlTree(HtmlTag.LI); - htmlTree.addStyle(HtmlStyle.blockList); - } - return htmlTree; - } - - /** - * Get the given package header. - * - * @param packageName the package header to write - * @return a content tree for the package header - */ - public Content getPackageHeader(String packageName) { - Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true, - packageLabel); - heading.addContent(getSpace()); - heading.addContent(packageName); - return heading; - } - - /** - * Get the serialized class header. - * - * @return a content tree for the serialized class header - */ - public Content getClassSerializedHeader() { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - return ul; - } - - /** - * Checks if a class is generated and is visible. - * - * @param classDoc the class being processed. - * @return true if the class, that is being processed, is generated and is visible. - */ - public boolean isVisibleClass(ClassDoc classDoc) { - return visibleClasses.contains(classDoc) && configuration.isGeneratedDoc(classDoc); - } - - /** - * Get the serializable class heading. - * - * @param classDoc the class being processed - * @return a content tree for the class header - */ - public Content getClassHeader(ClassDoc classDoc) { - Content classLink = (isVisibleClass(classDoc)) ? - getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.DEFAULT, classDoc) - .label(configuration.getClassName(classDoc))) : - new StringContent(classDoc.qualifiedName()); - Content li = HtmlTree.LI(HtmlStyle.blockList, getMarkerAnchor( - classDoc.qualifiedName())); - Content superClassLink = - classDoc.superclassType() != null ? - getLink(new LinkInfoImpl(configuration, - LinkInfoImpl.Kind.SERIALIZED_FORM, - classDoc.superclassType())) : - null; - - //Print the heading. - Content className = superClassLink == null ? - configuration.getResource( - "doclet.Class_0_implements_serializable", classLink) : - configuration.getResource( - "doclet.Class_0_extends_implements_serializable", classLink, - superClassLink); - li.addContent(HtmlTree.HEADING(HtmlConstants.SERIALIZED_MEMBER_HEADING, - className)); - return li; - } - - /** - * Get the serial UID info header. - * - * @return a content tree for the serial uid info header - */ - public Content getSerialUIDInfoHeader() { - HtmlTree dl = new HtmlTree(HtmlTag.DL); - dl.addStyle(HtmlStyle.nameValue); - return dl; - } - - /** - * Adds the serial UID info. - * - * @param header the header that will show up before the UID. - * @param serialUID the serial UID to print. - * @param serialUidTree the serial UID content tree to which the serial UID - * content will be added - */ - public void addSerialUIDInfo(String header, String serialUID, - Content serialUidTree) { - Content headerContent = new StringContent(header); - serialUidTree.addContent(HtmlTree.DT(headerContent)); - Content serialContent = new StringContent(serialUID); - serialUidTree.addContent(HtmlTree.DD(serialContent)); - } - - /** - * Get the class serialize content header. - * - * @return a content tree for the class serialize content header - */ - public Content getClassContentHeader() { - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.blockList); - return ul; - } - - /** - * Get the serialized content tree section. - * - * @param serializedTreeContent the serialized content tree to be added - * @return a div content tree - */ - public Content getSerializedContent(Content serializedTreeContent) { - HtmlTree divContent = HtmlTree.DIV(HtmlStyle.serializedFormContainer, - serializedTreeContent); - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(divContent); - return mainTree; - } else { - return divContent; - } - } - - /** - * {@inheritDoc} - */ - public void addPackageSerializedTree(Content serializedSummariesTree, - Content packageSerializedTree) { - serializedSummariesTree.addContent((configuration.allowTag(HtmlTag.SECTION)) - ? HtmlTree.LI(HtmlStyle.blockList, packageSerializedTree) - : packageSerializedTree); - } - - /** - * Add the footer. - * - * @param serializedTree the serialized tree to be added - */ - public void addFooter(Content serializedTree) { - Content htmlTree = (configuration.allowTag(HtmlTag.FOOTER)) - ? HtmlTree.FOOTER() - : serializedTree; - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - serializedTree.addContent(htmlTree); - } - } - - /** - * {@inheritDoc} - */ - public void printDocument(Content serializedTree) throws IOException { - printHtmlDocument(null, true, serializedTree); - } - - /** - * Return an instance of a SerialFieldWriter. - * - * @return an instance of a SerialFieldWriter. - */ - public SerialFieldWriter getSerialFieldWriter(ClassDoc classDoc) { - return new HtmlSerialFieldWriter(this, classDoc); - } - - /** - * Return an instance of a SerialMethodWriter. - * - * @return an instance of a SerialMethodWriter. - */ - public SerialMethodWriter getSerialMethodWriter(ClassDoc classDoc) { - return new HtmlSerialMethodWriter(this, classDoc); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java deleted file mode 100644 index 6d1176e3645..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate only one index file for all the Member Names with Indexing in - * Unicode Order. The name of the generated file is "index-all.html" and it is - * generated in current or the destination directory. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @see java.lang.Character - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class SingleIndexWriter extends AbstractIndexWriter { - - private List elements; - - /** - * Construct the SingleIndexWriter with filename "index-all.html" and the - * {@link IndexBuilder} - * - * @param filename Name of the index file to be generated. - * @param indexbuilder Unicode based Index from {@link IndexBuilder} - */ - public SingleIndexWriter(ConfigurationImpl configuration, - DocPath filename, - IndexBuilder indexbuilder) throws IOException { - super(configuration, filename, indexbuilder); - } - - /** - * Generate single index file, for all Unicode characters. - * - * @param indexbuilder IndexBuilder built by {@link IndexBuilder} - * @throws DocletAbortException - */ - public static void generate(ConfigurationImpl configuration, - IndexBuilder indexbuilder) { - SingleIndexWriter indexgen; - DocPath filename = DocPaths.INDEX_ALL; - try { - indexgen = new SingleIndexWriter(configuration, - filename, indexbuilder); - indexgen.generateIndexFile(); - indexgen.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), filename); - throw new DocletAbortException(exc); - } - } - - /** - * Generate the contents of each index file, with Header, Footer, - * Member Field, Method and Constructor Description. - */ - protected void generateIndexFile() throws IOException { - String title = configuration.getText("doclet.Window_Single_Index"); - HtmlTree body = getBody(true, getWindowTitle(title)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : body; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - body.addContent(htmlTree); - } - HtmlTree divTree = new HtmlTree(HtmlTag.DIV); - divTree.addStyle(HtmlStyle.contentContainer); - Set keys = new TreeSet<>(Arrays.asList(indexbuilder.elements())); - keys.addAll(configuration.tagSearchIndexKeys); - elements = new ArrayList<>(keys); - addLinksForIndexes(divTree); - for (Object ch : elements) { - Character unicode = (Character) ch; - if (configuration.tagSearchIndexMap.get(unicode) == null) { - addContents(unicode, indexbuilder.getMemberList(unicode), divTree); - } else if (indexbuilder.getMemberList(unicode) == null) { - addSearchContents(unicode, configuration.tagSearchIndexMap.get(unicode), divTree); - } else { - addContents(unicode, indexbuilder.getMemberList(unicode), - configuration.tagSearchIndexMap.get(unicode), divTree); - } - } - addLinksForIndexes(divTree); - body.addContent((configuration.allowTag(HtmlTag.MAIN)) - ? HtmlTree.MAIN(divTree) - : divTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - htmlTree = HtmlTree.FOOTER(); - } - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - body.addContent(htmlTree); - } - createSearchIndexFiles(); - printHtmlDocument(null, true, body); - } - - /** - * Add links for all the Index Files per unicode character. - * - * @param contentTree the content tree to which the links for indexes will be added - */ - protected void addLinksForIndexes(Content contentTree) { - for (Object ch : elements) { - String unicode = ch.toString(); - contentTree.addContent( - getHyperLink(getNameForIndex(unicode), - new StringContent(unicode))); - contentTree.addContent(getSpace()); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SourceToHTMLConverter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SourceToHTMLConverter.java deleted file mode 100644 index fb2233d0d3c..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SourceToHTMLConverter.java +++ /dev/null @@ -1,297 +0,0 @@ -/* - * Copyright (c) 2001, 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 com.sun.tools.doclets.formats.html; - -import java.io.*; - -import javax.tools.FileObject; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; -import com.sun.tools.javadoc.main.SourcePositionImpl; - -/** - * Converts Java Source Code to HTML. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.4 - */ -@Deprecated -public class SourceToHTMLConverter { - - /** - * The number of trailing blank lines at the end of the page. - * This is inserted so that anchors at the bottom of small pages - * can be reached. - */ - private static final int NUM_BLANK_LINES = 60; - - /** - * New line to be added to the documentation. - */ - private static final String NEW_LINE = DocletConstants.NL; - - private final ConfigurationImpl configuration; - private final Utils utils; - - private final RootDoc rootDoc; - - private DocPath outputdir; - - /** - * Relative path from the documentation root to the file that is being - * generated. - */ - private DocPath relativePath = DocPath.empty; - - private SourceToHTMLConverter(ConfigurationImpl configuration, RootDoc rd, - DocPath outputdir) { - this.configuration = configuration; - this.utils = configuration.utils; - this.rootDoc = rd; - this.outputdir = outputdir; - } - - /** - * Convert the Classes in the given RootDoc to an HTML. - * - * @param configuration the configuration. - * @param rd the RootDoc to convert. - * @param outputdir the name of the directory to output to. - */ - public static void convertRoot(ConfigurationImpl configuration, RootDoc rd, - DocPath outputdir) { - new SourceToHTMLConverter(configuration, rd, outputdir).generate(); - } - - void generate() { - if (rootDoc == null || outputdir == null) { - return; - } - for (PackageDoc pd : rootDoc.specifiedPackages()) { - // If -nodeprecated option is set and the package is marked as deprecated, - // do not convert the package files to HTML. - if (!(configuration.nodeprecated && utils.isDeprecated(pd))) - convertPackage(pd, outputdir); - } - for (ClassDoc cd : rootDoc.specifiedClasses()) { - // If -nodeprecated option is set and the class is marked as deprecated - // or the containing package is deprecated, do not convert the - // package files to HTML. - if (!(configuration.nodeprecated && - (utils.isDeprecated(cd) || utils.isDeprecated(cd.containingPackage())))) - convertClass(cd, outputdir); - } - } - - /** - * Convert the Classes in the given Package to an HTML. - * - * @param pd the Package to convert. - * @param outputdir the name of the directory to output to. - */ - public void convertPackage(PackageDoc pd, DocPath outputdir) { - if (pd == null) { - return; - } - for (ClassDoc cd : pd.allClasses()) { - // If -nodeprecated option is set and the class is marked as deprecated, - // do not convert the package files to HTML. We do not check for - // containing package deprecation since it is already check in - // the calling method above. - if (!(configuration.nodeprecated && utils.isDeprecated(cd))) - convertClass(cd, outputdir); - } - } - - /** - * Convert the given Class to an HTML. - * - * @param cd the class to convert. - * @param outputdir the name of the directory to output to. - */ - public void convertClass(ClassDoc cd, DocPath outputdir) { - if (cd == null) { - return; - } - try { - SourcePosition sp = cd.position(); - if (sp == null) - return; - Reader r; - // temp hack until we can update SourcePosition API. - if (sp instanceof SourcePositionImpl) { - FileObject fo = ((SourcePositionImpl) sp).fileObject(); - if (fo == null) - return; - r = fo.openReader(true); - } else { - File file = sp.file(); - if (file == null) - return; - r = new FileReader(file); - } - int lineno = 1; - String line; - relativePath = DocPaths.SOURCE_OUTPUT - .resolve(DocPath.forPackage(cd)) - .invert(); - Content body = getHeader(); - Content pre = new HtmlTree(HtmlTag.PRE); - try (LineNumberReader reader = new LineNumberReader(r)) { - while ((line = reader.readLine()) != null) { - addLineNo(pre, lineno); - addLine(pre, line, lineno); - lineno++; - } - } - addBlankLines(pre); - Content div = HtmlTree.DIV(HtmlStyle.sourceContainer, pre); - body.addContent((configuration.allowTag(HtmlTag.MAIN)) ? HtmlTree.MAIN(div) : div); - writeToFile(body, outputdir.resolve(DocPath.forClass(cd))); - } catch (IOException e) { - e.printStackTrace(); - } - } - - /** - * Write the output to the file. - * - * @param body the documentation content to be written to the file. - * @param path the path for the file. - */ - private void writeToFile(Content body, DocPath path) throws IOException { - Content htmlDocType = configuration.isOutputHtml5() - ? DocType.HTML5 - : DocType.TRANSITIONAL; - Content head = new HtmlTree(HtmlTag.HEAD); - head.addContent(HtmlTree.TITLE(new StringContent( - configuration.getText("doclet.Window_Source_title")))); - head.addContent(getStyleSheetProperties()); - Content htmlTree = HtmlTree.HTML(configuration.getLocale().getLanguage(), - head, body); - Content htmlDocument = new HtmlDocument(htmlDocType, htmlTree); - configuration.message.notice("doclet.Generating_0", path.getPath()); - DocFile df = DocFile.createFileForOutput(configuration, path); - try (Writer w = df.openWriter()) { - htmlDocument.write(w, true); - } - - } - - /** - * Returns a link to the stylesheet file. - * - * @return an HtmlTree for the lINK tag which provides the stylesheet location - */ - public HtmlTree getStyleSheetProperties() { - String filename = configuration.stylesheetfile; - DocPath stylesheet; - if (filename.length() > 0) { - DocFile file = DocFile.createFileForInput(configuration, filename); - stylesheet = DocPath.create(file.getName()); - } else { - stylesheet = DocPaths.STYLESHEET; - } - DocPath p = relativePath.resolve(stylesheet); - HtmlTree link = HtmlTree.LINK("stylesheet", "text/css", p.getPath(), "Style"); - return link; - } - - /** - * Get the header. - * - * @return the header content for the HTML file - */ - private static Content getHeader() { - return new HtmlTree(HtmlTag.BODY); - } - - /** - * Add the line numbers for the source code. - * - * @param pre the content tree to which the line number will be added - * @param lineno The line number - */ - private static void addLineNo(Content pre, int lineno) { - HtmlTree span = new HtmlTree(HtmlTag.SPAN); - span.addStyle(HtmlStyle.sourceLineNo); - if (lineno < 10) { - span.addContent("00" + Integer.toString(lineno)); - } else if (lineno < 100) { - span.addContent("0" + Integer.toString(lineno)); - } else { - span.addContent(Integer.toString(lineno)); - } - pre.addContent(span); - } - - /** - * Add a line from source to the HTML file that is generated. - * - * @param pre the content tree to which the line will be added. - * @param line the string to format. - * @param currentLineNo the current number. - */ - private void addLine(Content pre, String line, int currentLineNo) { - if (line != null) { - Content anchor = HtmlTree.A(configuration.htmlVersion, - "line." + Integer.toString(currentLineNo), - new StringContent(utils.replaceTabs(configuration, line))); - pre.addContent(anchor); - pre.addContent(NEW_LINE); - } - } - - /** - * Add trailing blank lines at the end of the page. - * - * @param pre the content tree to which the blank lines will be added. - */ - private static void addBlankLines(Content pre) { - for (int i = 0; i < NUM_BLANK_LINES; i++) { - pre.addContent(NEW_LINE); - } - } - - /** - * Given a Doc, return an anchor name for it. - * - * @param d the Doc to check. - * @return the name of the anchor. - */ - public static String getAnchorName(Doc d) { - return "line." + d.position().line(); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SplitIndexWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SplitIndexWriter.java deleted file mode 100644 index 2d819866d10..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SplitIndexWriter.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright (c) 1998, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate Separate Index Files for all the member names with Indexing in - * Unicode Order. This will create "index-files" directory in the current or - * destination directory and will generate separate file for each unicode index. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @see java.lang.Character - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class SplitIndexWriter extends AbstractIndexWriter { - - /** - * Previous unicode character index in the built index. - */ - protected int prev; - - /** - * Next unicode character in the built index. - */ - protected int next; - - private List indexElements; - - /** - * Construct the SplitIndexWriter. Uses path to this file and relative path - * from this file. - * - * @param path Path to the file which is getting generated. - * @param indexbuilder Unicode based Index from {@link IndexBuilder} - */ - public SplitIndexWriter(ConfigurationImpl configuration, - DocPath path, - IndexBuilder indexbuilder, List elements, - int prev, int next) throws IOException { - super(configuration, path, indexbuilder); - this.indexElements = elements; - this.prev = prev; - this.next = next; - } - - /** - * Generate separate index files, for each Unicode character, listing all - * the members starting with the particular unicode character. - * - * @param indexbuilder IndexBuilder built by {@link IndexBuilder} - * @throws DocletAbortException - */ - public static void generate(ConfigurationImpl configuration, - IndexBuilder indexbuilder) { - SplitIndexWriter indexgen; - DocPath filename = DocPath.empty; - DocPath path = DocPaths.INDEX_FILES; - try { - Set keys = new TreeSet<>(Arrays.asList(indexbuilder.elements())); - keys.addAll(configuration.tagSearchIndexKeys); - List elements = new ArrayList<>(keys); - ListIterator li = elements.listIterator(); - while (li.hasNext()) { - Object ch = li.next(); - filename = DocPaths.indexN(li.nextIndex()); - indexgen = new SplitIndexWriter(configuration, - path.resolve(filename), - indexbuilder, elements, li.previousIndex(), li.nextIndex()); - indexgen.generateIndexFile((Character) ch); - if (!li.hasNext()) { - indexgen.createSearchIndexFiles(); - } - indexgen.close(); - } - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), filename.getPath()); - throw new DocletAbortException(exc); - } - } - - /** - * Generate the contents of each index file, with Header, Footer, - * Member Field, Method and Constructor Description. - * - * @param unicode Unicode character referring to the character for the - * index. - */ - protected void generateIndexFile(Character unicode) throws IOException { - String title = configuration.getText("doclet.Window_Split_Index", - unicode.toString()); - HtmlTree body = getBody(true, getWindowTitle(title)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : body; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - body.addContent(htmlTree); - } - HtmlTree divTree = new HtmlTree(HtmlTag.DIV); - divTree.addStyle(HtmlStyle.contentContainer); - addLinksForIndexes(divTree); - if (configuration.tagSearchIndexMap.get(unicode) == null) { - addContents(unicode, indexbuilder.getMemberList(unicode), divTree); - } else if (indexbuilder.getMemberList(unicode) == null) { - addSearchContents(unicode, configuration.tagSearchIndexMap.get(unicode), divTree); - } else { - addContents(unicode, indexbuilder.getMemberList(unicode), - configuration.tagSearchIndexMap.get(unicode), divTree); - } - addLinksForIndexes(divTree); - body.addContent((configuration.allowTag(HtmlTag.MAIN)) ? HtmlTree.MAIN(divTree) : divTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - htmlTree = HtmlTree.FOOTER(); - } - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - body.addContent(htmlTree); - } - printHtmlDocument(null, true, body); - } - - /** - * Add links for all the Index Files per unicode character. - * - * @param contentTree the content tree to which the links for indexes will be added - */ - protected void addLinksForIndexes(Content contentTree) { - for (int i = 0; i < indexElements.size(); i++) { - int j = i + 1; - contentTree.addContent(getHyperLink(DocPaths.indexN(j), - new StringContent(indexElements.get(i).toString()))); - contentTree.addContent(getSpace()); - } - } - - /** - * Get link to the previous unicode character. - * - * @return a content tree for the link - */ - public Content getNavLinkPrevious() { - Content prevletterLabel = getResource("doclet.Prev_Letter"); - if (prev == -1) { - return HtmlTree.LI(prevletterLabel); - } - else { - Content prevLink = getHyperLink(DocPaths.indexN(prev), - prevletterLabel); - return HtmlTree.LI(prevLink); - } - } - - /** - * Get link to the next unicode character. - * - * @return a content tree for the link - */ - public Content getNavLinkNext() { - Content nextletterLabel = getResource("doclet.Next_Letter"); - if (next == -1) { - return HtmlTree.LI(nextletterLabel); - } - else { - Content nextLink = getHyperLink(DocPaths.indexN(next), - nextletterLabel); - return HtmlTree.LI(nextLink); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java deleted file mode 100644 index d519320847c..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java +++ /dev/null @@ -1,362 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * This abstract class exists to provide functionality needed in the - * the formatting of member information. Since AbstractSubWriter and its - * subclasses control this, they would be the logical place to put this. - * However, because each member type has its own subclass, subclassing - * can not be used effectively to change formatting. The concrete - * class subclass of this class can be subclassed to change formatting. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @see AbstractMemberWriter - * @see ClassWriterImpl - * - * @author Robert Field - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public abstract class SubWriterHolderWriter extends HtmlDocletWriter { - - /** - * The HTML tree for main tag. - */ - protected HtmlTree mainTree = HtmlTree.MAIN(); - - public SubWriterHolderWriter(ConfigurationImpl configuration, DocPath filename) - throws IOException { - super(configuration, filename); - } - - /** - * Add the summary header. - * - * @param mw the writer for the member being documented - * @param cd the classdoc to be documented - * @param memberTree the content tree to which the summary header will be added - */ - public void addSummaryHeader(AbstractMemberWriter mw, ClassDoc cd, - Content memberTree) { - mw.addSummaryAnchor(cd, memberTree); - mw.addSummaryLabel(memberTree); - } - - /** - * Get the summary table. - * - * @param mw the writer for the member being documented - * @param cd the classdoc to be documented - * @param tableContents list of summary table contents - * @param showTabs true if the table needs to show tabs - * @return the content tree for the summary table - */ - public Content getSummaryTableTree(AbstractMemberWriter mw, ClassDoc cd, - List tableContents, boolean showTabs) { - Content caption; - if (showTabs) { - caption = getTableCaption(mw.methodTypes); - generateMethodTypesScript(mw.typeMap, mw.methodTypes); - } - else { - caption = getTableCaption(mw.getCaption()); - } - Content table = (configuration.isOutputHtml5()) - ? HtmlTree.TABLE(HtmlStyle.memberSummary, caption) - : HtmlTree.TABLE(HtmlStyle.memberSummary, mw.getTableSummary(), caption); - table.addContent(getSummaryTableHeader(mw.getSummaryTableHeader(cd), "col")); - for (Content tableContent : tableContents) { - table.addContent(tableContent); - } - return table; - } - - /** - * Get the summary table caption. - * - * @param methodTypes set comprising of method types to show as table caption - * @return the caption for the summary table - */ - public Content getTableCaption(Set methodTypes) { - Content tabbedCaption = new HtmlTree(HtmlTag.CAPTION); - for (MethodTypes type : methodTypes) { - Content captionSpan; - Content span; - if (type.isDefaultTab()) { - captionSpan = HtmlTree.SPAN(configuration.getResource(type.resourceKey())); - span = HtmlTree.SPAN(type.tabId(), - HtmlStyle.activeTableTab, captionSpan); - } else { - captionSpan = HtmlTree.SPAN(getMethodTypeLinks(type)); - span = HtmlTree.SPAN(type.tabId(), - HtmlStyle.tableTab, captionSpan); - } - Content tabSpan = HtmlTree.SPAN(HtmlStyle.tabEnd, getSpace()); - span.addContent(tabSpan); - tabbedCaption.addContent(span); - } - return tabbedCaption; - } - - /** - * Get the method type links for the table caption. - * - * @param methodType the method type to be displayed as link - * @return the content tree for the method type link - */ - public Content getMethodTypeLinks(MethodTypes methodType) { - String jsShow = "javascript:show(" + methodType.value() +");"; - HtmlTree link = HtmlTree.A(jsShow, configuration.getResource(methodType.resourceKey())); - return link; - } - - /** - * Add the inherited summary header. - * - * @param mw the writer for the member being documented - * @param cd the classdoc to be documented - * @param inheritedTree the content tree to which the inherited summary header will be added - */ - public void addInheritedSummaryHeader(AbstractMemberWriter mw, ClassDoc cd, - Content inheritedTree) { - mw.addInheritedSummaryAnchor(cd, inheritedTree); - mw.addInheritedSummaryLabel(cd, inheritedTree); - } - - /** - * Add the index comment. - * - * @param member the member being documented - * @param contentTree the content tree to which the comment will be added - */ - protected void addIndexComment(Doc member, Content contentTree) { - addIndexComment(member, member.firstSentenceTags(), contentTree); - } - - /** - * Add the index comment. - * - * @param member the member being documented - * @param firstSentenceTags the first sentence tags for the member to be documented - * @param tdSummary the content tree to which the comment will be added - */ - protected void addIndexComment(Doc member, Tag[] firstSentenceTags, - Content tdSummary) { - Tag[] deprs = member.tags("deprecated"); - Content div; - if (utils.isDeprecated((ProgramElementDoc) member)) { - Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); - div = HtmlTree.DIV(HtmlStyle.block, deprLabel); - div.addContent(getSpace()); - if (deprs.length > 0) { - addInlineDeprecatedComment(member, deprs[0], div); - } - tdSummary.addContent(div); - return; - } else { - ClassDoc cd = ((ProgramElementDoc)member).containingClass(); - if (cd != null && utils.isDeprecated(cd)) { - Content deprLabel = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase); - div = HtmlTree.DIV(HtmlStyle.block, deprLabel); - div.addContent(getSpace()); - tdSummary.addContent(div); - } - } - addSummaryComment(member, firstSentenceTags, tdSummary); - } - - /** - * Add the summary type for the member. - * - * @param mw the writer for the member being documented - * @param member the member to be documented - * @param tdSummaryType the content tree to which the type will be added - */ - public void addSummaryType(AbstractMemberWriter mw, ProgramElementDoc member, - Content tdSummaryType) { - mw.addSummaryType(member, tdSummaryType); - } - - /** - * Add the summary link for the member. - * - * @param mw the writer for the member being documented - * @param member the member to be documented - * @param contentTree the content tree to which the link will be added - */ - public void addSummaryLinkComment(AbstractMemberWriter mw, - ProgramElementDoc member, Content contentTree) { - addSummaryLinkComment(mw, member, member.firstSentenceTags(), contentTree); - } - - /** - * Add the summary link comment. - * - * @param mw the writer for the member being documented - * @param member the member being documented - * @param firstSentenceTags the first sentence tags for the member to be documented - * @param tdSummary the content tree to which the comment will be added - */ - public void addSummaryLinkComment(AbstractMemberWriter mw, - ProgramElementDoc member, Tag[] firstSentenceTags, Content tdSummary) { - addIndexComment(member, firstSentenceTags, tdSummary); - } - - /** - * Add the inherited member summary. - * - * @param mw the writer for the member being documented - * @param cd the class being documented - * @param member the member being documented - * @param isFirst true if its the first link being documented - * @param linksTree the content tree to which the summary will be added - */ - public void addInheritedMemberSummary(AbstractMemberWriter mw, ClassDoc cd, - ProgramElementDoc member, boolean isFirst, Content linksTree) { - if (! isFirst) { - linksTree.addContent(", "); - } - mw.addInheritedSummaryLink(cd, member, linksTree); - } - - /** - * Get the document content header tree - * - * @return a content tree the document content header - */ - public Content getContentHeader() { - HtmlTree div = new HtmlTree(HtmlTag.DIV); - div.addStyle(HtmlStyle.contentContainer); - return div; - } - - /** - * Add the class content tree. - * - * @param contentTree content tree to which the class content will be added - * @param classContentTree class content tree which will be added to the content tree - */ - public void addClassContentTree(Content contentTree, Content classContentTree) { - if (configuration.allowTag(HtmlTag.MAIN)) { - mainTree.addContent(classContentTree); - contentTree.addContent(mainTree); - } else { - contentTree.addContent(classContentTree); - } - } - - /** - * Add the annotation content tree. - * - * @param contentTree content tree to which the annotation content will be added - * @param annotationContentTree annotation content tree which will be added to the content tree - */ - public void addAnnotationContentTree(Content contentTree, Content annotationContentTree) { - addClassContentTree(contentTree, annotationContentTree); - } - - /** - * Get the member header tree - * - * @return a content tree the member header - */ - public Content getMemberTreeHeader() { - HtmlTree li = new HtmlTree(HtmlTag.LI); - li.addStyle(HtmlStyle.blockList); - return li; - } - - /** - * Add the member tree. - * - * @param memberSummaryTree the content tree representing the member summary - * @param memberTree the content tree representing the member - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree) { - if (configuration.allowTag(HtmlTag.SECTION)) { - HtmlTree htmlTree = HtmlTree.SECTION(getMemberTree(memberTree)); - memberSummaryTree.addContent(htmlTree); - } else { - memberSummaryTree.addContent(getMemberTree(memberTree)); - } - } - - /** - * Get the member tree - * - * @param contentTree the tree used to generate the complete member tree - * @return a content tree for the member - */ - public Content getMemberTree(Content contentTree) { - Content ul = HtmlTree.UL(HtmlStyle.blockList, contentTree); - return ul; - } - - /** - * Get the member summary tree - * - * @param contentTree the tree used to generate the member summary tree - * @return a content tree for the member summary - */ - public Content getMemberSummaryTree(Content contentTree) { - return getMemberTree(HtmlStyle.summary, contentTree); - } - - /** - * Get the member details tree - * - * @param contentTree the tree used to generate the member details tree - * @return a content tree for the member details - */ - public Content getMemberDetailsTree(Content contentTree) { - return getMemberTree(HtmlStyle.details, contentTree); - } - - /** - * Get the member tree - * - * @param style the style class to be added to the content tree - * @param contentTree the tree used to generate the complete member tree - */ - public Content getMemberTree(HtmlStyle style, Content contentTree) { - Content div = HtmlTree.DIV(style, getMemberTree(contentTree)); - return div; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java deleted file mode 100644 index 1c8be3f8717..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java +++ /dev/null @@ -1,437 +0,0 @@ -/* - * Copyright (c) 2003, 2014, 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.doclets.formats.html; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.ContentBuilder; -import com.sun.tools.doclets.formats.html.markup.HtmlStyle; -import com.sun.tools.doclets.formats.html.markup.HtmlTree; -import com.sun.tools.doclets.formats.html.markup.RawHtml; -import com.sun.tools.doclets.formats.html.markup.StringContent; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.builders.SerializedFormBuilder; -import com.sun.tools.doclets.internal.toolkit.taglets.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * The taglet writer that writes HTML. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @since 1.5 - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - */ - -@Deprecated -public class TagletWriterImpl extends TagletWriter { - - private final HtmlDocletWriter htmlWriter; - private final ConfigurationImpl configuration; - private final Utils utils; - - public TagletWriterImpl(HtmlDocletWriter htmlWriter, boolean isFirstSentence) { - super(isFirstSentence); - this.htmlWriter = htmlWriter; - configuration = htmlWriter.configuration; - this.utils = configuration.utils; - } - - /** - * {@inheritDoc} - */ - public Content getOutputInstance() { - return new ContentBuilder(); - } - - /** - * {@inheritDoc} - */ - protected Content codeTagOutput(Tag tag) { - Content result = HtmlTree.CODE(new StringContent(utils.normalizeNewlines(tag.text()))); - return result; - } - - protected Content indexTagOutput(Tag tag) { - String text = tag.text(); - String tagText = ""; - String desc = ""; - if (text.isEmpty() || text.trim().isEmpty()) { - configuration.message.warning(tag.position(), "doclet.invalid_usage_of_tag", tag.name()); - } else { - int len = text.length(); - int tagTextEnd = 0; - int descstart = 0; - int start = 0; - Character term = ' '; - int cp = text.codePointAt(0); - if (cp == '"') { - term = '"'; - start++; - } - for (int i = start; i < len; i += Character.charCount(cp)) { - cp = text.codePointAt(i); - if (cp == term) { - tagTextEnd = i; - break; - } - } - if (tagTextEnd < len - 1 && tagTextEnd != 0) { - descstart = tagTextEnd + 1; - } - String desctext = ""; - if (descstart > 0) { - tagText = text.substring(start, tagTextEnd).trim(); - desctext = text.substring(descstart, len).trim(); - // strip off the white space which can be between tag description and the - // actual label. - for (int i = 0; i < desctext.length(); i++) { - char ch2 = desctext.charAt(i); - if (!(ch2 == ' ' || ch2 == '\t' || ch2 == '\n')) { - desc = desctext.substring(i); - break; - } - } - } else { - if (term == '"') { - if (tagTextEnd == 0) { - // If unclosed quote, print out a warning and ignore the invalid tag text. - configuration.message.warning(tag.position(), "doclet.invalid_usage_of_tag", tag.name()); - tagText = ""; - } else { - tagText = text.substring(start, tagTextEnd).trim(); - } - } else { - tagText = text.trim(); - } - desc = ""; - } - } - String anchorName = htmlWriter.getName(tagText); - Content result = HtmlTree.A_ID(anchorName, new StringContent(tagText)); - if (configuration.createindex && !tagText.isEmpty()) { - SearchIndexItem si = new SearchIndexItem(); - si.setLabel(tagText); - si.setDescription(desc); - if (tag.holder() instanceof ProgramElementDoc) { - if (tag.holder() instanceof MemberDoc) { - si.setUrl(DocPath.forClass(((MemberDoc) tag.holder()).containingClass()).getPath() - + "#" + anchorName); - si.setHolder(((MemberDoc) tag.holder()).qualifiedName()); - } else { - si.setUrl(DocPath.forClass((ClassDoc) tag.holder()).getPath() + "#" + anchorName); - si.setHolder(((ClassDoc) tag.holder()).qualifiedName()); - } - } else if (tag.holder() instanceof PackageDoc) { - si.setUrl(DocPath.forPackage((PackageDoc) tag.holder()).getPath() - + "/" + DocPaths.PACKAGE_SUMMARY.getPath() + "#" + anchorName); - si.setHolder(((PackageDoc) tag.holder()).name()); - } - si.setCategory(configuration.getResource("doclet.SearchTags").toString()); - configuration.tagSearchIndex.add(si); - } - return result; - } - - /** - * {@inheritDoc} - */ - public Content getDocRootOutput() { - String path; - if (htmlWriter.pathToRoot.isEmpty()) - path = "."; - else - path = htmlWriter.pathToRoot.getPath(); - return new StringContent(path); - } - - /** - * {@inheritDoc} - */ - public Content deprecatedTagOutput(Doc doc) { - ContentBuilder result = new ContentBuilder(); - Tag[] deprs = doc.tags("deprecated"); - if (doc instanceof ClassDoc) { - if (utils.isDeprecated((ProgramElementDoc) doc)) { - result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel, - new StringContent(configuration.getText("doclet.Deprecated")))); - result.addContent(RawHtml.nbsp); - if (deprs.length > 0) { - Tag[] commentTags = deprs[0].inlineTags(); - if (commentTags.length > 0) { - result.addContent(commentTagsToOutput(null, doc, - deprs[0].inlineTags(), false) - ); - } - } - } - } else { - MemberDoc member = (MemberDoc) doc; - if (utils.isDeprecated((ProgramElementDoc) doc)) { - result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel, - new StringContent(configuration.getText("doclet.Deprecated")))); - result.addContent(RawHtml.nbsp); - if (deprs.length > 0) { - Content body = commentTagsToOutput(null, doc, - deprs[0].inlineTags(), false); - if (!body.isEmpty()) - result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body)); - } - } else { - if (utils.isDeprecated(member.containingClass())) { - result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel, - new StringContent(configuration.getText("doclet.Deprecated")))); - result.addContent(RawHtml.nbsp); - } - } - } - return result; - } - - /** - * {@inheritDoc} - */ - protected Content literalTagOutput(Tag tag) { - Content result = new StringContent(utils.normalizeNewlines(tag.text())); - return result; - } - - /** - * {@inheritDoc} - */ - public MessageRetriever getMsgRetriever() { - return configuration.message; - } - - /** - * {@inheritDoc} - */ - public Content getParamHeader(String header) { - HtmlTree result = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.paramLabel, - new StringContent(header))); - return result; - } - - /** - * {@inheritDoc} - */ - public Content paramTagOutput(ParamTag paramTag, String paramName) { - ContentBuilder body = new ContentBuilder(); - body.addContent(HtmlTree.CODE(new RawHtml(paramName))); - body.addContent(" - "); - body.addContent(htmlWriter.commentTagsToContent(paramTag, null, paramTag.inlineTags(), false)); - HtmlTree result = HtmlTree.DD(body); - return result; - } - - /** - * {@inheritDoc} - */ - public Content propertyTagOutput(Tag tag, String prefix) { - Content body = new ContentBuilder(); - body.addContent(new RawHtml(prefix)); - body.addContent(" "); - body.addContent(HtmlTree.CODE(new RawHtml(tag.text()))); - body.addContent("."); - Content result = HtmlTree.P(body); - return result; - } - - /** - * {@inheritDoc} - */ - public Content returnTagOutput(Tag returnTag) { - ContentBuilder result = new ContentBuilder(); - result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel, - new StringContent(configuration.getText("doclet.Returns"))))); - result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent( - returnTag, null, returnTag.inlineTags(), false))); - return result; - } - - /** - * {@inheritDoc} - */ - public Content seeTagOutput(Doc holder, SeeTag[] seeTags) { - ContentBuilder body = new ContentBuilder(); - if (seeTags.length > 0) { - for (SeeTag seeTag : seeTags) { - appendSeparatorIfNotEmpty(body); - body.addContent(htmlWriter.seeTagToContent(seeTag)); - } - } - if (holder.isField() && ((FieldDoc)holder).constantValue() != null && - htmlWriter instanceof ClassWriterImpl) { - //Automatically add link to constant values page for constant fields. - appendSeparatorIfNotEmpty(body); - DocPath constantsPath = - htmlWriter.pathToRoot.resolve(DocPaths.CONSTANT_VALUES); - String whichConstant = - ((ClassWriterImpl) htmlWriter).getClassDoc().qualifiedName() + "." + ((FieldDoc) holder).name(); - DocLink link = constantsPath.fragment(whichConstant); - body.addContent(htmlWriter.getHyperLink(link, - new StringContent(configuration.getText("doclet.Constants_Summary")))); - } - if (holder.isClass() && ((ClassDoc)holder).isSerializable()) { - //Automatically add link to serialized form page for serializable classes. - if ((SerializedFormBuilder.serialInclude(holder) && - SerializedFormBuilder.serialInclude(((ClassDoc)holder).containingPackage()))) { - appendSeparatorIfNotEmpty(body); - DocPath serialPath = htmlWriter.pathToRoot.resolve(DocPaths.SERIALIZED_FORM); - DocLink link = serialPath.fragment(((ClassDoc)holder).qualifiedName()); - body.addContent(htmlWriter.getHyperLink(link, - new StringContent(configuration.getText("doclet.Serialized_Form")))); - } - } - if (body.isEmpty()) - return body; - - ContentBuilder result = new ContentBuilder(); - result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.seeLabel, - new StringContent(configuration.getText("doclet.See_Also"))))); - result.addContent(HtmlTree.DD(body)); - return result; - - } - - private void appendSeparatorIfNotEmpty(ContentBuilder body) { - if (!body.isEmpty()) { - body.addContent(", "); - body.addContent(DocletConstants.NL); - } - } - - /** - * {@inheritDoc} - */ - public Content simpleTagOutput(Tag[] simpleTags, String header) { - ContentBuilder result = new ContentBuilder(); - result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header)))); - ContentBuilder body = new ContentBuilder(); - for (int i = 0; i < simpleTags.length; i++) { - if (i > 0) { - body.addContent(", "); - } - body.addContent(htmlWriter.commentTagsToContent( - simpleTags[i], null, simpleTags[i].inlineTags(), false)); - } - result.addContent(HtmlTree.DD(body)); - return result; - } - - /** - * {@inheritDoc} - */ - public Content simpleTagOutput(Tag simpleTag, String header) { - ContentBuilder result = new ContentBuilder(); - result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header)))); - Content body = htmlWriter.commentTagsToContent( - simpleTag, null, simpleTag.inlineTags(), false); - result.addContent(HtmlTree.DD(body)); - return result; - } - - /** - * {@inheritDoc} - */ - public Content getThrowsHeader() { - HtmlTree result = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.throwsLabel, - new StringContent(configuration.getText("doclet.Throws")))); - return result; - } - - /** - * {@inheritDoc} - */ - public Content throwsTagOutput(ThrowsTag throwsTag) { - ContentBuilder body = new ContentBuilder(); - Content excName = (throwsTag.exceptionType() == null) ? - new RawHtml(throwsTag.exceptionName()) : - htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER, - throwsTag.exceptionType())); - body.addContent(HtmlTree.CODE(excName)); - Content desc = htmlWriter.commentTagsToContent(throwsTag, null, - throwsTag.inlineTags(), false); - if (desc != null && !desc.isEmpty()) { - body.addContent(" - "); - body.addContent(desc); - } - HtmlTree result = HtmlTree.DD(body); - return result; - } - - /** - * {@inheritDoc} - */ - public Content throwsTagOutput(Type throwsType) { - HtmlTree result = HtmlTree.DD(HtmlTree.CODE(htmlWriter.getLink( - new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER, throwsType)))); - return result; - } - - /** - * {@inheritDoc} - */ - public Content valueTagOutput(FieldDoc field, String constantVal, - boolean includeLink) { - return includeLink ? - htmlWriter.getDocLink(LinkInfoImpl.Kind.VALUE_TAG, field, - constantVal, false) : new RawHtml(constantVal); - } - - /** - * {@inheritDoc} - */ - public Content commentTagsToOutput(Tag holderTag, Tag[] tags) { - return commentTagsToOutput(holderTag, null, tags, false); - } - - /** - * {@inheritDoc} - */ - public Content commentTagsToOutput(Doc holderDoc, Tag[] tags) { - return commentTagsToOutput(null, holderDoc, tags, false); - } - - /** - * {@inheritDoc} - */ - public Content commentTagsToOutput(Tag holderTag, - Doc holderDoc, Tag[] tags, boolean isFirstSentence) { - return htmlWriter.commentTagsToContent( - holderTag, holderDoc, tags, isFirstSentence); - } - - /** - * {@inheritDoc} - */ - public Configuration configuration() { - return configuration; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/TreeWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/TreeWriter.java deleted file mode 100644 index 8f62376c075..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/TreeWriter.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html; - -import java.io.IOException; -import java.util.SortedSet; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.markup.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Generate Class Hierarchy page for all the Classes in this run. Use - * ClassTree for building the Tree. The name of - * the generated file is "overview-tree.html" and it is generated in the - * current or the destination directory. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class TreeWriter extends AbstractTreeWriter { - - /** - * Packages in this run. - */ - SortedSet packages; - - /** - * True if there are no packages specified on the command line, - * False otherwise. - */ - private boolean classesonly; - - /** - * Constructor to construct TreeWriter object. - * - * @param configuration the current configuration of the doclet. - * @param filename String filename - * @param classtree the tree being built. - */ - public TreeWriter(ConfigurationImpl configuration, - DocPath filename, ClassTree classtree) throws IOException { - super(configuration, filename, classtree); - packages = configuration.packages; - classesonly = packages.isEmpty(); - } - - /** - * Create a TreeWriter object and use it to generate the - * "overview-tree.html" file. - * - * @param classtree the class tree being documented. - * @throws DocletAbortException - */ - public static void generate(ConfigurationImpl configuration, - ClassTree classtree) { - TreeWriter treegen; - DocPath filename = DocPaths.OVERVIEW_TREE; - try { - treegen = new TreeWriter(configuration, filename, classtree); - treegen.generateTreeFile(); - treegen.close(); - } catch (IOException exc) { - configuration.standardmessage.error( - "doclet.exception_encountered", - exc.toString(), filename); - throw new DocletAbortException(exc); - } - } - - /** - * Generate the interface hierarchy and class hierarchy. - */ - public void generateTreeFile() throws IOException { - HtmlTree body = getTreeHeader(); - Content headContent = getResource("doclet.Hierarchy_For_All_Packages"); - Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, false, - HtmlStyle.title, headContent); - Content div = HtmlTree.DIV(HtmlStyle.header, heading); - addPackageTreeLinks(div); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN)) - ? HtmlTree.MAIN() - : body; - htmlTree.addContent(div); - HtmlTree divTree = new HtmlTree(HtmlTag.DIV); - divTree.addStyle(HtmlStyle.contentContainer); - addTree(classtree.baseclasses(), "doclet.Class_Hierarchy", divTree); - addTree(classtree.baseinterfaces(), "doclet.Interface_Hierarchy", divTree); - addTree(classtree.baseAnnotationTypes(), "doclet.Annotation_Type_Hierarchy", divTree); - addTree(classtree.baseEnums(), "doclet.Enum_Hierarchy", divTree); - htmlTree.addContent(divTree); - if (configuration.allowTag(HtmlTag.MAIN)) { - body.addContent(htmlTree); - } - if (configuration.allowTag(HtmlTag.FOOTER)) { - htmlTree = HtmlTree.FOOTER(); - } else { - htmlTree = body; - } - addNavLinks(false, htmlTree); - addBottom(htmlTree); - if (configuration.allowTag(HtmlTag.FOOTER)) { - body.addContent(htmlTree); - } - printHtmlDocument(null, true, body); - } - - /** - * Add the links to all the package tree files. - * - * @param contentTree the content tree to which the links will be added - */ - protected void addPackageTreeLinks(Content contentTree) { - //Do nothing if only unnamed package is used - if (isUnnamedPackage()) { - return; - } - if (!classesonly) { - Content span = HtmlTree.SPAN(HtmlStyle.packageHierarchyLabel, - getResource("doclet.Package_Hierarchies")); - contentTree.addContent(span); - HtmlTree ul = new HtmlTree(HtmlTag.UL); - ul.addStyle(HtmlStyle.horizontal); - int i = 0; - for (PackageDoc pkg : packages) { - // If the package name length is 0 or if -nodeprecated option - // is set and the package is marked as deprecated, do not include - // the page in the list of package hierarchies. - if (pkg.name().isEmpty() || - (configuration.nodeprecated && utils.isDeprecated(pkg))) { - i++; - continue; - } - DocPath link = pathString(pkg, DocPaths.PACKAGE_TREE); - Content li = HtmlTree.LI(getHyperLink( - link, new StringContent(pkg.name()))); - if (i < packages.size() - 1) { - li.addContent(", "); - } - ul.addContent(li); - i++; - } - contentTree.addContent(ul); - } - } - - /** - * Get the tree header. - * - * @return a content tree for the tree header - */ - protected HtmlTree getTreeHeader() { - String title = configuration.getText("doclet.Window_Class_Hierarchy"); - HtmlTree bodyTree = getBody(true, getWindowTitle(title)); - HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER)) - ? HtmlTree.HEADER() - : bodyTree; - addTop(htmlTree); - addNavLinks(true, htmlTree); - if (configuration.allowTag(HtmlTag.HEADER)) { - bodyTree.addContent(htmlTree); - } - return bodyTree; - } - - private boolean isUnnamedPackage() { - return packages.size() == 1 && packages.first().name().isEmpty(); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/WriterFactoryImpl.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/WriterFactoryImpl.java deleted file mode 100644 index d3ced42dd6e..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/WriterFactoryImpl.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright (c) 2003, 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 com.sun.tools.doclets.formats.html; - -import java.io.IOException; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * The factory that returns HTML writers. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @since 1.5 - */ -@Deprecated -public class WriterFactoryImpl implements WriterFactory { - - private final ConfigurationImpl configuration; - - public WriterFactoryImpl(ConfigurationImpl configuration) { - this.configuration = configuration; - } - - /** - * {@inheritDoc} - */ - public ConstantsSummaryWriter getConstantsSummaryWriter() throws Exception { - return new ConstantsSummaryWriterImpl(configuration); - } - - /** - * {@inheritDoc} - */ - public PackageSummaryWriter getPackageSummaryWriter(PackageDoc packageDoc, - PackageDoc prevPkg, PackageDoc nextPkg) throws Exception { - return new PackageWriterImpl(configuration, packageDoc, - prevPkg, nextPkg); - } - - /** - * {@inheritDoc} - */ - public ClassWriter getClassWriter(ClassDoc classDoc, ClassDoc prevClass, - ClassDoc nextClass, ClassTree classTree) throws IOException { - return new ClassWriterImpl(configuration, classDoc, - prevClass, nextClass, classTree); - } - - /** - * {@inheritDoc} - */ - public AnnotationTypeWriter getAnnotationTypeWriter( - AnnotationTypeDoc annotationType, Type prevType, Type nextType) - throws Exception { - return new AnnotationTypeWriterImpl(configuration, - annotationType, prevType, nextType); - } - - /** - * {@inheritDoc} - */ - public AnnotationTypeFieldWriter - getAnnotationTypeFieldWriter(AnnotationTypeWriter annotationTypeWriter) throws Exception { - return new AnnotationTypeFieldWriterImpl( - (SubWriterHolderWriter) annotationTypeWriter, - annotationTypeWriter.getAnnotationTypeDoc()); - } - - /** - * {@inheritDoc} - */ - public AnnotationTypeOptionalMemberWriter - getAnnotationTypeOptionalMemberWriter( - AnnotationTypeWriter annotationTypeWriter) throws Exception { - return new AnnotationTypeOptionalMemberWriterImpl( - (SubWriterHolderWriter) annotationTypeWriter, - annotationTypeWriter.getAnnotationTypeDoc()); - } - - /** - * {@inheritDoc} - */ - public AnnotationTypeRequiredMemberWriter - getAnnotationTypeRequiredMemberWriter(AnnotationTypeWriter annotationTypeWriter) throws Exception { - return new AnnotationTypeRequiredMemberWriterImpl( - (SubWriterHolderWriter) annotationTypeWriter, - annotationTypeWriter.getAnnotationTypeDoc()); - } - - /** - * {@inheritDoc} - */ - public EnumConstantWriterImpl getEnumConstantWriter(ClassWriter classWriter) - throws Exception { - return new EnumConstantWriterImpl((SubWriterHolderWriter) classWriter, - classWriter.getClassDoc()); - } - - /** - * {@inheritDoc} - */ - public FieldWriterImpl getFieldWriter(ClassWriter classWriter) - throws Exception { - return new FieldWriterImpl((SubWriterHolderWriter) classWriter, - classWriter.getClassDoc()); - } - - /** - * {@inheritDoc} - */ - public PropertyWriterImpl getPropertyWriter(ClassWriter classWriter) - throws Exception { - return new PropertyWriterImpl((SubWriterHolderWriter) classWriter, - classWriter.getClassDoc()); - } - - /** - * {@inheritDoc} - */ - public MethodWriterImpl getMethodWriter(ClassWriter classWriter) - throws Exception { - return new MethodWriterImpl((SubWriterHolderWriter) classWriter, - classWriter.getClassDoc()); - } - - /** - * {@inheritDoc} - */ - public ConstructorWriterImpl getConstructorWriter(ClassWriter classWriter) - throws Exception { - return new ConstructorWriterImpl((SubWriterHolderWriter) classWriter, - classWriter.getClassDoc()); - } - - /** - * {@inheritDoc} - */ - public MemberSummaryWriter getMemberSummaryWriter( - ClassWriter classWriter, int memberType) - throws Exception { - switch (memberType) { - case VisibleMemberMap.CONSTRUCTORS: - return getConstructorWriter(classWriter); - case VisibleMemberMap.ENUM_CONSTANTS: - return getEnumConstantWriter(classWriter); - case VisibleMemberMap.FIELDS: - return getFieldWriter(classWriter); - case VisibleMemberMap.PROPERTIES: - return getPropertyWriter(classWriter); - case VisibleMemberMap.INNERCLASSES: - return new NestedClassWriterImpl((SubWriterHolderWriter) - classWriter, classWriter.getClassDoc()); - case VisibleMemberMap.METHODS: - return getMethodWriter(classWriter); - default: - return null; - } - } - - /** - * {@inheritDoc} - */ - public MemberSummaryWriter getMemberSummaryWriter( - AnnotationTypeWriter annotationTypeWriter, int memberType) - throws Exception { - switch (memberType) { - case VisibleMemberMap.ANNOTATION_TYPE_FIELDS: - return (AnnotationTypeFieldWriterImpl) - getAnnotationTypeFieldWriter(annotationTypeWriter); - case VisibleMemberMap.ANNOTATION_TYPE_MEMBER_OPTIONAL: - return (AnnotationTypeOptionalMemberWriterImpl) - getAnnotationTypeOptionalMemberWriter(annotationTypeWriter); - case VisibleMemberMap.ANNOTATION_TYPE_MEMBER_REQUIRED: - return (AnnotationTypeRequiredMemberWriterImpl) - getAnnotationTypeRequiredMemberWriter(annotationTypeWriter); - default: - return null; - } - } - - /** - * {@inheritDoc} - */ - public SerializedFormWriter getSerializedFormWriter() throws Exception { - return new SerializedFormWriterImpl(configuration); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/Comment.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/Comment.java deleted file mode 100644 index 4d431c9cfbd..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/Comment.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright (c) 2010, 2013, 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.doclets.formats.html.markup; - -import java.io.IOException; -import java.io.Writer; - -import com.sun.tools.doclets.internal.toolkit.Content; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Class for generating a comment for HTML pages of javadoc output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public class Comment extends Content { - - private String commentText; - - /** - * Constructor to construct a Comment object. - * - * @param comment comment text for the comment - */ - public Comment(String comment) { - commentText = nullCheck(comment); - } - - /** - * This method is not supported by the class. - * - * @param content content that needs to be added - * @throws DocletAbortException this method will always throw a - * DocletAbortException because it - * is not supported. - */ - public void addContent(Content content) { - throw new DocletAbortException("not supported"); - } - - /** - * This method is not supported by the class. - * - * @param stringContent string content that needs to be added - * @throws DocletAbortException this method will always throw a - * DocletAbortException because it - * is not supported. - */ - public void addContent(String stringContent) { - throw new DocletAbortException("not supported"); - } - - /** - * {@inheritDoc} - */ - public boolean isEmpty() { - return commentText.isEmpty(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean write(Writer out, boolean atNewline) throws IOException { - if (!atNewline) - out.write(DocletConstants.NL); - out.write("" + DocletConstants.NL); - return true; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/ContentBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/ContentBuilder.java deleted file mode 100644 index 51dcae9bfa7..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/ContentBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.formats.html.markup; - -import java.io.IOException; -import java.io.Writer; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import com.sun.tools.doclets.internal.toolkit.Content; - -/** - * A sequence of Content nodes. - */ -@Deprecated -public class ContentBuilder extends Content { - protected List contents = Collections.emptyList(); - - @Override - public void addContent(Content content) { - nullCheck(content); - ensureMutableContents(); - if (content instanceof ContentBuilder) { - contents.addAll(((ContentBuilder) content).contents); - } else - contents.add(content); - } - - @Override - public void addContent(String text) { - if (text.isEmpty()) - return; - ensureMutableContents(); - Content c = contents.isEmpty() ? null : contents.get(contents.size() - 1); - StringContent sc; - if (c != null && c instanceof StringContent) { - sc = (StringContent) c; - } else { - contents.add(sc = new StringContent()); - } - sc.addContent(text); - } - - @Override - public boolean write(Writer writer, boolean atNewline) throws IOException { - for (Content content: contents) { - atNewline = content.write(writer, atNewline); - } - return atNewline; - } - - @Override - public boolean isEmpty() { - for (Content content: contents) { - if (!content.isEmpty()) - return false; - } - return true; - } - - @Override - public int charCount() { - int n = 0; - for (Content c : contents) - n += c.charCount(); - return n; - } - - private void ensureMutableContents() { - if (contents.isEmpty()) - contents = new ArrayList<>(); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/DocType.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/DocType.java deleted file mode 100644 index e87d2776287..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/DocType.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) 2010, 2015, 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.doclets.formats.html.markup; - -import java.io.IOException; -import java.io.Writer; - -import com.sun.tools.doclets.internal.toolkit.Content; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Class for generating document type for HTML pages of javadoc output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public class DocType extends Content { - - private String docType; - - public static final DocType TRANSITIONAL = - new DocType("Transitional", "http://www.w3.org/TR/html4/loose.dtd"); - - public static final DocType HTML5 = new DocType(); - - /** - * Constructor to construct a DocType object. - * - * @param type the doctype to be added - * @param dtd the dtd of the doctype - */ - private DocType(String type, String dtd) { - docType = "" + DocletConstants.NL; - } - - /** - * Constructor to construct a DocType object. - */ - private DocType() { - docType = "" + DocletConstants.NL; - } - - /** - * This method is not supported by the class. - * - * @param content content that needs to be added - * @throws DocletAbortException this method will always throw a - * DocletAbortException because it - * is not supported. - */ - public void addContent(Content content) { - throw new DocletAbortException("not supported"); - } - - /** - * This method is not supported by the class. - * - * @param stringContent string content that needs to be added - * @throws DocletAbortException this method will always throw a - * DocletAbortException because it - * is not supported. - */ - public void addContent(String stringContent) { - throw new DocletAbortException("not supported"); - } - - /** - * {@inheritDoc} - */ - public boolean isEmpty() { - return (docType.length() == 0); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean write(Writer out, boolean atNewline) throws IOException { - out.write(docType); - return true; // guaranteed by constructor - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlAttr.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlAttr.java deleted file mode 100644 index 6c324eac7f2..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlAttr.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2010, 2015, 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.doclets.formats.html.markup; - -import com.sun.tools.javac.util.StringUtils; - -/** - * Enum representing HTML tag attributes. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public enum HtmlAttr { - ALT, - CLASS, - CLEAR, - COLS, - CONTENT, - DISABLED, - HREF, - HTTP_EQUIV("http-equiv"), - ID, - LANG, - NAME, - ONLOAD, - REL, - ROLE, - ROWS, - SCOPE, - SCROLLING, - SRC, - SUMMARY, - TARGET, - TITLE, - TYPE, - VALUE, - WIDTH; - - private final String value; - - public enum Role { - - BANNER, - CONTENTINFO, - MAIN, - NAVIGATION, - REGION; - - private final String role; - - Role() { - role = StringUtils.toLowerCase(name()); - } - - public String toString() { - return role; - } - } - - HtmlAttr() { - this.value = StringUtils.toLowerCase(name()); - } - - HtmlAttr(String name) { - this.value = name; - } - - public String toString() { - return value; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlConstants.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlConstants.java deleted file mode 100644 index 54fedb0ef98..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlConstants.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Copyright (c) 2010, 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 com.sun.tools.doclets.formats.html.markup; - -import com.sun.tools.doclets.internal.toolkit.Content; - -/** - * Stores constants for Html Doclet. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public class HtmlConstants { - - /** - * Marker to identify start of top navigation bar. - */ - public static final Content START_OF_TOP_NAVBAR = - new Comment("========= START OF TOP NAVBAR ======="); - - /** - * Marker to identify start of bottom navigation bar. - */ - public static final Content START_OF_BOTTOM_NAVBAR = - new Comment("======= START OF BOTTOM NAVBAR ======"); - - /** - * Marker to identify end of top navigation bar. - */ - public static final Content END_OF_TOP_NAVBAR = - new Comment("========= END OF TOP NAVBAR ========="); - - /** - * Marker to identify end of bottom navigation bar. - */ - public static final Content END_OF_BOTTOM_NAVBAR = - new Comment("======== END OF BOTTOM NAVBAR ======="); - - /** - * Marker to identify start of class data. - */ - public static final Content START_OF_CLASS_DATA = - new Comment("======== START OF CLASS DATA ========"); - - /** - * Marker to identify end of class data. - */ - public static final Content END_OF_CLASS_DATA = - new Comment("========= END OF CLASS DATA ========="); - - /** - * Marker to identify start of nested class summary. - */ - public static final Content START_OF_NESTED_CLASS_SUMMARY = - new Comment("======== NESTED CLASS SUMMARY ========"); - - /** - * Marker to identify start of annotation type optional member summary. - */ - public static final Content START_OF_ANNOTATION_TYPE_OPTIONAL_MEMBER_SUMMARY = - new Comment("=========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY ==========="); - - /** - * Marker to identify start of annotation type required member summary. - */ - public static final Content START_OF_ANNOTATION_TYPE_REQUIRED_MEMBER_SUMMARY = - new Comment("=========== ANNOTATION TYPE REQUIRED MEMBER SUMMARY ==========="); - - /** - * Marker to identify start of annotation type required member summary. - */ - public static final Content START_OF_ANNOTATION_TYPE_FIELD_SUMMARY = - new Comment("=========== ANNOTATION TYPE FIELD SUMMARY ==========="); - - /** - * Marker to identify start of constructor summary. - */ - public static final Content START_OF_CONSTRUCTOR_SUMMARY = - new Comment("======== CONSTRUCTOR SUMMARY ========"); - - /** - * Marker to identify start of enum constants summary. - */ - public static final Content START_OF_ENUM_CONSTANT_SUMMARY = - new Comment("=========== ENUM CONSTANT SUMMARY ==========="); - - /** - * Marker to identify start of field summary. - */ - public static final Content START_OF_FIELD_SUMMARY = - new Comment("=========== FIELD SUMMARY ==========="); - - /** - * Marker to identify start of properties summary. - */ - public static final Content START_OF_PROPERTY_SUMMARY = - new Comment("=========== PROPERTY SUMMARY ==========="); - - /** - * Marker to identify start of method summary. - */ - public static final Content START_OF_METHOD_SUMMARY = - new Comment("========== METHOD SUMMARY ==========="); - - /** - * Marker to identify start of annotation type details. - */ - public static final Content START_OF_ANNOTATION_TYPE_DETAILS = - new Comment("============ ANNOTATION TYPE MEMBER DETAIL ==========="); - - /** - * Marker to identify start of annotation type field details. - */ - public static final Content START_OF_ANNOTATION_TYPE_FIELD_DETAILS = - new Comment("============ ANNOTATION TYPE FIELD DETAIL ==========="); - - /** - * Marker to identify start of method details. - */ - public static final Content START_OF_METHOD_DETAILS = - new Comment("============ METHOD DETAIL =========="); - - /** - * Marker to identify start of field details. - */ - public static final Content START_OF_FIELD_DETAILS = - new Comment("============ FIELD DETAIL ==========="); - - /** - * Marker to identify start of property details. - */ - public static final Content START_OF_PROPERTY_DETAILS = - new Comment("============ PROPERTY DETAIL ==========="); - - /** - * Marker to identify start of constructor details. - */ - public static final Content START_OF_CONSTRUCTOR_DETAILS = - new Comment("========= CONSTRUCTOR DETAIL ========"); - - /** - * Marker to identify start of enum constants details. - */ - public static final Content START_OF_ENUM_CONSTANT_DETAILS = - new Comment("============ ENUM CONSTANT DETAIL ==========="); - - /** - * Html tag for the page title heading. - */ - public static final HtmlTag TITLE_HEADING = HtmlTag.H1; - - /** - * Html tag for the class page title heading. - */ - public static final HtmlTag CLASS_PAGE_HEADING = HtmlTag.H2; - - /** - * Html tag for the content heading. - */ - public static final HtmlTag CONTENT_HEADING = HtmlTag.H2; - - /** - * Html tag for the package name heading. - */ - public static final HtmlTag PACKAGE_HEADING = HtmlTag.H2; - - /** - * Html tag for the member summary heading. - */ - public static final HtmlTag SUMMARY_HEADING = HtmlTag.H3; - - /** - * Html tag for the inherited member summary heading. - */ - public static final HtmlTag INHERITED_SUMMARY_HEADING = HtmlTag.H3; - - /** - * Html tag for the member details heading. - */ - public static final HtmlTag DETAILS_HEADING = HtmlTag.H3; - - /** - * Html tag for the serialized member heading. - */ - public static final HtmlTag SERIALIZED_MEMBER_HEADING = HtmlTag.H3; - - /** - * Html tag for the member heading. - */ - public static final HtmlTag MEMBER_HEADING = HtmlTag.H4; - - /** - * Default charset for HTML. - */ - public static final String HTML_DEFAULT_CHARSET = "utf-8"; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java deleted file mode 100644 index 7ea864f1394..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java +++ /dev/null @@ -1,365 +0,0 @@ -/* - * Copyright (c) 1997, 2015, 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.doclets.formats.html.markup; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.formats.html.ConfigurationImpl; -import com.sun.tools.doclets.formats.html.SectionName; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.DocFile; -import com.sun.tools.doclets.internal.toolkit.util.DocLink; -import com.sun.tools.doclets.internal.toolkit.util.DocPath; -import com.sun.tools.doclets.internal.toolkit.util.DocPaths; - - -/** - * Class for the Html Format Code Generation specific to JavaDoc. - * This Class contains methods related to the Html Code Generation which - * are used by the Sub-Classes in the package com.sun.tools.doclets.standard - * and com.sun.tools.doclets.oneone. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @since 1.2 - * @author Atul M Dambalkar - * @author Robert Field - */ -@Deprecated -public abstract class HtmlDocWriter extends HtmlWriter { - - public static final String CONTENT_TYPE = "text/html"; - - DocPath pathToRoot; - - /** - * Constructor. Initializes the destination file name through the super - * class HtmlWriter. - * - * @param filename String file name. - */ - public HtmlDocWriter(Configuration configuration, DocPath filename) - throws IOException { - super(configuration, filename); - this.pathToRoot = filename.parent().invert(); - configuration.message.notice("doclet.Generating_0", - DocFile.createFileForOutput(configuration, filename).getPath()); - } - - /** - * Accessor for configuration. - */ - public abstract Configuration configuration(); - - public Content getHyperLink(DocPath link, String label) { - return getHyperLink(link, new StringContent(label), false, "", "", ""); - } - - /** - * Get Html Hyper Link Content. - * - * @param where Position of the link in the file. Character '#' is not - * needed. - * @param label Tag for the link. - * @return a content tree for the hyper link - */ - public Content getHyperLink(String where, - Content label) { - return getHyperLink(getDocLink(where), label, "", ""); - } - - /** - * Get Html Hyper Link Content. - * - * @param sectionName The section name to which the link will be created. - * @param label Tag for the link. - * @return a content tree for the hyper link - */ - public Content getHyperLink(SectionName sectionName, - Content label) { - return getHyperLink(getDocLink(sectionName), label, "", ""); - } - - /** - * Get Html Hyper Link Content. - * - * @param sectionName The section name combined with where to which the link - * will be created. - * @param where The fragment combined with sectionName to which the link - * will be created. - * @param label Tag for the link. - * @return a content tree for the hyper link - */ - public Content getHyperLink(SectionName sectionName, String where, - Content label) { - return getHyperLink(getDocLink(sectionName, where), label, "", ""); - } - - /** - * Get the link. - * - * @param where Position of the link in the file. - * @return a DocLink object for the hyper link - */ - public DocLink getDocLink(String where) { - return DocLink.fragment(getName(where)); - } - - /** - * Get the link. - * - * @param sectionName The section name to which the link will be created. - * @return a DocLink object for the hyper link - */ - public DocLink getDocLink(SectionName sectionName) { - return DocLink.fragment(sectionName.getName()); - } - - /** - * Get the link. - * - * @param sectionName The section name combined with where to which the link - * will be created. - * @param where The fragment combined with sectionName to which the link - * will be created. - * @return a DocLink object for the hyper link - */ - public DocLink getDocLink(SectionName sectionName, String where) { - return DocLink.fragment(sectionName.getName() + getName(where)); - } - - /** - * Convert the name to a valid HTML name. - * - * @param name the name that needs to be converted to valid HTML name. - * @return a valid HTML name string. - */ - public String getName(String name) { - StringBuilder sb = new StringBuilder(); - char ch; - /* The HTML 4 spec at http://www.w3.org/TR/html4/types.html#h-6.2 mentions - * that the name/id should begin with a letter followed by other valid characters. - * The HTML 5 spec (draft) is more permissive on names/ids where the only restriction - * is that it should be at least one character long and should not contain spaces. - * The spec draft is @ http://www.w3.org/html/wg/drafts/html/master/dom.html#the-id-attribute. - * - * For HTML 4, we need to check for non-characters at the beginning of the name and - * substitute it accordingly, "_" and "$" can appear at the beginning of a member name. - * The method substitutes "$" with "Z:Z:D" and will prefix "_" with "Z:Z". - */ - for (int i = 0; i < name.length(); i++) { - ch = name.charAt(i); - switch (ch) { - case '(': - case ')': - case '<': - case '>': - case ',': - sb.append('-'); - break; - case ' ': - case '[': - break; - case ']': - sb.append(":A"); - break; - // Any appearance of $ needs to be substituted with ":D" and not with hyphen - // since a field name "P$$ and a method P(), both valid member names, can end - // up as "P--". A member name beginning with $ needs to be substituted with - // "Z:Z:D". - case '$': - if (i == 0) - sb.append("Z:Z"); - sb.append(":D"); - break; - // A member name beginning with _ needs to be prefixed with "Z:Z" since valid anchor - // names can only begin with a letter. - case '_': - if (i == 0) - sb.append("Z:Z"); - sb.append(ch); - break; - default: - sb.append(ch); - } - } - return sb.toString(); - } - - /** - * Get Html hyperlink. - * - * @param link path of the file. - * @param label Tag for the link. - * @return a content tree for the hyper link - */ - public Content getHyperLink(DocPath link, Content label) { - return getHyperLink(link, label, "", ""); - } - - public Content getHyperLink(DocLink link, Content label) { - return getHyperLink(link, label, "", ""); - } - - public Content getHyperLink(DocPath link, - Content label, boolean strong, - String stylename, String title, String target) { - return getHyperLink(new DocLink(link), label, strong, - stylename, title, target); - } - - public Content getHyperLink(DocLink link, - Content label, boolean strong, - String stylename, String title, String target) { - Content body = label; - if (strong) { - body = HtmlTree.SPAN(HtmlStyle.typeNameLink, body); - } - if (stylename != null && stylename.length() != 0) { - HtmlTree t = new HtmlTree(HtmlTag.FONT, body); - t.addAttr(HtmlAttr.CLASS, stylename); - body = t; - } - HtmlTree l = HtmlTree.A(link.toString(), body); - if (title != null && title.length() != 0) { - l.addAttr(HtmlAttr.TITLE, title); - } - if (target != null && target.length() != 0) { - l.addAttr(HtmlAttr.TARGET, target); - } - return l; - } - - /** - * Get Html Hyper Link. - * - * @param link String name of the file. - * @param label Tag for the link. - * @param title String that describes the link's content for accessibility. - * @param target Target frame. - * @return a content tree for the hyper link. - */ - public Content getHyperLink(DocPath link, - Content label, String title, String target) { - return getHyperLink(new DocLink(link), label, title, target); - } - - public Content getHyperLink(DocLink link, - Content label, String title, String target) { - HtmlTree anchor = HtmlTree.A(link.toString(), label); - if (title != null && title.length() != 0) { - anchor.addAttr(HtmlAttr.TITLE, title); - } - if (target != null && target.length() != 0) { - anchor.addAttr(HtmlAttr.TARGET, target); - } - return anchor; - } - - /** - * Get the name of the package, this class is in. - * - * @param cd ClassDoc. - */ - public String getPkgName(ClassDoc cd) { - String pkgName = cd.containingPackage().name(); - if (pkgName.length() > 0) { - pkgName += "."; - return pkgName; - } - return ""; - } - - public boolean getMemberDetailsListPrinted() { - return memberDetailsListPrinted; - } - - /** - * Print the frames version of the Html file header. - * Called only when generating an HTML frames file. - * - * @param title Title of this HTML document - * @param configuration the configuration object - * @param body the body content tree to be added to the HTML document - */ - public void printFramesDocument(String title, ConfigurationImpl configuration, - HtmlTree body) throws IOException { - Content htmlDocType = configuration.isOutputHtml5() - ? DocType.HTML5 - : DocType.TRANSITIONAL; - Content htmlComment = new Comment(configuration.getText("doclet.New_Page")); - Content head = new HtmlTree(HtmlTag.HEAD); - head.addContent(getGeneratedBy(!configuration.notimestamp)); - Content windowTitle = HtmlTree.TITLE(new StringContent(title)); - head.addContent(windowTitle); - Content meta = HtmlTree.META("Content-Type", CONTENT_TYPE, - (configuration.charset.length() > 0) ? - configuration.charset : HtmlConstants.HTML_DEFAULT_CHARSET); - head.addContent(meta); - head.addContent(getStyleSheetProperties(configuration)); - head.addContent(getFramesJavaScript()); - Content htmlTree = HtmlTree.HTML(configuration.getLocale().getLanguage(), - head, body); - Content htmlDocument = new HtmlDocument(htmlDocType, - htmlComment, htmlTree); - write(htmlDocument); - } - - /** - * Returns a link to the stylesheet file. - * - * @return an HtmlTree for the lINK tag which provides the stylesheet location - */ - public HtmlTree getStyleSheetProperties(ConfigurationImpl configuration) { - String stylesheetfile = configuration.stylesheetfile; - DocPath stylesheet; - if (stylesheetfile.isEmpty()) { - stylesheet = DocPaths.STYLESHEET; - } else { - DocFile file = DocFile.createFileForInput(configuration, stylesheetfile); - stylesheet = DocPath.create(file.getName()); - } - HtmlTree link = HtmlTree.LINK("stylesheet", "text/css", - pathToRoot.resolve(stylesheet).getPath(), - "Style"); - return link; - } - - protected Comment getGeneratedBy(boolean timestamp) { - String text = "Generated by javadoc"; // marker string, deliberately not localized - if (timestamp) { - Calendar calendar = new GregorianCalendar(TimeZone.getDefault()); - Date today = calendar.getTime(); - text += " ("+ configuration.getDocletSpecificBuildDate() + ") on " + today; - } - return new Comment(text); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocument.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocument.java deleted file mode 100644 index ab60fc73208..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocument.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) 2010, 2013, 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.doclets.formats.html.markup; - -import java.io.IOException; -import java.io.Writer; -import java.util.*; - -import com.sun.tools.doclets.internal.toolkit.Content; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Class for generating an HTML document for javadoc output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public class HtmlDocument extends Content { - - private List docContent = Collections.emptyList(); - - /** - * Constructor to construct an HTML document. - * - * @param docType document type for the HTML document - * @param docComment comment for the document - * @param htmlTree HTML tree of the document - */ - public HtmlDocument(Content docType, Content docComment, Content htmlTree) { - docContent = new ArrayList<>(); - addContent(nullCheck(docType)); - addContent(nullCheck(docComment)); - addContent(nullCheck(htmlTree)); - } - - /** - * Constructor to construct an HTML document. - * - * @param docType document type for the HTML document - * @param htmlTree HTML tree of the document - */ - public HtmlDocument(Content docType, Content htmlTree) { - docContent = new ArrayList<>(); - addContent(nullCheck(docType)); - addContent(nullCheck(htmlTree)); - } - - /** - * Adds content for the HTML document. - * - * @param htmlContent html content to be added - */ - public final void addContent(Content htmlContent) { - if (htmlContent.isValid()) - docContent.add(htmlContent); - } - - /** - * This method is not supported by the class. - * - * @param stringContent string content that needs to be added - * @throws DocletAbortException this method will always throw a - * DocletAbortException because it - * is not supported. - */ - public void addContent(String stringContent) { - throw new DocletAbortException("not supported"); - } - - /** - * {@inheritDoc} - */ - public boolean isEmpty() { - return (docContent.isEmpty()); - } - - /** - * {@inheritDoc} - */ - public boolean write(Writer out, boolean atNewline) throws IOException { - for (Content c : docContent) - atNewline = c.write(out, atNewline); - return atNewline; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlStyle.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlStyle.java deleted file mode 100644 index 52a3b573f5f..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlStyle.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) 2010, 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 com.sun.tools.doclets.formats.html.markup; - -/** - * Enum representing HTML styles. The name map to values in the CSS file. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public enum HtmlStyle { - aboutLanguage, - activeTableTab, - altColor, - bar, - block, - blockList, - blockListLast, - bottomNav, - circle, - classUseContainer, - colFirst, - colLast, - colOne, - constantsSummary, - constantValuesContainer, - contentContainer, - deprecatedContent, - deprecatedLabel, - deprecatedSummary, - deprecationComment, - description, - descfrmTypeLabel, - details, - docSummary, - emphasizedPhrase, - fixedNav, - header, - horizontal, - footer, - indexContainer, - indexNav, - inheritance, - interfaceName, - leftContainer, - leftTop, - leftBottom, - legalCopy, - mainContainer, - memberNameLabel, - memberNameLink, - memberSummary, - nameValue, - navBarCell1Rev, - navList, - navListSearch, - navPadding, - overrideSpecifyLabel, - overviewSummary, - packageHierarchyLabel, - packageLabelInClass, - paramLabel, - returnLabel, - rightContainer, - rightIframe, - rowColor, - searchTagLink, - seeLabel, - serializedFormContainer, - simpleTagLabel, - skipNav, - sourceContainer, - sourceLineNo, - subNav, - subNavList, - subTitle, - summary, - tabEnd, - tableTab, - throwsLabel, - title, - topNav, - typeNameLabel, - typeNameLink, - typeSummary, - useSummary -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTag.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTag.java deleted file mode 100644 index d8fad045a0c..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTag.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright (c) 2010, 2015, 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.doclets.formats.html.markup; - -import com.sun.tools.javac.util.StringUtils; - -/** - * Enum representing HTML tags. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public enum HtmlTag { - A(BlockType.INLINE, EndTag.END), - BLOCKQUOTE, - BODY(BlockType.OTHER, EndTag.END), - BR(BlockType.INLINE, EndTag.NOEND), - CAPTION, - CENTER(HtmlVersion.HTML4), - CODE(BlockType.INLINE, EndTag.END), - DD, - DIR(HtmlVersion.HTML4), - DIV, - DL, - DT, - EM(BlockType.INLINE, EndTag.END), - FONT(HtmlVersion.HTML4, BlockType.INLINE, EndTag.END), - FOOTER(HtmlVersion.HTML5), - H1, - H2, - H3, - H4, - H5, - H6, - HEAD(BlockType.OTHER, EndTag.END), - HEADER(HtmlVersion.HTML5), - HR(BlockType.BLOCK, EndTag.NOEND), - HTML(BlockType.OTHER, EndTag.END), - I(BlockType.INLINE, EndTag.END), - IFRAME(BlockType.OTHER, EndTag.END), - IMG(BlockType.INLINE, EndTag.NOEND), - INPUT(BlockType.BLOCK, EndTag.NOEND), - LI, - LISTING, - LINK(BlockType.OTHER, EndTag.NOEND), - MAIN(HtmlVersion.HTML5), - MENU, - META(BlockType.OTHER, EndTag.NOEND), - NAV(HtmlVersion.HTML5), - NOSCRIPT(BlockType.OTHER, EndTag.END), - OL, - P, - PRE, - SCRIPT(BlockType.OTHER, EndTag.END), - SECTION(HtmlVersion.HTML5), - SMALL(BlockType.INLINE, EndTag.END), - SPAN(BlockType.INLINE, EndTag.END), - STRONG(BlockType.INLINE, EndTag.END), - SUB(BlockType.INLINE, EndTag.END), - TABLE, - TBODY, - TD, - TH, - TITLE(BlockType.OTHER, EndTag.END), - TR, - TT(HtmlVersion.HTML4, BlockType.INLINE, EndTag.END), - UL; - - public final BlockType blockType; - public final EndTag endTag; - public final String value; - public final HtmlVersion htmlVersion; - - /** - * Enum representing the type of HTML element. - */ - public static enum BlockType { - BLOCK, - INLINE, - OTHER - } - - /** - * Enum representing HTML end tag requirement. - */ - public static enum EndTag { - END, - NOEND - } - - HtmlTag() { - this(HtmlVersion.ALL, BlockType.BLOCK, EndTag.END); - } - - HtmlTag(HtmlVersion htmlVersion) { - this(htmlVersion, BlockType.BLOCK, EndTag.END); - } - - HtmlTag(BlockType blockType, EndTag endTag ) { - this(HtmlVersion.ALL, blockType, endTag); - } - - HtmlTag(HtmlVersion htmlVersion, BlockType blockType, EndTag endTag ) { - this.htmlVersion = htmlVersion; - this.blockType = blockType; - this.endTag = endTag; - this.value = StringUtils.toLowerCase(name()); - } - - /** - * Returns true if the end tag is required. This is specific to the standard - * doclet and does not exactly resemble the W3C specifications. - * - * @return true if end tag needs to be displayed else return false - */ - public boolean endTagRequired() { - return (endTag == EndTag.END); - } - - /** - * Returns true if the tag is allowed in the output HTML version of this javadoc run. - * - * @param htmlVer the output HTML version for this javadoc run - * @return true if the tag is allowed - */ - public boolean allowTag(HtmlVersion htmlVer) { - return (this.htmlVersion == HtmlVersion.ALL || this.htmlVersion == htmlVer); - } - - public String toString() { - return value; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java deleted file mode 100644 index f2aa755337e..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java +++ /dev/null @@ -1,973 +0,0 @@ -/* - * Copyright (c) 2010, 2015, 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.doclets.formats.html.markup; - -import java.io.IOException; -import java.io.Writer; -import java.util.*; -import java.nio.charset.*; - -import com.sun.tools.doclets.internal.toolkit.Content; -import com.sun.tools.doclets.internal.toolkit.util.*; -import com.sun.tools.doclets.formats.html.markup.HtmlAttr.Role; - -/** - * Class for generating HTML tree for javadoc output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public class HtmlTree extends Content { - - private HtmlTag htmlTag; - private Map attrs = Collections.emptyMap(); - private List content = Collections.emptyList(); - public static final Content EMPTY = new StringContent(""); - - /** - * Constructor to construct HtmlTree object. - * - * @param tag HTML tag for the HtmlTree object - */ - public HtmlTree(HtmlTag tag) { - htmlTag = nullCheck(tag); - } - - /** - * Constructor to construct HtmlTree object. - * - * @param tag HTML tag for the HtmlTree object - * @param contents contents to be added to the tree - */ - public HtmlTree(HtmlTag tag, Content... contents) { - this(tag); - for (Content content: contents) - addContent(content); - } - - /** - * Adds an attribute for the HTML tag. - * - * @param attrName name of the attribute - * @param attrValue value of the attribute - */ - public void addAttr(HtmlAttr attrName, String attrValue) { - if (attrs.isEmpty()) - attrs = new LinkedHashMap<>(3); - attrs.put(nullCheck(attrName), escapeHtmlChars(attrValue)); - } - - public void setTitle(Content body) { - addAttr(HtmlAttr.TITLE, stripHtml(body)); - } - - public void setRole(Role role) { - addAttr(HtmlAttr.ROLE, role.toString()); - } - - /** - * Adds a style for the HTML tag. - * - * @param style style to be added - */ - public void addStyle(HtmlStyle style) { - addAttr(HtmlAttr.CLASS, style.toString()); - } - - /** - * Adds content for the HTML tag. - * - * @param tagContent tag content to be added - */ - public void addContent(Content tagContent) { - if (tagContent instanceof ContentBuilder) { - for (Content content: ((ContentBuilder)tagContent).contents) { - addContent(content); - } - } - else if (tagContent == HtmlTree.EMPTY || tagContent.isValid()) { - if (content.isEmpty()) - content = new ArrayList<>(); - content.add(tagContent); - } - } - - /** - * This method adds a string content to the htmltree. If the last content member - * added is a StringContent, append the string to that StringContent or else - * create a new StringContent and add it to the html tree. - * - * @param stringContent string content that needs to be added - */ - public void addContent(String stringContent) { - if (!content.isEmpty()) { - Content lastContent = content.get(content.size() - 1); - if (lastContent instanceof StringContent) - lastContent.addContent(stringContent); - else - addContent(new StringContent(stringContent)); - } - else - addContent(new StringContent(stringContent)); - } - - public int charCount() { - int n = 0; - for (Content c : content) - n += c.charCount(); - return n; - } - - /** - * Given a string, escape all special html characters and - * return the result. - * - * @param s The string to check. - * @return the original string with all of the HTML characters escaped. - */ - private static String escapeHtmlChars(String s) { - for (int i = 0; i < s.length(); i++) { - char ch = s.charAt(i); - switch (ch) { - // only start building a new string if we need to - case '<': case '>': case '&': - StringBuilder sb = new StringBuilder(s.substring(0, i)); - for ( ; i < s.length(); i++) { - ch = s.charAt(i); - switch (ch) { - case '<': sb.append("<"); break; - case '>': sb.append(">"); break; - case '&': sb.append("&"); break; - default: sb.append(ch); break; - } - } - return sb.toString(); - } - } - return s; - } - - /** - * A set of ASCII URI characters to be left unencoded. - */ - public static final BitSet NONENCODING_CHARS = new BitSet(256); - - static { - // alphabetic characters - for (int i = 'a'; i <= 'z'; i++) { - NONENCODING_CHARS.set(i); - } - for (int i = 'A'; i <= 'Z'; i++) { - NONENCODING_CHARS.set(i); - } - // numeric characters - for (int i = '0'; i <= '9'; i++) { - NONENCODING_CHARS.set(i); - } - // Reserved characters as per RFC 3986. These are set of delimiting characters. - String noEnc = ":/?#[]@!$&'()*+,;="; - // Unreserved characters as per RFC 3986 which should not be percent encoded. - noEnc += "-._~"; - for (int i = 0; i < noEnc.length(); i++) { - NONENCODING_CHARS.set(noEnc.charAt(i)); - } - } - - private static String encodeURL(String url) { - StringBuilder sb = new StringBuilder(); - for (byte c : url.getBytes(Charset.forName("UTF-8"))) { - if (NONENCODING_CHARS.get(c & 0xFF)) { - sb.append((char) c); - } else { - sb.append(String.format("%%%02X", c & 0xFF)); - } - } - return sb.toString(); - } - - /** - * Generates an HTML anchor tag. - * - * @param ref reference url for the anchor tag - * @param body content for the anchor tag - * @return an HtmlTree object - */ - public static HtmlTree A(String ref, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.A, nullCheck(body)); - htmltree.addAttr(HtmlAttr.HREF, encodeURL(ref)); - return htmltree; - } - - /** - * Generates an HTML anchor tag with an id or a name attribute and content. - * - * @param htmlVersion the version of the generated HTML - * @param attr name or id attribute for the anchor tag - * @param body content for the anchor tag - * @return an HtmlTree object - */ - public static HtmlTree A(HtmlVersion htmlVersion, String attr, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.A); - htmltree.addAttr((htmlVersion == HtmlVersion.HTML4) - ? HtmlAttr.NAME - : HtmlAttr.ID, - nullCheck(attr)); - htmltree.addContent(nullCheck(body)); - return htmltree; - } - - /** - * Generates an HTML anchor tag with id attribute and a body. - * - * @param id id for the anchor tag - * @param body body for the anchor tag - * @return an HtmlTree object - */ - public static HtmlTree A_ID(String id, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.A); - htmltree.addAttr(HtmlAttr.ID, nullCheck(id)); - htmltree.addContent(nullCheck(body)); - return htmltree; - } - - /** - * Generates a CAPTION tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the CAPTION tag - */ - public static HtmlTree CAPTION(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.CAPTION, nullCheck(body)); - return htmltree; - } - - /** - * Generates a CODE tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the CODE tag - */ - public static HtmlTree CODE(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.CODE, nullCheck(body)); - return htmltree; - } - - /** - * Generates a DD tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the DD tag - */ - public static HtmlTree DD(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.DD, nullCheck(body)); - return htmltree; - } - - /** - * Generates a DL tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the DL tag - */ - public static HtmlTree DL(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.DL, nullCheck(body)); - return htmltree; - } - - /** - * Generates a DIV tag with the style class attributes. It also encloses - * a content. - * - * @param styleClass stylesheet class for the tag - * @param body content for the tag - * @return an HtmlTree object for the DIV tag - */ - public static HtmlTree DIV(HtmlStyle styleClass, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.DIV, nullCheck(body)); - if (styleClass != null) - htmltree.addStyle(styleClass); - return htmltree; - } - - /** - * Generates a DIV tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the DIV tag - */ - public static HtmlTree DIV(Content body) { - return DIV(null, body); - } - - /** - * Generates a DT tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the DT tag - */ - public static HtmlTree DT(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.DT, nullCheck(body)); - return htmltree; - } - - /** - * Generates a FOOTER tag with role attribute. - * - * @return an HtmlTree object for the FOOTER tag - */ - public static HtmlTree FOOTER() { - HtmlTree htmltree = new HtmlTree(HtmlTag.FOOTER); - htmltree.setRole(Role.CONTENTINFO); - return htmltree; - } - - /** - * Generates a HEADER tag with role attribute. - * - * @return an HtmlTree object for the HEADER tag - */ - public static HtmlTree HEADER() { - HtmlTree htmltree = new HtmlTree(HtmlTag.HEADER); - htmltree.setRole(Role.BANNER); - return htmltree; - } - - /** - * Generates a heading tag (h1 to h6) with the title and style class attributes. It also encloses - * a content. - * - * @param headingTag the heading tag to be generated - * @param printTitle true if title for the tag needs to be printed else false - * @param styleClass stylesheet class for the tag - * @param body content for the tag - * @return an HtmlTree object for the tag - */ - public static HtmlTree HEADING(HtmlTag headingTag, boolean printTitle, - HtmlStyle styleClass, Content body) { - HtmlTree htmltree = new HtmlTree(headingTag, nullCheck(body)); - if (printTitle) - htmltree.setTitle(body); - if (styleClass != null) - htmltree.addStyle(styleClass); - return htmltree; - } - - /** - * Generates a heading tag (h1 to h6) with style class attribute. It also encloses - * a content. - * - * @param headingTag the heading tag to be generated - * @param styleClass stylesheet class for the tag - * @param body content for the tag - * @return an HtmlTree object for the tag - */ - public static HtmlTree HEADING(HtmlTag headingTag, HtmlStyle styleClass, Content body) { - return HEADING(headingTag, false, styleClass, body); - } - - /** - * Generates a heading tag (h1 to h6) with the title attribute. It also encloses - * a content. - * - * @param headingTag the heading tag to be generated - * @param printTitle true if the title for the tag needs to be printed else false - * @param body content for the tag - * @return an HtmlTree object for the tag - */ - public static HtmlTree HEADING(HtmlTag headingTag, boolean printTitle, Content body) { - return HEADING(headingTag, printTitle, null, body); - } - - /** - * Generates a heading tag (h1 to h6) with some content. - * - * @param headingTag the heading tag to be generated - * @param body content for the tag - * @return an HtmlTree object for the tag - */ - public static HtmlTree HEADING(HtmlTag headingTag, Content body) { - return HEADING(headingTag, false, null, body); - } - - /** - * Generates an HTML tag with lang attribute. It also adds head and body - * content to the HTML tree. - * - * @param lang language for the HTML document - * @param head head for the HTML tag - * @param body body for the HTML tag - * @return an HtmlTree object for the HTML tag - */ - public static HtmlTree HTML(String lang, Content head, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.HTML, nullCheck(head), nullCheck(body)); - htmltree.addAttr(HtmlAttr.LANG, nullCheck(lang)); - return htmltree; - } - - /** - * Generates a IFRAME tag. - * - * @param src the url of the document to be shown in the frame - * @param name specifies the name of the frame - * @param title the title for the frame - * @return an HtmlTree object for the IFRAME tag - */ - public static HtmlTree IFRAME(String src, String name, String title) { - HtmlTree htmltree = new HtmlTree(HtmlTag.IFRAME); - htmltree.addAttr(HtmlAttr.SRC, nullCheck(src)); - htmltree.addAttr(HtmlAttr.NAME, nullCheck(name)); - htmltree.addAttr(HtmlAttr.TITLE, nullCheck(title)); - return htmltree; - } - - /** - * Generates a INPUT tag with some id. - * - * @param type the type of input - * @param id id for the tag - * @return an HtmlTree object for the INPUT tag - */ - public static HtmlTree INPUT(String type, String id) { - HtmlTree htmltree = new HtmlTree(HtmlTag.INPUT); - htmltree.addAttr(HtmlAttr.TYPE, nullCheck(type)); - htmltree.addAttr(HtmlAttr.ID, nullCheck(id)); - htmltree.addAttr(HtmlAttr.VALUE, " "); - htmltree.addAttr(HtmlAttr.DISABLED, "disabled"); - return htmltree; - } - - /** - * Generates a LI tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the LI tag - */ - public static HtmlTree LI(Content body) { - return LI(null, body); - } - - /** - * Generates a LI tag with some content. - * - * @param styleClass style for the tag - * @param body content for the tag - * @return an HtmlTree object for the LI tag - */ - public static HtmlTree LI(HtmlStyle styleClass, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.LI, nullCheck(body)); - if (styleClass != null) - htmltree.addStyle(styleClass); - return htmltree; - } - - /** - * Generates a LINK tag with the rel, type, href and title attributes. - * - * @param rel relevance of the link - * @param type type of link - * @param href the path for the link - * @param title title for the link - * @return an HtmlTree object for the LINK tag - */ - public static HtmlTree LINK(String rel, String type, String href, String title) { - HtmlTree htmltree = new HtmlTree(HtmlTag.LINK); - htmltree.addAttr(HtmlAttr.REL, nullCheck(rel)); - htmltree.addAttr(HtmlAttr.TYPE, nullCheck(type)); - htmltree.addAttr(HtmlAttr.HREF, nullCheck(href)); - htmltree.addAttr(HtmlAttr.TITLE, nullCheck(title)); - return htmltree; - } - - /** - * Generates a MAIN tag with role attribute. - * - * @return an HtmlTree object for the MAIN tag - */ - public static HtmlTree MAIN() { - HtmlTree htmltree = new HtmlTree(HtmlTag.MAIN); - htmltree.setRole(Role.MAIN); - return htmltree; - } - - /** - * Generates a MAIN tag with role attribute and some content. - * - * @param body content of the MAIN tag - * @return an HtmlTree object for the MAIN tag - */ - public static HtmlTree MAIN(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.MAIN, nullCheck(body)); - htmltree.setRole(Role.MAIN); - return htmltree; - } - - /** - * Generates a MAIN tag with role attribute, style attribute and some content. - * - * @param styleClass style of the MAIN tag - * @param body content of the MAIN tag - * @return an HtmlTree object for the MAIN tag - */ - public static HtmlTree MAIN(HtmlStyle styleClass, Content body) { - HtmlTree htmltree = HtmlTree.MAIN(body); - if (styleClass != null) { - htmltree.addStyle(styleClass); - } - return htmltree; - } - - /** - * Generates a META tag with the http-equiv, content and charset attributes. - * - * @param httpEquiv http equiv attribute for the META tag - * @param content type of content - * @param charSet character set used - * @return an HtmlTree object for the META tag - */ - public static HtmlTree META(String httpEquiv, String content, String charSet) { - HtmlTree htmltree = new HtmlTree(HtmlTag.META); - String contentCharset = content + "; charset=" + charSet; - htmltree.addAttr(HtmlAttr.HTTP_EQUIV, nullCheck(httpEquiv)); - htmltree.addAttr(HtmlAttr.CONTENT, contentCharset); - return htmltree; - } - - /** - * Generates a META tag with the name and content attributes. - * - * @param name name attribute - * @param content type of content - * @return an HtmlTree object for the META tag - */ - public static HtmlTree META(String name, String content) { - HtmlTree htmltree = new HtmlTree(HtmlTag.META); - htmltree.addAttr(HtmlAttr.NAME, nullCheck(name)); - htmltree.addAttr(HtmlAttr.CONTENT, nullCheck(content)); - return htmltree; - } - - /** - * Generates a NAV tag with the role attribute. - * - * @return an HtmlTree object for the NAV tag - */ - public static HtmlTree NAV() { - HtmlTree htmltree = new HtmlTree(HtmlTag.NAV); - htmltree.setRole(Role.NAVIGATION); - return htmltree; - } - - /** - * Generates a NOSCRIPT tag with some content. - * - * @param body content of the noscript tag - * @return an HtmlTree object for the NOSCRIPT tag - */ - public static HtmlTree NOSCRIPT(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.NOSCRIPT, nullCheck(body)); - return htmltree; - } - - /** - * Generates a P tag with some content. - * - * @param body content of the Paragraph tag - * @return an HtmlTree object for the P tag - */ - public static HtmlTree P(Content body) { - return P(null, body); - } - - /** - * Generates a P tag with some content. - * - * @param styleClass style of the Paragraph tag - * @param body content of the Paragraph tag - * @return an HtmlTree object for the P tag - */ - public static HtmlTree P(HtmlStyle styleClass, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.P, nullCheck(body)); - if (styleClass != null) - htmltree.addStyle(styleClass); - return htmltree; - } - - /** - * Generates a SCRIPT tag with the type and src attributes. - * - * @param type type of link - * @param src the path for the script - * @return an HtmlTree object for the SCRIPT tag - */ - public static HtmlTree SCRIPT(String src) { - HtmlTree htmltree = HtmlTree.SCRIPT(); - htmltree.addAttr(HtmlAttr.SRC, nullCheck(src)); - return htmltree; - } - - /** - * Generates a SCRIPT tag with the type attribute. - * - * @return an HtmlTree object for the SCRIPT tag - */ - public static HtmlTree SCRIPT() { - HtmlTree htmltree = new HtmlTree(HtmlTag.SCRIPT); - htmltree.addAttr(HtmlAttr.TYPE, "text/javascript"); - return htmltree; - } - - /** - * Generates a SECTION tag with role attribute. - * - * @return an HtmlTree object for the SECTION tag - */ - public static HtmlTree SECTION() { - HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION); - htmltree.setRole(Role.REGION); - return htmltree; - } - - /** - * Generates a SECTION tag with role attribute and some content. - * - * @param body content of the section tag - * @return an HtmlTree object for the SECTION tag - */ - public static HtmlTree SECTION(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION, nullCheck(body)); - htmltree.setRole(Role.REGION); - return htmltree; - } - - /** - * Generates a SMALL tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the SMALL tag - */ - public static HtmlTree SMALL(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.SMALL, nullCheck(body)); - return htmltree; - } - - /** - * Generates a SPAN tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the SPAN tag - */ - public static HtmlTree SPAN(Content body) { - return SPAN(null, body); - } - - /** - * Generates a SPAN tag with style class attribute and some content. - * - * @param styleClass style class for the tag - * @param body content for the tag - * @return an HtmlTree object for the SPAN tag - */ - public static HtmlTree SPAN(HtmlStyle styleClass, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.SPAN, nullCheck(body)); - if (styleClass != null) - htmltree.addStyle(styleClass); - return htmltree; - } - - /** - * Generates a SPAN tag with id and style class attributes. It also encloses - * a content. - * - * @param id the id for the tag - * @param styleClass stylesheet class for the tag - * @param body content for the tag - * @return an HtmlTree object for the SPAN tag - */ - public static HtmlTree SPAN(String id, HtmlStyle styleClass, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.SPAN, nullCheck(body)); - htmltree.addAttr(HtmlAttr.ID, nullCheck(id)); - if (styleClass != null) - htmltree.addStyle(styleClass); - return htmltree; - } - - /** - * Generates a Table tag with style class and summary attributes and some content. - * - * @param styleClass style of the table - * @param summary summary for the table - * @param body content for the table - * @return an HtmlTree object for the TABLE tag - */ - public static HtmlTree TABLE(HtmlStyle styleClass, String summary, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.TABLE, nullCheck(body)); - if (styleClass != null) - htmltree.addStyle(styleClass); - htmltree.addAttr(HtmlAttr.SUMMARY, nullCheck(summary)); - return htmltree; - } - - /** - * Generates a Table tag with style class attribute and some content. - * - * @param styleClass style of the table - * @param body content for the table - * @return an HtmlTree object for the TABLE tag - */ - public static HtmlTree TABLE(HtmlStyle styleClass, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.TABLE, nullCheck(body)); - if (styleClass != null) { - htmltree.addStyle(styleClass); - } - return htmltree; - } - - /** - * Generates a TD tag with style class attribute and some content. - * - * @param styleClass style for the tag - * @param body content for the tag - * @return an HtmlTree object for the TD tag - */ - public static HtmlTree TD(HtmlStyle styleClass, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.TD, nullCheck(body)); - if (styleClass != null) - htmltree.addStyle(styleClass); - return htmltree; - } - - /** - * Generates a TD tag for an HTML table with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the TD tag - */ - public static HtmlTree TD(Content body) { - return TD(null, body); - } - - /** - * Generates a TH tag with style class and scope attributes and some content. - * - * @param styleClass style for the tag - * @param scope scope of the tag - * @param body content for the tag - * @return an HtmlTree object for the TH tag - */ - public static HtmlTree TH(HtmlStyle styleClass, String scope, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.TH, nullCheck(body)); - if (styleClass != null) - htmltree.addStyle(styleClass); - htmltree.addAttr(HtmlAttr.SCOPE, nullCheck(scope)); - return htmltree; - } - - /** - * Generates a TH tag with scope attribute and some content. - * - * @param scope scope of the tag - * @param body content for the tag - * @return an HtmlTree object for the TH tag - */ - public static HtmlTree TH(String scope, Content body) { - return TH(null, scope, body); - } - - /** - * Generates a TITLE tag with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the TITLE tag - */ - public static HtmlTree TITLE(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.TITLE, nullCheck(body)); - return htmltree; - } - - /** - * Generates a TR tag for an HTML table with some content. - * - * @param body content for the tag - * @return an HtmlTree object for the TR tag - */ - public static HtmlTree TR(Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.TR, nullCheck(body)); - return htmltree; - } - - /** - * Generates a UL tag with the style class attribute and some content. - * - * @param styleClass style for the tag - * @param body content for the tag - * @return an HtmlTree object for the UL tag - */ - public static HtmlTree UL(HtmlStyle styleClass, Content body) { - HtmlTree htmltree = new HtmlTree(HtmlTag.UL, nullCheck(body)); - htmltree.addStyle(nullCheck(styleClass)); - return htmltree; - } - - /** - * {@inheritDoc} - */ - public boolean isEmpty() { - return (!hasContent() && !hasAttrs()); - } - - /** - * Returns true if the HTML tree has content. - * - * @return true if the HTML tree has content else return false - */ - public boolean hasContent() { - return (!content.isEmpty()); - } - - /** - * Returns true if the HTML tree has attributes. - * - * @return true if the HTML tree has attributes else return false - */ - public boolean hasAttrs() { - return (!attrs.isEmpty()); - } - - /** - * Returns true if the HTML tree has a specific attribute. - * - * @param attrName name of the attribute to check within the HTML tree - * @return true if the HTML tree has the specified attribute else return false - */ - public boolean hasAttr(HtmlAttr attrName) { - return (attrs.containsKey(attrName)); - } - - /** - * Returns true if the HTML tree is valid. This check is more specific to - * standard doclet and not exactly similar to W3C specifications. But it - * ensures HTML validation. - * - * @return true if the HTML tree is valid - */ - public boolean isValid() { - switch (htmlTag) { - case A : - return (hasAttr(HtmlAttr.NAME) || hasAttr(HtmlAttr.ID) || (hasAttr(HtmlAttr.HREF) && hasContent())); - case BR : - return (!hasContent() && (!hasAttrs() || hasAttr(HtmlAttr.CLEAR))); - case IFRAME : - return (hasAttr(HtmlAttr.SRC) && !hasContent()); - case HR : - case INPUT: - return (!hasContent()); - case IMG : - return (hasAttr(HtmlAttr.SRC) && hasAttr(HtmlAttr.ALT) && !hasContent()); - case LINK : - return (hasAttr(HtmlAttr.HREF) && !hasContent()); - case META : - return (hasAttr(HtmlAttr.CONTENT) && !hasContent()); - case SCRIPT : - return ((hasAttr(HtmlAttr.TYPE) && hasAttr(HtmlAttr.SRC) && !hasContent()) || - (hasAttr(HtmlAttr.TYPE) && hasContent())); - default : - return hasContent(); - } - } - - /** - * Returns true if the element is an inline element. - * - * @return true if the HTML tag is an inline element - */ - public boolean isInline() { - return (htmlTag.blockType == HtmlTag.BlockType.INLINE); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean write(Writer out, boolean atNewline) throws IOException { - if (!isInline() && !atNewline) - out.write(DocletConstants.NL); - String tagString = htmlTag.toString(); - out.write("<"); - out.write(tagString); - Iterator iterator = attrs.keySet().iterator(); - HtmlAttr key; - String value; - while (iterator.hasNext()) { - key = iterator.next(); - value = attrs.get(key); - out.write(" "); - out.write(key.toString()); - if (!value.isEmpty()) { - out.write("=\""); - out.write(value); - out.write("\""); - } - } - out.write(">"); - boolean nl = false; - for (Content c : content) - nl = c.write(out, nl); - if (htmlTag.endTagRequired()) { - out.write(""); - } - if (!isInline()) { - out.write(DocletConstants.NL); - return true; - } else { - return false; - } - } - - /** - * Given a Content node, strips all html characters and - * return the result. - * - * @param body The content node to check. - * @return the plain text from the content node - * - */ - private static String stripHtml(Content body) { - String rawString = body.toString(); - // remove HTML tags - rawString = rawString.replaceAll("\\<.*?>", " "); - // consolidate multiple spaces between a word to a single space - rawString = rawString.replaceAll("\\b\\s{2,}\\b", " "); - // remove extra whitespaces - return rawString.trim(); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlVersion.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlVersion.java deleted file mode 100644 index 76b1f4bc8f9..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlVersion.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2015, 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.doclets.formats.html.markup; - -/** - * Enum representing the version of HTML generated by javadoc. - * - * @author Bhavesh Patel - */ -@Deprecated -public enum HtmlVersion { - HTML4, - HTML5, - ALL -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java deleted file mode 100644 index 06f93b7cf1d..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java +++ /dev/null @@ -1,520 +0,0 @@ -/* - * Copyright (c) 1997, 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 com.sun.tools.doclets.formats.html.markup; - -import java.io.*; -import java.util.*; - -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Class for the Html format code generation. - * Initializes PrintWriter with FileWriter, to enable print - * related methods to generate the code to the named File through FileWriter. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @since 1.2 - * @author Atul M Dambalkar - * @author Bhavesh Patel (Modified) - */ -@Deprecated -public class HtmlWriter { - - /** - * The window title of this file - */ - protected String winTitle; - - /** - * The configuration - */ - protected Configuration configuration; - - /** - * The flag to indicate whether a member details list is printed or not. - */ - protected boolean memberDetailsListPrinted; - - /** - * Header for tables displaying packages and description.. - */ - protected final String[] packageTableHeader; - - /** - * Summary for use tables displaying class and package use. - */ - protected final String useTableSummary; - - /** - * Column header for class docs displaying Modifier and Type header. - */ - protected final String modifierTypeHeader; - - public final Content overviewLabel; - - public final Content defaultPackageLabel; - - public final Content packageLabel; - - public final Content useLabel; - - public final Content prevLabel; - - public final Content nextLabel; - - public final Content prevclassLabel; - - public final Content nextclassLabel; - - public final Content summaryLabel; - - public final Content detailLabel; - - public final Content framesLabel; - - public final Content noframesLabel; - - public final Content treeLabel; - - public final Content classLabel; - - public final Content deprecatedLabel; - - public final Content deprecatedPhrase; - - public final Content allclassesLabel; - - public final Content allpackagesLabel; - - public final Content indexLabel; - - public final Content helpLabel; - - public final Content seeLabel; - - public final Content descriptionLabel; - - public final Content prevpackageLabel; - - public final Content nextpackageLabel; - - public final Content packagesLabel; - - public final Content methodDetailsLabel; - - public final Content annotationTypeDetailsLabel; - - public final Content fieldDetailsLabel; - - public final Content propertyDetailsLabel; - - public final Content constructorDetailsLabel; - - public final Content enumConstantsDetailsLabel; - - public final Content specifiedByLabel; - - public final Content overridesLabel; - - public final Content descfrmClassLabel; - - public final Content descfrmInterfaceLabel; - - private final DocFile file; - - private Writer writer; - - protected Content script; - - /** - * Constructor. - * - * @param path The directory path to be created for this file - * or null if none to be created. - * @exception IOException Exception raised by the FileWriter is passed on - * to next level. - * @exception UnsupportedEncodingException Exception raised by the - * OutputStreamWriter is passed on to next level. - */ - public HtmlWriter(Configuration configuration, DocPath path) - throws IOException, UnsupportedEncodingException { - file = DocFile.createFileForOutput(configuration, path); - this.configuration = configuration; - this.memberDetailsListPrinted = false; - packageTableHeader = new String[] { - configuration.getText("doclet.Package"), - configuration.getText("doclet.Description") - }; - useTableSummary = configuration.getText("doclet.Use_Table_Summary", - configuration.getText("doclet.packages")); - modifierTypeHeader = configuration.getText("doclet.0_and_1", - configuration.getText("doclet.Modifier"), - configuration.getText("doclet.Type")); - overviewLabel = getResource("doclet.Overview"); - defaultPackageLabel = new StringContent(DocletConstants.DEFAULT_PACKAGE_NAME); - packageLabel = getResource("doclet.Package"); - useLabel = getResource("doclet.navClassUse"); - prevLabel = getResource("doclet.Prev"); - nextLabel = getResource("doclet.Next"); - prevclassLabel = getNonBreakResource("doclet.Prev_Class"); - nextclassLabel = getNonBreakResource("doclet.Next_Class"); - summaryLabel = getResource("doclet.Summary"); - detailLabel = getResource("doclet.Detail"); - framesLabel = getResource("doclet.Frames"); - noframesLabel = getNonBreakResource("doclet.No_Frames"); - treeLabel = getResource("doclet.Tree"); - classLabel = getResource("doclet.Class"); - deprecatedLabel = getResource("doclet.navDeprecated"); - deprecatedPhrase = getResource("doclet.Deprecated"); - allclassesLabel = getNonBreakResource("doclet.All_Classes"); - allpackagesLabel = getNonBreakResource("doclet.All_Packages"); - indexLabel = getResource("doclet.Index"); - helpLabel = getResource("doclet.Help"); - seeLabel = getResource("doclet.See"); - descriptionLabel = getResource("doclet.Description"); - prevpackageLabel = getNonBreakResource("doclet.Prev_Package"); - nextpackageLabel = getNonBreakResource("doclet.Next_Package"); - packagesLabel = getResource("doclet.Packages"); - methodDetailsLabel = getResource("doclet.Method_Detail"); - annotationTypeDetailsLabel = getResource("doclet.Annotation_Type_Member_Detail"); - fieldDetailsLabel = getResource("doclet.Field_Detail"); - propertyDetailsLabel = getResource("doclet.Property_Detail"); - constructorDetailsLabel = getResource("doclet.Constructor_Detail"); - enumConstantsDetailsLabel = getResource("doclet.Enum_Constant_Detail"); - specifiedByLabel = getResource("doclet.Specified_By"); - overridesLabel = getResource("doclet.Overrides"); - descfrmClassLabel = getResource("doclet.Description_From_Class"); - descfrmInterfaceLabel = getResource("doclet.Description_From_Interface"); - } - - public void write(Content c) throws IOException { - writer = file.openWriter(); - c.write(writer, true); - } - - public void close() throws IOException { - writer.close(); - } - - /** - * Get the configuration string as a content. - * - * @param key the key to look for in the configuration file - * @return a content tree for the text - */ - public Content getResource(String key) { - return configuration.getResource(key); - } - - /** - * Get the configuration string as a content, replacing spaces - * with non-breaking spaces. - * - * @param key the key to look for in the configuration file - * @return a content tree for the text - */ - public Content getNonBreakResource(String key) { - String text = configuration.getText(key); - Content c = configuration.newContent(); - int start = 0; - int p; - while ((p = text.indexOf(" ", start)) != -1) { - c.addContent(text.substring(start, p)); - c.addContent(RawHtml.nbsp); - start = p + 1; - } - c.addContent(text.substring(start)); - return c; - } - - /** - * Get the configuration string as a content. - * - * @param key the key to look for in the configuration file - * @param o string or content argument added to configuration text - * @return a content tree for the text - */ - public Content getResource(String key, Object o) { - return configuration.getResource(key, o); - } - - /** - * Get the configuration string as a content. - * - * @param key the key to look for in the configuration file - * @param o1 string or content argument added to configuration text - * @param o2 string or content argument added to configuration text - * @return a content tree for the text - */ - public Content getResource(String key, Object o0, Object o1) { - return configuration.getResource(key, o0, o1); - } - - /** - * Returns an HtmlTree for the SCRIPT tag. - * - * @return an HtmlTree for the SCRIPT tag - */ - protected HtmlTree getWinTitleScript(){ - HtmlTree script = HtmlTree.SCRIPT(); - if(winTitle != null && winTitle.length() > 0) { - String scriptCode = "" + DocletConstants.NL; - RawHtml scriptContent = new RawHtml(scriptCode); - script.addContent(scriptContent); - } - return script; - } - - /** - * Returns a String with escaped special JavaScript characters. - * - * @param s String that needs to be escaped - * @return a valid escaped JavaScript string - */ - private static String escapeJavaScriptChars(String s) { - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < s.length(); i++) { - char ch = s.charAt(i); - switch (ch) { - case '\b': - sb.append("\\b"); - break; - case '\t': - sb.append("\\t"); - break; - case '\n': - sb.append("\\n"); - break; - case '\f': - sb.append("\\f"); - break; - case '\r': - sb.append("\\r"); - break; - case '"': - sb.append("\\\""); - break; - case '\'': - sb.append("\\\'"); - break; - case '\\': - sb.append("\\\\"); - break; - default: - if (ch < 32 || ch >= 127) { - sb.append(String.format("\\u%04X", (int)ch)); - } else { - sb.append(ch); - } - break; - } - } - return sb.toString(); - } - - /** - * Returns a content tree for the SCRIPT tag for the main page(index.html). - * - * @return a content for the SCRIPT tag - */ - protected Content getFramesJavaScript() { - HtmlTree script = HtmlTree.SCRIPT(); - String scriptCode = DocletConstants.NL + - " tmpTargetPage = \"\" + window.location.search;" + DocletConstants.NL + - " if (tmpTargetPage != \"\" && tmpTargetPage != \"undefined\")" + DocletConstants.NL + - " tmpTargetPage = tmpTargetPage.substring(1);" + DocletConstants.NL + - " if (tmpTargetPage.indexOf(\":\") != -1 || (tmpTargetPage != \"\" && !validURL(tmpTargetPage)))" + DocletConstants.NL + - " tmpTargetPage = \"undefined\";" + DocletConstants.NL + - " targetPage = tmpTargetPage;" + DocletConstants.NL + - " function validURL(url) {" + DocletConstants.NL + - " try {" + DocletConstants.NL + - " url = decodeURIComponent(url);" + DocletConstants.NL + - " }" + DocletConstants.NL + - " catch (error) {" + DocletConstants.NL + - " return false;" + DocletConstants.NL + - " }" + DocletConstants.NL + - " var pos = url.indexOf(\".html\");" + DocletConstants.NL + - " if (pos == -1 || pos != url.length - 5)" + DocletConstants.NL + - " return false;" + DocletConstants.NL + - " var allowNumber = false;" + DocletConstants.NL + - " var allowSep = false;" + DocletConstants.NL + - " var seenDot = false;" + DocletConstants.NL + - " for (var i = 0; i < url.length - 5; i++) {" + DocletConstants.NL + - " var ch = url.charAt(i);" + DocletConstants.NL + - " if ('a' <= ch && ch <= 'z' ||" + DocletConstants.NL + - " 'A' <= ch && ch <= 'Z' ||" + DocletConstants.NL + - " ch == '$' ||" + DocletConstants.NL + - " ch == '_' ||" + DocletConstants.NL + - " ch.charCodeAt(0) > 127) {" + DocletConstants.NL + - " allowNumber = true;" + DocletConstants.NL + - " allowSep = true;" + DocletConstants.NL + - " } else if ('0' <= ch && ch <= '9'" + DocletConstants.NL + - " || ch == '-') {" + DocletConstants.NL + - " if (!allowNumber)" + DocletConstants.NL + - " return false;" + DocletConstants.NL + - " } else if (ch == '/' || ch == '.') {" + DocletConstants.NL + - " if (!allowSep)" + DocletConstants.NL + - " return false;" + DocletConstants.NL + - " allowNumber = false;" + DocletConstants.NL + - " allowSep = false;" + DocletConstants.NL + - " if (ch == '.')" + DocletConstants.NL + - " seenDot = true;" + DocletConstants.NL + - " if (ch == '/' && seenDot)" + DocletConstants.NL + - " return false;" + DocletConstants.NL + - " } else {" + DocletConstants.NL + - " return false;"+ DocletConstants.NL + - " }" + DocletConstants.NL + - " }" + DocletConstants.NL + - " return true;" + DocletConstants.NL + - " }" + DocletConstants.NL + - " function loadFrames() {" + DocletConstants.NL + - " if (targetPage != \"\" && targetPage != \"undefined\")" + DocletConstants.NL + - " top.classFrame.location = top.targetPage;" + DocletConstants.NL + - " }" + DocletConstants.NL; - RawHtml scriptContent = new RawHtml(scriptCode); - script.addContent(scriptContent); - return script; - } - - /** - * Returns an HtmlTree for the BODY tag. - * - * @param includeScript set true if printing windowtitle script - * @param title title for the window - * @return an HtmlTree for the BODY tag - */ - public HtmlTree getBody(boolean includeScript, String title) { - HtmlTree body = new HtmlTree(HtmlTag.BODY); - // Set window title string which is later printed - this.winTitle = title; - // Don't print windowtitle script for overview-frame, allclasses-frame - // and package-frame - if (includeScript) { - this.script = getWinTitleScript(); - body.addContent(script); - Content noScript = HtmlTree.NOSCRIPT( - HtmlTree.DIV(getResource("doclet.No_Script_Message"))); - body.addContent(noScript); - } - return body; - } - - /** - * Generated javascript variables for the document. - * - * @param typeMap map comprising of method and type relationship - * @param methodTypes set comprising of all methods types for this class - */ - public void generateMethodTypesScript(Map typeMap, - Set methodTypes) { - String sep = ""; - StringBuilder vars = new StringBuilder("var methods = {"); - for (Map.Entry entry : typeMap.entrySet()) { - vars.append(sep); - sep = ","; - vars.append("\"") - .append(entry.getKey()) - .append("\":") - .append(entry.getValue()); - } - vars.append("};").append(DocletConstants.NL); - sep = ""; - vars.append("var tabs = {"); - for (MethodTypes entry : methodTypes) { - vars.append(sep); - sep = ","; - vars.append(entry.value()) - .append(":") - .append("[") - .append("\"") - .append(entry.tabId()) - .append("\"") - .append(sep) - .append("\"") - .append(configuration.getText(entry.resourceKey())) - .append("\"]"); - } - vars.append("};") - .append(DocletConstants.NL); - addStyles(HtmlStyle.altColor, vars); - addStyles(HtmlStyle.rowColor, vars); - addStyles(HtmlStyle.tableTab, vars); - addStyles(HtmlStyle.activeTableTab, vars); - script.addContent(new RawHtml(vars.toString())); - } - - /** - * Adds javascript style variables to the document. - * - * @param style style to be added as a javascript variable - * @param vars variable string to which the style variable will be added - */ - public void addStyles(HtmlStyle style, StringBuilder vars) { - vars.append("var ").append(style).append(" = \"").append(style) - .append("\";").append(DocletConstants.NL); - } - - /** - * Returns an HtmlTree for the TITLE tag. - * - * @return an HtmlTree for the TITLE tag - */ - public HtmlTree getTitle() { - HtmlTree title = HtmlTree.TITLE(new StringContent(winTitle)); - return title; - } - - public String codeText(String text) { - return "" + text + ""; - } - - /** - * Return "&nbsp;", non-breaking space. - */ - public Content getSpace() { - return RawHtml.nbsp; - } - - /* - * Returns a header for Modifier and Type column of a table. - */ - public String getModifierTypeHeader() { - return modifierTypeHeader; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/RawHtml.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/RawHtml.java deleted file mode 100644 index 6949dd23e72..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/RawHtml.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright (c) 2010, 2013, 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.doclets.formats.html.markup; - -import java.io.IOException; -import java.io.Writer; - -import com.sun.tools.doclets.internal.toolkit.Content; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Class for generating raw HTML content to be added to HTML pages of javadoc output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public class RawHtml extends Content { - - private String rawHtmlContent; - - public static final Content nbsp = new RawHtml(" "); - - /** - * Constructor to construct a RawHtml object. - * - * @param rawHtml raw HTML text to be added - */ - public RawHtml(String rawHtml) { - rawHtmlContent = nullCheck(rawHtml); - } - - /** - * This method is not supported by the class. - * - * @param content content that needs to be added - * @throws DocletAbortException this method will always throw a - * DocletAbortException because it - * is not supported. - */ - public void addContent(Content content) { - throw new DocletAbortException("not supported"); - } - - /** - * This method is not supported by the class. - * - * @param stringContent string content that needs to be added - * @throws DocletAbortException this method will always throw a - * DocletAbortException because it - * is not supported. - */ - public void addContent(String stringContent) { - throw new DocletAbortException("not supported"); - } - - /** - * {@inheritDoc} - */ - public boolean isEmpty() { - return rawHtmlContent.isEmpty(); - } - - /** - * {@inheritDoc} - */ - @Override - public String toString() { - return rawHtmlContent; - } - - private enum State { TEXT, ENTITY, TAG, STRING } - - @Override - public int charCount() { - return charCount(rawHtmlContent); - } - - static int charCount(String htmlText) { - State state = State.TEXT; - int count = 0; - for (int i = 0; i < htmlText.length(); i++) { - char c = htmlText.charAt(i); - switch (state) { - case TEXT: - switch (c) { - case '<': - state = State.TAG; - break; - case '&': - state = State.ENTITY; - count++; - break; - default: - count++; - } - break; - - case ENTITY: - if (!Character.isLetterOrDigit(c)) - state = State.TEXT; - break; - - case TAG: - switch (c) { - case '"': - state = State.STRING; - break; - case '>': - state = State.TEXT; - break; - } - break; - - case STRING: - switch (c) { - case '"': - state = State.TAG; - break; - } - } - } - return count; - } - - /** - * {@inheritDoc} - */ - @Override - public boolean write(Writer out, boolean atNewline) throws IOException { - out.write(rawHtmlContent); - return rawHtmlContent.endsWith(DocletConstants.NL); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/StringContent.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/StringContent.java deleted file mode 100644 index 43f9693e41d..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/StringContent.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (c) 2010, 2013, 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.doclets.formats.html.markup; - -import java.io.IOException; -import java.io.Writer; - -import com.sun.tools.doclets.internal.toolkit.Content; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Class for generating string content for HTML tags of javadoc output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public class StringContent extends Content { - - private StringBuilder stringContent; - - /** - * Constructor to construct StringContent object. - */ - public StringContent() { - stringContent = new StringBuilder(); - } - - /** - * Constructor to construct StringContent object with some initial content. - * - * @param initialContent initial content for the object - */ - public StringContent(String initialContent) { - stringContent = new StringBuilder(); - appendChars(initialContent); - } - - /** - * This method is not supported by the class. - * - * @param content content that needs to be added - * @throws DocletAbortException this method will always throw a - * DocletAbortException because it - * is not supported. - */ - @Override - public void addContent(Content content) { - throw new DocletAbortException("not supported"); - } - - /** - * Adds content for the StringContent object. The method escapes - * HTML characters for the string content that is added. - * - * @param strContent string content to be added - */ - @Override - public void addContent(String strContent) { - appendChars(strContent); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean isEmpty() { - return (stringContent.length() == 0); - } - - @Override - public int charCount() { - return RawHtml.charCount(stringContent.toString()); - } - - /** - * {@inheritDoc} - */ - @Override - public String toString() { - return stringContent.toString(); - } - - /** - * {@inheritDoc} - */ - @Override - public boolean write(Writer out, boolean atNewline) throws IOException { - String s = stringContent.toString(); - out.write(s); - return s.endsWith(DocletConstants.NL); - } - - private void appendChars(String s) { - for (int i = 0; i < s.length(); i++) { - char ch = s.charAt(i); - switch (ch) { - case '<': stringContent.append("<"); break; - case '>': stringContent.append(">"); break; - case '&': stringContent.append("&"); break; - default: stringContent.append(ch); break; - } - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/package-info.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/package-info.java deleted file mode 100644 index a9eb28cbea5..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/markup/package-info.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2007, 2013, 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. - */ - -/** - This package contains classes that write HTML markup tags. - -

    This is NOT part of any supported API. - If you write code that depends on this, you do so at your own risk. - This code and its internal interfaces are subject to change or - deletion without notice. - */ - -package com.sun.tools.doclets.formats.html.markup; diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/package-info.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/package-info.java deleted file mode 100644 index d2f2618e64d..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/package-info.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2003, 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. - */ - -/** - This produces Javadoc's HTML-formatted API output. For more documentation - on this doclet, please refer to the link below. - - @see - http://www.java.sun.com/javadoc/standard-doclet.html - -

    This is NOT part of any supported API. - If you write code that depends on this, you do so at your own risk. - This code and its internal interfaces are subject to change or - deletion without notice. -*/ - -package com.sun.tools.doclets.formats.html; diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard.properties b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard.properties deleted file mode 100644 index b20f72255fa..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard.properties +++ /dev/null @@ -1,237 +0,0 @@ -doclet.build_version=Standard Doclet (Old) version {0} -doclet.Contents=Contents -doclet.Overview=Overview -doclet.Window_Overview=Overview List -doclet.Window_Overview_Summary=Overview -doclet.Package=Package -doclet.All_Packages=All Packages -doclet.Tree=Tree -doclet.Class_Hierarchy=Class Hierarchy -doclet.Window_Class_Hierarchy=Class Hierarchy -doclet.Interface_Hierarchy=Interface Hierarchy -doclet.Enum_Hierarchy=Enum Hierarchy -doclet.Annotation_Type_Hierarchy=Annotation Type Hierarchy -doclet.Prev=Prev -doclet.Next=Next -doclet.Prev_Class=Prev Class -doclet.Next_Class=Next Class -doclet.Prev_Package=Prev Package -doclet.Next_Package=Next Package -doclet.Prev_Letter=Prev Letter -doclet.Next_Letter=Next Letter -doclet.Href_Class_Title=class in {0} -doclet.Href_Interface_Title=interface in {0} -doclet.Href_Annotation_Title=annotation in {0} -doclet.Href_Enum_Title=enum in {0} -doclet.Href_Type_Param_Title=type parameter in {0} -doclet.Href_Class_Or_Interface_Title=class or interface in {0} -doclet.Summary=Summary: -doclet.Detail=Detail: -doclet.navNested=Nested -doclet.navAnnotationTypeOptionalMember=Optional -doclet.navAnnotationTypeRequiredMember=Required -doclet.navAnnotationTypeMember=Element -doclet.navField=Field -doclet.navProperty=Property -doclet.navEnum=Enum Constants -doclet.navConstructor=Constr -doclet.navMethod=Method -doclet.Index=Index -doclet.Window_Single_Index=Index -doclet.Window_Split_Index={0}-Index -doclet.Help=Help -doclet.Skip_navigation_links=Skip navigation links -doclet.Navigation=Navigation -doclet.New_Page=NewPage -doclet.navDeprecated=Deprecated -doclet.Window_Deprecated_List=Deprecated List -doclet.Overrides=Overrides: -doclet.in_class=in class -doclet.Static_variable_in=Static variable in {0} -doclet.Variable_in=Variable in {0} -doclet.Constructor_for=Constructor for {0} -doclet.Static_method_in=Static method in {0} -doclet.Search_tag_in=Search tag in {0} -doclet.Method_in=Method in {0} -doclet.package=package -doclet.MalformedURL=Malformed URL: {0} -doclet.File_error=Error reading file: {0} -doclet.URL_error=Error fetching URL: {0} -doclet.see.class_or_package_not_found=Tag {0}: reference not found: {1} -doclet.see.class_or_package_not_accessible=Tag {0}: reference not accessible: {1} -doclet.Deprecated_API=Deprecated API -doclet.Deprecated_Packages=Deprecated Packages -doclet.Deprecated_Classes=Deprecated Classes -doclet.Deprecated_Enums=Deprecated Enums -doclet.Deprecated_Interfaces=Deprecated Interfaces -doclet.Deprecated_Exceptions=Deprecated Exceptions -doclet.Deprecated_Annotation_Types=Deprecated Annotation Types -doclet.Deprecated_Errors=Deprecated Errors -doclet.Deprecated_Fields=Deprecated Fields -doclet.Deprecated_Constructors=Deprecated Constructors -doclet.Deprecated_Methods=Deprecated Methods -doclet.Deprecated_Enum_Constants=Deprecated Enum Constants -doclet.Deprecated_Annotation_Type_Members=Deprecated Annotation Type Elements -doclet.deprecated_packages=deprecated packages -doclet.deprecated_classes=deprecated classes -doclet.deprecated_enums=deprecated enums -doclet.deprecated_interfaces=deprecated interfaces -doclet.deprecated_exceptions=deprecated exceptions -doclet.deprecated_annotation_types=deprecated annotation types -doclet.deprecated_errors=deprecated errors -doclet.deprecated_fields=deprecated fields -doclet.deprecated_constructors=deprecated constructors -doclet.deprecated_methods=deprecated methods -doclet.deprecated_enum_constants=deprecated enum constants -doclet.deprecated_annotation_type_members=deprecated annotation type elements -doclet.Generated_Docs_Untitled=Generated Documentation (Untitled) -doclet.Other_Packages=Other Packages -doclet.Package_Description=Package {0} Description -doclet.Description=Description -doclet.Specified_By=Specified by: -doclet.in_interface=in interface -doclet.Subclasses=Direct Known Subclasses: -doclet.Subinterfaces=All Known Subinterfaces: -doclet.Implementing_Classes=All Known Implementing Classes: -doclet.Functional_Interface=Functional Interface: -doclet.Functional_Interface_Message=This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference. -doclet.also=also -doclet.Frames=Frames -doclet.No_Frames=No Frames -doclet.Package_Hierarchies=Package Hierarchies: -doclet.Hierarchy_For_Package=Hierarchy For Package {0} -doclet.Hierarchy_For_All_Packages=Hierarchy For All Packages -doclet.No_Script_Message=JavaScript is disabled on your browser. -doclet.Description_From_Interface=Description copied from interface: -doclet.Description_From_Class=Description copied from class: -doclet.No_Non_Deprecated_Classes_To_Document=No non-deprecated classes found to document. -doclet.Interfaces_Italic=Interfaces (italic) -doclet.Enclosing_Class=Enclosing class: -doclet.Enclosing_Interface=Enclosing interface: -doclet.Window_Source_title=Source code -doclet.Window_Help_title=API Help -doclet.Help_line_1=How This API Document Is Organized -doclet.Help_line_2=This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows. -doclet.Help_line_3=The {0} page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages. -doclet.Help_line_4=Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories: -doclet.Help_line_5=Class/Interface -doclet.Help_line_6=Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions: -doclet.Help_line_7=Class inheritance diagram -doclet.Help_line_8=Direct Subclasses -doclet.Help_line_9=All Known Subinterfaces -doclet.Help_line_10=All Known Implementing Classes -doclet.Help_line_11=Class/interface declaration -doclet.Help_line_12=Class/interface description -doclet.Help_line_13=Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer. -doclet.Help_line_14=Use -doclet.Help_line_15=Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar. -doclet.Help_line_16=Tree (Class Hierarchy) -doclet.Help_line_17_with_tree_link=There is a {0} page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with {1}. The interfaces do not inherit from {1}. -doclet.Help_line_18=When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages. -doclet.Help_line_19=When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package. -doclet.Help_line_20_with_deprecated_api_link=The {0} page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations. -doclet.Help_line_21=Index -doclet.Help_line_22=The {0} contains an alphabetic list of all classes, interfaces, constructors, methods, and fields. -doclet.Help_line_23=Prev/Next -doclet.Help_line_24=These links take you to the next or previous class, interface, package, or related page. -doclet.Help_line_25=Frames/No Frames -doclet.Help_line_26=These links show and hide the HTML frames. All pages are available with or without frames. -doclet.Help_line_27=The {0} link shows all classes and interfaces except non-static nested types. -doclet.Help_line_28=Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. -doclet.Help_line_29=The {0} page lists the static final fields and their values. -doclet.Help_line_30=This help file applies to API documentation generated using the standard doclet. -doclet.Help_enum_line_1=Each enum has its own separate page with the following sections: -doclet.Help_enum_line_2=Enum declaration -doclet.Help_enum_line_3=Enum description -doclet.Help_annotation_type_line_1=Each annotation type has its own separate page with the following sections: -doclet.Help_annotation_type_line_2=Annotation Type declaration -doclet.Help_annotation_type_line_3=Annotation Type description -doclet.ClassUse_Packages.that.use.0=Packages that use {0} -doclet.ClassUse_Uses.of.0.in.1=Uses of {0} in {1} -doclet.ClassUse_Classes.in.0.used.by.1=Classes in {0} used by {1} -doclet.ClassUse_PackageAnnotation=Packages with annotations of type {0} -doclet.ClassUse_Annotation=Classes in {1} with annotations of type {0} -doclet.ClassUse_TypeParameter=Classes in {1} with type parameters of type {0} -doclet.ClassUse_MethodTypeParameter=Methods in {1} with type parameters of type {0} -doclet.ClassUse_FieldTypeParameter=Fields in {1} with type parameters of type {0} -doclet.ClassUse_FieldAnnotations=Fields in {1} with annotations of type {0} -doclet.ClassUse_MethodAnnotations=Methods in {1} with annotations of type {0} -doclet.ClassUse_MethodParameterAnnotations=Method parameters in {1} with annotations of type {0} -doclet.ClassUse_MethodReturnTypeParameter=Methods in {1} that return types with arguments of type {0} -doclet.ClassUse_Subclass=Subclasses of {0} in {1} -doclet.ClassUse_Subinterface=Subinterfaces of {0} in {1} -doclet.ClassUse_ImplementingClass=Classes in {1} that implement {0} -doclet.ClassUse_Field=Fields in {1} declared as {0} -doclet.ClassUse_MethodReturn=Methods in {1} that return {0} -doclet.ClassUse_MethodArgs=Methods in {1} with parameters of type {0} -doclet.ClassUse_MethodArgsTypeParameters=Method parameters in {1} with type arguments of type {0} -doclet.ClassUse_MethodThrows=Methods in {1} that throw {0} -doclet.ClassUse_ConstructorAnnotations=Constructors in {1} with annotations of type {0} -doclet.ClassUse_ConstructorParameterAnnotations=Constructor parameters in {1} with annotations of type {0} -doclet.ClassUse_ConstructorArgs=Constructors in {1} with parameters of type {0} -doclet.ClassUse_ConstructorArgsTypeParameters=Constructor parameters in {1} with type arguments of type {0} -doclet.ClassUse_ConstructorThrows=Constructors in {1} that throw {0} -doclet.ClassUse_No.usage.of.0=No usage of {0} -doclet.Window_ClassUse_Header=Uses of {0} {1} -doclet.ClassUse_Title=Uses of {0} -doclet.navClassUse=Use -doclet.Error_in_packagelist=Error in using -group option: {0} {1} -doclet.Groupname_already_used=In -group option, groupname already used: {0} -doclet.Same_package_name_used=Package name format used twice: {0} -doclet.exception_encountered=Exception encountered while processing {1}\n{0} -doclet.usage=Provided by Standard doclet:\n\ -\ -d Destination directory for output files\n\ -\ -use Create class and package usage pages\n\ -\ -version Include @version paragraphs\n\ -\ -author Include @author paragraphs\n\ -\ -docfilessubdirs Recursively copy doc-file subdirectories\n\ -\ -splitindex Split index into one file per letter\n\ -\ -windowtitle Browser window title for the documentation\n\ -\ -doctitle Include title for the overview page\n\ -\ -header Include header text for each page\n\ -\ -html4 Generate HTML 4.01 output\n\ -\ -html5 Generate HTML 5 output\n\ -\ -footer Include footer text for each page\n\ -\ -top Include top text for each page\n\ -\ -bottom Include bottom text for each page\n\ -\ -link Create links to javadoc output at \n\ -\ -linkoffline Link to docs at using package list at \n\ -\ -excludedocfilessubdir :.. Exclude any doc-files subdirectories with given name.\n\ -\ -group :.. Group specified packages together in overview page\n\ -\ -nocomment Suppress description and tags, generate only declarations.\n\ -\ -nodeprecated Do not include @deprecated information\n\ -\ -noqualifier ::... Exclude the list of qualifiers from the output.\n\ -\ -nosince Do not include @since information\n\ -\ -notimestamp Do not include hidden time stamp\n\ -\ -nodeprecatedlist Do not generate deprecated list\n\ -\ -notree Do not generate class hierarchy\n\ -\ -noindex Do not generate index\n\ -\ -nohelp Do not generate help link\n\ -\ -nonavbar Do not generate navigation bar\n\ -\ -serialwarn Generate warning about @serial tag\n\ -\ -tag ::

    Specify single argument custom tags\n\ -\ -taglet The fully qualified name of Taglet to register\n\ -\ -tagletpath The path to Taglets\n\ -\ -charset Charset for cross-platform viewing of generated documentation.\n\ -\ -helpfile Include file that help link links to\n\ -\ -linksource Generate source in HTML\n\ -\ -sourcetab Specify the number of spaces each tab takes up in the source\n\ -\ -keywords Include HTML meta tags with package, class and member info\n\ -\ -stylesheetfile File to change style of the generated documentation\n\ -\ -docencoding Specify the character encoding for the output - - -# L10N: do not localize these words: all none accessibility html missing reference syntax -doclet.X.usage=Provided by standard doclet:\n\ -\ -Xdocrootparent Replaces all appearances of @docRoot followed\n\ -\ by /.. in doc comments with \n\ -\ -Xdoclint Enable recommended checks for problems in javadoc comments\n\ -\ -Xdoclint:(all|none|[-]) \n\ -\ Enable or disable specific checks for problems in javadoc comments,\n\ -\ where is one of accessibility, html, missing, reference, or syntax.\n\ -\ -Xdoclint/package:([-])\n\ -\ Enable or disable checks in specific packages. is a comma separated\n\ -\ list of package specifiers. Package specifier is either a qualified name of a package\n\ -\ or a package name prefix followed by .*, which expands to all sub-packages of\n\ -\ the given package. Prefix the package specifier with - to disable checks for\n\ -\ the specified packages.\n diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard_ja.properties b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard_ja.properties deleted file mode 100644 index 6d690122fdf..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard_ja.properties +++ /dev/null @@ -1,187 +0,0 @@ -doclet.build_version=\u6A19\u6E96Doclet (\u65E7)\u30D0\u30FC\u30B8\u30E7\u30F3{0} -doclet.Contents=\u30B3\u30F3\u30C6\u30F3\u30C4 -doclet.Overview=\u6982\u8981 -doclet.Window_Overview=\u6982\u8981\u30EA\u30B9\u30C8 -doclet.Window_Overview_Summary=\u6982\u8981 -doclet.Package=\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.All_Packages=\u3059\u3079\u3066\u306E\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.Tree=\u968E\u5C64\u30C4\u30EA\u30FC -doclet.Class_Hierarchy=\u30AF\u30E9\u30B9\u968E\u5C64 -doclet.Window_Class_Hierarchy=\u30AF\u30E9\u30B9\u968E\u5C64 -doclet.Interface_Hierarchy=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u968E\u5C64 -doclet.Enum_Hierarchy=\u5217\u6319\u578B\u968E\u5C64 -doclet.Annotation_Type_Hierarchy=\u6CE8\u91C8\u578B\u968E\u5C64 -doclet.Prev=\u524D -doclet.Next=\u6B21 -doclet.Prev_Class=\u524D\u306E\u30AF\u30E9\u30B9 -doclet.Next_Class=\u6B21\u306E\u30AF\u30E9\u30B9 -doclet.Prev_Package=\u524D\u306E\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.Next_Package=\u6B21\u306E\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.Prev_Letter=\u524D\u306E\u6587\u5B57 -doclet.Next_Letter=\u6B21\u306E\u6587\u5B57 -doclet.Href_Class_Title={0}\u5185\u306E\u30AF\u30E9\u30B9 -doclet.Href_Interface_Title={0}\u5185\u306E\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Href_Annotation_Title={0}\u5185\u306E\u6CE8\u91C8 -doclet.Href_Enum_Title={0}\u5185\u306E\u5217\u6319\u578B -doclet.Href_Type_Param_Title={0}\u5185\u306E\u578B\u30D1\u30E9\u30E1\u30FC\u30BF -doclet.Href_Class_Or_Interface_Title={0}\u5185\u306E\u30AF\u30E9\u30B9\u307E\u305F\u306F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Summary=\u6982\u8981: -doclet.Detail=\u8A73\u7D30: -doclet.navNested=\u30CD\u30B9\u30C8 -doclet.navAnnotationTypeOptionalMember=\u30AA\u30D7\u30B7\u30E7\u30F3 -doclet.navAnnotationTypeRequiredMember=\u5FC5\u9808 -doclet.navAnnotationTypeMember=\u8981\u7D20 -doclet.navField=\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.navProperty=\u30D7\u30ED\u30D1\u30C6\u30A3 -doclet.navEnum=\u5217\u6319\u5B9A\u6570 -doclet.navConstructor=\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.navMethod=\u30E1\u30BD\u30C3\u30C9 -doclet.Index=\u7D22\u5F15 -doclet.Window_Single_Index=\u7D22\u5F15 -doclet.Window_Split_Index={0}\u306E\u7D22\u5F15 -doclet.Help=\u30D8\u30EB\u30D7 -doclet.Skip_navigation_links=\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u30FB\u30EA\u30F3\u30AF\u3092\u30B9\u30AD\u30C3\u30D7 -doclet.Navigation=\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3 -doclet.New_Page=NewPage -doclet.navDeprecated=\u975E\u63A8\u5968 -doclet.Window_Deprecated_List=\u975E\u63A8\u5968API\u306E\u30EA\u30B9\u30C8 -doclet.Overrides=\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9: -doclet.in_class=\u30AF\u30E9\u30B9\u5185 -doclet.Static_variable_in={0}\u306Estatic\u5909\u6570 -doclet.Variable_in={0}\u306E\u5909\u6570 -doclet.Constructor_for={0}\u306E\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.Static_method_in={0}\u306Estatic\u30E1\u30BD\u30C3\u30C9 -doclet.Search_tag_in={0}\u306E\u691C\u7D22\u30BF\u30B0 -doclet.Method_in={0}\u306E\u30E1\u30BD\u30C3\u30C9 -doclet.package=\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.MalformedURL=\u4E0D\u6B63\u306AURL: {0} -doclet.File_error=\u30D5\u30A1\u30A4\u30EB\u8AAD\u8FBC\u307F\u30A8\u30E9\u30FC: {0} -doclet.URL_error=URL\u53D6\u51FA\u3057\u30A8\u30E9\u30FC: {0} -doclet.see.class_or_package_not_found=\u30BF\u30B0{0}: \u53C2\u7167\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093: {1} -doclet.see.class_or_package_not_accessible=\u30BF\u30B0{0}: \u53C2\u7167\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093: {1} -doclet.Deprecated_API=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044API -doclet.Deprecated_Packages=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.Deprecated_Classes=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30AF\u30E9\u30B9 -doclet.Deprecated_Enums=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u5217\u6319\u578B -doclet.Deprecated_Interfaces=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Deprecated_Exceptions=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u4F8B\u5916 -doclet.Deprecated_Annotation_Types=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u6CE8\u91C8\u578B -doclet.Deprecated_Errors=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30A8\u30E9\u30FC -doclet.Deprecated_Fields=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.Deprecated_Constructors=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.Deprecated_Methods=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30BD\u30C3\u30C9 -doclet.Deprecated_Enum_Constants=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u5217\u6319\u578B\u5B9A\u6570 -doclet.Deprecated_Annotation_Type_Members=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u6CE8\u91C8\u578B\u306E\u8981\u7D20 -doclet.deprecated_packages=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.deprecated_classes=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30AF\u30E9\u30B9 -doclet.deprecated_enums=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u5217\u6319\u578B -doclet.deprecated_interfaces=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.deprecated_exceptions=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u4F8B\u5916 -doclet.deprecated_annotation_types=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u6CE8\u91C8\u578B -doclet.deprecated_errors=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30A8\u30E9\u30FC -doclet.deprecated_fields=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.deprecated_constructors=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.deprecated_methods=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30BD\u30C3\u30C9 -doclet.deprecated_enum_constants=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u5217\u6319\u578B\u5B9A\u6570 -doclet.deprecated_annotation_type_members=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u6CE8\u91C8\u578B\u306E\u8981\u7D20 -doclet.Generated_Docs_Untitled=\u751F\u6210\u3055\u308C\u305F\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8(\u30BF\u30A4\u30C8\u30EB\u306A\u3057) -doclet.Other_Packages=\u305D\u306E\u4ED6\u306E\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.Package_Description=\u30D1\u30C3\u30B1\u30FC\u30B8{0}\u306E\u8AAC\u660E -doclet.Description=\u8AAC\u660E -doclet.Specified_By=\u5B9A\u7FA9: -doclet.in_interface=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u5185 -doclet.Subclasses=\u76F4\u7CFB\u306E\u65E2\u77E5\u306E\u30B5\u30D6\u30AF\u30E9\u30B9: -doclet.Subinterfaces=\u65E2\u77E5\u306E\u30B5\u30D6\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306E\u30EA\u30B9\u30C8: -doclet.Implementing_Classes=\u65E2\u77E5\u306E\u5B9F\u88C5\u30AF\u30E9\u30B9\u306E\u30EA\u30B9\u30C8: -doclet.Functional_Interface=\u6A5F\u80FD\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Functional_Interface_Message=\u3053\u308C\u306F\u6A5F\u80FD\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306A\u306E\u3067\u3001\u30E9\u30E0\u30C0\u5F0F\u307E\u305F\u306F\u30E1\u30BD\u30C3\u30C9\u53C2\u7167\u306E\u5272\u5F53\u3066\u30BF\u30FC\u30B2\u30C3\u30C8\u3068\u3057\u3066\u4F7F\u7528\u3067\u304D\u307E\u3059\u3002 -doclet.also=\u540C\u69D8\u306B -doclet.Frames=\u30D5\u30EC\u30FC\u30E0 -doclet.No_Frames=\u30D5\u30EC\u30FC\u30E0\u306A\u3057 -doclet.Package_Hierarchies=\u30D1\u30C3\u30B1\u30FC\u30B8\u968E\u5C64: -doclet.Hierarchy_For_Package=\u30D1\u30C3\u30B1\u30FC\u30B8{0}\u306E\u968E\u5C64 -doclet.Hierarchy_For_All_Packages=\u3059\u3079\u3066\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u968E\u5C64 -doclet.No_Script_Message=\u30D6\u30E9\u30A6\u30B6\u306EJavaScript\u304C\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002 -doclet.Description_From_Interface=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u304B\u3089\u30B3\u30D4\u30FC\u3055\u308C\u305F\u8AAC\u660E: -doclet.Description_From_Class=\u30AF\u30E9\u30B9\u304B\u3089\u30B3\u30D4\u30FC\u3055\u308C\u305F\u8AAC\u660E: -doclet.No_Non_Deprecated_Classes_To_Document=\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u975E\u63A8\u5968\u4EE5\u5916\u306E\u30AF\u30E9\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002 -doclet.Interfaces_Italic=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9(\u30A4\u30BF\u30EA\u30C3\u30AF) -doclet.Enclosing_Class=\u542B\u307E\u308C\u3066\u3044\u308B\u30AF\u30E9\u30B9: -doclet.Enclosing_Interface=\u542B\u307E\u308C\u3066\u3044\u308B\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9: -doclet.Window_Source_title=\u30BD\u30FC\u30B9\u30FB\u30B3\u30FC\u30C9 -doclet.Window_Help_title=API\u30D8\u30EB\u30D7 -doclet.Help_line_1=API\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306E\u69CB\u6210 -doclet.Help_line_2=\u3053\u306EAPI(Application Programming Interface)\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306B\u306F\u3001\u6B21\u306B\u8AAC\u660E\u3059\u308B\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u30FB\u30D0\u30FC\u306B\u3042\u308B\u9805\u76EE\u306B\u5BFE\u5FDC\u3059\u308B\u30DA\u30FC\u30B8\u304C\u542B\u307E\u308C\u307E\u3059\u3002 -doclet.Help_line_3={0}\u30DA\u30FC\u30B8\u306FAPI\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306E\u30D5\u30ED\u30F3\u30C8\u30FB\u30DA\u30FC\u30B8\u3067\u3001\u5404\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u6982\u8981\u3092\u542B\u3080\u5168\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u30EA\u30B9\u30C8\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u4E00\u9023\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u6982\u8981\u8AAC\u660E\u3082\u8868\u793A\u3055\u308C\u307E\u3059\u3002 -doclet.Help_line_4=\u5404\u30D1\u30C3\u30B1\u30FC\u30B8\u306B\u306F\u3001\u305D\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u30AF\u30E9\u30B9\u304A\u3088\u3073\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306E\u30EA\u30B9\u30C8\u3068\u3001\u305D\u308C\u305E\u308C\u306E\u6982\u8981\u3092\u542B\u3080\u30DA\u30FC\u30B8\u304C\u3042\u308A\u307E\u3059\u3002\u3053\u306E\u30DA\u30FC\u30B8\u306F6\u3064\u306E\u30AB\u30C6\u30B4\u30EA\u3067\u69CB\u6210\u3055\u308C\u307E\u3059\u3002 -doclet.Help_line_5=\u30AF\u30E9\u30B9\u307E\u305F\u306F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Help_line_6=\u5404\u30AF\u30E9\u30B9\u3001\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u3001\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30AF\u30E9\u30B9\u304A\u3088\u3073\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306B\u306F\u500B\u5225\u306E\u30DA\u30FC\u30B8\u304C\u3042\u308A\u307E\u3059\u3002\u5404\u30DA\u30FC\u30B8\u306B\u306F\u6B21\u306E\u3088\u3046\u306B\u3001\u30AF\u30E9\u30B9\u307E\u305F\u306F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306E\u8AAC\u660E\u3068\u3001\u6982\u8981\u8868\u304A\u3088\u3073\u30E1\u30F3\u30D0\u30FC\u306E\u8A73\u7D30\u8AAC\u660E\u304C\u542B\u307E\u308C\u307E\u3059\u3002 -doclet.Help_line_7=\u30AF\u30E9\u30B9\u968E\u5C64\u8868\u793A -doclet.Help_line_8=\u76F4\u7CFB\u306E\u30B5\u30D6\u30AF\u30E9\u30B9 -doclet.Help_line_9=\u65E2\u77E5\u306E\u30B5\u30D6\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306E\u30EA\u30B9\u30C8 -doclet.Help_line_10=\u65E2\u77E5\u306E\u5B9F\u88C5\u30AF\u30E9\u30B9\u306E\u30EA\u30B9\u30C8 -doclet.Help_line_11=\u30AF\u30E9\u30B9\u307E\u305F\u306F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306E\u5BA3\u8A00 -doclet.Help_line_12=\u30AF\u30E9\u30B9\u307E\u305F\u306F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306E\u8AAC\u660E -doclet.Help_line_13=\u5404\u6982\u8981\u30A8\u30F3\u30C8\u30EA\u306B\u306F\u3001\u305D\u306E\u9805\u76EE\u306E\u8A73\u7D30\u306A\u8AAC\u660E\u306E\u4E2D\u304B\u30891\u884C\u76EE\u306E\u6587\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u8A73\u7D30\u306A\u8AAC\u660E\u306F\u30BD\u30FC\u30B9\u30FB\u30B3\u30FC\u30C9\u306B\u73FE\u308C\u308B\u9806\u306B\u4E26\u3079\u3089\u308C\u307E\u3059\u304C\u3001\u6982\u8981\u30A8\u30F3\u30C8\u30EA\u306F\u30A2\u30EB\u30D5\u30A1\u30D9\u30C3\u30C8\u9806\u306B\u4E26\u3079\u3089\u308C\u307E\u3059\u3002\u3053\u308C\u306B\u3088\u3063\u3066\u3001\u30D7\u30ED\u30B0\u30E9\u30DE\u304C\u8A2D\u5B9A\u3057\u305F\u8AD6\u7406\u7684\u306A\u30B0\u30EB\u30FC\u30D7\u5206\u3051\u304C\u4FDD\u6301\u3055\u308C\u307E\u3059\u3002 -doclet.Help_line_14=\u4F7F\u7528 -doclet.Help_line_15=\u5404\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u3001\u30AF\u30E9\u30B9\u304A\u3088\u3073\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306B\u306F\u305D\u308C\u305E\u308C\u300C\u4F7F\u7528\u300D\u30DA\u30FC\u30B8\u304C\u3042\u308A\u307E\u3059\u3002\u3053\u306E\u30DA\u30FC\u30B8\u306B\u306F\u3001\u3069\u306E\u3088\u3046\u306A\u30D1\u30C3\u30B1\u30FC\u30B8\u3001\u30AF\u30E9\u30B9\u3001\u30E1\u30BD\u30C3\u30C9\u3001\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u304A\u3088\u3073\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u3001\u7279\u5B9A\u306E\u30AF\u30E9\u30B9\u307E\u305F\u306F\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u4E00\u90E8\u3092\u4F7F\u7528\u3057\u3066\u3044\u308B\u304B\u304C\u8A18\u8FF0\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u305F\u3068\u3048\u3070\u3001\u30AF\u30E9\u30B9A\u307E\u305F\u306F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9A\u306E\u5834\u5408\u3001\u305D\u306E\u300C\u4F7F\u7528\u300D\u30DA\u30FC\u30B8\u306B\u306F\u3001A\u306E\u30B5\u30D6\u30AF\u30E9\u30B9\u3001A\u3068\u3057\u3066\u5BA3\u8A00\u3055\u308C\u308B\u30D5\u30A3\u30FC\u30EB\u30C9\u3001A\u3092\u8FD4\u3059\u30E1\u30BD\u30C3\u30C9\u3068\u3001\u578BA\u3092\u6301\u3064\u30E1\u30BD\u30C3\u30C9\u304A\u3088\u3073\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u304C\u542B\u307E\u308C\u307E\u3059\u3002\u3053\u306E\u30DA\u30FC\u30B8\u306B\u30A2\u30AF\u30BB\u30B9\u3059\u308B\u306B\u306F\u3001\u307E\u305A\u305D\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u3001\u30AF\u30E9\u30B9\u307E\u305F\u306F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306B\u79FB\u52D5\u3057\u3001\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u30FB\u30D0\u30FC\u306E\u300C\u4F7F\u7528\u300D\u30EA\u30F3\u30AF\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002 -doclet.Help_line_16=\u968E\u5C64\u30C4\u30EA\u30FC(\u30AF\u30E9\u30B9\u968E\u5C64) -doclet.Help_line_17_with_tree_link=\u3059\u3079\u3066\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u306B\u306F{0}\u30DA\u30FC\u30B8\u304C\u3042\u308A\u3001\u3055\u3089\u306B\u5404\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u968E\u5C64\u304C\u3042\u308A\u307E\u3059\u3002\u5404\u968E\u5C64\u30DA\u30FC\u30B8\u306F\u3001\u30AF\u30E9\u30B9\u306E\u30EA\u30B9\u30C8\u3068\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306E\u30EA\u30B9\u30C8\u3092\u542B\u307F\u307E\u3059\u3002\u30AF\u30E9\u30B9\u306F{1}\u3092\u958B\u59CB\u70B9\u3068\u3059\u308B\u7D99\u627F\u69CB\u9020\u3067\u7DE8\u6210\u3055\u308C\u307E\u3059\u3002\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306F\u3001{1}\u304B\u3089\u306F\u7D99\u627F\u3057\u307E\u305B\u3093\u3002 -doclet.Help_line_18=\u6982\u8981\u30DA\u30FC\u30B8\u3092\u8868\u793A\u3057\u3066\u3044\u308B\u3068\u304D\u306B\u300C\u968E\u5C64\u30C4\u30EA\u30FC\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u3068\u3001\u5168\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u968E\u5C64\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002 -doclet.Help_line_19=\u7279\u5B9A\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u3001\u30AF\u30E9\u30B9\u307E\u305F\u306F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u3092\u8868\u793A\u3057\u3066\u3044\u308B\u3068\u304D\u306B\u300C\u968E\u5C64\u30C4\u30EA\u30FC\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u3068\u3001\u8A72\u5F53\u3059\u308B\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u307F\u306E\u968E\u5C64\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002 -doclet.Help_line_20_with_deprecated_api_link={0}\u30DA\u30FC\u30B8\u306F\u3001\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u3059\u3079\u3066\u306EAPI\u306E\u30EA\u30B9\u30C8\u3092\u8868\u793A\u3057\u307E\u3059\u3002\u975E\u63A8\u5968API\u3068\u306F\u3001\u6A5F\u80FD\u6539\u826F\u306A\u3069\u306E\u7406\u7531\u304B\u3089\u4F7F\u7528\u3092\u304A\u85A6\u3081\u3067\u304D\u306A\u304F\u306A\u3063\u305FAPI\u306E\u3053\u3068\u3067\u3001\u901A\u5E38\u306F\u305D\u308C\u306B\u4EE3\u308F\u308BAPI\u304C\u63D0\u4F9B\u3055\u308C\u307E\u3059\u3002\u975E\u63A8\u5968API\u306F\u4ECA\u5F8C\u306E\u5B9F\u88C5\u3067\u524A\u9664\u3055\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002 -doclet.Help_line_21=\u7D22\u5F15 -doclet.Help_line_22={0}\u306B\u306F\u3001\u3059\u3079\u3066\u306E\u30AF\u30E9\u30B9\u3001\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u3001\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u3001\u30E1\u30BD\u30C3\u30C9\u304A\u3088\u3073\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u30A2\u30EB\u30D5\u30A1\u30D9\u30C3\u30C8\u9806\u306E\u30EA\u30B9\u30C8\u304C\u542B\u307E\u308C\u307E\u3059\u3002 -doclet.Help_line_23=\u524D/\u6B21 -doclet.Help_line_24=\u3053\u308C\u3089\u306E\u30EA\u30F3\u30AF\u306B\u3088\u308A\u3001\u524D\u307E\u305F\u306F\u6B21\u306E\u30AF\u30E9\u30B9\u3001\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u3001\u30D1\u30C3\u30B1\u30FC\u30B8\u307E\u305F\u306F\u95A2\u9023\u30DA\u30FC\u30B8\u3078\u79FB\u52D5\u3067\u304D\u307E\u3059\u3002 -doclet.Help_line_25=\u30D5\u30EC\u30FC\u30E0/\u30D5\u30EC\u30FC\u30E0\u306A\u3057 -doclet.Help_line_26=\u3053\u308C\u3089\u306E\u30EA\u30F3\u30AF\u306FHTML\u30D5\u30EC\u30FC\u30E0\u306E\u8868\u793A\u3068\u975E\u8868\u793A\u3092\u5207\u308A\u66FF\u3048\u307E\u3059\u3002\u3059\u3079\u3066\u306E\u30DA\u30FC\u30B8\u306F\u30D5\u30EC\u30FC\u30E0\u3042\u308A\u3067\u3082\u3001\u30D5\u30EC\u30FC\u30E0\u306A\u3057\u3067\u3082\u8868\u793A\u3067\u304D\u307E\u3059\u3002 -doclet.Help_line_27={0}\u30EA\u30F3\u30AF\u306B\u306F\u3001\u3059\u3079\u3066\u306E\u30AF\u30E9\u30B9\u304A\u3088\u3073\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9(\u975Estatic\u306E\u30CD\u30B9\u30C8\u3055\u308C\u305F\u578B\u3092\u9664\u304F)\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002 -doclet.Help_line_28=\u76F4\u5217\u5316\u53EF\u80FD\u307E\u305F\u306F\u5916\u90E8\u5316\u53EF\u80FD\u306A\u5404\u30AF\u30E9\u30B9\u306F\u3001\u76F4\u5217\u5316\u30D5\u30A3\u30FC\u30EB\u30C9\u3068\u30E1\u30BD\u30C3\u30C9\u306E\u8AAC\u660E\u3092\u542B\u307F\u307E\u3059\u3002\u3053\u306E\u60C5\u5831\u306F\u3001API\u3092\u4F7F\u7528\u3059\u308B\u958B\u767A\u8005\u3067\u306F\u306A\u304F\u3001\u518D\u5B9F\u88C5\u3092\u884C\u3046\u62C5\u5F53\u8005\u306B\u5F79\u7ACB\u3061\u307E\u3059\u3002\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u30FB\u30D0\u30FC\u306B\u30EA\u30F3\u30AF\u304C\u306A\u3044\u5834\u5408\u3001\u76F4\u5217\u5316\u3055\u308C\u305F\u30AF\u30E9\u30B9\u306B\u79FB\u52D5\u3057\u3066\u3001\u30AF\u30E9\u30B9\u8A18\u8FF0\u306E\u300C\u95A2\u9023\u9805\u76EE\u300D\u30BB\u30AF\u30B7\u30E7\u30F3\u306B\u3042\u308B\u300C\u76F4\u5217\u5316\u3055\u308C\u305F\u5F62\u5F0F\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u3053\u3068\u306B\u3088\u308A\u3001\u3053\u306E\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u3059\u3002 -doclet.Help_line_29={0}\u30DA\u30FC\u30B8\u306B\u306F\u3001static final\u30D5\u30A3\u30FC\u30EB\u30C9\u3068\u305D\u306E\u5024\u306E\u30EA\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u3002 -doclet.Help_line_30=\u3053\u306E\u30D8\u30EB\u30D7\u30FB\u30D5\u30A1\u30A4\u30EB\u306F\u3001\u6A19\u6E96doclet\u3092\u4F7F\u7528\u3057\u3066\u751F\u6210\u3055\u308C\u305FAPI\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306B\u9069\u7528\u3055\u308C\u307E\u3059\u3002 -doclet.Help_enum_line_1=\u5404\u5217\u6319\u578B\u306B\u306F\u3001\u305D\u308C\u81EA\u8EAB\u306E\u500B\u5225\u306E\u30DA\u30FC\u30B8\u3068\u6B21\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u304C\u3042\u308A\u307E\u3059: -doclet.Help_enum_line_2=\u5217\u6319\u578B\u306E\u5BA3\u8A00 -doclet.Help_enum_line_3=\u5217\u6319\u578B\u306E\u8AAC\u660E -doclet.Help_annotation_type_line_1=\u5404\u6CE8\u91C8\u578B\u306B\u306F\u3001\u305D\u308C\u81EA\u8EAB\u306E\u500B\u5225\u306E\u30DA\u30FC\u30B8\u3068\u6B21\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u304C\u3042\u308A\u307E\u3059: -doclet.Help_annotation_type_line_2=\u6CE8\u91C8\u578B\u306E\u5BA3\u8A00 -doclet.Help_annotation_type_line_3=\u6CE8\u91C8\u578B\u306E\u8AAC\u660E -doclet.ClassUse_Packages.that.use.0={0}\u3092\u4F7F\u7528\u3057\u3066\u3044\u308B\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.ClassUse_Uses.of.0.in.1={1}\u3067\u306E{0}\u306E\u4F7F\u7528 -doclet.ClassUse_Classes.in.0.used.by.1={1}\u306B\u3088\u308A\u4F7F\u7528\u3055\u308C\u308B{0}\u306E\u30AF\u30E9\u30B9 -doclet.ClassUse_PackageAnnotation={0}\u578B\u306E\u6CE8\u91C8\u3092\u6301\u3064\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.ClassUse_Annotation={0}\u578B\u306E\u6CE8\u91C8\u3092\u6301\u3064{1}\u306E\u30E1\u30BD\u30C3\u30C9 -doclet.ClassUse_TypeParameter={0}\u578B\u306E\u578B\u30D1\u30E9\u30E1\u30FC\u30BF\u3092\u6301\u3064{1}\u306E\u30AF\u30E9\u30B9 -doclet.ClassUse_MethodTypeParameter={0}\u578B\u306E\u578B\u30D1\u30E9\u30E1\u30FC\u30BF\u3092\u6301\u3064{1}\u306E\u30E1\u30BD\u30C3\u30C9 -doclet.ClassUse_FieldTypeParameter={0}\u578B\u306E\u578B\u30D1\u30E9\u30E1\u30FC\u30BF\u3092\u6301\u3064{1}\u306E\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.ClassUse_FieldAnnotations={0}\u578B\u306E\u6CE8\u91C8\u3092\u6301\u3064{1}\u306E\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.ClassUse_MethodAnnotations={0}\u578B\u306E\u6CE8\u91C8\u3092\u6301\u3064{1}\u306E\u30E1\u30BD\u30C3\u30C9 -doclet.ClassUse_MethodParameterAnnotations={0}\u578B\u306E\u6CE8\u91C8\u3092\u6301\u3064{1}\u306E\u30E1\u30BD\u30C3\u30C9\u30FB\u30D1\u30E9\u30E1\u30FC\u30BF -doclet.ClassUse_MethodReturnTypeParameter={0}\u578B\u306E\u5F15\u6570\u3092\u6301\u3064\u578B\u3092\u8FD4\u3059{1}\u306E\u30E1\u30BD\u30C3\u30C9 -doclet.ClassUse_Subclass={1}\u3067\u306E{0}\u306E\u30B5\u30D6\u30AF\u30E9\u30B9 -doclet.ClassUse_Subinterface={1}\u3067\u306E{0}\u306E\u30B5\u30D6\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.ClassUse_ImplementingClass={0}\u3092\u5B9F\u88C5\u3057\u3066\u3044\u308B{1}\u306E\u30AF\u30E9\u30B9 -doclet.ClassUse_Field={0}\u3068\u3057\u3066\u5BA3\u8A00\u3055\u308C\u3066\u3044\u308B{1}\u306E\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.ClassUse_MethodReturn={0}\u3092\u8FD4\u3059{1}\u306E\u30E1\u30BD\u30C3\u30C9 -doclet.ClassUse_MethodArgs={0}\u578B\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u3092\u6301\u3064{1}\u306E\u30E1\u30BD\u30C3\u30C9 -doclet.ClassUse_MethodArgsTypeParameters={0}\u578B\u306E\u578B\u5F15\u6570\u3092\u6301\u3064{1}\u306E\u30E1\u30BD\u30C3\u30C9\u30FB\u30D1\u30E9\u30E1\u30FC\u30BF -doclet.ClassUse_MethodThrows={0}\u3092\u30B9\u30ED\u30FC\u3059\u308B{1}\u306E\u30E1\u30BD\u30C3\u30C9 -doclet.ClassUse_ConstructorAnnotations={0}\u578B\u306E\u6CE8\u91C8\u3092\u6301\u3064{1}\u306E\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.ClassUse_ConstructorParameterAnnotations={0}\u578B\u306E\u6CE8\u91C8\u3092\u6301\u3064{1}\u306E\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FB\u30D1\u30E9\u30E1\u30FC\u30BF -doclet.ClassUse_ConstructorArgs={0}\u578B\u306E\u30D1\u30E9\u30E1\u30FC\u30BF\u3092\u6301\u3064{1}\u306E\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.ClassUse_ConstructorArgsTypeParameters={0}\u578B\u306E\u578B\u5F15\u6570\u3092\u6301\u3064{1}\u306E\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FB\u30D1\u30E9\u30E1\u30FC\u30BF -doclet.ClassUse_ConstructorThrows={0}\u3092\u30B9\u30ED\u30FC\u3059\u308B{1}\u306E\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.ClassUse_No.usage.of.0={0}\u306F\u3069\u3053\u304B\u3089\u3082\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u305B\u3093 -doclet.Window_ClassUse_Header={0} {1}\u306E\u4F7F\u7528 -doclet.ClassUse_Title={0}\u306E\u4F7F\u7528 -doclet.navClassUse=\u4F7F\u7528 -doclet.Error_in_packagelist=-group\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u4F7F\u7528\u65B9\u6CD5\u306E\u30A8\u30E9\u30FC: {0} {1} -doclet.Groupname_already_used=-group\u30AA\u30D7\u30B7\u30E7\u30F3\u306B\u304A\u3044\u3066\u3001\u3059\u3067\u306B\u30B0\u30EB\u30FC\u30D7\u540D\u304C\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059: {0} -doclet.Same_package_name_used=\u30D1\u30C3\u30B1\u30FC\u30B8\u540D\u5F62\u5F0F\u304C2\u56DE\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059: {0} -doclet.exception_encountered={1}\u306E\u51E6\u7406\u4E2D\u306B\u4F8B\u5916\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\n{0} -doclet.usage=\u6A19\u6E96\u306Edoclet\u306B\u3088\u308A\u63D0\u4F9B\u3055\u308C\u308B\u3082\u306E:\n -d \u51FA\u529B\u30D5\u30A1\u30A4\u30EB\u306E\u8EE2\u9001\u5148\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\n -use \u30AF\u30E9\u30B9\u3068\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u4F7F\u7528\u30DA\u30FC\u30B8\u3092\u4F5C\u6210\u3059\u308B\n -version @version\u30D1\u30E9\u30B0\u30E9\u30D5\u3092\u542B\u3081\u308B\n -author @author\u30D1\u30E9\u30B0\u30E9\u30D5\u3092\u542B\u3081\u308B\n -docfilessubdirs doc-file\u30B5\u30D6\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3092\u518D\u5E30\u7684\u306B\u30B3\u30D4\u30FC\u3059\u308B\n -splitindex 1\u5B57\u3054\u3068\u306B1\u30D5\u30A1\u30A4\u30EB\u306B\u7D22\u5F15\u3092\u5206\u5272\u3059\u308B\n -windowtitle \u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u7528\u306E\u30D6\u30E9\u30A6\u30B6\u30FB\u30A6\u30A3\u30F3\u30C9\u30A6\u30FB\u30BF\u30A4\u30C8\u30EB\n -doctitle \u6982\u8981\u30DA\u30FC\u30B8\u306B\u30BF\u30A4\u30C8\u30EB\u3092\u542B\u3081\u308B\n -header \u5404\u30DA\u30FC\u30B8\u306B\u30D8\u30C3\u30C0\u30FC\u3092\u542B\u3081\u308B\n -html4 HTML 4.01\u51FA\u529B\u3092\u751F\u6210\u3059\u308B\n -html5 HTML 5\u51FA\u529B\u3092\u751F\u6210\u3059\u308B\n -footer \u5404\u30DA\u30FC\u30B8\u306B\u30D5\u30C3\u30BF\u30FC\u3092\u542B\u3081\u308B\n -top \u5404\u30DA\u30FC\u30B8\u306B\u4E0A\u90E8\u30C6\u30AD\u30B9\u30C8\u3092\u542B\u3081\u308B\n -bottom \u5404\u30DA\u30FC\u30B8\u306B\u4E0B\u90E8\u30C6\u30AD\u30B9\u30C8\u3092\u542B\u3081\u308B\n -link \u306Bjavadoc\u51FA\u529B\u3078\u306E\u30EA\u30F3\u30AF\u3092\u4F5C\u6210\u3059\u308B\n -linkoffline \u306B\u3042\u308B\u30D1\u30C3\u30B1\u30FC\u30B8\u30FB\u30EA\u30B9\u30C8\u3092\u4F7F\u7528\u3057\u3066\u306Edocs\u306B\u30EA\u30F3\u30AF\u3059\u308B\n -excludedocfilessubdir :.. \u6307\u5B9A\u3055\u308C\u305F\u540D\u524D\u306Edoc-files\u30B5\u30D6\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3092\u3059\u3079\u3066\u9664\u5916\u3059\u308B\n -group :.. \u6307\u5B9A\u3059\u308B\u30D1\u30C3\u30B1\u30FC\u30B8\u3092\u6982\u8981\u30DA\u30FC\u30B8\u306B\u304A\u3044\u3066\u30B0\u30EB\u30FC\u30D7\u5316\u3059\u308B\n -nocomment \u8A18\u8FF0\u304A\u3088\u3073\u30BF\u30B0\u3092\u6291\u5236\u3057\u3066\u5BA3\u8A00\u306E\u307F\u3092\u751F\u6210\u3059\u308B\n -nodeprecated @deprecated\u60C5\u5831\u3092\u9664\u5916\u3059\u308B\n -noqualifier ::... \u51FA\u529B\u304B\u3089\u4FEE\u98FE\u5B50\u306E\u30EA\u30B9\u30C8\u3092\u9664\u5916\u3059\u308B\n -nosince @since\u60C5\u5831\u3092\u9664\u5916\u3059\u308B\n -notimestamp \u975E\u8868\u793A\u306E\u30BF\u30A4\u30E0\u30B9\u30BF\u30F3\u30D7\u3092\u9664\u5916\u3059\u308B\n -nodeprecatedlist \u975E\u63A8\u5968\u306E\u30EA\u30B9\u30C8\u3092\u751F\u6210\u3057\u306A\u3044\n -notree \u30AF\u30E9\u30B9\u968E\u5C64\u3092\u751F\u6210\u3057\u306A\u3044\n -noindex \u7D22\u5F15\u3092\u751F\u6210\u3057\u306A\u3044\n -nohelp \u30D8\u30EB\u30D7\u30FB\u30EA\u30F3\u30AF\u3092\u751F\u6210\u3057\u306A\u3044\n -nonavbar \u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u30FB\u30D0\u30FC\u3092\u751F\u6210\u3057\u306A\u3044\n -serialwarn @serial\u30BF\u30B0\u306B\u95A2\u3059\u308B\u8B66\u544A\u3092\u751F\u6210\u3059\u308B\n -tag ::
    \u5358\u4E00\u306E\u5F15\u6570\u3092\u6301\u3064\u30AB\u30B9\u30BF\u30E0\u30FB\u30BF\u30B0\u3092\u6307\u5B9A\u3059\u308B\n \ --taglet \u30BF\u30B0\u30EC\u30C3\u30C8\u306E\u5B8C\u5168\u4FEE\u98FE\u540D\u3092\u767B\u9332\u3059\u308B\n -tagletpath \u30BF\u30B0\u30EC\u30C3\u30C8\u306E\u30D1\u30B9\n -charset \u751F\u6210\u3055\u308C\u308B\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306E\u30AF\u30ED\u30B9\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3067\u306E\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\n -helpfile \u30D8\u30EB\u30D7\u30FB\u30EA\u30F3\u30AF\u306E\u30EA\u30F3\u30AF\u5148\u30D5\u30A1\u30A4\u30EB\u3092\u542B\u3081\u308B\n- linksource HTML\u5F62\u5F0F\u3067\u30BD\u30FC\u30B9\u3092\u751F\u6210\u3059\u308B\n -sourcetab \u30BD\u30FC\u30B9\u5185\u306E\u30BF\u30D6\u306E\u7A7A\u767D\u6587\u5B57\u306E\u6570\u3092\u6307\u5B9A\u3059\u308B\n -keywords HTML\u306Emeta\u30BF\u30B0\u306B\u3001\u30D1\u30C3\u30B1\u30FC\u30B8\u3001\u30AF\u30E9\u30B9\u304A\u3088\u3073\u30E1\u30F3\u30D0\u30FC\u306E\u60C5\u5831\u3092\u542B\u3081\u308B\n -stylesheetfile \u751F\u6210\u3055\u308C\u305F\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306E\u30B9\u30BF\u30A4\u30EB\u5909\u66F4\u7528\u30D5\u30A1\u30A4\u30EB\n -docencoding \u51FA\u529B\u306E\u6587\u5B57\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u3092\u6307\u5B9A\u3059\u308B - - -# L10N: do not localize these words: all none accessibility html missing reference syntax -doclet.X.usage=\u6A19\u6E96\u306Edoclet\u306B\u3088\u308A\u63D0\u4F9B\u3055\u308C\u308B\u3082\u306E:\n -Xdocrootparent doc\u30B3\u30E1\u30F3\u30C8\u5185\u306E/..\u304C\u5F8C\u306B\u7D9A\u304F@docRoot\u306E\u3059\u3079\u3066\u3092\n \u3067\u7F6E\u63DB\u3057\u307E\u3059\n -Xdoclint javadoc\u30B3\u30E1\u30F3\u30C8\u5185\u306E\u554F\u984C\u306B\u5BFE\u3059\u308B\u63A8\u5968\u3055\u308C\u308B\u30C1\u30A7\u30C3\u30AF\u3092\u6709\u52B9\u306B\u3057\u307E\u3059\n -Xdoclint:(all|none|[-]) \n javadoc\u30B3\u30E1\u30F3\u30C8\u5185\u306E\u554F\u984C\u306B\u5BFE\u3059\u308B\u7279\u5B9A\u306E\u30C1\u30A7\u30C3\u30AF\u3092\u6709\u52B9\u307E\u305F\u306F\u7121\u52B9\u306B\u3057\u307E\u3059\u3002\n \u3053\u3053\u3067\u3001\u306Faccessibility\u3001html\u3001missing\u3001reference\u307E\u305F\u306Fsyntax\u306E\u3044\u305A\u308C\u304B\u3067\u3059\u3002\n -Xdoclint/package:([-])\n \u7279\u5B9A\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u30C1\u30A7\u30C3\u30AF\u3092\u6709\u52B9\u307E\u305F\u306F\u7121\u52B9\u306B\u3057\u307E\u3059\u3002\u306F\n \u30AB\u30F3\u30DE\u3067\u533A\u5207\u3089\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u6307\u5B9A\u5B50\u306E\u30EA\u30B9\u30C8\u3067\u3059\u3002\u30D1\u30C3\u30B1\u30FC\u30B8\u6307\u5B9A\u5B50\u306F\u3001\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\n \u4FEE\u98FE\u3055\u308C\u305F\u540D\u524D\u3001\u307E\u305F\u306F\u30D1\u30C3\u30B1\u30FC\u30B8\u540D\u306E\u63A5\u982D\u8F9E\u306E\u5F8C\u306B''.*''\u3092\u6307\u5B9A(\u6307\u5B9A\u3057\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\n \u3059\u3079\u3066\u306E\u30B5\u30D6\u30D1\u30C3\u30B1\u30FC\u30B8\u306B\u62E1\u5F35)\u3057\u305F\u3082\u306E\u3067\u3059\u3002\u30D1\u30C3\u30B1\u30FC\u30B8\u6307\u5B9A\u5B50\u306E\u524D\u306B'-'\u3092\u6307\u5B9A\u3059\u308B\u3068\u3001\n \u6307\u5B9A\u3057\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u306B\u95A2\u3059\u308B\u30C1\u30A7\u30C3\u30AF\u3092\u7121\u52B9\u306B\u3067\u304D\u307E\u3059\u3002\n diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard_zh_CN.properties b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard_zh_CN.properties deleted file mode 100644 index c7ff3f3a203..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/resources/standard_zh_CN.properties +++ /dev/null @@ -1,186 +0,0 @@ -doclet.build_version=\u6807\u51C6 Doclet (\u65E7) \u7248\u672C {0} -doclet.Contents=\u76EE\u5F55 -doclet.Overview=\u6982\u89C8 -doclet.Window_Overview=\u6982\u89C8\u5217\u8868 -doclet.Window_Overview_Summary=\u6982\u89C8 -doclet.Package=\u7A0B\u5E8F\u5305 -doclet.All_Packages=\u6240\u6709\u7A0B\u5E8F\u5305 -doclet.Tree=\u6811 -doclet.Class_Hierarchy=\u7C7B\u5206\u5C42\u7ED3\u6784 -doclet.Window_Class_Hierarchy=\u7C7B\u5206\u5C42\u7ED3\u6784 -doclet.Interface_Hierarchy=\u63A5\u53E3\u5206\u5C42\u7ED3\u6784 -doclet.Enum_Hierarchy=\u679A\u4E3E\u5206\u5C42\u7ED3\u6784 -doclet.Annotation_Type_Hierarchy=\u6CE8\u91CA\u7C7B\u578B\u5206\u5C42\u7ED3\u6784 -doclet.Prev=\u4E0A\u4E00\u4E2A -doclet.Next=\u4E0B\u4E00\u4E2A -doclet.Prev_Class=\u4E0A\u4E00\u4E2A\u7C7B -doclet.Next_Class=\u4E0B\u4E00\u4E2A\u7C7B -doclet.Prev_Package=\u4E0A\u4E00\u4E2A\u7A0B\u5E8F\u5305 -doclet.Next_Package=\u4E0B\u4E00\u4E2A\u7A0B\u5E8F\u5305 -doclet.Prev_Letter=\u4E0A\u4E00\u4E2A\u5B57\u6BCD -doclet.Next_Letter=\u4E0B\u4E00\u4E2A\u5B57\u6BCD -doclet.Href_Class_Title={0}\u4E2D\u7684\u7C7B -doclet.Href_Interface_Title={0}\u4E2D\u7684\u63A5\u53E3 -doclet.Href_Annotation_Title={0}\u4E2D\u7684\u6CE8\u91CA -doclet.Href_Enum_Title={0}\u4E2D\u7684\u679A\u4E3E -doclet.Href_Type_Param_Title={0}\u4E2D\u7684\u7C7B\u578B\u53C2\u6570 -doclet.Href_Class_Or_Interface_Title={0}\u4E2D\u7684\u7C7B\u6216\u63A5\u53E3 -doclet.Summary=\u6982\u8981: -doclet.Detail=\u8BE6\u7EC6\u8D44\u6599: -doclet.navNested=\u5D4C\u5957 -doclet.navAnnotationTypeOptionalMember=\u53EF\u9009 -doclet.navAnnotationTypeRequiredMember=\u5FC5\u9700 -doclet.navAnnotationTypeMember=\u5143\u7D20 -doclet.navField=\u5B57\u6BB5 -doclet.navProperty=\u5C5E\u6027 -doclet.navEnum=\u679A\u4E3E\u5E38\u91CF -doclet.navConstructor=\u6784\u9020\u5668 -doclet.navMethod=\u65B9\u6CD5 -doclet.Index=\u7D22\u5F15 -doclet.Window_Single_Index=\u7D22\u5F15 -doclet.Window_Split_Index={0} - \u7D22\u5F15 -doclet.Help=\u5E2E\u52A9 -doclet.Skip_navigation_links=\u8DF3\u8FC7\u5BFC\u822A\u94FE\u63A5 -doclet.Navigation=\u5BFC\u822A -doclet.New_Page=NewPage -doclet.navDeprecated=\u5DF2\u8FC7\u65F6 -doclet.Window_Deprecated_List=\u5DF2\u8FC7\u65F6\u7684\u5217\u8868 -doclet.Overrides=\u8986\u76D6: -doclet.in_class=\u5728\u7C7B\u4E2D -doclet.Static_variable_in={0}\u4E2D\u7684\u9759\u6001\u53D8\u91CF -doclet.Variable_in={0}\u4E2D\u7684\u53D8\u91CF -doclet.Constructor_for={0}\u7684\u6784\u9020\u5668 -doclet.Static_method_in={0}\u4E2D\u7684\u9759\u6001\u65B9\u6CD5 -doclet.Search_tag_in={0}\u4E2D\u7684\u641C\u7D22\u6807\u8BB0 -doclet.Method_in={0}\u4E2D\u7684\u65B9\u6CD5 -doclet.package=\u7A0B\u5E8F\u5305 -doclet.MalformedURL=\u683C\u5F0F\u9519\u8BEF\u7684 URL: {0} -doclet.File_error=\u8BFB\u53D6\u6587\u4EF6\u65F6\u51FA\u9519: {0} -doclet.URL_error=\u83B7\u53D6 URL \u65F6\u51FA\u9519: {0} -doclet.see.class_or_package_not_found=\u6807\u8BB0{0}: \u627E\u4E0D\u5230\u5F15\u7528: {1} -doclet.see.class_or_package_not_accessible=\u6807\u8BB0{0}: \u65E0\u6CD5\u8BBF\u95EE\u5F15\u7528: {1} -doclet.Deprecated_API=\u5DF2\u8FC7\u65F6\u7684 API -doclet.Deprecated_Packages=\u5DF2\u8FC7\u65F6\u7A0B\u5E8F\u5305 -doclet.Deprecated_Classes=\u5DF2\u8FC7\u65F6\u7684\u7C7B -doclet.Deprecated_Enums=\u5DF2\u8FC7\u65F6\u7684\u679A\u4E3E -doclet.Deprecated_Interfaces=\u5DF2\u8FC7\u65F6\u7684\u63A5\u53E3 -doclet.Deprecated_Exceptions=\u5DF2\u8FC7\u65F6\u7684\u5F02\u5E38\u9519\u8BEF -doclet.Deprecated_Annotation_Types=\u5DF2\u8FC7\u65F6\u7684\u6CE8\u91CA\u7C7B\u578B -doclet.Deprecated_Errors=\u5DF2\u8FC7\u65F6\u7684\u9519\u8BEF -doclet.Deprecated_Fields=\u5DF2\u8FC7\u65F6\u7684\u5B57\u6BB5 -doclet.Deprecated_Constructors=\u5DF2\u8FC7\u65F6\u7684\u6784\u9020\u5668 -doclet.Deprecated_Methods=\u5DF2\u8FC7\u65F6\u7684\u65B9\u6CD5 -doclet.Deprecated_Enum_Constants=\u5DF2\u8FC7\u65F6\u7684\u679A\u4E3E\u5E38\u91CF -doclet.Deprecated_Annotation_Type_Members=\u5DF2\u8FC7\u65F6\u7684\u6CE8\u91CA\u7C7B\u578B\u5143\u7D20 -doclet.deprecated_packages=\u5DF2\u8FC7\u65F6\u7A0B\u5E8F\u5305 -doclet.deprecated_classes=\u5DF2\u8FC7\u65F6\u7684\u7C7B -doclet.deprecated_enums=\u5DF2\u8FC7\u65F6\u7684\u679A\u4E3E -doclet.deprecated_interfaces=\u5DF2\u8FC7\u65F6\u7684\u63A5\u53E3 -doclet.deprecated_exceptions=\u5DF2\u8FC7\u65F6\u7684\u5F02\u5E38\u9519\u8BEF -doclet.deprecated_annotation_types=\u5DF2\u8FC7\u65F6\u7684\u6CE8\u91CA\u7C7B\u578B -doclet.deprecated_errors=\u5DF2\u8FC7\u65F6\u7684\u9519\u8BEF -doclet.deprecated_fields=\u5DF2\u8FC7\u65F6\u7684\u5B57\u6BB5 -doclet.deprecated_constructors=\u5DF2\u8FC7\u65F6\u7684\u6784\u9020\u5668 -doclet.deprecated_methods=\u5DF2\u8FC7\u65F6\u7684\u65B9\u6CD5 -doclet.deprecated_enum_constants=\u5DF2\u8FC7\u65F6\u7684\u679A\u4E3E\u5E38\u91CF -doclet.deprecated_annotation_type_members=\u5DF2\u8FC7\u65F6\u7684\u6CE8\u91CA\u7C7B\u578B\u5143\u7D20 -doclet.Generated_Docs_Untitled=\u751F\u6210\u7684\u6587\u6863 (\u65E0\u6807\u9898) -doclet.Other_Packages=\u5176\u4ED6\u7A0B\u5E8F\u5305 -doclet.Package_Description=\u7A0B\u5E8F\u5305{0}\u7684\u8BF4\u660E -doclet.Description=\u8BF4\u660E -doclet.Specified_By=\u6307\u5B9A\u8005: -doclet.in_interface=\u5728\u63A5\u53E3\u4E2D -doclet.Subclasses=\u76F4\u63A5\u5DF2\u77E5\u5B50\u7C7B: -doclet.Subinterfaces=\u6240\u6709\u5DF2\u77E5\u5B50\u63A5\u53E3: -doclet.Implementing_Classes=\u6240\u6709\u5DF2\u77E5\u5B9E\u73B0\u7C7B: -doclet.Functional_Interface=\u51FD\u6570\u63A5\u53E3: -doclet.Functional_Interface_Message=\u8FD9\u662F\u4E00\u4E2A\u51FD\u6570\u63A5\u53E3, \u56E0\u6B64\u53EF\u7528\u4F5C lambda \u8868\u8FBE\u5F0F\u6216\u65B9\u6CD5\u5F15\u7528\u7684\u8D4B\u503C\u76EE\u6807\u3002 -doclet.also=\u5E76 -doclet.Frames=\u6846\u67B6 -doclet.No_Frames=\u65E0\u6846\u67B6 -doclet.Package_Hierarchies=\u7A0B\u5E8F\u5305\u5206\u5C42\u7ED3\u6784: -doclet.Hierarchy_For_Package=\u7A0B\u5E8F\u5305{0}\u7684\u5206\u5C42\u7ED3\u6784 -doclet.Hierarchy_For_All_Packages=\u6240\u6709\u7A0B\u5E8F\u5305\u7684\u5206\u5C42\u7ED3\u6784 -doclet.No_Script_Message=\u60A8\u7684\u6D4F\u89C8\u5668\u5DF2\u7981\u7528 JavaScript\u3002 -doclet.Description_From_Interface=\u4ECE\u63A5\u53E3\u590D\u5236\u7684\u8BF4\u660E: -doclet.Description_From_Class=\u4ECE\u7C7B\u590D\u5236\u7684\u8BF4\u660E: -doclet.No_Non_Deprecated_Classes_To_Document=\u627E\u4E0D\u5230\u53EF\u4EE5\u6587\u6863\u5316\u7684\u672A\u8FC7\u65F6\u7684\u7C7B\u3002 -doclet.Interfaces_Italic=\u63A5\u53E3 (\u659C\u4F53) -doclet.Enclosing_Class=\u5C01\u95ED\u7C7B: -doclet.Enclosing_Interface=\u5C01\u95ED\u63A5\u53E3: -doclet.Window_Source_title=\u6E90\u4EE3\u7801 -doclet.Window_Help_title=API \u5E2E\u52A9 -doclet.Help_line_1=\u6B64 API \u6587\u6863\u7684\u7EC4\u7EC7\u65B9\u5F0F -doclet.Help_line_2=\u6B64 API (\u5E94\u7528\u7A0B\u5E8F\u7F16\u7A0B\u63A5\u53E3) \u6587\u6863\u5305\u542B\u5BF9\u5E94\u4E8E\u5BFC\u822A\u680F\u4E2D\u7684\u9879\u76EE\u7684\u9875\u9762, \u5982\u4E0B\u6240\u8FF0\u3002 -doclet.Help_line_3={0} \u9875\u9762\u662F\u6B64 API \u6587\u6863\u7684\u9996\u9875, \u63D0\u4F9B\u4E86\u6240\u6709\u7A0B\u5E8F\u5305\u7684\u5217\u8868\u53CA\u5176\u6982\u8981\u3002\u6B64\u9875\u9762\u4E5F\u53EF\u80FD\u5305\u542B\u8FD9\u4E9B\u7A0B\u5E8F\u5305\u7684\u603B\u4F53\u8BF4\u660E\u3002 -doclet.Help_line_4=\u6BCF\u4E2A\u7A0B\u5E8F\u5305\u90FD\u6709\u4E00\u4E2A\u9875\u9762, \u5176\u4E2D\u5305\u542B\u5B83\u7684\u7C7B\u548C\u63A5\u53E3\u7684\u5217\u8868\u53CA\u5176\u6982\u8981\u3002\u6B64\u9875\u9762\u53EF\u4EE5\u5305\u542B\u516D\u4E2A\u7C7B\u522B: -doclet.Help_line_5=\u7C7B/\u63A5\u53E3 -doclet.Help_line_6=\u6BCF\u4E2A\u7C7B, \u63A5\u53E3, \u5D4C\u5957\u7C7B\u548C\u5D4C\u5957\u63A5\u53E3\u90FD\u6709\u5404\u81EA\u7684\u9875\u9762\u3002\u5176\u4E2D\u6BCF\u4E2A\u9875\u9762\u90FD\u7531\u4E09\u90E8\u5206 (\u7C7B/\u63A5\u53E3\u8BF4\u660E, \u6982\u8981\u8868, \u4EE5\u53CA\u8BE6\u7EC6\u7684\u6210\u5458\u8BF4\u660E) \u7EC4\u6210: -doclet.Help_line_7=\u7C7B\u7EE7\u627F\u56FE -doclet.Help_line_8=\u76F4\u63A5\u5B50\u7C7B -doclet.Help_line_9=\u6240\u6709\u5DF2\u77E5\u5B50\u63A5\u53E3 -doclet.Help_line_10=\u6240\u6709\u5DF2\u77E5\u5B9E\u73B0\u7C7B -doclet.Help_line_11=\u7C7B/\u63A5\u53E3\u58F0\u660E -doclet.Help_line_12=\u7C7B/\u63A5\u53E3\u8BF4\u660E -doclet.Help_line_13=\u6BCF\u4E2A\u6982\u8981\u6761\u76EE\u90FD\u5305\u542B\u8BE5\u9879\u76EE\u7684\u8BE6\u7EC6\u8BF4\u660E\u7684\u7B2C\u4E00\u53E5\u3002\u6982\u8981\u6761\u76EE\u6309\u5B57\u6BCD\u987A\u5E8F\u6392\u5217, \u800C\u8BE6\u7EC6\u8BF4\u660E\u5219\u6309\u5176\u5728\u6E90\u4EE3\u7801\u4E2D\u51FA\u73B0\u7684\u987A\u5E8F\u6392\u5217\u3002\u8FD9\u6837\u4FDD\u6301\u4E86\u7A0B\u5E8F\u5458\u6240\u5EFA\u7ACB\u7684\u903B\u8F91\u5206\u7EC4\u3002 -doclet.Help_line_14=\u4F7F\u7528 -doclet.Help_line_15=\u6BCF\u4E2A\u5DF2\u6587\u6863\u5316\u7684\u7A0B\u5E8F\u5305, \u7C7B\u548C\u63A5\u53E3\u90FD\u6709\u5404\u81EA\u7684\u201C\u4F7F\u7528\u201D\u9875\u9762\u3002\u6B64\u9875\u9762\u4ECB\u7ECD\u4E86\u4F7F\u7528\u7ED9\u5B9A\u7C7B\u6216\u7A0B\u5E8F\u5305\u7684\u4EFB\u4F55\u90E8\u5206\u7684\u7A0B\u5E8F\u5305, \u7C7B, \u65B9\u6CD5, \u6784\u9020\u5668\u548C\u5B57\u6BB5\u3002\u5BF9\u4E8E\u7ED9\u5B9A\u7684\u7C7B\u6216\u63A5\u53E3 A, \u5176\u201C\u4F7F\u7528\u201D\u9875\u9762\u5305\u542B A \u7684\u5B50\u7C7B, \u58F0\u660E\u4E3A A \u7684\u5B57\u6BB5, \u8FD4\u56DE A \u7684\u65B9\u6CD5, \u4EE5\u53CA\u5E26\u6709\u7C7B\u578B\u4E3A A \u7684\u53C2\u6570\u7684\u65B9\u6CD5\u548C\u6784\u9020\u5668\u3002\u8BBF\u95EE\u6B64\u9875\u9762\u7684\u65B9\u6CD5\u662F: \u9996\u5148\u8F6C\u81F3\u7A0B\u5E8F\u5305, \u7C7B\u6216\u63A5\u53E3, \u7136\u540E\u5355\u51FB\u5BFC\u822A\u680F\u4E2D\u7684 "\u4F7F\u7528" \u94FE\u63A5\u3002 -doclet.Help_line_16=\u6811 (\u7C7B\u5206\u5C42\u7ED3\u6784) -doclet.Help_line_17_with_tree_link=\u5BF9\u4E8E\u6240\u6709\u7A0B\u5E8F\u5305, \u6709\u4E00\u4E2A{0}\u9875\u9762, \u4EE5\u53CA\u6BCF\u4E2A\u7A0B\u5E8F\u5305\u7684\u5206\u5C42\u7ED3\u6784\u3002\u6BCF\u4E2A\u5206\u5C42\u7ED3\u6784\u9875\u9762\u90FD\u5305\u542B\u7C7B\u7684\u5217\u8868\u548C\u63A5\u53E3\u7684\u5217\u8868\u3002\u4ECE{1}\u5F00\u59CB, \u6309\u7EE7\u627F\u7ED3\u6784\u5BF9\u7C7B\u8FDB\u884C\u6392\u5217\u3002\u63A5\u53E3\u4E0D\u4ECE{1}\u7EE7\u627F\u3002 -doclet.Help_line_18=\u67E5\u770B\u201C\u6982\u89C8\u201D\u9875\u9762\u65F6, \u5355\u51FB "\u6811" \u5C06\u663E\u793A\u6240\u6709\u7A0B\u5E8F\u5305\u7684\u5206\u5C42\u7ED3\u6784\u3002 -doclet.Help_line_19=\u67E5\u770B\u7279\u5B9A\u7A0B\u5E8F\u5305, \u7C7B\u6216\u63A5\u53E3\u9875\u9762\u65F6, \u5355\u51FB "\u6811" \u5C06\u4EC5\u663E\u793A\u8BE5\u7A0B\u5E8F\u5305\u7684\u5206\u5C42\u7ED3\u6784\u3002 -doclet.Help_line_20_with_deprecated_api_link={0} \u9875\u9762\u5217\u51FA\u4E86\u6240\u6709\u5DF2\u8FC7\u65F6\u7684 API\u3002\u4E00\u822C\u7531\u4E8E\u8FDB\u884C\u4E86\u6539\u8FDB\u5E76\u4E14\u901A\u5E38\u63D0\u4F9B\u4E86\u66FF\u4EE3\u7684 API, \u6240\u4EE5\u5EFA\u8BAE\u4E0D\u8981\u4F7F\u7528\u5DF2\u8FC7\u65F6\u7684 API\u3002\u5728\u5C06\u6765\u7684\u5B9E\u73B0\u8FC7\u7A0B\u4E2D, \u53EF\u80FD\u4F1A\u5220\u9664\u5DF2\u8FC7\u65F6\u7684 API\u3002 -doclet.Help_line_21=\u7D22\u5F15 -doclet.Help_line_22={0} \u5305\u542B\u6309\u5B57\u6BCD\u987A\u5E8F\u6392\u5217\u7684\u6240\u6709\u7C7B, \u63A5\u53E3, \u6784\u9020\u5668, \u65B9\u6CD5\u548C\u5B57\u6BB5\u7684\u5217\u8868\u3002 -doclet.Help_line_23=\u4E0A\u4E00\u4E2A/\u4E0B\u4E00\u4E2A -doclet.Help_line_24=\u8FD9\u4E9B\u94FE\u63A5\u4F7F\u60A8\u53EF\u4EE5\u8F6C\u81F3\u4E0B\u4E00\u4E2A\u6216\u4E0A\u4E00\u4E2A\u7C7B, \u63A5\u53E3, \u7A0B\u5E8F\u5305\u6216\u76F8\u5173\u9875\u9762\u3002 -doclet.Help_line_25=\u6846\u67B6/\u65E0\u6846\u67B6 -doclet.Help_line_26=\u8FD9\u4E9B\u94FE\u63A5\u7528\u4E8E\u663E\u793A\u548C\u9690\u85CF HTML \u6846\u67B6\u3002\u6240\u6709\u9875\u9762\u5747\u5177\u6709\u6709\u6846\u67B6\u548C\u65E0\u6846\u67B6\u4E24\u79CD\u663E\u793A\u65B9\u5F0F\u3002 -doclet.Help_line_27={0}\u94FE\u63A5\u663E\u793A\u6240\u6709\u7C7B\u548C\u63A5\u53E3 (\u9664\u4E86\u975E\u9759\u6001\u5D4C\u5957\u7C7B\u578B)\u3002 -doclet.Help_line_28=\u6BCF\u4E2A\u53EF\u5E8F\u5217\u5316\u6216\u53EF\u5916\u90E8\u5316\u7684\u7C7B\u90FD\u6709\u5176\u5E8F\u5217\u5316\u5B57\u6BB5\u548C\u65B9\u6CD5\u7684\u8BF4\u660E\u3002\u6B64\u4FE1\u606F\u5BF9\u91CD\u65B0\u5B9E\u73B0\u8005\u6709\u7528, \u800C\u5BF9\u4F7F\u7528 API \u7684\u5F00\u53D1\u8005\u5219\u6CA1\u6709\u4EC0\u4E48\u7528\u5904\u3002\u5C3D\u7BA1\u5BFC\u822A\u680F\u4E2D\u6CA1\u6709\u94FE\u63A5, \u4F46\u60A8\u53EF\u4EE5\u901A\u8FC7\u4E0B\u5217\u65B9\u5F0F\u83B7\u53D6\u6B64\u4FE1\u606F: \u8F6C\u81F3\u4EFB\u4F55\u5E8F\u5217\u5316\u7C7B, \u7136\u540E\u5355\u51FB\u7C7B\u8BF4\u660E\u7684 "\u53E6\u8BF7\u53C2\u9605" \u90E8\u5206\u4E2D\u7684 "\u5E8F\u5217\u5316\u8868\u683C"\u3002 -doclet.Help_line_29={0}\u9875\u9762\u5217\u51FA\u4E86\u9759\u6001\u6700\u7EC8\u5B57\u6BB5\u53CA\u5176\u503C\u3002 -doclet.Help_line_30=\u6B64\u5E2E\u52A9\u6587\u4EF6\u9002\u7528\u4E8E\u4F7F\u7528\u6807\u51C6 doclet \u751F\u6210\u7684 API \u6587\u6863\u3002 -doclet.Help_enum_line_1=\u6BCF\u4E2A\u679A\u4E3E\u90FD\u6709\u5404\u81EA\u7684\u9875\u9762, \u5176\u4E2D\u5305\u542B\u4EE5\u4E0B\u90E8\u5206: -doclet.Help_enum_line_2=\u679A\u4E3E\u58F0\u660E -doclet.Help_enum_line_3=\u679A\u4E3E\u8BF4\u660E -doclet.Help_annotation_type_line_1=\u6BCF\u4E2A\u6CE8\u91CA\u7C7B\u578B\u90FD\u6709\u5404\u81EA\u7684\u9875\u9762, \u5176\u4E2D\u5305\u542B\u4EE5\u4E0B\u90E8\u5206: -doclet.Help_annotation_type_line_2=\u6CE8\u91CA\u7C7B\u578B\u58F0\u660E -doclet.Help_annotation_type_line_3=\u6CE8\u91CA\u7C7B\u578B\u8BF4\u660E -doclet.ClassUse_Packages.that.use.0=\u4F7F\u7528{0}\u7684\u7A0B\u5E8F\u5305 -doclet.ClassUse_Uses.of.0.in.1={1}\u4E2D{0}\u7684\u4F7F\u7528 -doclet.ClassUse_Classes.in.0.used.by.1={1}\u4F7F\u7528\u7684{0}\u4E2D\u7684\u7C7B -doclet.ClassUse_PackageAnnotation=\u6CE8\u91CA\u7C7B\u578B\u4E3A{0}\u7684\u7A0B\u5E8F\u5305 -doclet.ClassUse_Annotation=\u6CE8\u91CA\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u7C7B -doclet.ClassUse_TypeParameter=\u7C7B\u578B\u53C2\u6570\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u7C7B -doclet.ClassUse_MethodTypeParameter=\u7C7B\u578B\u53C2\u6570\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u65B9\u6CD5 -doclet.ClassUse_FieldTypeParameter=\u7C7B\u578B\u53C2\u6570\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u5B57\u6BB5 -doclet.ClassUse_FieldAnnotations=\u6CE8\u91CA\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u5B57\u6BB5 -doclet.ClassUse_MethodAnnotations=\u6CE8\u91CA\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u65B9\u6CD5 -doclet.ClassUse_MethodParameterAnnotations=\u6CE8\u91CA\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u65B9\u6CD5\u53C2\u6570 -doclet.ClassUse_MethodReturnTypeParameter=\u8FD4\u56DE\u53D8\u91CF\u7C7B\u578B\u4E3A{0}\u7684\u7C7B\u578B\u7684{1}\u4E2D\u7684\u65B9\u6CD5 -doclet.ClassUse_Subclass={1}\u4E2D{0}\u7684\u5B50\u7C7B -doclet.ClassUse_Subinterface={1}\u4E2D{0}\u7684\u5B50\u63A5\u53E3 -doclet.ClassUse_ImplementingClass=\u5B9E\u73B0{0}\u7684{1}\u4E2D\u7684\u7C7B -doclet.ClassUse_Field=\u58F0\u660E\u4E3A{0}\u7684{1}\u4E2D\u7684\u5B57\u6BB5 -doclet.ClassUse_MethodReturn=\u8FD4\u56DE{0}\u7684{1}\u4E2D\u7684\u65B9\u6CD5 -doclet.ClassUse_MethodArgs=\u53C2\u6570\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u65B9\u6CD5 -doclet.ClassUse_MethodArgsTypeParameters=\u7C7B\u578B\u53D8\u91CF\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u65B9\u6CD5\u53C2\u6570 -doclet.ClassUse_MethodThrows=\u629B\u51FA{0}\u7684{1}\u4E2D\u7684\u65B9\u6CD5 -doclet.ClassUse_ConstructorAnnotations=\u6CE8\u91CA\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u6784\u9020\u5668 -doclet.ClassUse_ConstructorParameterAnnotations=\u6CE8\u91CA\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u6784\u9020\u5668\u53C2\u6570 -doclet.ClassUse_ConstructorArgs=\u53C2\u6570\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u6784\u9020\u5668 -doclet.ClassUse_ConstructorArgsTypeParameters=\u7C7B\u578B\u53D8\u91CF\u7C7B\u578B\u4E3A{0}\u7684{1}\u4E2D\u7684\u6784\u9020\u5668\u53C2\u6570 -doclet.ClassUse_ConstructorThrows=\u629B\u51FA{0}\u7684{1}\u4E2D\u7684\u6784\u9020\u5668 -doclet.ClassUse_No.usage.of.0=\u6CA1\u6709{0}\u7684\u7528\u6CD5 -doclet.Window_ClassUse_Header={0} {1}\u7684\u4F7F\u7528 -doclet.ClassUse_Title={0}\u7684\u4F7F\u7528 -doclet.navClassUse=\u4F7F\u7528 -doclet.Error_in_packagelist=\u4F7F\u7528 -group \u9009\u9879\u65F6\u51FA\u9519: {0} {1} -doclet.Groupname_already_used=\u5728 -group \u9009\u9879\u4E2D, groupname \u5DF2\u4F7F\u7528: {0} -doclet.Same_package_name_used=\u7A0B\u5E8F\u5305\u540D\u79F0\u5F62\u5F0F\u4F7F\u7528\u4E86\u4E24\u6B21: {0} -doclet.exception_encountered=\u5904\u7406{1}\u65F6\u51FA\u73B0\u5F02\u5E38\u9519\u8BEF\n{0} -doclet.usage=\u901A\u8FC7\u6807\u51C6 doclet \u63D0\u4F9B:\n -d \u8F93\u51FA\u6587\u4EF6\u7684\u76EE\u6807\u76EE\u5F55\n -use \u521B\u5EFA\u7C7B\u548C\u7A0B\u5E8F\u5305\u7528\u6CD5\u9875\u9762\n -version \u5305\u542B @version \u6BB5\n -author \u5305\u542B @author \u6BB5\n -docfilessubdirs \u9012\u5F52\u590D\u5236\u6587\u6863\u6587\u4EF6\u5B50\u76EE\u5F55\n -splitindex \u5C06\u7D22\u5F15\u5206\u4E3A\u6BCF\u4E2A\u5B57\u6BCD\u5BF9\u5E94\u4E00\u4E2A\u6587\u4EF6\n -windowtitle \u6587\u6863\u7684\u6D4F\u89C8\u5668\u7A97\u53E3\u6807\u9898\n -doctitle \u5305\u542B\u6982\u89C8\u9875\u9762\u7684\u6807\u9898\n -header \u5305\u542B\u6BCF\u4E2A\u9875\u9762\u7684\u9875\u7709\u6587\u672C\n -html4 \u751F\u6210 HTML 4.01 \u8F93\u51FA\n -html5 \u751F\u6210 HTML 5 \u8F93\u51FA\n -footer \u5305\u542B\u6BCF\u4E2A\u9875\u9762\u7684\u9875\u811A\u6587\u672C\n -top \u5305\u542B\u6BCF\u4E2A\u9875\u9762\u7684\u9876\u90E8\u6587\u672C\n -bottom \u5305\u542B\u6BCF\u4E2A\u9875\u9762\u7684\u5E95\u90E8\u6587\u672C\n -link \u521B\u5EFA\u6307\u5411\u4F4D\u4E8E \u7684 javadoc \u8F93\u51FA\u7684\u94FE\u63A5\n -linkoffline \u5229\u7528\u4F4D\u4E8E \u7684\u7A0B\u5E8F\u5305\u5217\u8868\u94FE\u63A5\u81F3\u4F4D\u4E8E \u7684\u6587\u6863\n -excludedocfilessubdir :.. \u6392\u9664\u5177\u6709\u7ED9\u5B9A\u540D\u79F0\u7684\u6240\u6709\u6587\u6863\u6587\u4EF6\u5B50\u76EE\u5F55\u3002\n -group :.. \u5728\u6982\u89C8\u9875\u9762\u4E2D, \u5C06\u6307\u5B9A\u7684\u7A0B\u5E8F\u5305\u5206\u7EC4\n -nocomment \u4E0D\u751F\u6210\u8BF4\u660E\u548C\u6807\u8BB0, \u53EA\u751F\u6210\u58F0\u660E\u3002\n -nodeprecated \u4E0D\u5305\u542B @deprecated \u4FE1\u606F\n -noqualifier ::... \u8F93\u51FA\u4E2D\u4E0D\u5305\u62EC\u6307\u5B9A\u9650\u5B9A\u7B26\u7684\u5217\u8868\u3002\n -nosince \u4E0D\u5305\u542B @since \u4FE1\u606F\n -notimestamp \u4E0D\u5305\u542B\u9690\u85CF\u65F6\u95F4\u6233\n -nodeprecatedlist \u4E0D\u751F\u6210\u5DF2\u8FC7\u65F6\u7684\u5217\u8868\n -notree \u4E0D\u751F\u6210\u7C7B\u5206\u5C42\u7ED3\u6784\n -noindex \u4E0D\u751F\u6210\u7D22\u5F15\n -nohelp \u4E0D\u751F\u6210\u5E2E\u52A9\u94FE\u63A5\n -nonavbar \u4E0D\u751F\u6210\u5BFC\u822A\u680F\n -serialwarn \u751F\u6210\u6709\u5173 @serial \u6807\u8BB0\u7684\u8B66\u544A\n -tag ::
    \u6307\u5B9A\u5355\u4E2A\u53C2\u6570\u5B9A\u5236\u6807\u8BB0\n -taglet \u8981\u6CE8\u518C\u7684 Taglet \u7684\u5168\u9650\u5B9A\u540D\u79F0\n -tagletpath Taglet \u7684\u8DEF\u5F84\n -charset \u7528\u4E8E\u8DE8\u5E73\u53F0\u67E5\u770B\u751F\u6210\u7684\u6587\u6863\u7684\u5B57\u7B26\u96C6\u3002\n -helpfile \u5305\u542B\u5E2E\u52A9\u94FE\u63A5\u6240\u94FE\u63A5\u5230\u7684\u6587\u4EF6\n -linksource \u4EE5 HTML \u683C\u5F0F\u751F\u6210\u6E90\u6587\u4EF6\n -sourcetab \u6307\u5B9A\u6E90\u4E2D\u6BCF\u4E2A\u5236\u8868\u7B26\u5360\u636E\u7684\u7A7A\u683C\u6570\n -keywords \u4F7F\u7A0B\u5E8F\u5305, \u7C7B\u548C\u6210\u5458\u4FE1\u606F\u9644\u5E26 HTML \u5143\u6807\u8BB0\n -stylesheetfile \u7528\u4E8E\u66F4\u6539\u751F\u6210\u6587\u6863\u7684\u6837\u5F0F\u7684\u6587\u4EF6\n -docencoding \u6307\u5B9A\u8F93\u51FA\u7684\u5B57\u7B26\u7F16\u7801 - - -# L10N: do not localize these words: all none accessibility html missing reference syntax -doclet.X.usage=\u901A\u8FC7\u6807\u51C6 doclet \u63D0\u4F9B:\n -Xdocrootparent \u4F7F\u7528 \u66FF\u6362\u6587\u6863\u6CE8\u91CA\u4E2D\u51FA\u73B0\u7684\n \u6240\u6709\u5176\u540E\u8DDF\u968F /.. \u7684 @docRoot\n -Xdoclint \u4E3A javadoc \u6CE8\u91CA\u4E2D\u7684\u95EE\u9898\u542F\u7528\u5EFA\u8BAE\u7684\u68C0\u67E5\n -Xdoclint:(all|none|[-]) \n \u5BF9 javadoc \u6CE8\u91CA\u4E2D\u7684\u95EE\u9898\u542F\u7528\u6216\u7981\u7528\u7279\u5B9A\u68C0\u67E5\u3002\n \u5176\u4E2D \u662F accessibility, html, missing, reference \u6216 syntax \u4E4B\u4E00\u3002\n -Xdoclint/package:([-])\n \u5728\u7279\u5B9A\u7684\u7A0B\u5E8F\u5305\u4E2D\u542F\u7528\u6216\u7981\u7528\u68C0\u67E5\u3002 \u662F\u9017\u53F7\u5206\u9694\u7684\n \u7A0B\u5E8F\u5305\u8BF4\u660E\u7B26\u5217\u8868\u3002\u7A0B\u5E8F\u5305\u8BF4\u660E\u7B26\u662F\u7A0B\u5E8F\u5305\u7684\u9650\u5B9A\u540D\u79F0\n \u6216\u7A0B\u5E8F\u5305\u540D\u79F0\u524D\u7F00\u540E\u8DDF .*, \u5B83\u6269\u5C55\u5230\u7ED9\u5B9A\u7A0B\u5E8F\u5305\u7684\n \u6240\u6709\u5B50\u7A0B\u5E8F\u5305\u3002\u5728\u7A0B\u5E8F\u5305\u8BF4\u660E\u7B26\u524D\u9762\u52A0\u4E0A - \u53EF\u4EE5\u4E3A\n \u6307\u5B9A\u7A0B\u5E8F\u5305\u7981\u7528\u68C0\u67E5\u3002\n diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java deleted file mode 100644 index 1b357a5029f..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright (c) 2003, 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 com.sun.tools.doclets.internal.toolkit; - -import javax.tools.StandardLocation; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.builders.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * An abstract implementation of a Doclet. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - */ -@Deprecated -public abstract class AbstractDoclet { - - /** - * The global configuration information for this run. - */ - public Configuration configuration; - /* - * a handle to our utility methods - */ - protected Utils utils; - - /** - * The only doclet that may use this toolkit is {@value} - */ - private static final String TOOLKIT_DOCLET_NAME = - com.sun.tools.doclets.formats.html.HtmlDoclet.class.getName(); - - /** - * Verify that the only doclet that is using this toolkit is - * {@value #TOOLKIT_DOCLET_NAME}. - */ - private boolean isValidDoclet() { - if (!getClass().getName().equals(TOOLKIT_DOCLET_NAME)) { - configuration.message.error("doclet.Toolkit_Usage_Violation", - TOOLKIT_DOCLET_NAME); - return false; - } - return true; - } - - /** - * The method that starts the execution of the doclet. - * - * @param root the {@link RootDoc} that points to the source to document. - * @return true if the doclet executed without error. False otherwise. - */ - public boolean startDoclet(RootDoc root) { - configuration = configuration(); - configuration.root = root; - utils = configuration.utils; - if (!isValidDoclet()) { - return false; - } - try { - startGeneration(root); - } catch (Configuration.Fault f) { - root.printError(f.getMessage()); - return false; - } catch (FatalError fe) { - return false; - } catch (DocletAbortException e) { - e.printStackTrace(); - Throwable cause = e.getCause(); - if (cause != null) { - if (cause.getLocalizedMessage() != null) { - root.printError(cause.getLocalizedMessage()); - } else { - root.printError(cause.toString()); - } - } - return false; - } catch (Exception exc) { - return false; - } - return true; - } - - /** - * Indicate that this doclet supports the 1.5 language features. - * @return JAVA_1_5, indicating that the new features are supported. - */ - public static LanguageVersion languageVersion() { - return LanguageVersion.JAVA_1_5; - } - - - /** - * Create the configuration instance and returns it. - * @return the configuration of the doclet. - */ - public abstract Configuration configuration(); - - /** - * Start the generation of files. Call generate methods in the individual - * writers, which will in turn generate the documentation files. Call the - * TreeWriter generation first to ensure the Class Hierarchy is built - * first and then can be used in the later generation. - * - * @see com.sun.javadoc.RootDoc - */ - private void startGeneration(RootDoc root) throws Configuration.Fault, Exception { - if (root.classes().length == 0) { - configuration.message. - error("doclet.No_Public_Classes_To_Document"); - return; - } - configuration.setOptions(); - configuration.getDocletSpecificMsg().notice("doclet.build_version", - configuration.getDocletSpecificBuildDate()); - ClassTree classtree = new ClassTree(configuration, configuration.nodeprecated); - - generateClassFiles(root, classtree); - configuration.utils.copyDocFiles(configuration, StandardLocation.SOURCE_PATH, DocPaths.DOC_FILES); - - PackageListWriter.generate(configuration); - generatePackageFiles(classtree); - - generateOtherFiles(root, classtree); - configuration.tagletManager.printReport(); - } - - /** - * Generate additional documentation that is added to the API documentation. - * - * @param root the RootDoc of source to document. - * @param classtree the data structure representing the class tree. - */ - protected void generateOtherFiles(RootDoc root, ClassTree classtree) throws Exception { - BuilderFactory builderFactory = configuration.getBuilderFactory(); - AbstractBuilder constantsSummaryBuilder = builderFactory.getConstantsSummaryBuider(); - constantsSummaryBuilder.build(); - AbstractBuilder serializedFormBuilder = builderFactory.getSerializedFormBuilder(); - serializedFormBuilder.build(); - } - - /** - * Generate the package documentation. - * - * @param classtree the data structure representing the class tree. - */ - protected abstract void generatePackageFiles(ClassTree classtree) throws Exception; - - /** - * Generate the class documentation. - * - * @param classtree the data structure representing the class tree. - */ - protected abstract void generateClassFiles(ClassDoc[] arr, ClassTree classtree); - - /** - * Iterate through all classes and construct documentation for them. - * - * @param root the RootDoc of source to document. - * @param classtree the data structure representing the class tree. - */ - protected void generateClassFiles(RootDoc root, ClassTree classtree) { - generateClassFiles(classtree); - PackageDoc[] packages = root.specifiedPackages(); - for (PackageDoc pkg : packages) { - generateClassFiles(pkg.allClasses(), classtree); - } - } - - /** - * Generate the class files for single classes specified on the command line. - * - * @param classtree the data structure representing the class tree. - */ - private void generateClassFiles(ClassTree classtree) { - String[] packageNames = configuration.classDocCatalog.packageNames(); - for (String packageName : packageNames) { - generateClassFiles(configuration.classDocCatalog.allClasses( - packageName), classtree); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeFieldWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeFieldWriter.java deleted file mode 100644 index b16f18303a8..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeFieldWriter.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2013, 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.doclets.internal.toolkit; - -import java.io.*; -import com.sun.javadoc.*; - -/** - * The interface for writing annotation type field output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * - * @author Bhavesh Patel - * @since 1.8 - */ - -@Deprecated -public interface AnnotationTypeFieldWriter { - - /** - * Add the annotation type member tree header. - * - * @return content tree for the member tree header - */ - public Content getMemberTreeHeader(); - - /** - * Add the annotation type field details marker. - * - * @param memberDetails the content tree representing field details marker - */ - public void addAnnotationFieldDetailsMarker(Content memberDetails); - - /** - * Add the annotation type details tree header. - * - * @param classDoc the annotation type being documented - * @param memberDetailsTree the content tree representing member details - */ - public void addAnnotationDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree); - - /** - * Get the annotation type documentation tree header. - * - * @param member the annotation type being documented - * @param annotationDetailsTree the content tree representing annotation type details - * @return content tree for the annotation type documentation header - */ - public Content getAnnotationDocTreeHeader(MemberDoc member, - Content annotationDetailsTree); - - /** - * Get the annotation type details tree. - * - * @param annotationDetailsTree the content tree representing annotation type details - * @return content tree for the annotation type details - */ - public Content getAnnotationDetails(Content annotationDetailsTree); - - /** - * Get the annotation type documentation. - * - * @param annotationDocTree the content tree representing annotation type documentation - * @param isLastContent true if the content to be added is the last content - * @return content tree for the annotation type documentation - */ - public Content getAnnotationDoc(Content annotationDocTree, boolean isLastContent); - - /** - * Get the signature for the given member. - * - * @param member the member being documented - * @return content tree for the annotation type signature - */ - public Content getSignature(MemberDoc member); - - /** - * Add the deprecated output for the given member. - * - * @param member the member being documented - * @param annotationDocTree content tree to which the deprecated information will be added - */ - public void addDeprecated(MemberDoc member, Content annotationDocTree); - - /** - * Add the comments for the given member. - * - * @param member the member being documented - * @param annotationDocTree the content tree to which the comments will be added - */ - public void addComments(MemberDoc member, Content annotationDocTree); - - /** - * Add the tags for the given member. - * - * @param member the member being documented - * @param annotationDocTree the content tree to which the tags will be added - */ - public void addTags(MemberDoc member, Content annotationDocTree); - - /** - * Close the writer. - */ - public void close() throws IOException; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeOptionalMemberWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeOptionalMemberWriter.java deleted file mode 100644 index c3ae75897c4..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeOptionalMemberWriter.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2003, 2012, 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.doclets.internal.toolkit; - -import com.sun.javadoc.*; - -/** - * The interface for writing annotation type optional member output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface AnnotationTypeOptionalMemberWriter extends - AnnotationTypeRequiredMemberWriter { - - /** - * Add the the default value documentation. - * - * @param member the member being documented - * @param annotationDocTree content tree to which the default value will be added - */ - public void addDefaultValueInfo(MemberDoc member, Content annotationDocTree); -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeRequiredMemberWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeRequiredMemberWriter.java deleted file mode 100644 index c4b3e9e01c2..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeRequiredMemberWriter.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.internal.toolkit; - -import java.io.*; -import com.sun.javadoc.*; - -/** - * The interface for writing annotation type required member output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface AnnotationTypeRequiredMemberWriter { - - /** - * Add the annotation type member tree header. - * - * @return content tree for the member tree header - */ - public Content getMemberTreeHeader(); - - /** - * Add the annotation type details marker. - * - * @param memberDetails the content tree representing details marker - */ - public void addAnnotationDetailsMarker(Content memberDetails); - - /** - * Add the annotation type details tree header. - * - * @param classDoc the annotation type being documented - * @param memberDetailsTree the content tree representing member details - */ - public void addAnnotationDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree); - - /** - * Get the annotation type documentation tree header. - * - * @param member the annotation type being documented - * @param annotationDetailsTree the content tree representing annotation type details - * @return content tree for the annotation type documentation header - */ - public Content getAnnotationDocTreeHeader(MemberDoc member, - Content annotationDetailsTree); - - /** - * Get the annotation type details tree. - * - * @param annotationDetailsTree the content tree representing annotation type details - * @return content tree for the annotation type details - */ - public Content getAnnotationDetails(Content annotationDetailsTree); - - /** - * Get the annotation type documentation. - * - * @param annotationDocTree the content tree representing annotation type documentation - * @param isLastContent true if the content to be added is the last content - * @return content tree for the annotation type documentation - */ - public Content getAnnotationDoc(Content annotationDocTree, boolean isLastContent); - - /** - * Get the signature for the given member. - * - * @param member the member being documented - * @return content tree for the annotation type signature - */ - public Content getSignature(MemberDoc member); - - /** - * Add the deprecated output for the given member. - * - * @param member the member being documented - * @param annotationDocTree content tree to which the deprecated information will be added - */ - public void addDeprecated(MemberDoc member, Content annotationDocTree); - - /** - * Add the comments for the given member. - * - * @param member the member being documented - * @param annotationDocTree the content tree to which the comments will be added - */ - public void addComments(MemberDoc member, Content annotationDocTree); - - /** - * Add the tags for the given member. - * - * @param member the member being documented - * @param annotationDocTree the content tree to which the tags will be added - */ - public void addTags(MemberDoc member, Content annotationDocTree); - - /** - * Close the writer. - */ - public void close() throws IOException; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeWriter.java deleted file mode 100644 index 63454a6fd05..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeWriter.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit; - -import java.io.*; -import com.sun.javadoc.*; - -/** - * The interface for writing annotation type output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface AnnotationTypeWriter { - - /** - * Get the header of the page. - * - * @param header the header string to write - * @return a content tree for the header documentation - */ - public Content getHeader(String header); - - /** - * Get the annotation content header. - * - * @return annotation content header that needs to be added to the documentation - */ - public Content getAnnotationContentHeader(); - - /** - * Get the annotation information tree header. - * - * @return annotation information tree header that needs to be added to the documentation - */ - public Content getAnnotationInfoTreeHeader(); - - /** - * Get the annotation information. - * - * @param annotationInfoTree content tree containing the annotation information - * @return a content tree for the annotation - */ - public Content getAnnotationInfo(Content annotationInfoTree); - - /** - * Add the signature of the current annotation type. - * - * @param modifiers the modifiers for the signature - * @param annotationInfoTree the annotation content tree to which the signature will be added - */ - public void addAnnotationTypeSignature(String modifiers, Content annotationInfoTree); - - /** - * Build the annotation type description. - * - * @param annotationInfoTree content tree to which the description will be added - */ - public void addAnnotationTypeDescription(Content annotationInfoTree); - - /** - * Add the tag information for the current annotation type. - * - * @param annotationInfoTree content tree to which the tag information will be added - */ - public void addAnnotationTypeTagInfo(Content annotationInfoTree); - - /** - * If this annotation is deprecated, add the appropriate information. - * - * @param annotationInfoTree content tree to which the deprecated information will be added - */ - public void addAnnotationTypeDeprecationInfo (Content annotationInfoTree); - - /** - * Get the member tree header for the annotation type. - * - * @return a content tree for the member tree header - */ - public Content getMemberTreeHeader(); - - /** - * Add the annotation content tree to the documentation content tree. - * - * @param contentTree content tree to which the annotation content will be added - * @param annotationContentTree annotation content tree which will be added to the content tree - */ - public void addAnnotationContentTree(Content contentTree, Content annotationContentTree); - - /** - * Get the member tree. - * - * @param memberTree the content tree that will be modified and returned - * @return a content tree for the member - */ - public Content getMemberTree(Content memberTree); - - /** - * Get the member summary tree. - * - * @param memberTree the content tree that will be used to build the summary tree - * @return a content tree for the member summary - */ - public Content getMemberSummaryTree(Content memberTree); - - /** - * Get the member details tree. - * - * @param memberTree the content tree that will be used to build the details tree - * @return a content tree for the member details - */ - public Content getMemberDetailsTree(Content memberTree); - - /** - * Add the footer of the page. - * - * @param contentTree content tree to which the footer will be added - */ - public void addFooter(Content contentTree); - - /** - * Print the document. - * - * @param contentTree content tree that will be printed as a document - */ - public void printDocument(Content contentTree) throws IOException; - - /** - * Close the writer. - */ - public void close() throws IOException; - - /** - * Return the {@link AnnotationTypeDoc} being documented. - * - * @return the AnnotationTypeDoc being documented. - */ - public AnnotationTypeDoc getAnnotationTypeDoc(); -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ClassWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ClassWriter.java deleted file mode 100644 index 370ae3ddc57..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ClassWriter.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit; - -import java.io.*; -import com.sun.javadoc.*; - -/** - * The interface for writing class output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface ClassWriter { - - /** - * Get the header of the page. - * - * @param header the header string to write - * @return header content that needs to be added to the documentation - */ - public Content getHeader(String header); - - /** - * Get the class content header. - * - * @return class content header that needs to be added to the documentation - */ - public Content getClassContentHeader(); - - /** - * Add the class tree documentation. - * - * @param classContentTree class content tree to which the documentation will be added - */ - public void addClassTree(Content classContentTree); - - /** - * Get the class information tree header. - * - * @return class informaion tree header that needs to be added to the documentation - */ - public Content getClassInfoTreeHeader(); - - /** - * Add the type parameter information. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addTypeParamInfo(Content classInfoTree); - - /** - * Add all super interfaces if this is an interface. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addSuperInterfacesInfo(Content classInfoTree); - - /** - * Add all implemented interfaces if this is a class. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addImplementedInterfacesInfo(Content classInfoTree); - - /** - * Add all the classes that extend this one. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addSubClassInfo(Content classInfoTree); - - /** - * Add all the interfaces that extend this one. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addSubInterfacesInfo(Content classInfoTree); - - /** - * If this is an interface, add all classes that implement this - * interface. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addInterfaceUsageInfo(Content classInfoTree); - - /** - * If this is an functional interface, display appropriate message. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addFunctionalInterfaceInfo(Content classInfoTree); - - /** - * If this is an inner class or interface, add the enclosing class or - * interface. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addNestedClassInfo (Content classInfoTree); - - /** - * Get the class information. - * - * @param classInfoTree content tree conatining the class information - * @return a content tree for the class - */ - public Content getClassInfo(Content classInfoTree); - - /** - * If this class is deprecated, add the appropriate information. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addClassDeprecationInfo (Content classInfoTree); - - /** - * Add the signature of the current class content tree. - * - * @param modifiers the modifiers for the signature - * @param classInfoTree the class content tree to which the signature will be added - */ - public void addClassSignature(String modifiers, Content classInfoTree); - - /** - * Build the class description. - * - * @param classInfoTree content tree to which the documentation will be added - */ - public void addClassDescription(Content classInfoTree); - - /** - * Add the tag information for the current class. - * - * @param classInfoTree content tree to which the tag information will be added - */ - public void addClassTagInfo(Content classInfoTree); - - /** - * Get the member tree header for the class. - * - * @return a content tree for the member tree header - */ - public Content getMemberTreeHeader(); - - /** - * Add the class content tree. - * - * @param contentTree content tree to which the class content will be added - * @param classContentTree class content tree which will be added to the content tree - */ - public void addClassContentTree(Content contentTree, Content classContentTree); - - /** - * Add the footer of the page. - * - * @param contentTree content tree to which the footer will be added - */ - public void addFooter(Content contentTree); - - /** - * Print the document. - * - * @param contentTree content tree that will be printed as a document - */ - public void printDocument(Content contentTree) throws IOException; - - /** - * Close the writer. - */ - public void close() throws IOException; - - /** - * Return the classDoc being documented. - * - * @return the classDoc being documented. - */ - public ClassDoc getClassDoc(); - - /** - * Get the member summary tree. - * - * @param memberTree the content tree used to build the summary tree - * @return a content tree for the member summary - */ - public Content getMemberSummaryTree(Content memberTree); - - /** - * Get the member details tree. - * - * @param memberTree the content tree used to build the details tree - * @return a content tree for the member details - */ - public Content getMemberDetailsTree(Content memberTree); -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/Configuration.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/Configuration.java deleted file mode 100644 index 268a66211de..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/Configuration.java +++ /dev/null @@ -1,892 +0,0 @@ -/* - * Copyright (c) 1997, 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 com.sun.tools.doclets.internal.toolkit; - -import java.io.*; -import java.util.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import javax.tools.JavaFileManager; -import javax.tools.JavaFileManager.Location; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.builders.BuilderFactory; -import com.sun.tools.doclets.internal.toolkit.taglets.*; -import com.sun.tools.doclets.internal.toolkit.util.*; -import com.sun.tools.javac.util.StringUtils; - -/** - * Configure the output based on the options. Doclets should sub-class - * Configuration, to configure and add their own options. This class contains - * all user options which are supported by the 1.1 doclet and the standard - * doclet. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Robert Field. - * @author Atul Dambalkar. - * @author Jamie Ho - */ -@Deprecated -public abstract class Configuration { - - /** - * Exception used to report a problem during setOptions. - */ - public static class Fault extends Exception { - private static final long serialVersionUID = 0; - - Fault(String msg) { - super(msg); - } - - Fault(String msg, Exception cause) { - super(msg, cause); - } - } - - /** - * The factory for builders. - */ - protected BuilderFactory builderFactory; - - /** - * The taglet manager. - */ - public TagletManager tagletManager; - - /** - * The path to the builder XML input file. - */ - public String builderXMLPath; - - /** - * The default path to the builder XML. - */ - private static final String DEFAULT_BUILDER_XML = "resources/doclet.xml"; - - /** - * The path to Taglets - */ - public String tagletpath = ""; - - /** - * This is true if option "-serialwarn" is used. Defualt value is false to - * suppress excessive warnings about serial tag. - */ - public boolean serialwarn = false; - - /** - * The specified amount of space between tab stops. - */ - public int sourcetab; - - public String tabSpaces; - - /** - * True if we should generate browsable sources. - */ - public boolean linksource = false; - - /** - * True if command line option "-nosince" is used. Default value is - * false. - */ - public boolean nosince = false; - - /** - * True if we should recursively copy the doc-file subdirectories - */ - public boolean copydocfilesubdirs = false; - - /** - * The META charset tag used for cross-platform viewing. - */ - public String charset = ""; - - /** - * True if user wants to add member names as meta keywords. - * Set to false because meta keywords are ignored in general - * by most Internet search engines. - */ - public boolean keywords = false; - - /** - * The meta tag keywords instance. - */ - public final MetaKeywords metakeywords; - - /** - * The list of doc-file subdirectories to exclude - */ - protected Set excludedDocFileDirs; - - /** - * The list of qualifiers to exclude - */ - protected Set excludedQualifiers; - - /** - * The Root of the generated Program Structure from the Doclet API. - */ - public RootDoc root; - - /** - * An utility class for commonly used helpers - */ - public Utils utils; - /** - * Destination directory name, in which doclet will generate the entire - * documentation. Default is current directory. - */ - public String destDirName = ""; - - /** - * Destination directory name, in which doclet will copy the doc-files to. - */ - public String docFileDestDirName = ""; - - /** - * Encoding for this document. Default is default encoding for this - * platform. - */ - public String docencoding = null; - - /** - * True if user wants to suppress descriptions and tags. - */ - public boolean nocomment = false; - - /** - * Encoding for this document. Default is default encoding for this - * platform. - */ - public String encoding = null; - - /** - * Generate author specific information for all the classes if @author - * tag is used in the doc comment and if -author option is used. - * showauthor is set to true if -author option is used. - * Default is don't show author information. - */ - public boolean showauthor = false; - - /** - * Generate documentation for JavaFX getters and setters automatically - * by copying it from the appropriate property definition. - */ - public boolean javafx = false; - - /** - * Generate version specific information for the all the classes - * if @version tag is used in the doc comment and if -version option is - * used. showversion is set to true if -version option is - * used.Default is don't show version information. - */ - public boolean showversion = false; - - /** - * Don't generate deprecated API information at all, if -nodeprecated - * option is used. nodepracted is set to true if - * -nodeprecated option is used. Default is generate deprected API - * information. - */ - public boolean nodeprecated = false; - - /** - * The catalog of classes specified on the command-line - */ - public ClassDocCatalog classDocCatalog; - - /** - * Message Retriever for the doclet, to retrieve message from the resource - * file for this Configuration, which is common for 1.1 and standard - * doclets. - * - * TODO: Make this private!!! - */ - public MessageRetriever message = null; - - /** - * True if user wants to suppress time stamp in output. - * Default is false. - */ - public boolean notimestamp= false; - - /** - * The package grouping instance. - */ - public final Group group = new Group(this); - - /** - * The tracker of external package links. - */ - public final Extern extern = new Extern(this); - - /** - * Return the build date for the doclet. - */ - public abstract String getDocletSpecificBuildDate(); - - /** - * This method should be defined in all those doclets(configurations), - * which want to derive themselves from this Configuration. This method - * can be used to set its own command line options. - * - * @param options The array of option names and values. - * @throws DocletAbortException - */ - public abstract void setSpecificDocletOptions(String[][] options) throws Fault; - - /** - * Return the doclet specific {@link MessageRetriever} - * @return the doclet specific MessageRetriever. - */ - public abstract MessageRetriever getDocletSpecificMsg(); - - /** - * A sorted set of packages specified on the command-line merged with a - * collection of packages that contain the classes specified on the - * command-line. - */ - public SortedSet packages; - - public boolean exportInternalAPI; - - /** - * Constructor. Constructs the message retriever with resource file. - */ - public Configuration() { - message = - new MessageRetriever(this, - "com.sun.tools.doclets.internal.toolkit.resources.doclets"); - excludedDocFileDirs = new HashSet<>(); - excludedQualifiers = new HashSet<>(); - setTabWidth(DocletConstants.DEFAULT_TAB_STOP_LENGTH); - utils = new Utils(); - metakeywords = new MetaKeywords(this); - } - - /** - * Return the builder factory for this doclet. - * - * @return the builder factory for this doclet. - */ - public BuilderFactory getBuilderFactory() { - if (builderFactory == null) { - builderFactory = new BuilderFactory(this); - } - return builderFactory; - } - - /** - * This method should be defined in all those doclets - * which want to inherit from this Configuration. This method - * should return the number of arguments to the command line - * option (including the option name). For example, - * -notimestamp is a single-argument option, so this method would - * return 1. - * - * @param option Command line option under consideration. - * @return number of arguments to option (including the - * option name). Zero return means option not known. - * Negative value means error occurred. - */ - public int optionLength(String option) { - option = StringUtils.toLowerCase(option); - switch (option) { - case "-author": - case "-docfilessubdirs": - case "-javafx": - case "-keywords": - case "-linksource": - case "-nocomment": - case "-nodeprecated": - case "-nosince": - case "-notimestamp": - case "-quiet": - case "-xnodate": - case "-version": - case "-xdaccessinternalapi": - return 1; - case "-d": - case "-docencoding": - case "-encoding": - case "-excludedocfilessubdir": - case "-link": - case "-sourcetab": - case "-noqualifier": - case "-output": - case "-sourcepath": - case "-tag": - case "-taglet": - case "-tagletpath": - return 2; - case "-group": - case "-linkoffline": - return 3; - default: - return -1; // indicate we don't know about it - } - } - - /** - * Perform error checking on the given options. - * - * @param options the given options to check. - * @param reporter the reporter used to report errors. - */ - public abstract boolean validOptions(String options[][], - DocErrorReporter reporter); - - private void initPackages() { - packages = new TreeSet<>(Arrays.asList(root.specifiedPackages())); - for (ClassDoc aClass : root.specifiedClasses()) { - packages.add(aClass.containingPackage()); - } - } - - /** - * Set the command line options supported by this configuration. - * - * @param options the two dimensional array of options. - */ - public void setOptions(String[][] options) throws Fault { - LinkedHashSet customTagStrs = new LinkedHashSet<>(); - - // Some options, specifically -link and -linkoffline, require that - // the output directory has already been created: so do that first. - for (String[] os : options) { - String opt = StringUtils.toLowerCase(os[0]); - if (opt.equals("-d")) { - destDirName = addTrailingFileSep(os[1]); - docFileDestDirName = destDirName; - ensureOutputDirExists(); - break; - } - } - - for (String[] os : options) { - String opt = StringUtils.toLowerCase(os[0]); - if (opt.equals("-docfilessubdirs")) { - copydocfilesubdirs = true; - } else if (opt.equals("-docencoding")) { - docencoding = os[1]; - } else if (opt.equals("-encoding")) { - encoding = os[1]; - } else if (opt.equals("-author")) { - showauthor = true; - } else if (opt.equals("-javafx")) { - javafx = true; - } else if (opt.equals("-nosince")) { - nosince = true; - } else if (opt.equals("-version")) { - showversion = true; - } else if (opt.equals("-nodeprecated")) { - nodeprecated = true; - } else if (opt.equals("-excludedocfilessubdir")) { - addToSet(excludedDocFileDirs, os[1]); - } else if (opt.equals("-noqualifier")) { - addToSet(excludedQualifiers, os[1]); - } else if (opt.equals("-linksource")) { - linksource = true; - } else if (opt.equals("-sourcetab")) { - linksource = true; - try { - setTabWidth(Integer.parseInt(os[1])); - } catch (NumberFormatException e) { - //Set to -1 so that warning will be printed - //to indicate what is valid argument. - sourcetab = -1; - } - if (sourcetab <= 0) { - message.warning("doclet.sourcetab_warning"); - setTabWidth(DocletConstants.DEFAULT_TAB_STOP_LENGTH); - } - } else if (opt.equals("-notimestamp")) { - notimestamp = true; - } else if (opt.equals("-nocomment")) { - nocomment = true; - } else if (opt.equals("-tag") || opt.equals("-taglet")) { - customTagStrs.add(os); - } else if (opt.equals("-tagletpath")) { - tagletpath = os[1]; - } else if (opt.equals("-keywords")) { - keywords = true; - } else if (opt.equals("-serialwarn")) { - serialwarn = true; - } else if (opt.equals("-group")) { - group.checkPackageGroups(os[1], os[2]); - } else if (opt.equals("-link")) { - String url = os[1]; - extern.link(url, url, root, false); - } else if (opt.equals("-linkoffline")) { - String url = os[1]; - String pkglisturl = os[2]; - extern.link(url, pkglisturl, root, true); - } else if (opt.equals("-xdaccessinternalapi")) { - exportInternalAPI = true; - } - } - if (docencoding == null) { - docencoding = encoding; - } - - classDocCatalog = new ClassDocCatalog(root.specifiedClasses(), this); - initTagletManager(customTagStrs); - } - - /** - * Set the command line options supported by this configuration. - * - * @throws DocletAbortException - */ - public void setOptions() throws Fault { - initPackages(); - setOptions(root.options()); - setSpecificDocletOptions(root.options()); - } - - private void ensureOutputDirExists() throws Fault { - DocFile destDir = DocFile.createFileForDirectory(this, destDirName); - if (!destDir.exists()) { - //Create the output directory (in case it doesn't exist yet) - root.printNotice(getText("doclet.dest_dir_create", destDirName)); - destDir.mkdirs(); - } else if (!destDir.isDirectory()) { - throw new Fault(getText( - "doclet.destination_directory_not_directory_0", - destDir.getPath())); - } else if (!destDir.canWrite()) { - throw new Fault(getText( - "doclet.destination_directory_not_writable_0", - destDir.getPath())); - } - } - - - /** - * Initialize the taglet manager. The strings to initialize the simple custom tags should - * be in the following format: "[tag name]:[location str]:[heading]". - * @param customTagStrs the set two dimensional arrays of strings. These arrays contain - * either -tag or -taglet arguments. - */ - private void initTagletManager(Set customTagStrs) { - tagletManager = (tagletManager == null) - ? new TagletManager(nosince, showversion, showauthor, javafx, exportInternalAPI, message) - : tagletManager; - for (String[] args : customTagStrs) { - if (args[0].equals("-taglet")) { - tagletManager.addCustomTag(args[1], getFileManager(), tagletpath); - continue; - } - String[] tokens = tokenize(args[1], - TagletManager.SIMPLE_TAGLET_OPT_SEPARATOR, 3); - if (tokens.length == 1) { - String tagName = args[1]; - if (tagletManager.isKnownCustomTag(tagName)) { - //reorder a standard tag - tagletManager.addNewSimpleCustomTag(tagName, null, ""); - } else { - //Create a simple tag with the heading that has the same name as the tag. - StringBuilder heading = new StringBuilder(tagName + ":"); - heading.setCharAt(0, Character.toUpperCase(tagName.charAt(0))); - tagletManager.addNewSimpleCustomTag(tagName, heading.toString(), "a"); - } - } else if (tokens.length == 2) { - //Add simple taglet without heading, probably to excluding it in the output. - tagletManager.addNewSimpleCustomTag(tokens[0], tokens[1], ""); - } else if (tokens.length >= 3) { - tagletManager.addNewSimpleCustomTag(tokens[0], tokens[2], tokens[1]); - } else { - message.error("doclet.Error_invalid_custom_tag_argument", args[1]); - } - } - } - - /** - * Given a string, return an array of tokens. The separator can be escaped - * with the '\' character. The '\' character may also be escaped by the - * '\' character. - * - * @param s the string to tokenize. - * @param separator the separator char. - * @param maxTokens the maximum number of tokens returned. If the - * max is reached, the remaining part of s is appended - * to the end of the last token. - * - * @return an array of tokens. - */ - private String[] tokenize(String s, char separator, int maxTokens) { - List tokens = new ArrayList<>(); - StringBuilder token = new StringBuilder (); - boolean prevIsEscapeChar = false; - for (int i = 0; i < s.length(); i += Character.charCount(i)) { - int currentChar = s.codePointAt(i); - if (prevIsEscapeChar) { - // Case 1: escaped character - token.appendCodePoint(currentChar); - prevIsEscapeChar = false; - } else if (currentChar == separator && tokens.size() < maxTokens-1) { - // Case 2: separator - tokens.add(token.toString()); - token = new StringBuilder(); - } else if (currentChar == '\\') { - // Case 3: escape character - prevIsEscapeChar = true; - } else { - // Case 4: regular character - token.appendCodePoint(currentChar); - } - } - if (token.length() > 0) { - tokens.add(token.toString()); - } - return tokens.toArray(new String[] {}); - } - - private void addToSet(Set s, String str){ - StringTokenizer st = new StringTokenizer(str, ":"); - String current; - while(st.hasMoreTokens()){ - current = st.nextToken(); - s.add(current); - } - } - - /** - * Add a trailing file separator, if not found. Remove superfluous - * file separators if any. Preserve the front double file separator for - * UNC paths. - * - * @param path Path under consideration. - * @return String Properly constructed path string. - */ - public static String addTrailingFileSep(String path) { - String fs = System.getProperty("file.separator"); - String dblfs = fs + fs; - int indexDblfs; - while ((indexDblfs = path.indexOf(dblfs, 1)) >= 0) { - path = path.substring(0, indexDblfs) + - path.substring(indexDblfs + fs.length()); - } - if (!path.endsWith(fs)) - path += fs; - return path; - } - - /** - * This checks for the validity of the options used by the user. - * This works exactly like - * {@link com.sun.javadoc.Doclet#validOptions(String[][], - * DocErrorReporter)}. This will validate the options which are shared - * by our doclets. For example, this method will flag an error using - * the DocErrorReporter if user has used "-nohelp" and "-helpfile" option - * together. - * - * @param options options used on the command line. - * @param reporter used to report errors. - * @return true if all the options are valid. - */ - public boolean generalValidOptions(String options[][], - DocErrorReporter reporter) { - boolean docencodingfound = false; - String encoding = ""; - for (int oi = 0; oi < options.length; oi++) { - String[] os = options[oi]; - String opt = StringUtils.toLowerCase(os[0]); - if (opt.equals("-docencoding")) { - docencodingfound = true; - if (!checkOutputFileEncoding(os[1], reporter)) { - return false; - } - } else if (opt.equals("-encoding")) { - encoding = os[1]; - } - } - if (!docencodingfound && encoding.length() > 0) { - if (!checkOutputFileEncoding(encoding, reporter)) { - return false; - } - } - return true; - } - - /** - * Check the validity of the given Source or Output File encoding on this - * platform. - * - * @param docencoding output file encoding. - * @param reporter used to report errors. - */ - private boolean checkOutputFileEncoding(String docencoding, - DocErrorReporter reporter) { - OutputStream ost= new ByteArrayOutputStream(); - OutputStreamWriter osw = null; - try { - osw = new OutputStreamWriter(ost, docencoding); - } catch (UnsupportedEncodingException exc) { - reporter.printError(getText("doclet.Encoding_not_supported", - docencoding)); - return false; - } finally { - try { - if (osw != null) { - osw.close(); - } - } catch (IOException exc) { - } - } - return true; - } - - /** - * Return true if the given doc-file subdirectory should be excluded and - * false otherwise. - * @param docfilesubdir the doc-files subdirectory to check. - */ - public boolean shouldExcludeDocFileDir(String docfilesubdir){ - if (excludedDocFileDirs.contains(docfilesubdir)) { - return true; - } else { - return false; - } - } - - /** - * Return true if the given qualifier should be excluded and false otherwise. - * @param qualifier the qualifier to check. - */ - public boolean shouldExcludeQualifier(String qualifier){ - if (excludedQualifiers.contains("all") || - excludedQualifiers.contains(qualifier) || - excludedQualifiers.contains(qualifier + ".*")) { - return true; - } else { - int index = -1; - while ((index = qualifier.indexOf(".", index + 1)) != -1) { - if (excludedQualifiers.contains(qualifier.substring(0, index + 1) + "*")) { - return true; - } - } - return false; - } - } - - /** - * Return the qualified name of the ClassDoc if it's qualifier is not excluded. Otherwise, - * return the unqualified ClassDoc name. - * @param cd the ClassDoc to check. - */ - public String getClassName(ClassDoc cd) { - PackageDoc pd = cd.containingPackage(); - if (pd != null && shouldExcludeQualifier(cd.containingPackage().name())) { - return cd.name(); - } else { - return cd.qualifiedName(); - } - } - - public String getText(String key) { - // Check the doclet specific properties file. - MessageRetriever docletMessage = getDocletSpecificMsg(); - if (docletMessage.containsKey(key)) { - return docletMessage.getText(key); - } - // Check the shared properties file. - return message.getText(key); - } - - public String getText(String key, String a1) { - // Check the doclet specific properties file. - MessageRetriever docletMessage = getDocletSpecificMsg(); - if (docletMessage.containsKey(key)) { - return docletMessage.getText(key, a1); - } - // Check the shared properties file. - return message.getText(key, a1); - } - - public String getText(String key, String a1, String a2) { - // Check the doclet specific properties file. - MessageRetriever docletMessage = getDocletSpecificMsg(); - if (docletMessage.containsKey(key)) { - return docletMessage.getText(key, a1, a2); - } - // Check the shared properties file. - return message.getText(key, a1, a2); - } - - public String getText(String key, String a1, String a2, String a3) { - // Check the doclet specific properties file. - MessageRetriever docletMessage = getDocletSpecificMsg(); - if (docletMessage.containsKey(key)) { - return docletMessage.getText(key, a1, a2, a3); - } - // Check the shared properties file. - return message.getText(key, a1, a2, a3); - } - - public abstract Content newContent(); - - /** - * Get the configuration string as a content. - * - * @param key the key to look for in the configuration file - * @return a content tree for the text - */ - public Content getResource(String key) { - Content c = newContent(); - c.addContent(getText(key)); - return c; - } - - /** - * Get the configuration string as a content. - * - * @param key the key to look for in the configuration file - * @param o string or content argument added to configuration text - * @return a content tree for the text - */ - public Content getResource(String key, Object o) { - return getResource(key, o, null, null); - } - - /** - * Get the configuration string as a content. - * - * @param key the key to look for in the configuration file - * @param o string or content argument added to configuration text - * @return a content tree for the text - */ - public Content getResource(String key, Object o1, Object o2) { - return getResource(key, o1, o2, null); - } - - /** - * Get the configuration string as a content. - * - * @param key the key to look for in the configuration file - * @param o1 string or content argument added to configuration text - * @param o2 string or content argument added to configuration text - * @return a content tree for the text - */ - public Content getResource(String key, Object o0, Object o1, Object o2) { - Content c = newContent(); - Pattern p = Pattern.compile("\\{([012])\\}"); - String text = getText(key); - Matcher m = p.matcher(text); - int start = 0; - while (m.find(start)) { - c.addContent(text.substring(start, m.start())); - - Object o = null; - switch (m.group(1).charAt(0)) { - case '0': o = o0; break; - case '1': o = o1; break; - case '2': o = o2; break; - } - - if (o == null) { - c.addContent("{" + m.group(1) + "}"); - } else if (o instanceof String) { - c.addContent((String) o); - } else if (o instanceof Content) { - c.addContent((Content) o); - } - - start = m.end(); - } - - c.addContent(text.substring(start)); - return c; - } - - - /** - * Return true if the ClassDoc element is getting documented, depending upon - * -nodeprecated option and the deprecation information. Return true if - * -nodeprecated is not used. Return false if -nodeprecated is used and if - * either ClassDoc element is deprecated or the containing package is deprecated. - * - * @param cd the ClassDoc for which the page generation is checked - */ - public boolean isGeneratedDoc(ClassDoc cd) { - if (!nodeprecated) { - return true; - } - return !(utils.isDeprecated(cd) || utils.isDeprecated(cd.containingPackage())); - } - - /** - * Return the doclet specific instance of a writer factory. - * @return the {@link WriterFactory} for the doclet. - */ - public abstract WriterFactory getWriterFactory(); - - /** - * Return the input stream to the builder XML. - * - * @return the input steam to the builder XML. - * @throws FileNotFoundException when the given XML file cannot be found. - */ - public InputStream getBuilderXML() throws IOException { - return builderXMLPath == null ? - Configuration.class.getResourceAsStream(DEFAULT_BUILDER_XML) : - DocFile.createFileForInput(this, builderXMLPath).openInputStream(); - } - - /** - * Return the Locale for this document. - */ - public abstract Locale getLocale(); - - /** - * Return the current file manager. - */ - public abstract JavaFileManager getFileManager(); - - /** - * Return the comparator that will be used to sort member documentation. - * To no do any sorting, return null. - * - * @return the {@link java.util.Comparator} used to sort members. - */ - public abstract Comparator getMemberComparator(); - - private void setTabWidth(int n) { - sourcetab = n; - tabSpaces = String.format("%" + n + "s", ""); - } - - public abstract boolean showMessage(SourcePosition pos, String key); - - public abstract Location getLocationForPackage(PackageDoc pd); -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ConstantsSummaryWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ConstantsSummaryWriter.java deleted file mode 100644 index f5e19d175b2..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ConstantsSummaryWriter.java +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; - -/** - * The interface for writing constants summary output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface ConstantsSummaryWriter { - - /** - * Close the writer. - */ - public abstract void close() throws IOException; - - /** - * Get the header for the constant summary documentation. - * - * @return header that needs to be added to the documentation - */ - public abstract Content getHeader(); - - /** - * Get the header for the constant content list. - * - * @return content header that needs to be added to the documentation - */ - public abstract Content getContentsHeader(); - - /** - * Adds the given package name link to the constant content list tree. - * - * @param pkg the {@link PackageDoc} to index. - * @param parsedPackageName the parsed package name. We only Write the - * first 2 directory levels of the package - * name. For example, java.lang.ref would be - * indexed as java.lang.*. - * @param WriteedPackageHeaders the set of package headers that have already - * been indexed. We don't want to index - * something more than once. - * @param contentListTree the content tree to which the link will be added - */ - public abstract void addLinkToPackageContent(PackageDoc pkg, String parsedPackageName, - Set WriteedPackageHeaders, Content contentListTree); - - /** - * Add the content list to the documentation tree. - * - * @param contentTree the tree to which the contents list will be added - * @param contentListTree the content that will be added to the list - */ - public abstract void addContentsList(Content contentTree, Content contentListTree); - - /** - * Get the constant summaries for the document. - * - * @return constant summaries header to be added to the documentation tree - */ - public abstract Content getConstantSummaries(); - - /** - * Adds the given package name. - * - * @param parsedPackageName the parsed package name. We only Write the - * first 2 directory levels of the package - * name. For example, java.lang.ref would be - * indexed as java.lang.*. - * @param summariesTree the summaries documentation tree - * @param first true if the first package is listed - * be written - */ - public abstract void addPackageName(String parsedPackageName, Content summariesTree, boolean first); - - /** - * Get the class summary header for the constants summary. - * - * @return the header content for the class constants summary - */ - public abstract Content getClassConstantHeader(); - - /** - * Add the content list to the documentation summaries tree. - * - * @param summariesTree the tree to which the class constants list will be added - * @param classConstantTree the class constant tree that will be added to the list - */ - public abstract void addClassConstant(Content summariesTree, Content classConstantTree); - - /** - * Adds the constant member table to the documentation tree. - * - * @param cd the class whose constants are being documented. - * @param fields the constants being documented. - * @param classConstantTree the documentation tree to which theconstant member - * table content will be added - */ - public abstract void addConstantMembers(ClassDoc cd, List fields, - Content classConstantTree); - - /** - * Add the summaries list to the content tree. - * - * @param contentTree the tree to which the summaries list will be added - * @param summariesTree the summaries content tree that will be added to the list - */ - public abstract void addConstantSummaries(Content contentTree, Content summariesTree); - - /** - * Adds the footer for the summary documentation. - * - * @param contentTree content tree to which the footer will be added - */ - public abstract void addFooter(Content contentTree); - - /** - * Print the constants summary document. - * - * @param contentTree content tree which should be printed - */ - public abstract void printDocument(Content contentTree) throws IOException; - -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ConstructorWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ConstructorWriter.java deleted file mode 100644 index 648168a30fd..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/ConstructorWriter.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (c) 2003, 2012, 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.doclets.internal.toolkit; - -import java.io.*; -import com.sun.javadoc.*; - -/** - * The interface for writing constructor output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface ConstructorWriter { - - /** - * Get the constructor details tree header. - * - * @param classDoc the class being documented - * @param memberDetailsTree the content tree representing member details - * @return content tree for the constructor details header - */ - public Content getConstructorDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree); - - /** - * Get the constructor documentation tree header. - * - * @param constructor the constructor being documented - * @param constructorDetailsTree the content tree representing constructor details - * @return content tree for the constructor documentation header - */ - public Content getConstructorDocTreeHeader(ConstructorDoc constructor, - Content constructorDetailsTree); - - /** - * Get the signature for the given constructor. - * - * @param constructor the constructor being documented - * @return content tree for the constructor signature - */ - public Content getSignature(ConstructorDoc constructor); - - /** - * Add the deprecated output for the given constructor. - * - * @param constructor the constructor being documented - * @param constructorDocTree content tree to which the deprecated information will be added - */ - public void addDeprecated(ConstructorDoc constructor, Content constructorDocTree); - - /** - * Add the comments for the given constructor. - * - * @param constructor the constructor being documented - * @param constructorDocTree the content tree to which the comments will be added - */ - public void addComments(ConstructorDoc constructor, Content constructorDocTree); - - /** - * Add the tags for the given constructor. - * - * @param constructor the constructor being documented - * @param constructorDocTree the content tree to which the tags will be added - */ - public void addTags(ConstructorDoc constructor, Content constructorDocTree); - - /** - * Get the constructor details tree. - * - * @param memberDetailsTree the content tree representing member details - * @return content tree for the constructor details - */ - public Content getConstructorDetails(Content memberDetailsTree); - - /** - * Get the constructor documentation. - * - * @param constructorDocTree the content tree representing constructor documentation - * @param isLastContent true if the content to be added is the last content - * @return content tree for the constructor documentation - */ - public Content getConstructorDoc(Content constructorDocTree, boolean isLastContent); - - /** - * Let the writer know whether a non public constructor was found. - * - * @param foundNonPubConstructor true if we found a non public constructor. - */ - public void setFoundNonPubConstructor(boolean foundNonPubConstructor); - - /** - * Close the writer. - */ - public void close() throws IOException; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/Content.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/Content.java deleted file mode 100644 index 5a44a9a4c07..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/Content.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2010, 2013, 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.doclets.internal.toolkit; - -import java.io.IOException; -import java.io.StringWriter; -import java.io.Writer; -import java.util.Objects; - -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * A class to create content for javadoc output pages. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - */ -@Deprecated -public abstract class Content { - - /** - * Returns a string representation of the content. - * - * @return string representation of the content - */ - @Override - public String toString() { - StringWriter out = new StringWriter(); - try { - write(out, true); - } catch (IOException e) { - // cannot happen from StringWriter - throw new DocletAbortException(e); - } - return out.toString(); - } - - /** - * Adds content to the existing content. - * - * @param content content that needs to be added - */ - public abstract void addContent(Content content); - - /** - * Adds a string content to the existing content. - * - * @param stringContent the string content to be added - */ - public abstract void addContent(String stringContent); - - /** - * Writes content to a writer. - * - */ - public abstract boolean write(Writer writer, boolean atNewline) throws IOException ; - - /** - * Returns true if the content is empty. - * - * @return true if no content to be displayed else return false - */ - public abstract boolean isEmpty(); - - /** - * Returns true if the content is valid. - * - * @return true if the content is valid else return false - */ - public boolean isValid() { - return !isEmpty(); - } - - /** - * Return the number of characters of plain text content in this object - * (optional operation.) - * @return the number of characters of plain text content in this - */ - public int charCount() { - return 0; - } - - /** - * Checks for null values. - * - * @param t reference type to check for null values - * @return the reference type if not null or else throws a null pointer exception - */ - protected static T nullCheck(T t) { - return Objects.requireNonNull(t); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/EnumConstantWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/EnumConstantWriter.java deleted file mode 100644 index 76aa4f31a95..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/EnumConstantWriter.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (c) 2003, 2012, 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.doclets.internal.toolkit; - -import java.io.*; -import com.sun.javadoc.*; - -/** - * The interface for writing enum constant output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface EnumConstantWriter { - - /** - * Get the enum constants details tree header. - * - * @param classDoc the class being documented - * @param memberDetailsTree the content tree representing member details - * @return content tree for the enum constants details header - */ - public Content getEnumConstantsDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree); - - /** - * Get the enum constants documentation tree header. - * - * @param enumConstant the enum constant being documented - * @param enumConstantsDetailsTree the content tree representing enum constant details - * @return content tree for the enum constant documentation header - */ - public Content getEnumConstantsTreeHeader(FieldDoc enumConstant, - Content enumConstantsDetailsTree); - - /** - * Get the signature for the given enum constant. - * - * @param enumConstant the enum constant being documented - * @return content tree for the enum constant signature - */ - public Content getSignature(FieldDoc enumConstant); - - /** - * Add the deprecated output for the given enum constant. - * - * @param enumConstant the enum constant being documented - * @param enumConstantsTree content tree to which the deprecated information will be added - */ - public void addDeprecated(FieldDoc enumConstant, Content enumConstantsTree); - - /** - * Add the comments for the given enum constant. - * - * @param enumConstant the enum constant being documented - * @param enumConstantsTree the content tree to which the comments will be added - */ - public void addComments(FieldDoc enumConstant, Content enumConstantsTree); - - /** - * Add the tags for the given enum constant. - * - * @param enumConstant the enum constant being documented - * @param enumConstantsTree the content tree to which the tags will be added - */ - public void addTags(FieldDoc enumConstant, Content enumConstantsTree); - - /** - * Get the enum constants details tree. - * - * @param memberDetailsTree the content tree representing member details - * @return content tree for the enum constant details - */ - public Content getEnumConstantsDetails(Content memberDetailsTree); - - /** - * Get the enum constants documentation. - * - * @param enumConstantsTree the content tree representing enum constants documentation - * @param isLastContent true if the content to be added is the last content - * @return content tree for the enum constants documentation - */ - public Content getEnumConstants(Content enumConstantsTree, boolean isLastContent); - - /** - * Close the writer. - */ - public void close() throws IOException; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/FieldWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/FieldWriter.java deleted file mode 100644 index 406d097003b..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/FieldWriter.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (c) 2003, 2012, 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.doclets.internal.toolkit; - -import java.io.*; -import com.sun.javadoc.*; - -/** - * The interface for writing field output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface FieldWriter { - - /** - * Get the field details tree header. - * - * @param classDoc the class being documented - * @param memberDetailsTree the content tree representing member details - * @return content tree for the field details header - */ - public Content getFieldDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree); - - /** - * Get the field documentation tree header. - * - * @param field the constructor being documented - * @param fieldDetailsTree the content tree representing field details - * @return content tree for the field documentation header - */ - public Content getFieldDocTreeHeader(FieldDoc field, - Content fieldDetailsTree); - - /** - * Get the signature for the given field. - * - * @param field the field being documented - * @return content tree for the field signature - */ - public Content getSignature(FieldDoc field); - - /** - * Add the deprecated output for the given field. - * - * @param field the field being documented - * @param fieldDocTree content tree to which the deprecated information will be added - */ - public void addDeprecated(FieldDoc field, Content fieldDocTree); - - /** - * Add the comments for the given field. - * - * @param field the field being documented - * @param fieldDocTree the content tree to which the comments will be added - */ - public void addComments(FieldDoc field, Content fieldDocTree); - - /** - * Add the tags for the given field. - * - * @param field the field being documented - * @param fieldDocTree the content tree to which the tags will be added - */ - public void addTags(FieldDoc field, Content fieldDocTree); - - /** - * Get the field details tree. - * - * @param memberDetailsTree the content tree representing member details - * @return content tree for the field details - */ - public Content getFieldDetails(Content memberDetailsTree); - - /** - * Get the field documentation. - * - * @param fieldDocTree the content tree representing field documentation - * @param isLastContent true if the content to be added is the last content - * @return content tree for the field documentation - */ - public Content getFieldDoc(Content fieldDocTree, boolean isLastContent); - - /** - * Close the writer. - */ - public void close() throws IOException; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/MemberSummaryWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/MemberSummaryWriter.java deleted file mode 100644 index f18d1106e99..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/MemberSummaryWriter.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit; - -import java.io.*; -import java.util.*; -import com.sun.javadoc.*; - -/** - * The interface for writing member summary output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface MemberSummaryWriter { - - /** - * Get the member summary header for the given class. - * - * @param classDoc the class the summary belongs to - * @param memberSummaryTree the content tree to which the member summary will be added - * @return a content tree for the member summary header - */ - public Content getMemberSummaryHeader(ClassDoc classDoc, - Content memberSummaryTree); - - /** - * Get the summary table for the given class. - * - * @param classDoc the class the summary table belongs to - * @param tableContents list of contents that will be added to the summary table - * @return a content tree for the member summary table - */ - public Content getSummaryTableTree(ClassDoc classDoc, - List tableContents); - - /** - * Add the member summary for the given class and member. - * - * @param classDoc the class the summary belongs to - * @param member the member that is documented - * @param firstSentenceTags the tags for the sentence being documented - * @param tableContents list of contents to which the summary will be added - * @param counter the counter for determining id and style for the table row - */ - public void addMemberSummary(ClassDoc classDoc, ProgramElementDoc member, - Tag[] firstSentenceTags, List tableContents, int counter); - - /** - * Get the inherited member summary header for the given class. - * - * @param classDoc the class the summary belongs to - * @return a content tree containing the inherited summary header - */ - public Content getInheritedSummaryHeader(ClassDoc classDoc); - - /** - * Add the inherited member summary for the given class and member. - * - * @param classDoc the class the inherited member belongs to - * @param member the inherited member that is being documented - * @param isFirst true if this is the first member in the list - * @param isLast true if this is the last member in the list - * @param linksTree the content tree to which the links will be added - */ - public void addInheritedMemberSummary(ClassDoc classDoc, - ProgramElementDoc member, boolean isFirst, boolean isLast, - Content linksTree); - - /** - * Get inherited summary links. - * - * @return a content tree containing the inherited summary links - */ - public Content getInheritedSummaryLinksTree(); - - /** - * Add the member tree to the member summary tree. - * - * @param memberSummaryTree the content tree representing the member summary - * @param memberTree the content tree representing the member - */ - public void addMemberTree(Content memberSummaryTree, Content memberTree); - - /** - * Get the member tree. - * - * @param memberTree the content tree representing the member - * @return a content tree for the member - */ - public Content getMemberTree(Content memberTree); - - /** - * Close the writer. - */ - public void close() throws IOException; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/MethodWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/MethodWriter.java deleted file mode 100644 index b57a791c016..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/MethodWriter.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright (c) 2003, 2012, 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.doclets.internal.toolkit; - -import java.io.*; -import com.sun.javadoc.*; - -/** - * The interface for writing method output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface MethodWriter { - - /** - * Get the method details tree header. - * - * @param classDoc the class being documented - * @param memberDetailsTree the content tree representing member details - * @return content tree for the method details header - */ - public Content getMethodDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree); - - /** - * Get the method documentation tree header. - * - * @param method the method being documented - * @param methodDetailsTree the content tree representing method details - * @return content tree for the method documentation header - */ - public Content getMethodDocTreeHeader(MethodDoc method, - Content methodDetailsTree); - - /** - * Get the signature for the given method. - * - * @param method the method being documented - * @return content tree for the method signature - */ - public Content getSignature(MethodDoc method); - - /** - * Add the deprecated output for the given method. - * - * @param method the method being documented - * @param methodDocTree content tree to which the deprecated information will be added - */ - public void addDeprecated(MethodDoc method, Content methodDocTree); - - /** - * Add the comments for the given method. - * - * @param holder the holder type (not erasure) of the method - * @param method the method being documented - * @param methodDocTree the content tree to which the comments will be added - */ - public void addComments(Type holder, MethodDoc method, Content methodDocTree); - - /** - * Add the tags for the given method. - * - * @param method the method being documented - * @param methodDocTree the content tree to which the tags will be added - */ - public void addTags(MethodDoc method, Content methodDocTree); - - /** - * Get the method details tree. - * - * @param methodDetailsTree the content tree representing method details - * @return content tree for the method details - */ - public Content getMethodDetails(Content methodDetailsTree); - - /** - * Get the method documentation. - * - * @param methodDocTree the content tree representing method documentation - * @param isLastContent true if the content to be added is the last content - * @return content tree for the method documentation - */ - public Content getMethodDoc(Content methodDocTree, boolean isLastContent); - - /** - * Close the writer. - */ - public void close() throws IOException; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/NestedClassWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/NestedClassWriter.java deleted file mode 100644 index ca9fa5c1b3f..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/NestedClassWriter.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2003, 2012, 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.doclets.internal.toolkit; - -import java.io.*; - -/** - * The interface for writing class output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface NestedClassWriter { - - /** - * Close the writer. - */ - public void close() throws IOException; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/PackageSummaryWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/PackageSummaryWriter.java deleted file mode 100644 index 050e4b65770..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/PackageSummaryWriter.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit; - -import java.io.*; - -import com.sun.javadoc.*; - -/** - * The interface for writing package summary output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ - -@Deprecated -public interface PackageSummaryWriter { - - /** - * Get the header for the summary. - * - * @param heading Package name. - * @return the header to be added to the content tree - */ - public abstract Content getPackageHeader(String heading); - - /** - * Get the header for the package content. - * - * @return a content tree for the package content header - */ - public abstract Content getContentHeader(); - - /** - * Get the header for the package summary. - * - * @return a content tree with the package summary header - */ - public abstract Content getSummaryHeader(); - - /** - * Adds the table of classes to the documentation tree. - * - * @param classes the array of classes to document. - * @param label the label for this table. - * @param tableSummary the summary string for the table - * @param tableHeader array of table headers - * @param summaryContentTree the content tree to which the summaries will be added - */ - public abstract void addClassesSummary(ClassDoc[] classes, String label, - String tableSummary, String[] tableHeader, Content summaryContentTree); - - /** - * Adds the package description from the "packages.html" file to the documentation - * tree. - * - * @param packageContentTree the content tree to which the package description - * will be added - */ - public abstract void addPackageDescription(Content packageContentTree); - - /** - * Adds the tag information from the "packages.html" file to the documentation - * tree. - * - * @param packageContentTree the content tree to which the package tags will - * be added - */ - public abstract void addPackageTags(Content packageContentTree); - - /** - * Adds the tag information from the "packages.html" or "package-info.java" file to the - * documentation tree. - * - * @param contentTree the content tree to which the package content tree will be added - * @param packageContentTree the package content tree to be added - */ - public abstract void addPackageContent(Content contentTree, Content packageContentTree); - - /** - * Adds the footer to the documentation tree. - * - * @param contentTree the tree to which the footer will be added - */ - public abstract void addPackageFooter(Content contentTree); - - /** - * Print the package summary document. - * - * @param contentTree the content tree that will be printed - */ - public abstract void printDocument(Content contentTree) throws IOException; - - /** - * Close the writer. - */ - public abstract void close() throws IOException; - -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/PropertyWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/PropertyWriter.java deleted file mode 100644 index 40d7085f825..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/PropertyWriter.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.internal.toolkit; - -import java.io.*; -import com.sun.javadoc.*; - -/** - * The interface for writing property output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.7 - */ - -@Deprecated -public interface PropertyWriter { - - /** - * Get the property details tree header. - * - * @param classDoc the class being documented - * @param memberDetailsTree the content tree representing member details - * @return content tree for the property details header - */ - public Content getPropertyDetailsTreeHeader(ClassDoc classDoc, - Content memberDetailsTree); - - /** - * Get the property documentation tree header. - * - * @param property the property being documented - * @param propertyDetailsTree the content tree representing property details - * @return content tree for the property documentation header - */ - public Content getPropertyDocTreeHeader(MethodDoc property, - Content propertyDetailsTree); - - /** - * Get the signature for the given property. - * - * @param property the property being documented - * @return content tree for the property signature - */ - public Content getSignature(MethodDoc property); - - /** - * Add the deprecated output for the given property. - * - * @param property the property being documented - * @param propertyDocTree content tree to which the deprecated information will be added - */ - public void addDeprecated(MethodDoc property, Content propertyDocTree); - - /** - * Add the comments for the given property. - * - * @param property the property being documented - * @param propertyDocTree the content tree to which the comments will be added - */ - public void addComments(MethodDoc property, Content propertyDocTree); - - /** - * Add the tags for the given property. - * - * @param property the property being documented - * @param propertyDocTree the content tree to which the tags will be added - */ - public void addTags(MethodDoc property, Content propertyDocTree); - - /** - * Get the property details tree. - * - * @param memberDetailsTree the content tree representing member details - * @return content tree for the property details - */ - public Content getPropertyDetails(Content memberDetailsTree); - - /** - * Get the property documentation. - * - * @param propertyDocTree the content tree representing property documentation - * @param isLastContent true if the content to be added is the last content - * @return content tree for the property documentation - */ - public Content getPropertyDoc(Content propertyDocTree, boolean isLastContent); - - /** - * Close the writer. - */ - public void close() throws IOException; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/SerializedFormWriter.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/SerializedFormWriter.java deleted file mode 100644 index a652c99ebb3..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/SerializedFormWriter.java +++ /dev/null @@ -1,323 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit; - -import java.io.*; - -import com.sun.javadoc.*; - -/** - * The interface for writing serialized form output. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @since 1.5 - */ - -@Deprecated -public interface SerializedFormWriter { - - /** - * Get the header. - * - * @param header the header to write. - * @return the header content tree - */ - public Content getHeader(String header); - - /** - * Get the serialized form summaries header. - * - * @return the serialized form summary header tree - */ - public Content getSerializedSummariesHeader(); - - /** - * Get the package serialized form header. - * - * @return the package serialized form header tree - */ - public Content getPackageSerializedHeader(); - - /** - * Add the serialized tree per package to the serialized summaries tree. - * - * @param serializedSummariesTree the serialized tree to which the package serialized tree will be added - * @param packageSerializedTree the serialized tree per package that needs to be added - */ - public void addPackageSerializedTree(Content serializedSummariesTree, Content packageSerializedTree); - - /** - * Get the given package header. - * - * @param packageName the package header to write - * @return a content tree for the package header - */ - public Content getPackageHeader(String packageName); - - /** - * Get the serialized class header. - * - * @return a content tree for the serialized class header - */ - public Content getClassSerializedHeader(); - - /** - * Get the heading for the serializable class. - * - * @param classDoc the class being processed - * @return a content tree for the class heading - */ - public Content getClassHeader(ClassDoc classDoc); - - /** - * Get the serial UID info header. - * - * @return a content tree for the serial uid info header - */ - public Content getSerialUIDInfoHeader(); - - /** - * Adds the serial UID info. - * - * @param header the header that will show up before the UID. - * @param serialUID the serial UID to print. - * @param serialUidTree the serial UID tree to which the content will be added. - */ - public void addSerialUIDInfo(String header, String serialUID, - Content serialUidTree); - - /** - * Get the class serialize content header. - * - * @return a content tree for the class serialize content header - */ - public Content getClassContentHeader(); - - /** - * Return an instance of a SerialFieldWriter. - * - * @return an instance of a SerialFieldWriter. - */ - public SerialFieldWriter getSerialFieldWriter(ClassDoc classDoc); - - /** - * Return an instance of a SerialMethodWriter. - * - * @return an instance of a SerialMethodWriter. - */ - public SerialMethodWriter getSerialMethodWriter(ClassDoc classDoc); - - /** - * Close the writer. - */ - public abstract void close() throws IOException; - - /** - * Get the serialized content. - * - * @param serializedTreeContent content for serialized data - * @return a content tree for serialized information - */ - public Content getSerializedContent(Content serializedTreeContent); - - /** - * Add the footer. - * - * @param serializedTree the serialized tree to be added - */ - public void addFooter(Content serializedTree); - - /** - * Print the serialized form document. - * - * @param serializedTree the content tree that will be printed - */ - public abstract void printDocument(Content serializedTree) throws IOException; - - /** - * Write the serialized form for a given field. - */ - public interface SerialFieldWriter { - - /** - * Get the serializable field header. - * - * @return serialized fields header content tree - */ - public Content getSerializableFieldsHeader(); - - /** - * Get the field content header. - * - * @param isLastContent true if this is the last content to be documented - * @return fields header content tree - */ - public Content getFieldsContentHeader(boolean isLastContent); - - /** - * Get the fields content. - * - * @param heading the heading to write. - * @param contentTree content tree to which the heading will be added - * @return serializable fields content tree - */ - public Content getSerializableFields(String heading, Content contentTree); - - /** - * Adds the deprecated information for this member. - * - * @param field the field to document. - * @param contentTree content tree to which the deprecated information will be added - */ - public void addMemberDeprecatedInfo(FieldDoc field, Content contentTree); - - /** - * Adds the description text for this member. - * - * @param field the field to document. - * @param contentTree content tree to which the member description will be added - */ - public void addMemberDescription(FieldDoc field, Content contentTree); - - /** - * Adds the description text for this member represented by the tag. - * - * @param serialFieldTag the field to document (represented by tag). - * @param contentTree content tree to which the member description will be added - */ - public void addMemberDescription(SerialFieldTag serialFieldTag, Content contentTree); - - /** - * Adds the tag information for this member. - * - * @param field the field to document. - * @param contentTree content tree to which the member tags will be added - */ - public void addMemberTags(FieldDoc field, Content contentTree); - - /** - * Adds the member header. - * - * @param fieldType the type of the field. - * @param fieldTypeStr the type of the field in string format. We will - * print this out if we can't link to the type. - * @param fieldDimensions the dimensions of the field. - * @param fieldName the name of the field. - * @param contentTree content tree to which the member header will be added - */ - public void addMemberHeader(ClassDoc fieldType, String fieldTypeStr, - String fieldDimensions, String fieldName, Content contentTree); - - /** - * Check to see if overview details should be printed. If - * nocomment option set or if there is no text to be printed - * for deprecation info, inline comment or tags, - * do not print overview details. - * - * @param field the field to check overview details for. - * @return true if overview details need to be printed - */ - public boolean shouldPrintOverview(FieldDoc field); - } - - /** - * Write the serialized form for a given field. - */ - public interface SerialMethodWriter { - - /** - * Get the serializable method header. - * - * @return serializable methods content tree - */ - public Content getSerializableMethodsHeader(); - - /** - * Get the method content header. - * - * @param isLastContent true if this is the last content to be documented - * @return methods content tree - */ - public Content getMethodsContentHeader(boolean isLastContent); - - /** - * Write the given heading. - * - * @param heading the heading to write - * @param serializableMethodTree content tree which will be added - * @return serializable methods content tree - */ - public Content getSerializableMethods(String heading, Content serializableMethodTree); - - /** - * Write a warning that no serializable methods exist. - * - * @param msg the warning to print - * @return no customization message tree - */ - public Content getNoCustomizationMsg(String msg); - - /** - * Adds the header. - * - * @param member the member to write the header for - * @param methodsContentTree content tree to which the header will be added - */ - public void addMemberHeader(MethodDoc member, Content methodsContentTree); - - /** - * Adds the deprecated information for this member. - * - * @param member the member to write the deprecated information for - * @param methodsContentTree content tree to which the deprecated - * information will be added - */ - public void addDeprecatedMemberInfo(MethodDoc member, Content methodsContentTree); - - /** - * Adds the description for this member. - * - * @param member the member to write the information for - * @param methodsContentTree content tree to which the member - * information will be added - */ - public void addMemberDescription(MethodDoc member, Content methodsContentTree); - - /** - * Adds the tag information for this member. - * - * @param member the member to write the tags information for - * @param methodsContentTree content tree to which the tags - * information will be added - */ - public void addMemberTags(MethodDoc member, Content methodsContentTree); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/WriterFactory.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/WriterFactory.java deleted file mode 100644 index c24b8bf2238..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/WriterFactory.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright (c) 2003, 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 com.sun.tools.doclets.internal.toolkit; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * The interface for a factory creates writers. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @since 1.4 - */ - -@Deprecated -public interface WriterFactory { - - /** - * Return the writer for the constant summary. - * - * @return the writer for the constant summary. Return null if this - * writer is not supported by the doclet. - */ - public abstract ConstantsSummaryWriter getConstantsSummaryWriter() - throws Exception; - - /** - * Return the writer for the package summary. - * - * @param packageDoc the package being documented. - * @param prevPkg the previous package that was documented. - * @param nextPkg the next package being documented. - * @return the writer for the package summary. Return null if this - * writer is not supported by the doclet. - */ - public abstract PackageSummaryWriter getPackageSummaryWriter(PackageDoc - packageDoc, PackageDoc prevPkg, PackageDoc nextPkg) - throws Exception; - - /** - * Return the writer for a class. - * - * @param classDoc the class being documented. - * @param prevClass the previous class that was documented. - * @param nextClass the next class being documented. - * @param classTree the class tree. - * @return the writer for the class. Return null if this - * writer is not supported by the doclet. - */ - public abstract ClassWriter getClassWriter(ClassDoc classDoc, - ClassDoc prevClass, ClassDoc nextClass, ClassTree classTree) - throws Exception; - - /** - * Return the writer for an annotation type. - * - * @param annotationType the type being documented. - * @param prevType the previous type that was documented. - * @param nextType the next type being documented. - * @return the writer for the annotation type. Return null if this - * writer is not supported by the doclet. - */ - public abstract AnnotationTypeWriter getAnnotationTypeWriter( - AnnotationTypeDoc annotationType, Type prevType, Type nextType) - throws Exception; - - /** - * Return the method writer for a given class. - * - * @param classWriter the writer for the class being documented. - * @return the method writer for the give class. Return null if this - * writer is not supported by the doclet. - */ - public abstract MethodWriter getMethodWriter(ClassWriter classWriter) - throws Exception; - - /** - * Return the annotation type field writer for a given annotation type. - * - * @param annotationTypeWriter the writer for the annotation type - * being documented. - * @return the member writer for the given annotation type. Return null if - * this writer is not supported by the doclet. - */ - public abstract AnnotationTypeFieldWriter - getAnnotationTypeFieldWriter( - AnnotationTypeWriter annotationTypeWriter) throws Exception; - - /** - * Return the annotation type optional member writer for a given annotation - * type. - * - * @param annotationTypeWriter the writer for the annotation type - * being documented. - * @return the member writer for the given annotation type. Return null if - * this writer is not supported by the doclet. - */ - public abstract AnnotationTypeOptionalMemberWriter - getAnnotationTypeOptionalMemberWriter( - AnnotationTypeWriter annotationTypeWriter) throws Exception; - - /** - * Return the annotation type required member writer for a given annotation type. - * - * @param annotationTypeWriter the writer for the annotation type - * being documented. - * @return the member writer for the given annotation type. Return null if - * this writer is not supported by the doclet. - */ - public abstract AnnotationTypeRequiredMemberWriter - getAnnotationTypeRequiredMemberWriter( - AnnotationTypeWriter annotationTypeWriter) throws Exception; - - /** - * Return the enum constant writer for a given class. - * - * @param classWriter the writer for the class being documented. - * @return the enum constant writer for the give class. Return null if this - * writer is not supported by the doclet. - */ - public abstract EnumConstantWriter getEnumConstantWriter( - ClassWriter classWriter) throws Exception; - - /** - * Return the field writer for a given class. - * - * @param classWriter the writer for the class being documented. - * @return the field writer for the give class. Return null if this - * writer is not supported by the doclet. - */ - public abstract FieldWriter getFieldWriter(ClassWriter classWriter) - throws Exception; - - /** - * Return the property writer for a given class. - * - * @param classWriter the writer for the class being documented. - * @return the property writer for the give class. Return null if this - * writer is not supported by the doclet. - */ - public abstract PropertyWriter getPropertyWriter(ClassWriter classWriter) - throws Exception; - - /** - * Return the constructor writer for a given class. - * - * @param classWriter the writer for the class being documented. - * @return the method writer for the give class. Return null if this - * writer is not supported by the doclet. - */ - public abstract ConstructorWriter getConstructorWriter( - ClassWriter classWriter) - throws Exception; - - /** - * Return the specified member summary writer for a given class. - * - * @param classWriter the writer for the class being documented. - * @param memberType the {@link VisibleMemberMap} member type indicating - * the type of member summary that should be returned. - * @return the summary writer for the give class. Return null if this - * writer is not supported by the doclet. - * - * @see VisibleMemberMap - * @throws IllegalArgumentException if memberType is unknown. - */ - public abstract MemberSummaryWriter getMemberSummaryWriter( - ClassWriter classWriter, int memberType) - throws Exception; - - /** - * Return the specified member summary writer for a given annotation type. - * - * @param annotationTypeWriter the writer for the annotation type being - * documented. - * @param memberType the {@link VisibleMemberMap} member type indicating - * the type of member summary that should be returned. - * @return the summary writer for the give class. Return null if this - * writer is not supported by the doclet. - * - * @see VisibleMemberMap - * @throws IllegalArgumentException if memberType is unknown. - */ - public abstract MemberSummaryWriter getMemberSummaryWriter( - AnnotationTypeWriter annotationTypeWriter, int memberType) - throws Exception; - - /** - * Return the writer for the serialized form. - * - * @return the writer for the serialized form. - */ - public SerializedFormWriter getSerializedFormWriter() throws Exception; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractBuilder.java deleted file mode 100644 index 3e8e4cbf8f5..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractBuilder.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright (c) 2003, 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 com.sun.tools.doclets.internal.toolkit.builders; - -import java.io.*; -import java.lang.reflect.*; -import java.util.*; - -import com.sun.javadoc.PackageDoc; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * The superclass for all builders. A builder is a class that provides - * the structure and content of API documentation. A builder is completely - * doclet independent which means that any doclet can use builders to - * construct documentation, as long as it impelements the appropriate - * writer interfaces. For example, if a doclet wanted to use - * {@link ConstantsSummaryBuilder} to build a constant summary, all it has to - * do is implement the ConstantsSummaryWriter interface and pass it to the - * builder using a WriterFactory. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @since 1.5 - */ - -@Deprecated -public abstract class AbstractBuilder { - public static class Context { - /** - * The configuration used in this run of the doclet. - */ - final Configuration configuration; - - /** - * Keep track of which packages we have seen for - * efficiency purposes. We don't want to copy the - * doc files multiple times for a single package. - */ - final Set containingPackagesSeen; - - /** - * Shared parser for the builder XML file - */ - final LayoutParser layoutParser; - - Context(Configuration configuration, - Set containingPackagesSeen, - LayoutParser layoutParser) { - this.configuration = configuration; - this.containingPackagesSeen = containingPackagesSeen; - this.layoutParser = layoutParser; - } - } - - /** - * The configuration used in this run of the doclet. - */ - protected final Configuration configuration; - - protected final Utils utils; - - /** - * Keep track of which packages we have seen for - * efficiency purposes. We don't want to copy the - * doc files multiple times for a single package. - */ - protected final Set containingPackagesSeen; - - protected final LayoutParser layoutParser; - - /** - * True if we want to print debug output. - */ - protected static final boolean DEBUG = false; - - /** - * Construct a Builder. - * @param configuration the configuration used in this run - * of the doclet. - */ - public AbstractBuilder(Context c) { - this.configuration = c.configuration; - this.utils = configuration.utils; - this.containingPackagesSeen = c.containingPackagesSeen; - this.layoutParser = c.layoutParser; - } - - /** - * Return the name of this builder. - * - * @return the name of the builder. - */ - public abstract String getName(); - - /** - * Build the documentation. - * - * @throws IOException if there is a problem writing the output - */ - public abstract void build() throws IOException; - - /** - * Build the documentation, as specified by the given XML element. - * - * @param node the XML element that specifies which component to document. - * @param contentTree content tree to which the documentation will be added - */ - protected void build(XMLNode node, Content contentTree) { - String component = node.name; - try { - invokeMethod("build" + component, - new Class[]{XMLNode.class, Content.class}, - new Object[]{node, contentTree}); - } catch (NoSuchMethodException e) { - e.printStackTrace(); - configuration.root.printError("Unknown element: " + component); - throw new DocletAbortException(e); - } catch (InvocationTargetException e) { - Throwable cause = e.getCause(); - if (cause instanceof FatalError) { - throw (FatalError) cause; - } else if (cause instanceof DocletAbortException) { - throw (DocletAbortException) cause; - } else { - throw new DocletAbortException(cause); - } - } catch (Exception e) { - e.printStackTrace(); - configuration.root.printError("Exception " + - e.getClass().getName() + - " thrown while processing element: " + component); - throw new DocletAbortException(e); - } - } - - /** - * Build the documentation, as specified by the children of the given XML element. - * - * @param node the XML element that specifies which components to document. - * @param contentTree content tree to which the documentation will be added - */ - protected void buildChildren(XMLNode node, Content contentTree) { - for (XMLNode child : node.children) - build(child, contentTree); - } - - /** - * Given the name and parameters, invoke the method in the builder. This - * method is required to invoke the appropriate build method as instructed - * by the builder XML file. - * - * @param methodName the name of the method that we would like to invoke. - * @param paramClasses the types for each parameter. - * @param params the parameters of the method. - */ - protected void invokeMethod(String methodName, Class[] paramClasses, - Object[] params) - throws Exception { - if (DEBUG) { - configuration.root.printError("DEBUG: " + this.getClass().getName() + "." + methodName); - } - Method method = this.getClass().getMethod(methodName, paramClasses); - method.invoke(this, params); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractMemberBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractMemberBuilder.java deleted file mode 100644 index 4acea626fe4..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractMemberBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.internal.toolkit.builders; - -import java.util.Set; - -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * The superclass for all member builders. Member builders are only executed - * within Class Builders. They essentially build sub-components. For example, - * method documentation is a sub-component of class documentation. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @since 1.5 - */ -@Deprecated -public abstract class AbstractMemberBuilder extends AbstractBuilder { - - /** - * Construct a SubBuilder. - * @param configuration the configuration used in this run - * of the doclet. - */ - public AbstractMemberBuilder(Context context) { - super(context); - } - - /** - * This method is not supported by sub-builders. - * - * @throws DocletAbortException this method will always throw a - * DocletAbortException because it is not supported. - */ - public void build() throws DocletAbortException { - //You may not call the build method in a subbuilder. - throw new DocletAbortException("not supported"); - } - - - /** - * Build the sub component if there is anything to document. - * - * @param node the XML element that specifies which components to document. - * @param contentTree content tree to which the documentation will be added - */ - @Override - public void build(XMLNode node, Content contentTree) { - if (hasMembersToDocument()) { - super.build(node, contentTree); - } - } - - /** - * Return true if this subbuilder has anything to document. - * - * @return true if this subbuilder has anything to document. - */ - public abstract boolean hasMembersToDocument(); -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeBuilder.java deleted file mode 100644 index 5d9a4df74d3..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit.builders; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; - -/** - * Builds the summary for a given annotation type. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class AnnotationTypeBuilder extends AbstractBuilder { - - /** - * The root element of the annotation type XML is {@value}. - */ - public static final String ROOT = "AnnotationTypeDoc"; - - /** - * The annotation type being documented. - */ - private final AnnotationTypeDoc annotationTypeDoc; - - /** - * The doclet specific writer. - */ - private final AnnotationTypeWriter writer; - - /** - * The content tree for the annotation documentation. - */ - private Content contentTree; - - /** - * Construct a new ClassBuilder. - * - * @param context the build context. - * @param annotationTypeDoc the class being documented. - * @param writer the doclet specific writer. - */ - private AnnotationTypeBuilder(Context context, - AnnotationTypeDoc annotationTypeDoc, - AnnotationTypeWriter writer) { - super(context); - this.annotationTypeDoc = annotationTypeDoc; - this.writer = writer; - } - - /** - * Construct a new ClassBuilder. - * - * @param context the build context. - * @param annotationTypeDoc the class being documented. - * @param writer the doclet specific writer. - */ - public static AnnotationTypeBuilder getInstance(Context context, - AnnotationTypeDoc annotationTypeDoc, - AnnotationTypeWriter writer) - throws Exception { - return new AnnotationTypeBuilder(context, annotationTypeDoc, writer); - } - - /** - * {@inheritDoc} - */ - public void build() throws IOException { - build(layoutParser.parseXML(ROOT), contentTree); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return ROOT; - } - - /** - * Build the annotation type documentation. - * - * @param node the XML element that specifies which components to document - * @param contentTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeDoc(XMLNode node, Content contentTree) throws Exception { - contentTree = writer.getHeader(configuration.getText("doclet.AnnotationType") + - " " + annotationTypeDoc.name()); - Content annotationContentTree = writer.getAnnotationContentHeader(); - buildChildren(node, annotationContentTree); - writer.addAnnotationContentTree(contentTree, annotationContentTree); - writer.addFooter(contentTree); - writer.printDocument(contentTree); - writer.close(); - copyDocFiles(); - } - - /** - * Copy the doc files for the current ClassDoc if necessary. - */ - private void copyDocFiles() { - PackageDoc containingPackage = annotationTypeDoc.containingPackage(); - if((configuration.packages == null || - !configuration.packages.contains(containingPackage) && - !containingPackagesSeen.contains(containingPackage))){ - //Only copy doc files dir if the containing package is not - //documented AND if we have not documented a class from the same - //package already. Otherwise, we are making duplicate copies. - utils.copyDocFiles(configuration, containingPackage); - containingPackagesSeen.add(containingPackage); - } - } - - /** - * Build the annotation information tree documentation. - * - * @param node the XML element that specifies which components to document - * @param annotationContentTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeInfo(XMLNode node, Content annotationContentTree) { - Content annotationInfoTree = writer.getAnnotationInfoTreeHeader(); - buildChildren(node, annotationInfoTree); - annotationContentTree.addContent(writer.getAnnotationInfo(annotationInfoTree)); - } - - /** - * If this annotation is deprecated, build the appropriate information. - * - * @param node the XML element that specifies which components to document - * @param annotationInfoTree the content tree to which the documentation will be added - */ - public void buildDeprecationInfo (XMLNode node, Content annotationInfoTree) { - writer.addAnnotationTypeDeprecationInfo(annotationInfoTree); - } - - /** - * Build the signature of the current annotation type. - * - * @param node the XML element that specifies which components to document - * @param annotationInfoTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeSignature(XMLNode node, Content annotationInfoTree) { - StringBuilder modifiers = new StringBuilder( - annotationTypeDoc.modifiers() + " "); - writer.addAnnotationTypeSignature(utils.replaceText( - modifiers.toString(), "interface", "@interface"), annotationInfoTree); - } - - /** - * Build the annotation type description. - * - * @param node the XML element that specifies which components to document - * @param annotationInfoTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeDescription(XMLNode node, Content annotationInfoTree) { - writer.addAnnotationTypeDescription(annotationInfoTree); - } - - /** - * Build the tag information for the current annotation type. - * - * @param node the XML element that specifies which components to document - * @param annotationInfoTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeTagInfo(XMLNode node, Content annotationInfoTree) { - writer.addAnnotationTypeTagInfo(annotationInfoTree); - } - - /** - * Build the member summary contents of the page. - * - * @param node the XML element that specifies which components to document - * @param annotationContentTree the content tree to which the documentation will be added - */ - public void buildMemberSummary(XMLNode node, Content annotationContentTree) - throws Exception { - Content memberSummaryTree = writer.getMemberTreeHeader(); - configuration.getBuilderFactory(). - getMemberSummaryBuilder(writer).buildChildren(node, memberSummaryTree); - annotationContentTree.addContent(writer.getMemberSummaryTree(memberSummaryTree)); - } - - /** - * Build the member details contents of the page. - * - * @param node the XML element that specifies which components to document - * @param annotationContentTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeMemberDetails(XMLNode node, Content annotationContentTree) { - Content memberDetailsTree = writer.getMemberTreeHeader(); - buildChildren(node, memberDetailsTree); - if (memberDetailsTree.isValid()) { - annotationContentTree.addContent(writer.getMemberDetailsTree(memberDetailsTree)); - } - } - - /** - * Build the annotation type field documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeFieldDetails(XMLNode node, Content memberDetailsTree) - throws Exception { - configuration.getBuilderFactory(). - getAnnotationTypeFieldsBuilder(writer).buildChildren(node, memberDetailsTree); - } - - /** - * Build the annotation type optional member documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeOptionalMemberDetails(XMLNode node, Content memberDetailsTree) - throws Exception { - configuration.getBuilderFactory(). - getAnnotationTypeOptionalMemberBuilder(writer).buildChildren(node, memberDetailsTree); - } - - /** - * Build the annotation type required member documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeRequiredMemberDetails(XMLNode node, Content memberDetailsTree) - throws Exception { - configuration.getBuilderFactory(). - getAnnotationTypeRequiredMemberBuilder(writer).buildChildren(node, memberDetailsTree); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeFieldBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeFieldBuilder.java deleted file mode 100644 index 0e52d101611..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeFieldBuilder.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright (c) 2013, 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.doclets.internal.toolkit.builders; - -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Builds documentation for annotation type fields. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Bhavesh Patel - * @since 1.8 - */ -@Deprecated -public class AnnotationTypeFieldBuilder extends AbstractMemberBuilder { - - /** - * The annotation type whose members are being documented. - */ - protected ClassDoc classDoc; - - /** - * The visible members for the given class. - */ - protected VisibleMemberMap visibleMemberMap; - - /** - * The writer to output the member documentation. - */ - protected AnnotationTypeFieldWriter writer; - - /** - * The list of members being documented. - */ - protected List members; - - /** - * The index of the current member that is being documented at this point - * in time. - */ - protected int currentMemberIndex; - - /** - * Construct a new AnnotationTypeFieldsBuilder. - * - * @param context the build context. - * @param classDoc the class whose members are being documented. - * @param writer the doclet specific writer. - * @param memberType the type of member that is being documented. - */ - protected AnnotationTypeFieldBuilder(Context context, - ClassDoc classDoc, - AnnotationTypeFieldWriter writer, - int memberType) { - super(context); - this.classDoc = classDoc; - this.writer = writer; - this.visibleMemberMap = new VisibleMemberMap(classDoc, memberType, - configuration); - this.members = new ArrayList<>(this.visibleMemberMap.getMembersFor(classDoc)); - if (configuration.getMemberComparator() != null) { - Collections.sort(this.members, configuration.getMemberComparator()); - } - } - - - /** - * Construct a new AnnotationTypeFieldBuilder. - * - * @param context the build context. - * @param classDoc the class whose members are being documented. - * @param writer the doclet specific writer. - */ - public static AnnotationTypeFieldBuilder getInstance( - Context context, ClassDoc classDoc, - AnnotationTypeFieldWriter writer) { - return new AnnotationTypeFieldBuilder(context, classDoc, - writer, VisibleMemberMap.ANNOTATION_TYPE_FIELDS); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return "AnnotationTypeFieldDetails"; - } - - /** - * Returns a list of members that will be documented for the given class. - * This information can be used for doclet specific documentation - * generation. - * - * @param classDoc the {@link ClassDoc} we want to check. - * @return a list of members that will be documented. - */ - public List members(ClassDoc classDoc) { - return visibleMemberMap.getMembersFor(classDoc); - } - - /** - * Returns the visible member map for the members of this class. - * - * @return the visible member map for the members of this class. - */ - public VisibleMemberMap getVisibleMemberMap() { - return visibleMemberMap; - } - - /** - * summaryOrder.size() - */ - public boolean hasMembersToDocument() { - return members.size() > 0; - } - - /** - * Build the annotation type field documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeField(XMLNode node, Content memberDetailsTree) { - buildAnnotationTypeMember(node, memberDetailsTree); - } - - /** - * Build the member documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeMember(XMLNode node, Content memberDetailsTree) { - if (writer == null) { - return; - } - int size = members.size(); - if (size > 0) { - writer.addAnnotationFieldDetailsMarker(memberDetailsTree); - for (currentMemberIndex = 0; currentMemberIndex < size; - currentMemberIndex++) { - Content detailsTree = writer.getMemberTreeHeader(); - writer.addAnnotationDetailsTreeHeader(classDoc, detailsTree); - Content annotationDocTree = writer.getAnnotationDocTreeHeader( - (MemberDoc) members.get(currentMemberIndex), - detailsTree); - buildChildren(node, annotationDocTree); - detailsTree.addContent(writer.getAnnotationDoc( - annotationDocTree, (currentMemberIndex == size - 1))); - memberDetailsTree.addContent(writer.getAnnotationDetails(detailsTree)); - } - } - } - - /** - * Build the signature. - * - * @param node the XML element that specifies which components to document - * @param annotationDocTree the content tree to which the documentation will be added - */ - public void buildSignature(XMLNode node, Content annotationDocTree) { - annotationDocTree.addContent( - writer.getSignature((MemberDoc) members.get(currentMemberIndex))); - } - - /** - * Build the deprecation information. - * - * @param node the XML element that specifies which components to document - * @param annotationDocTree the content tree to which the documentation will be added - */ - public void buildDeprecationInfo(XMLNode node, Content annotationDocTree) { - writer.addDeprecated((MemberDoc) members.get(currentMemberIndex), - annotationDocTree); - } - - /** - * Build the comments for the member. Do nothing if - * {@link Configuration#nocomment} is set to true. - * - * @param node the XML element that specifies which components to document - * @param annotationDocTree the content tree to which the documentation will be added - */ - public void buildMemberComments(XMLNode node, Content annotationDocTree) { - if(! configuration.nocomment){ - writer.addComments((MemberDoc) members.get(currentMemberIndex), - annotationDocTree); - } - } - - /** - * Build the tag information. - * - * @param node the XML element that specifies which components to document - * @param annotationDocTree the content tree to which the documentation will be added - */ - public void buildTagInfo(XMLNode node, Content annotationDocTree) { - writer.addTags((MemberDoc) members.get(currentMemberIndex), - annotationDocTree); - } - - /** - * Return the annotation type field writer for this builder. - * - * @return the annotation type field writer for this builder. - */ - public AnnotationTypeFieldWriter getWriter() { - return writer; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeOptionalMemberBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeOptionalMemberBuilder.java deleted file mode 100644 index c35d51f2b6d..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeOptionalMemberBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) 2003, 2012, 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.doclets.internal.toolkit.builders; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Builds documentation for optional annotation type members. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class AnnotationTypeOptionalMemberBuilder extends - AnnotationTypeRequiredMemberBuilder { - - - /** - * Construct a new AnnotationTypeMemberBuilder. - * - * @param context the build context. - * @param classDoc the class whose members are being documented. - * @param writer the doclet specific writer. - */ - private AnnotationTypeOptionalMemberBuilder(Context context, - ClassDoc classDoc, - AnnotationTypeOptionalMemberWriter writer) { - super(context, classDoc, writer, - VisibleMemberMap.ANNOTATION_TYPE_MEMBER_OPTIONAL); - } - - - /** - * Construct a new AnnotationTypeMemberBuilder. - * - * @param context the build context. - * @param classDoc the class whose members are being documented. - * @param writer the doclet specific writer. - */ - public static AnnotationTypeOptionalMemberBuilder getInstance( - Context context, ClassDoc classDoc, - AnnotationTypeOptionalMemberWriter writer) { - return new AnnotationTypeOptionalMemberBuilder(context, - classDoc, writer); - } - - /** - * {@inheritDoc} - */ - @Override - public String getName() { - return "AnnotationTypeOptionalMemberDetails"; - } - - /** - * Build the annotation type optional member documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeOptionalMember(XMLNode node, Content memberDetailsTree) { - buildAnnotationTypeMember(node, memberDetailsTree); - } - - /** - * Build the default value for this optional member. - * - * @param node the XML element that specifies which components to document - * @param annotationDocTree the content tree to which the documentation will be added - */ - public void buildDefaultValueInfo(XMLNode node, Content annotationDocTree) { - ((AnnotationTypeOptionalMemberWriter) writer).addDefaultValueInfo( - (MemberDoc) members.get(currentMemberIndex), - annotationDocTree); - } - - /** - * {@inheritDoc} - */ - @Override - public AnnotationTypeRequiredMemberWriter getWriter() { - return writer; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeRequiredMemberBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeRequiredMemberBuilder.java deleted file mode 100644 index f1708495e1e..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeRequiredMemberBuilder.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.internal.toolkit.builders; - -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Builds documentation for required annotation type members. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class AnnotationTypeRequiredMemberBuilder extends AbstractMemberBuilder { - - /** - * The annotation type whose members are being documented. - */ - protected ClassDoc classDoc; - - /** - * The visible members for the given class. - */ - protected VisibleMemberMap visibleMemberMap; - - /** - * The writer to output the member documentation. - */ - protected AnnotationTypeRequiredMemberWriter writer; - - /** - * The list of members being documented. - */ - protected List members; - - /** - * The index of the current member that is being documented at this point - * in time. - */ - protected int currentMemberIndex; - - /** - * Construct a new AnnotationTypeRequiredMemberBuilder. - * - * @param context the build context. - * @param classDoc the class whose members are being documented. - * @param writer the doclet specific writer. - */ - protected AnnotationTypeRequiredMemberBuilder(Context context, - ClassDoc classDoc, - AnnotationTypeRequiredMemberWriter writer, - int memberType) { - super(context); - this.classDoc = classDoc; - this.writer = writer; - this.visibleMemberMap = new VisibleMemberMap(classDoc, memberType, - configuration); - this.members = new ArrayList<>(this.visibleMemberMap.getMembersFor(classDoc)); - if (configuration.getMemberComparator() != null) { - Collections.sort(this.members, configuration.getMemberComparator()); - } - } - - - /** - * Construct a new AnnotationTypeMemberBuilder. - * - * @param context the build context. - * @param classDoc the class whose members are being documented. - * @param writer the doclet specific writer. - */ - public static AnnotationTypeRequiredMemberBuilder getInstance( - Context context, ClassDoc classDoc, - AnnotationTypeRequiredMemberWriter writer) { - return new AnnotationTypeRequiredMemberBuilder(context, classDoc, - writer, - VisibleMemberMap.ANNOTATION_TYPE_MEMBER_REQUIRED); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return "AnnotationTypeRequiredMemberDetails"; - } - - /** - * Returns a list of members that will be documented for the given class. - * This information can be used for doclet specific documentation - * generation. - * - * @param classDoc the {@link ClassDoc} we want to check. - * @return a list of members that will be documented. - */ - public List members(ClassDoc classDoc) { - return visibleMemberMap.getMembersFor(classDoc); - } - - /** - * Returns the visible member map for the members of this class. - * - * @return the visible member map for the members of this class. - */ - public VisibleMemberMap getVisibleMemberMap() { - return visibleMemberMap; - } - - /** - * summaryOrder.size() - */ - public boolean hasMembersToDocument() { - return members.size() > 0; - } - - /** - * Build the annotation type required member documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeRequiredMember(XMLNode node, Content memberDetailsTree) { - buildAnnotationTypeMember(node, memberDetailsTree); - } - - /** - * Build the member documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeMember(XMLNode node, Content memberDetailsTree) { - if (writer == null) { - return; - } - int size = members.size(); - if (size > 0) { - writer.addAnnotationDetailsMarker(memberDetailsTree); - for (currentMemberIndex = 0; currentMemberIndex < size; - currentMemberIndex++) { - Content detailsTree = writer.getMemberTreeHeader(); - writer.addAnnotationDetailsTreeHeader(classDoc, detailsTree); - Content annotationDocTree = writer.getAnnotationDocTreeHeader( - (MemberDoc) members.get(currentMemberIndex), detailsTree); - buildChildren(node, annotationDocTree); - detailsTree.addContent(writer.getAnnotationDoc( - annotationDocTree, (currentMemberIndex == size - 1))); - memberDetailsTree.addContent(writer.getAnnotationDetails(detailsTree)); - } - } - } - - /** - * Build the signature. - * - * @param node the XML element that specifies which components to document - * @param annotationDocTree the content tree to which the documentation will be added - */ - public void buildSignature(XMLNode node, Content annotationDocTree) { - annotationDocTree.addContent( - writer.getSignature((MemberDoc) members.get(currentMemberIndex))); - } - - /** - * Build the deprecation information. - * - * @param node the XML element that specifies which components to document - * @param annotationDocTree the content tree to which the documentation will be added - */ - public void buildDeprecationInfo(XMLNode node, Content annotationDocTree) { - writer.addDeprecated((MemberDoc) members.get(currentMemberIndex), - annotationDocTree); - } - - /** - * Build the comments for the member. Do nothing if - * {@link Configuration#nocomment} is set to true. - * - * @param node the XML element that specifies which components to document - * @param annotationDocTree the content tree to which the documentation will be added - */ - public void buildMemberComments(XMLNode node, Content annotationDocTree) { - if(! configuration.nocomment){ - writer.addComments((MemberDoc) members.get(currentMemberIndex), - annotationDocTree); - } - } - - /** - * Build the tag information. - * - * @param node the XML element that specifies which components to document - * @param annotationDocTree the content tree to which the documentation will be added - */ - public void buildTagInfo(XMLNode node, Content annotationDocTree) { - writer.addTags((MemberDoc) members.get(currentMemberIndex), - annotationDocTree); - } - - /** - * Return the annotation type required member writer for this builder. - * - * @return the annotation type required member constant writer for this - * builder. - */ - public AnnotationTypeRequiredMemberWriter getWriter() { - return writer; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/BuilderFactory.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/BuilderFactory.java deleted file mode 100644 index 3e4f4e4fa79..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/BuilderFactory.java +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Copyright (c) 2003, 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 com.sun.tools.doclets.internal.toolkit.builders; - -import java.util.HashSet; -import java.util.Set; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * The factory for constructing builders. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @since 1.4 - */ - -@Deprecated -public class BuilderFactory { - - /** - * The current configuration of the doclet. - */ - private final Configuration configuration; - - /** - * The factory to retrieve the required writers from. - */ - private final WriterFactory writerFactory; - - private final AbstractBuilder.Context context; - - /** - * Construct a builder factory using the given configuration. - * @param configuration the configuration for the current doclet - * being executed. - */ - public BuilderFactory (Configuration configuration) { - this.configuration = configuration; - this.writerFactory = configuration.getWriterFactory(); - - Set containingPackagesSeen = new HashSet<>(); - context = new AbstractBuilder.Context(configuration, containingPackagesSeen, - LayoutParser.getInstance(configuration)); - } - - /** - * Return the builder that builds the constant summary. - * @return the builder that builds the constant summary. - */ - public AbstractBuilder getConstantsSummaryBuider() throws Exception { - return ConstantsSummaryBuilder.getInstance(context, - writerFactory.getConstantsSummaryWriter()); - } - - /** - * Return the builder that builds the package summary. - * - * @param pkg the package being documented. - * @param prevPkg the previous package being documented. - * @param nextPkg the next package being documented. - * @return the builder that builds the constant summary. - */ - public AbstractBuilder getPackageSummaryBuilder(PackageDoc pkg, PackageDoc prevPkg, - PackageDoc nextPkg) throws Exception { - return PackageSummaryBuilder.getInstance(context, pkg, - writerFactory.getPackageSummaryWriter(pkg, prevPkg, nextPkg)); - } - - /** - * Return the builder for the class. - * - * @param classDoc the class being documented. - * @param prevClass the previous class that was documented. - * @param nextClass the next class being documented. - * @param classTree the class tree. - * @return the writer for the class. Return null if this - * writer is not supported by the doclet. - */ - public AbstractBuilder getClassBuilder(ClassDoc classDoc, - ClassDoc prevClass, ClassDoc nextClass, ClassTree classTree) - throws Exception { - return ClassBuilder.getInstance(context, classDoc, - writerFactory.getClassWriter(classDoc, prevClass, nextClass, - classTree)); - } - - /** - * Return the builder for the annotation type. - * - * @param annotationType the annotation type being documented. - * @param prevType the previous type that was documented. - * @param nextType the next type being documented. - * @return the writer for the annotation type. Return null if this - * writer is not supported by the doclet. - */ - public AbstractBuilder getAnnotationTypeBuilder( - AnnotationTypeDoc annotationType, - Type prevType, Type nextType) - throws Exception { - return AnnotationTypeBuilder.getInstance(context, annotationType, - writerFactory.getAnnotationTypeWriter(annotationType, prevType, nextType)); - } - - /** - * Return an instance of the method builder for the given class. - * - * @return an instance of the method builder for the given class. - */ - public AbstractBuilder getMethodBuilder(ClassWriter classWriter) - throws Exception { - return MethodBuilder.getInstance(context, - classWriter.getClassDoc(), - writerFactory.getMethodWriter(classWriter)); - } - - /** - * Return an instance of the annotation type fields builder for the given - * class. - * - * @return an instance of the annotation type field builder for the given - * annotation type. - */ - public AbstractBuilder getAnnotationTypeFieldsBuilder( - AnnotationTypeWriter annotationTypeWriter) - throws Exception { - return AnnotationTypeFieldBuilder.getInstance(context, - annotationTypeWriter.getAnnotationTypeDoc(), - writerFactory.getAnnotationTypeFieldWriter( - annotationTypeWriter)); - } - - /** - * Return an instance of the annotation type member builder for the given - * class. - * - * @return an instance of the annotation type member builder for the given - * annotation type. - */ - public AbstractBuilder getAnnotationTypeOptionalMemberBuilder( - AnnotationTypeWriter annotationTypeWriter) - throws Exception { - return AnnotationTypeOptionalMemberBuilder.getInstance(context, - annotationTypeWriter.getAnnotationTypeDoc(), - writerFactory.getAnnotationTypeOptionalMemberWriter( - annotationTypeWriter)); - } - - /** - * Return an instance of the annotation type member builder for the given - * class. - * - * @return an instance of the annotation type member builder for the given - * annotation type. - */ - public AbstractBuilder getAnnotationTypeRequiredMemberBuilder( - AnnotationTypeWriter annotationTypeWriter) - throws Exception { - return AnnotationTypeRequiredMemberBuilder.getInstance(context, - annotationTypeWriter.getAnnotationTypeDoc(), - writerFactory.getAnnotationTypeRequiredMemberWriter( - annotationTypeWriter)); - } - - /** - * Return an instance of the enum constants builder for the given class. - * - * @return an instance of the enum constants builder for the given class. - */ - public AbstractBuilder getEnumConstantsBuilder(ClassWriter classWriter) - throws Exception { - return EnumConstantBuilder.getInstance(context, classWriter.getClassDoc(), - writerFactory.getEnumConstantWriter(classWriter)); - } - - /** - * Return an instance of the field builder for the given class. - * - * @return an instance of the field builder for the given class. - */ - public AbstractBuilder getFieldBuilder(ClassWriter classWriter) - throws Exception { - return FieldBuilder.getInstance(context, classWriter.getClassDoc(), - writerFactory.getFieldWriter(classWriter)); - } - - /** - * Return an instance of the property builder for the given class. - * - * @return an instance of the field builder for the given class. - */ - public AbstractBuilder getPropertyBuilder(ClassWriter classWriter) throws Exception { - final PropertyWriter propertyWriter = - writerFactory.getPropertyWriter(classWriter); - return PropertyBuilder.getInstance(context, - classWriter.getClassDoc(), - propertyWriter); - } - - /** - * Return an instance of the constructor builder for the given class. - * - * @return an instance of the constructor builder for the given class. - */ - public AbstractBuilder getConstructorBuilder(ClassWriter classWriter) - throws Exception { - return ConstructorBuilder.getInstance(context, - classWriter.getClassDoc(), - writerFactory.getConstructorWriter(classWriter)); - } - - /** - * Return an instance of the member summary builder for the given class. - * - * @return an instance of the member summary builder for the given class. - */ - public AbstractBuilder getMemberSummaryBuilder(ClassWriter classWriter) - throws Exception { - return MemberSummaryBuilder.getInstance(classWriter, context); - } - - /** - * Return an instance of the member summary builder for the given annotation - * type. - * - * @return an instance of the member summary builder for the given - * annotation type. - */ - public AbstractBuilder getMemberSummaryBuilder( - AnnotationTypeWriter annotationTypeWriter) - throws Exception { - return MemberSummaryBuilder.getInstance(annotationTypeWriter, context); - } - - /** - * Return the builder that builds the serialized form. - * - * @return the builder that builds the serialized form. - */ - public AbstractBuilder getSerializedFormBuilder() - throws Exception { - return SerializedFormBuilder.getInstance(context); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ClassBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ClassBuilder.java deleted file mode 100644 index 994e0e8831e..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ClassBuilder.java +++ /dev/null @@ -1,416 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit.builders; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; - -/** - * Builds the summary for a given class. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class ClassBuilder extends AbstractBuilder { - - /** - * The root element of the class XML is {@value}. - */ - public static final String ROOT = "ClassDoc"; - - /** - * The class being documented. - */ - private final ClassDoc classDoc; - - /** - * The doclet specific writer. - */ - private final ClassWriter writer; - - /** - * Keep track of whether or not this classdoc is an interface. - */ - private final boolean isInterface; - - /** - * Keep track of whether or not this classdoc is an enum. - */ - private final boolean isEnum; - - /** - * The content tree for the class documentation. - */ - private Content contentTree; - - /** - * Construct a new ClassBuilder. - * - * @param context the build context - * @param classDoc the class being documented. - * @param writer the doclet specific writer. - */ - private ClassBuilder(Context context, - ClassDoc classDoc, ClassWriter writer) { - super(context); - this.classDoc = classDoc; - this.writer = writer; - if (classDoc.isInterface()) { - isInterface = true; - isEnum = false; - } else if (classDoc.isEnum()) { - isInterface = false; - isEnum = true; - utils.setEnumDocumentation(configuration, classDoc); - } else { - isInterface = false; - isEnum = false; - } - } - - /** - * Construct a new ClassBuilder. - * - * @param context the build context - * @param classDoc the class being documented. - * @param writer the doclet specific writer. - */ - public static ClassBuilder getInstance(Context context, - ClassDoc classDoc, ClassWriter writer) { - return new ClassBuilder(context, classDoc, writer); - } - - /** - * {@inheritDoc} - */ - public void build() throws IOException { - build(layoutParser.parseXML(ROOT), contentTree); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return ROOT; - } - - /** - * Handles the {@literal } tag. - * - * @param node the XML element that specifies which components to document - * @param contentTree the content tree to which the documentation will be added - */ - public void buildClassDoc(XMLNode node, Content contentTree) throws Exception { - String key; - if (isInterface) { - key = "doclet.Interface"; - } else if (isEnum) { - key = "doclet.Enum"; - } else { - key = "doclet.Class"; - } - contentTree = writer.getHeader(configuration.getText(key) + " " + - classDoc.name()); - Content classContentTree = writer.getClassContentHeader(); - buildChildren(node, classContentTree); - writer.addClassContentTree(contentTree, classContentTree); - writer.addFooter(contentTree); - writer.printDocument(contentTree); - writer.close(); - copyDocFiles(); - } - - /** - * Build the class tree documentation. - * - * @param node the XML element that specifies which components to document - * @param classContentTree the content tree to which the documentation will be added - */ - public void buildClassTree(XMLNode node, Content classContentTree) { - writer.addClassTree(classContentTree); - } - - /** - * Build the class information tree documentation. - * - * @param node the XML element that specifies which components to document - * @param classContentTree the content tree to which the documentation will be added - */ - public void buildClassInfo(XMLNode node, Content classContentTree) { - Content classInfoTree = writer.getClassInfoTreeHeader(); - buildChildren(node, classInfoTree); - classContentTree.addContent(writer.getClassInfo(classInfoTree)); - } - - /** - * Build the typeparameters of this class. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildTypeParamInfo(XMLNode node, Content classInfoTree) { - writer.addTypeParamInfo(classInfoTree); - } - - /** - * If this is an interface, list all super interfaces. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildSuperInterfacesInfo(XMLNode node, Content classInfoTree) { - writer.addSuperInterfacesInfo(classInfoTree); - } - - /** - * If this is a class, list all interfaces implemented by this class. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildImplementedInterfacesInfo(XMLNode node, Content classInfoTree) { - writer.addImplementedInterfacesInfo(classInfoTree); - } - - /** - * List all the classes extend this one. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildSubClassInfo(XMLNode node, Content classInfoTree) { - writer.addSubClassInfo(classInfoTree); - } - - /** - * List all the interfaces that extend this one. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildSubInterfacesInfo(XMLNode node, Content classInfoTree) { - writer.addSubInterfacesInfo(classInfoTree); - } - - /** - * If this is an interface, list all classes that implement this interface. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildInterfaceUsageInfo(XMLNode node, Content classInfoTree) { - writer.addInterfaceUsageInfo(classInfoTree); - } - - /** - * If this is an functional interface, display appropriate message. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildFunctionalInterfaceInfo(XMLNode node, Content classInfoTree) { - writer.addFunctionalInterfaceInfo(classInfoTree); - } - - /** - * If this class is deprecated, build the appropriate information. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildDeprecationInfo (XMLNode node, Content classInfoTree) { - writer.addClassDeprecationInfo(classInfoTree); - } - - /** - * If this is an inner class or interface, list the enclosing class or interface. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildNestedClassInfo (XMLNode node, Content classInfoTree) { - writer.addNestedClassInfo(classInfoTree); - } - - /** - * Copy the doc files for the current ClassDoc if necessary. - */ - private void copyDocFiles() { - PackageDoc containingPackage = classDoc.containingPackage(); - if((configuration.packages == null || - !configuration.packages.contains(containingPackage)) && - ! containingPackagesSeen.contains(containingPackage)){ - //Only copy doc files dir if the containing package is not - //documented AND if we have not documented a class from the same - //package already. Otherwise, we are making duplicate copies. - utils.copyDocFiles(configuration, containingPackage); - containingPackagesSeen.add(containingPackage); - } - } - - /** - * Build the signature of the current class. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildClassSignature(XMLNode node, Content classInfoTree) { - StringBuilder modifiers = new StringBuilder(classDoc.modifiers()); - modifiers.append(modifiers.length() == 0 ? "" : " "); - if (isEnum) { - modifiers.append("enum "); - int index; - if ((index = modifiers.indexOf("abstract")) >= 0) { - modifiers.delete(index, index + "abstract".length()); - modifiers = new StringBuilder( - utils.replaceText(modifiers.toString(), " ", " ")); - } - if ((index = modifiers.indexOf("final")) >= 0) { - modifiers.delete(index, index + "final".length()); - modifiers = new StringBuilder( - utils.replaceText(modifiers.toString(), " ", " ")); - } - //} else if (classDoc.isAnnotationType()) { - //modifiers.append("@interface "); - } else if (! isInterface) { - modifiers.append("class "); - } - writer.addClassSignature(modifiers.toString(), classInfoTree); - } - - /** - * Build the class description. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildClassDescription(XMLNode node, Content classInfoTree) { - writer.addClassDescription(classInfoTree); - } - - /** - * Build the tag information for the current class. - * - * @param node the XML element that specifies which components to document - * @param classInfoTree the content tree to which the documentation will be added - */ - public void buildClassTagInfo(XMLNode node, Content classInfoTree) { - writer.addClassTagInfo(classInfoTree); - } - - /** - * Build the member summary contents of the page. - * - * @param node the XML element that specifies which components to document - * @param classContentTree the content tree to which the documentation will be added - */ - public void buildMemberSummary(XMLNode node, Content classContentTree) throws Exception { - Content memberSummaryTree = writer.getMemberTreeHeader(); - configuration.getBuilderFactory(). - getMemberSummaryBuilder(writer).buildChildren(node, memberSummaryTree); - classContentTree.addContent(writer.getMemberSummaryTree(memberSummaryTree)); - } - - /** - * Build the member details contents of the page. - * - * @param node the XML element that specifies which components to document - * @param classContentTree the content tree to which the documentation will be added - */ - public void buildMemberDetails(XMLNode node, Content classContentTree) { - Content memberDetailsTree = writer.getMemberTreeHeader(); - buildChildren(node, memberDetailsTree); - classContentTree.addContent(writer.getMemberDetailsTree(memberDetailsTree)); - } - - /** - * Build the enum constants documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildEnumConstantsDetails(XMLNode node, - Content memberDetailsTree) throws Exception { - configuration.getBuilderFactory(). - getEnumConstantsBuilder(writer).buildChildren(node, memberDetailsTree); - } - - /** - * Build the field documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildFieldDetails(XMLNode node, - Content memberDetailsTree) throws Exception { - configuration.getBuilderFactory(). - getFieldBuilder(writer).buildChildren(node, memberDetailsTree); - } - - /** - * Build the property documentation. - * - * @param elements the XML elements that specify how a field is documented. - */ - public void buildPropertyDetails(XMLNode node, - Content memberDetailsTree) throws Exception { - configuration.getBuilderFactory(). - getPropertyBuilder(writer).buildChildren(node, memberDetailsTree); - } - - /** - * Build the constructor documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildConstructorDetails(XMLNode node, - Content memberDetailsTree) throws Exception { - configuration.getBuilderFactory(). - getConstructorBuilder(writer).buildChildren(node, memberDetailsTree); - } - - /** - * Build the method documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildMethodDetails(XMLNode node, - Content memberDetailsTree) throws Exception { - configuration.getBuilderFactory(). - getMethodBuilder(writer).buildChildren(node, memberDetailsTree); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstantsSummaryBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstantsSummaryBuilder.java deleted file mode 100644 index 89ff56e93b0..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstantsSummaryBuilder.java +++ /dev/null @@ -1,387 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit.builders; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Builds the Constants Summary Page. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class ConstantsSummaryBuilder extends AbstractBuilder { - - /** - * The root element of the constant summary XML is {@value}. - */ - public static final String ROOT = "ConstantSummary"; - - /** - * The maximum number of package directories shown in the constant - * value index. - */ - public static final int MAX_CONSTANT_VALUE_INDEX_LENGTH = 2; - - /** - * The writer used to write the results. - */ - protected final ConstantsSummaryWriter writer; - - /** - * The set of ClassDocs that have constant fields. - */ - protected final Set classDocsWithConstFields; - - /** - * The set of printed package headers. - */ - protected Set printedPackageHeaders; - - /** - * The current package being documented. - */ - private PackageDoc currentPackage; - - /** - * The current class being documented. - */ - private ClassDoc currentClass; - - /** - * The content tree for the constant summary documentation. - */ - private Content contentTree; - - /** - * True if first package is listed. - */ - private boolean first = true; - - /** - * Construct a new ConstantsSummaryBuilder. - * - * @param context the build context. - * @param writer the writer for the summary. - */ - private ConstantsSummaryBuilder(Context context, - ConstantsSummaryWriter writer) { - super(context); - this.writer = writer; - this.classDocsWithConstFields = new HashSet<>(); - } - - /** - * Construct a ConstantsSummaryBuilder. - * - * @param context the build context. - * @param writer the writer for the summary. - */ - public static ConstantsSummaryBuilder getInstance(Context context, - ConstantsSummaryWriter writer) { - return new ConstantsSummaryBuilder(context, writer); - } - - /** - * {@inheritDoc} - */ - public void build() throws IOException { - if (writer == null) { - //Doclet does not support this output. - return; - } - build(layoutParser.parseXML(ROOT), contentTree); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return ROOT; - } - - /** - * Build the constant summary. - * - * @param node the XML element that specifies which components to document - * @param contentTree the content tree to which the documentation will be added - */ - public void buildConstantSummary(XMLNode node, Content contentTree) throws Exception { - contentTree = writer.getHeader(); - buildChildren(node, contentTree); - writer.addFooter(contentTree); - writer.printDocument(contentTree); - writer.close(); - } - - /** - * Build the list of packages. - * - * @param node the XML element that specifies which components to document - * @param contentTree the content tree to which the content list will be added - */ - public void buildContents(XMLNode node, Content contentTree) { - Content contentListTree = writer.getContentsHeader(); - printedPackageHeaders = new HashSet<>(); - for (PackageDoc pkg : configuration.packages) { - if (hasConstantField(pkg) && !hasPrintedPackageIndex(pkg.name())) { - writer.addLinkToPackageContent(pkg, - parsePackageName(pkg.name()), - printedPackageHeaders, contentListTree); - } - } - writer.addContentsList(contentTree, contentListTree); - } - - /** - * Build the summary for each documented package. - * - * @param node the XML element that specifies which components to document - * @param contentTree the tree to which the summaries will be added - */ - public void buildConstantSummaries(XMLNode node, Content contentTree) { - printedPackageHeaders = new HashSet<>(); - Content summariesTree = writer.getConstantSummaries(); - for (PackageDoc aPackage : configuration.packages) { - if (hasConstantField(aPackage)) { - currentPackage = aPackage; - //Build the documentation for the current package. - buildChildren(node, summariesTree); - first = false; - } - } - writer.addConstantSummaries(contentTree, summariesTree); - } - - /** - * Build the header for the given package. - * - * @param node the XML element that specifies which components to document - * @param summariesTree the tree to which the package header will be added - */ - public void buildPackageHeader(XMLNode node, Content summariesTree) { - String parsedPackageName = parsePackageName(currentPackage.name()); - if (! printedPackageHeaders.contains(parsedPackageName)) { - writer.addPackageName(parsePackageName(currentPackage.name()), summariesTree, first); - printedPackageHeaders.add(parsedPackageName); - } - } - - /** - * Build the summary for the current class. - * - * @param node the XML element that specifies which components to document - * @param summariesTree the tree to which the class constant summary will be added - */ - public void buildClassConstantSummary(XMLNode node, Content summariesTree) { - ClassDoc[] classes = currentPackage.name().length() > 0 ? - currentPackage.allClasses() : - configuration.classDocCatalog.allClasses( - DocletConstants.DEFAULT_PACKAGE_NAME); - Arrays.sort(classes); - Content classConstantTree = writer.getClassConstantHeader(); - for (ClassDoc doc : classes) { - if (!classDocsWithConstFields.contains(doc) || - !doc.isIncluded()) { - continue; - } - currentClass = doc; - //Build the documentation for the current class. - buildChildren(node, classConstantTree); - } - writer.addClassConstant(summariesTree, classConstantTree); - } - - /** - * Build the summary of constant members in the class. - * - * @param node the XML element that specifies which components to document - * @param classConstantTree the tree to which the constant members table - * will be added - */ - public void buildConstantMembers(XMLNode node, Content classConstantTree) { - new ConstantFieldBuilder(currentClass).buildMembersSummary(node, classConstantTree); - } - - /** - * Return true if the given package has constant fields to document. - * - * @param pkg the package being checked. - * @return true if the given package has constant fields to document. - */ - private boolean hasConstantField(PackageDoc pkg) { - ClassDoc[] classes - = (pkg.name().length() > 0) - ? pkg.allClasses() - : configuration.classDocCatalog.allClasses(DocletConstants.DEFAULT_PACKAGE_NAME); - boolean found = false; - for (ClassDoc doc : classes) { - if (doc.isIncluded() && hasConstantField(doc)) { - found = true; - } - } - return found; - } - - /** - * Return true if the given class has constant fields to document. - * - * @param classDoc the class being checked. - * @return true if the given package has constant fields to document. - */ - private boolean hasConstantField (ClassDoc classDoc) { - VisibleMemberMap visibleMemberMapFields = new VisibleMemberMap(classDoc, - VisibleMemberMap.FIELDS, configuration); - List fields = visibleMemberMapFields.getLeafClassMembers(configuration); - for (Object f : fields) { - FieldDoc field = (FieldDoc) f; - if (field.constantValueExpression() != null) { - classDocsWithConstFields.add(classDoc); - return true; - } - } - return false; - } - - /** - * Return true if the given package name has been printed. Also - * return true if the root of this package has been printed. - * - * @param pkgname the name of the package to check. - */ - private boolean hasPrintedPackageIndex(String pkgname) { - String[] list = printedPackageHeaders.toArray(new String[] {}); - for (String packageHeader : list) { - if (pkgname.startsWith(packageHeader)) { - return true; - } - } - return false; - } - - /** - * Print the table of constants. - * - * @author Jamie Ho - * @since 1.4 - */ - private class ConstantFieldBuilder { - - /** - * The map used to get the visible variables. - */ - protected VisibleMemberMap visibleMemberMapFields = null; - - /** - * The map used to get the visible variables. - */ - protected VisibleMemberMap visibleMemberMapEnumConst = null; - - /** - * The classdoc that we are examining constants for. - */ - protected ClassDoc classdoc; - - /** - * Construct a ConstantFieldSubWriter. - * @param classdoc the classdoc that we are examining constants for. - */ - public ConstantFieldBuilder(ClassDoc classdoc) { - this.classdoc = classdoc; - visibleMemberMapFields = new VisibleMemberMap(classdoc, - VisibleMemberMap.FIELDS, configuration); - visibleMemberMapEnumConst = new VisibleMemberMap(classdoc, - VisibleMemberMap.ENUM_CONSTANTS, configuration); - } - - /** - * Builds the table of constants for a given class. - * - * @param node the XML element that specifies which components to document - * @param classConstantTree the tree to which the class constants table - * will be added - */ - protected void buildMembersSummary(XMLNode node, Content classConstantTree) { - List members = new ArrayList<>(members()); - if (members.size() > 0) { - Collections.sort(members); - writer.addConstantMembers(classdoc, members, classConstantTree); - } - } - - /** - * Return the list of visible constant fields for the given classdoc. - * @return the list of visible constant fields for the given classdoc. - */ - protected List members() { - List l = visibleMemberMapFields.getLeafClassMembers(configuration); - l.addAll(visibleMemberMapEnumConst.getLeafClassMembers(configuration)); - Iterator iter; - - if(l != null){ - iter = l.iterator(); - } else { - return null; - } - List inclList = new LinkedList<>(); - FieldDoc member; - while(iter.hasNext()){ - member = (FieldDoc)iter.next(); - if(member.constantValue() != null){ - inclList.add(member); - } - } - return inclList; - } - } - - /** - * Parse the package name. We only want to display package name up to - * 2 levels. - */ - private String parsePackageName(String pkgname) { - int index = -1; - for (int j = 0; j < MAX_CONSTANT_VALUE_INDEX_LENGTH; j++) { - index = pkgname.indexOf(".", index + 1); - } - if (index != -1) { - pkgname = pkgname.substring(0, index); - } - return pkgname; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstructorBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstructorBuilder.java deleted file mode 100644 index 594909fd124..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/ConstructorBuilder.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.internal.toolkit.builders; - -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Builds documentation for a constructor. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class ConstructorBuilder extends AbstractMemberBuilder { - - /** - * The name of this builder. - */ - public static final String NAME = "ConstructorDetails"; - - /** - * The index of the current field that is being documented at this point - * in time. - */ - private int currentConstructorIndex; - - /** - * The class whose constructors are being documented. - */ - private final ClassDoc classDoc; - - /** - * The visible constructors for the given class. - */ - private final VisibleMemberMap visibleMemberMap; - - /** - * The writer to output the constructor documentation. - */ - private final ConstructorWriter writer; - - /** - * The constructors being documented. - */ - private final List constructors; - - /** - * Construct a new ConstructorBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - */ - private ConstructorBuilder(Context context, - ClassDoc classDoc, - ConstructorWriter writer) { - super(context); - this.classDoc = classDoc; - this.writer = writer; - visibleMemberMap = - new VisibleMemberMap( - classDoc, - VisibleMemberMap.CONSTRUCTORS, - configuration); - constructors = new ArrayList<>(visibleMemberMap.getMembersFor(classDoc)); - for (ProgramElementDoc constructor : constructors) { - if (constructor.isProtected() || constructor.isPrivate()) { - writer.setFoundNonPubConstructor(true); - } - } - if (configuration.getMemberComparator() != null) { - Collections.sort(constructors,configuration.getMemberComparator()); - } - } - - /** - * Construct a new ConstructorBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - */ - public static ConstructorBuilder getInstance(Context context, - ClassDoc classDoc, ConstructorWriter writer) { - return new ConstructorBuilder(context, classDoc, writer); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return NAME; - } - - /** - * {@inheritDoc} - */ - public boolean hasMembersToDocument() { - return constructors.size() > 0; - } - - /** - * Returns a list of constructors that will be documented for the given class. - * This information can be used for doclet specific documentation - * generation. - * - * @return a list of constructors that will be documented. - */ - public List members(ClassDoc classDoc) { - return visibleMemberMap.getMembersFor(classDoc); - } - - /** - * Return the constructor writer for this builder. - * - * @return the constructor writer for this builder. - */ - public ConstructorWriter getWriter() { - return writer; - } - - /** - * Build the constructor documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildConstructorDoc(XMLNode node, Content memberDetailsTree) { - if (writer == null) { - return; - } - int size = constructors.size(); - if (size > 0) { - Content constructorDetailsTree = writer.getConstructorDetailsTreeHeader( - classDoc, memberDetailsTree); - for (currentConstructorIndex = 0; currentConstructorIndex < size; - currentConstructorIndex++) { - Content constructorDocTree = writer.getConstructorDocTreeHeader( - (ConstructorDoc) constructors.get(currentConstructorIndex), - constructorDetailsTree); - buildChildren(node, constructorDocTree); - constructorDetailsTree.addContent(writer.getConstructorDoc( - constructorDocTree, (currentConstructorIndex == size - 1))); - } - memberDetailsTree.addContent( - writer.getConstructorDetails(constructorDetailsTree)); - } - } - - /** - * Build the signature. - * - * @param node the XML element that specifies which components to document - * @param constructorDocTree the content tree to which the documentation will be added - */ - public void buildSignature(XMLNode node, Content constructorDocTree) { - constructorDocTree.addContent( - writer.getSignature( - (ConstructorDoc) constructors.get(currentConstructorIndex))); - } - - /** - * Build the deprecation information. - * - * @param node the XML element that specifies which components to document - * @param constructorDocTree the content tree to which the documentation will be added - */ - public void buildDeprecationInfo(XMLNode node, Content constructorDocTree) { - writer.addDeprecated( - (ConstructorDoc) constructors.get(currentConstructorIndex), constructorDocTree); - } - - /** - * Build the comments for the constructor. Do nothing if - * {@link Configuration#nocomment} is set to true. - * - * @param node the XML element that specifies which components to document - * @param constructorDocTree the content tree to which the documentation will be added - */ - public void buildConstructorComments(XMLNode node, Content constructorDocTree) { - if (!configuration.nocomment) { - writer.addComments( - (ConstructorDoc) constructors.get(currentConstructorIndex), - constructorDocTree); - } - } - - /** - * Build the tag information. - * - * @param node the XML element that specifies which components to document - * @param constructorDocTree the content tree to which the documentation will be added - */ - public void buildTagInfo(XMLNode node, Content constructorDocTree) { - writer.addTags((ConstructorDoc) constructors.get(currentConstructorIndex), - constructorDocTree); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/EnumConstantBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/EnumConstantBuilder.java deleted file mode 100644 index 2f759cb8862..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/EnumConstantBuilder.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.internal.toolkit.builders; - -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Builds documentation for a enum constants. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class EnumConstantBuilder extends AbstractMemberBuilder { - - /** - * The class whose enum constants are being documented. - */ - private final ClassDoc classDoc; - - /** - * The visible enum constantss for the given class. - */ - private final VisibleMemberMap visibleMemberMap; - - /** - * The writer to output the enum constants documentation. - */ - private final EnumConstantWriter writer; - - /** - * The list of enum constants being documented. - */ - private final List enumConstants; - - /** - * The index of the current enum constant that is being documented at this point - * in time. - */ - private int currentEnumConstantsIndex; - - /** - * Construct a new EnumConstantsBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - */ - private EnumConstantBuilder(Context context, - ClassDoc classDoc, EnumConstantWriter writer) { - super(context); - this.classDoc = classDoc; - this.writer = writer; - visibleMemberMap = - new VisibleMemberMap( - classDoc, - VisibleMemberMap.ENUM_CONSTANTS, - configuration); - enumConstants = new ArrayList<>(visibleMemberMap.getMembersFor(classDoc)); - if (configuration.getMemberComparator() != null) { - Collections.sort(enumConstants, configuration.getMemberComparator()); - } - } - - /** - * Construct a new EnumConstantsBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - */ - public static EnumConstantBuilder getInstance(Context context, - ClassDoc classDoc, EnumConstantWriter writer) { - return new EnumConstantBuilder(context, classDoc, writer); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return "EnumConstantDetails"; - } - - /** - * Returns a list of enum constants that will be documented for the given class. - * This information can be used for doclet specific documentation - * generation. - * - * @param classDoc the {@link ClassDoc} we want to check. - * @return a list of enum constants that will be documented. - */ - public List members(ClassDoc classDoc) { - return visibleMemberMap.getMembersFor(classDoc); - } - - /** - * Returns the visible member map for the enum constants of this class. - * - * @return the visible member map for the enum constants of this class. - */ - public VisibleMemberMap getVisibleMemberMap() { - return visibleMemberMap; - } - - /** - * summaryOrder.size() - */ - public boolean hasMembersToDocument() { - return enumConstants.size() > 0; - } - - /** - * Build the enum constant documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildEnumConstant(XMLNode node, Content memberDetailsTree) { - if (writer == null) { - return; - } - int size = enumConstants.size(); - if (size > 0) { - Content enumConstantsDetailsTree = writer.getEnumConstantsDetailsTreeHeader( - classDoc, memberDetailsTree); - for (currentEnumConstantsIndex = 0; currentEnumConstantsIndex < size; - currentEnumConstantsIndex++) { - Content enumConstantsTree = writer.getEnumConstantsTreeHeader( - (FieldDoc) enumConstants.get(currentEnumConstantsIndex), - enumConstantsDetailsTree); - buildChildren(node, enumConstantsTree); - enumConstantsDetailsTree.addContent(writer.getEnumConstants( - enumConstantsTree, (currentEnumConstantsIndex == size - 1))); - } - memberDetailsTree.addContent( - writer.getEnumConstantsDetails(enumConstantsDetailsTree)); - } - } - - /** - * Build the signature. - * - * @param node the XML element that specifies which components to document - * @param enumConstantsTree the content tree to which the documentation will be added - */ - public void buildSignature(XMLNode node, Content enumConstantsTree) { - enumConstantsTree.addContent(writer.getSignature( - (FieldDoc) enumConstants.get(currentEnumConstantsIndex))); - } - - /** - * Build the deprecation information. - * - * @param node the XML element that specifies which components to document - * @param enumConstantsTree the content tree to which the documentation will be added - */ - public void buildDeprecationInfo(XMLNode node, Content enumConstantsTree) { - writer.addDeprecated( - (FieldDoc) enumConstants.get(currentEnumConstantsIndex), - enumConstantsTree); - } - - /** - * Build the comments for the enum constant. Do nothing if - * {@link Configuration#nocomment} is set to true. - * - * @param node the XML element that specifies which components to document - * @param enumConstantsTree the content tree to which the documentation will be added - */ - public void buildEnumConstantComments(XMLNode node, Content enumConstantsTree) { - if (!configuration.nocomment) { - writer.addComments( - (FieldDoc) enumConstants.get(currentEnumConstantsIndex), - enumConstantsTree); - } - } - - /** - * Build the tag information. - * - * @param node the XML element that specifies which components to document - * @param enumConstantsTree the content tree to which the documentation will be added - */ - public void buildTagInfo(XMLNode node, Content enumConstantsTree) { - writer.addTags( - (FieldDoc) enumConstants.get(currentEnumConstantsIndex), - enumConstantsTree); - } - - /** - * Return the enum constant writer for this builder. - * - * @return the enum constant writer for this builder. - */ - public EnumConstantWriter getWriter() { - return writer; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/FieldBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/FieldBuilder.java deleted file mode 100644 index 675ae28376f..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/FieldBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.internal.toolkit.builders; - -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Builds documentation for a field. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class FieldBuilder extends AbstractMemberBuilder { - - /** - * The class whose fields are being documented. - */ - private final ClassDoc classDoc; - - /** - * The visible fields for the given class. - */ - private final VisibleMemberMap visibleMemberMap; - - /** - * The writer to output the field documentation. - */ - private final FieldWriter writer; - - /** - * The list of fields being documented. - */ - private final List fields; - - /** - * The index of the current field that is being documented at this point - * in time. - */ - private int currentFieldIndex; - - /** - * Construct a new FieldBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - */ - private FieldBuilder(Context context, - ClassDoc classDoc, - FieldWriter writer) { - super(context); - this.classDoc = classDoc; - this.writer = writer; - visibleMemberMap = - new VisibleMemberMap( - classDoc, - VisibleMemberMap.FIELDS, - configuration); - fields = new ArrayList<>(visibleMemberMap.getLeafClassMembers(configuration)); - if (configuration.getMemberComparator() != null) { - Collections.sort(fields, configuration.getMemberComparator()); - } - } - - /** - * Construct a new FieldBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - */ - public static FieldBuilder getInstance(Context context, - ClassDoc classDoc, - FieldWriter writer) { - return new FieldBuilder(context, classDoc, writer); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return "FieldDetails"; - } - - /** - * Returns a list of fields that will be documented for the given class. - * This information can be used for doclet specific documentation - * generation. - * - * @param classDoc the {@link ClassDoc} we want to check. - * @return a list of fields that will be documented. - */ - public List members(ClassDoc classDoc) { - return visibleMemberMap.getMembersFor(classDoc); - } - - /** - * Returns the visible member map for the fields of this class. - * - * @return the visible member map for the fields of this class. - */ - public VisibleMemberMap getVisibleMemberMap() { - return visibleMemberMap; - } - - /** - * summaryOrder.size() - */ - public boolean hasMembersToDocument() { - return fields.size() > 0; - } - - /** - * Build the field documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildFieldDoc(XMLNode node, Content memberDetailsTree) { - if (writer == null) { - return; - } - int size = fields.size(); - if (size > 0) { - Content fieldDetailsTree = writer.getFieldDetailsTreeHeader( - classDoc, memberDetailsTree); - for (currentFieldIndex = 0; currentFieldIndex < size; - currentFieldIndex++) { - Content fieldDocTree = writer.getFieldDocTreeHeader( - (FieldDoc) fields.get(currentFieldIndex), - fieldDetailsTree); - buildChildren(node, fieldDocTree); - fieldDetailsTree.addContent(writer.getFieldDoc( - fieldDocTree, (currentFieldIndex == size - 1))); - } - memberDetailsTree.addContent( - writer.getFieldDetails(fieldDetailsTree)); - } - } - - /** - * Build the signature. - * - * @param node the XML element that specifies which components to document - * @param fieldDocTree the content tree to which the documentation will be added - */ - public void buildSignature(XMLNode node, Content fieldDocTree) { - fieldDocTree.addContent( - writer.getSignature((FieldDoc) fields.get(currentFieldIndex))); - } - - /** - * Build the deprecation information. - * - * @param node the XML element that specifies which components to document - * @param fieldDocTree the content tree to which the documentation will be added - */ - public void buildDeprecationInfo(XMLNode node, Content fieldDocTree) { - writer.addDeprecated( - (FieldDoc) fields.get(currentFieldIndex), fieldDocTree); - } - - /** - * Build the comments for the field. Do nothing if - * {@link Configuration#nocomment} is set to true. - * - * @param node the XML element that specifies which components to document - * @param fieldDocTree the content tree to which the documentation will be added - */ - public void buildFieldComments(XMLNode node, Content fieldDocTree) { - if (!configuration.nocomment) { - writer.addComments((FieldDoc) fields.get(currentFieldIndex), fieldDocTree); - } - } - - /** - * Build the tag information. - * - * @param node the XML element that specifies which components to document - * @param fieldDocTree the content tree to which the documentation will be added - */ - public void buildTagInfo(XMLNode node, Content fieldDocTree) { - writer.addTags((FieldDoc) fields.get(currentFieldIndex), fieldDocTree); - } - - /** - * Return the field writer for this builder. - * - * @return the field writer for this builder. - */ - public FieldWriter getWriter() { - return writer; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/LayoutParser.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/LayoutParser.java deleted file mode 100644 index 2e0783c455c..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/LayoutParser.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.internal.toolkit.builders; - -import java.io.*; -import java.util.*; - -import javax.xml.parsers.*; - -import org.xml.sax.*; -import org.xml.sax.helpers.DefaultHandler; - -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Parse the XML that specified the order of operation for the builders. This - * Parser uses SAX parsing. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @since 1.5 - * @see SAXParser - */ -@Deprecated -public class LayoutParser extends DefaultHandler { - - /** - * The map of XML elements that have been parsed. - */ - private Map xmlElementsMap; - private XMLNode currentNode; - private final Configuration configuration; - private String currentRoot; - private boolean isParsing; - - private LayoutParser(Configuration configuration) { - xmlElementsMap = new HashMap<>(); - this.configuration = configuration; - } - - /** - * Return an instance of the BuilderXML. - * - * @param configuration the current configuration of the doclet. - * @return an instance of the BuilderXML. - */ - public static LayoutParser getInstance(Configuration configuration) { - return new LayoutParser(configuration); - } - - /** - * Parse the XML specifying the layout of the documentation. - * - * @return the list of XML elements parsed. - */ - public XMLNode parseXML(String root) { - if (xmlElementsMap.containsKey(root)) { - return xmlElementsMap.get(root); - } - try { - currentRoot = root; - isParsing = false; - SAXParserFactory factory = SAXParserFactory.newInstance(); - SAXParser saxParser = factory.newSAXParser(); - InputStream in = configuration.getBuilderXML(); - saxParser.parse(in, this); - return xmlElementsMap.get(root); - } catch (Throwable t) { - t.printStackTrace(); - throw new DocletAbortException(t); - } - } - - /** - * {@inheritDoc} - */ - @Override - public void startElement(String namespaceURI, String sName, String qName, - Attributes attrs) - throws SAXException { - if (isParsing || qName.equals(currentRoot)) { - isParsing = true; - currentNode = new XMLNode(currentNode, qName); - for (int i = 0; i < attrs.getLength(); i++) - currentNode.attrs.put(attrs.getLocalName(i), attrs.getValue(i)); - if (qName.equals(currentRoot)) - xmlElementsMap.put(qName, currentNode); - } - } - - /** - * {@inheritDoc} - */ - @Override - public void endElement(String namespaceURI, String sName, String qName) - throws SAXException { - if (! isParsing) { - return; - } - currentNode = currentNode.parent; - isParsing = ! qName.equals(currentRoot); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MemberSummaryBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MemberSummaryBuilder.java deleted file mode 100644 index bab5f9f08c6..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MemberSummaryBuilder.java +++ /dev/null @@ -1,531 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit.builders; - -import java.util.*; -import java.text.MessageFormat; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Builds the member summary. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class MemberSummaryBuilder extends AbstractMemberBuilder { - - /** - * The XML root for this builder. - */ - public static final String NAME = "MemberSummary"; - - /** - * The visible members for the given class. - */ - private final VisibleMemberMap[] visibleMemberMaps; - - /** - * The member summary writers for the given class. - */ - private MemberSummaryWriter[] memberSummaryWriters; - - /** - * The type being documented. - */ - private final ClassDoc classDoc; - - /** - * Construct a new MemberSummaryBuilder. - * - * @param classWriter the writer for the class whose members are being - * summarized. - * @param context the build context. - */ - private MemberSummaryBuilder(Context context, ClassDoc classDoc) { - super(context); - this.classDoc = classDoc; - visibleMemberMaps = - new VisibleMemberMap[VisibleMemberMap.NUM_MEMBER_TYPES]; - for (int i = 0; i < VisibleMemberMap.NUM_MEMBER_TYPES; i++) { - visibleMemberMaps[i] = - new VisibleMemberMap( - classDoc, - i, - configuration); - } - } - - /** - * Construct a new MemberSummaryBuilder. - * - * @param classWriter the writer for the class whose members are being - * summarized. - * @param context the build context. - */ - public static MemberSummaryBuilder getInstance( - ClassWriter classWriter, Context context) - throws Exception { - MemberSummaryBuilder builder = new MemberSummaryBuilder(context, - classWriter.getClassDoc()); - builder.memberSummaryWriters = - new MemberSummaryWriter[VisibleMemberMap.NUM_MEMBER_TYPES]; - WriterFactory wf = context.configuration.getWriterFactory(); - for (int i = 0; i < VisibleMemberMap.NUM_MEMBER_TYPES; i++) { - builder.memberSummaryWriters[i] = - builder.visibleMemberMaps[i].noVisibleMembers() ? - null : - wf.getMemberSummaryWriter(classWriter, i); - } - return builder; - } - - /** - * Construct a new MemberSummaryBuilder. - * - * @param annotationTypeWriter the writer for the class whose members are - * being summarized. - * @param configuration the current configuration of the doclet. - */ - public static MemberSummaryBuilder getInstance( - AnnotationTypeWriter annotationTypeWriter, Context context) - throws Exception { - MemberSummaryBuilder builder = new MemberSummaryBuilder(context, - annotationTypeWriter.getAnnotationTypeDoc()); - builder.memberSummaryWriters = - new MemberSummaryWriter[VisibleMemberMap.NUM_MEMBER_TYPES]; - WriterFactory wf = context.configuration.getWriterFactory(); - for (int i = 0; i < VisibleMemberMap.NUM_MEMBER_TYPES; i++) { - builder.memberSummaryWriters[i] = - builder.visibleMemberMaps[i].noVisibleMembers()? - null : - wf.getMemberSummaryWriter( - annotationTypeWriter, i); - } - return builder; - } - - /** - * {@inheritDoc} - */ - public String getName() { - return NAME; - } - - /** - * Return the specified visible member map. - * - * @param type the type of visible member map to return. - * @return the specified visible member map. - * @throws ArrayIndexOutOfBoundsException when the type is invalid. - * @see VisibleMemberMap - */ - public VisibleMemberMap getVisibleMemberMap(int type) { - return visibleMemberMaps[type]; - } - - /** - * Return the specified member summary writer. - * - * @param type the type of member summary writer to return. - * @return the specified member summary writer. - * @throws ArrayIndexOutOfBoundsException when the type is invalid. - * @see VisibleMemberMap - */ - public MemberSummaryWriter getMemberSummaryWriter(int type) { - return memberSummaryWriters[type]; - } - - /** - * Returns a list of methods that will be documented for the given class. - * This information can be used for doclet specific documentation - * generation. - * - * @param type the type of members to return. - * @return a list of methods that will be documented. - * @see VisibleMemberMap - */ - public List members(int type) { - return visibleMemberMaps[type].getLeafClassMembers(configuration); - } - - /** - * Return true it there are any members to summarize. - * - * @return true if there are any members to summarize. - */ - public boolean hasMembersToDocument() { - if (classDoc instanceof AnnotationTypeDoc) { - return ((AnnotationTypeDoc) classDoc).elements().length > 0; - } - for (int i = 0; i < VisibleMemberMap.NUM_MEMBER_TYPES; i++) { - VisibleMemberMap members = visibleMemberMaps[i]; - if (!members.noVisibleMembers()) { - return true; - } - } - return false; - } - - /** - * Build the summary for the enum constants. - * - * @param node the XML element that specifies which components to document - * @param memberSummaryTree the content tree to which the documentation will be added - */ - public void buildEnumConstantsSummary(XMLNode node, Content memberSummaryTree) { - MemberSummaryWriter writer = - memberSummaryWriters[VisibleMemberMap.ENUM_CONSTANTS]; - VisibleMemberMap visibleMemberMap = - visibleMemberMaps[VisibleMemberMap.ENUM_CONSTANTS]; - addSummary(writer, visibleMemberMap, false, memberSummaryTree); - } - - /** - * Build the summary for fields. - * - * @param node the XML element that specifies which components to document - * @param memberSummaryTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeFieldsSummary(XMLNode node, Content memberSummaryTree) { - MemberSummaryWriter writer = - memberSummaryWriters[VisibleMemberMap.ANNOTATION_TYPE_FIELDS]; - VisibleMemberMap visibleMemberMap = - visibleMemberMaps[VisibleMemberMap.ANNOTATION_TYPE_FIELDS]; - addSummary(writer, visibleMemberMap, false, memberSummaryTree); - } - - /** - * Build the summary for the optional members. - * - * @param node the XML element that specifies which components to document - * @param memberSummaryTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeOptionalMemberSummary(XMLNode node, Content memberSummaryTree) { - MemberSummaryWriter writer = - memberSummaryWriters[VisibleMemberMap.ANNOTATION_TYPE_MEMBER_OPTIONAL]; - VisibleMemberMap visibleMemberMap = - visibleMemberMaps[VisibleMemberMap.ANNOTATION_TYPE_MEMBER_OPTIONAL]; - addSummary(writer, visibleMemberMap, false, memberSummaryTree); - } - - /** - * Build the summary for the optional members. - * - * @param node the XML element that specifies which components to document - * @param memberSummaryTree the content tree to which the documentation will be added - */ - public void buildAnnotationTypeRequiredMemberSummary(XMLNode node, Content memberSummaryTree) { - MemberSummaryWriter writer = - memberSummaryWriters[VisibleMemberMap.ANNOTATION_TYPE_MEMBER_REQUIRED]; - VisibleMemberMap visibleMemberMap = - visibleMemberMaps[VisibleMemberMap.ANNOTATION_TYPE_MEMBER_REQUIRED]; - addSummary(writer, visibleMemberMap, false, memberSummaryTree); - } - - /** - * Build the summary for the fields. - * - * @param node the XML element that specifies which components to document - * @param memberSummaryTree the content tree to which the documentation will be added - */ - public void buildFieldsSummary(XMLNode node, Content memberSummaryTree) { - MemberSummaryWriter writer = - memberSummaryWriters[VisibleMemberMap.FIELDS]; - VisibleMemberMap visibleMemberMap = - visibleMemberMaps[VisibleMemberMap.FIELDS]; - addSummary(writer, visibleMemberMap, true, memberSummaryTree); - } - - /** - * Build the summary for the fields. - */ - public void buildPropertiesSummary(XMLNode node, Content memberSummaryTree) { - MemberSummaryWriter writer = - memberSummaryWriters[VisibleMemberMap.PROPERTIES]; - VisibleMemberMap visibleMemberMap = - visibleMemberMaps[VisibleMemberMap.PROPERTIES]; - addSummary(writer, visibleMemberMap, true, memberSummaryTree); - } - - /** - * Build the summary for the nested classes. - * - * @param node the XML element that specifies which components to document - * @param memberSummaryTree the content tree to which the documentation will be added - */ - public void buildNestedClassesSummary(XMLNode node, Content memberSummaryTree) { - MemberSummaryWriter writer = - memberSummaryWriters[VisibleMemberMap.INNERCLASSES]; - VisibleMemberMap visibleMemberMap = - visibleMemberMaps[VisibleMemberMap.INNERCLASSES]; - addSummary(writer, visibleMemberMap, true, memberSummaryTree); - } - - /** - * Build the method summary. - * - * @param node the XML element that specifies which components to document - * @param memberSummaryTree the content tree to which the documentation will be added - */ - public void buildMethodsSummary(XMLNode node, Content memberSummaryTree) { - MemberSummaryWriter writer = - memberSummaryWriters[VisibleMemberMap.METHODS]; - VisibleMemberMap visibleMemberMap = - visibleMemberMaps[VisibleMemberMap.METHODS]; - addSummary(writer, visibleMemberMap, true, memberSummaryTree); - } - - /** - * Build the constructor summary. - * - * @param node the XML element that specifies which components to document - * @param memberSummaryTree the content tree to which the documentation will be added - */ - public void buildConstructorsSummary(XMLNode node, Content memberSummaryTree) { - MemberSummaryWriter writer = - memberSummaryWriters[VisibleMemberMap.CONSTRUCTORS]; - VisibleMemberMap visibleMemberMap = - visibleMemberMaps[VisibleMemberMap.CONSTRUCTORS]; - addSummary(writer, visibleMemberMap, false, memberSummaryTree); - } - - /** - * Build the member summary for the given members. - * - * @param writer the summary writer to write the output. - * @param visibleMemberMap the given members to summarize. - * @param summaryTreeList list of content trees to which the documentation will be added - */ - private void buildSummary(MemberSummaryWriter writer, - VisibleMemberMap visibleMemberMap, LinkedList summaryTreeList) { - List members = new ArrayList<>(visibleMemberMap.getLeafClassMembers( - configuration)); - if (members.size() > 0) { - Collections.sort(members); - List tableContents = new LinkedList<>(); - for (int i = 0; i < members.size(); i++) { - ProgramElementDoc member = members.get(i); - final ProgramElementDoc propertyDoc = - visibleMemberMap.getPropertyMemberDoc(member); - if (propertyDoc != null) { - processProperty(visibleMemberMap, member, propertyDoc); - } - Tag[] firstSentenceTags = member.firstSentenceTags(); - if (member instanceof MethodDoc && firstSentenceTags.length == 0) { - //Inherit comments from overriden or implemented method if - //necessary. - DocFinder.Output inheritedDoc = - DocFinder.search(configuration, new DocFinder.Input((MethodDoc) member)); - if (inheritedDoc.holder != null - && inheritedDoc.holder.firstSentenceTags().length > 0) { - firstSentenceTags = inheritedDoc.holder.firstSentenceTags(); - } - } - writer.addMemberSummary(classDoc, member, firstSentenceTags, - tableContents, i); - } - summaryTreeList.add(writer.getSummaryTableTree(classDoc, tableContents)); - } - } - - /** - * Process the property method, property setter and/or property getter - * comment text so that it contains the documentation from - * the property field. The method adds the leading sentence, - * copied documentation including the defaultValue tag and - * the see tags if the appropriate property getter and setter are - * available. - * - * @param visibleMemberMap the members information. - * @param member the member which is to be augmented. - * @param propertyDoc the original property documentation. - */ - private void processProperty(VisibleMemberMap visibleMemberMap, - ProgramElementDoc member, - ProgramElementDoc propertyDoc) { - StringBuilder commentTextBuilder = new StringBuilder(); - final boolean isSetter = isSetter(member); - final boolean isGetter = isGetter(member); - if (isGetter || isSetter) { - //add "[GS]ets the value of the property PROPERTY_NAME." - if (isSetter) { - commentTextBuilder.append( - MessageFormat.format( - configuration.getText("doclet.PropertySetterWithName"), - utils.propertyNameFromMethodName(configuration, member.name()))); - } - if (isGetter) { - commentTextBuilder.append( - MessageFormat.format( - configuration.getText("doclet.PropertyGetterWithName"), - utils.propertyNameFromMethodName(configuration, member.name()))); - } - if (propertyDoc.commentText() != null - && !propertyDoc.commentText().isEmpty()) { - commentTextBuilder.append(" \n @propertyDescription "); - } - } - commentTextBuilder.append(propertyDoc.commentText()); - - // copy certain tags - List allTags = new LinkedList<>(); - String[] tagNames = {"@defaultValue", "@since"}; - for (String tagName: tagNames) { - Tag[] tags = propertyDoc.tags(tagName); - if (tags != null) { - allTags.addAll(Arrays.asList(tags)); - } - } - for (Tag tag: allTags) { - commentTextBuilder.append("\n") - .append(tag.name()) - .append(" ") - .append(tag.text()); - } - - //add @see tags - if (!isGetter && !isSetter) { - MethodDoc getter = (MethodDoc) visibleMemberMap.getGetterForProperty(member); - MethodDoc setter = (MethodDoc) visibleMemberMap.getSetterForProperty(member); - - if ((null != getter) - && (commentTextBuilder.indexOf("@see #" + getter.name()) == -1)) { - commentTextBuilder.append("\n @see #") - .append(getter.name()) - .append("() "); - } - - if ((null != setter) - && (commentTextBuilder.indexOf("@see #" + setter.name()) == -1)) { - String typeName = setter.parameters()[0].typeName(); - // Removal of type parameters and package information. - typeName = typeName.split("<")[0]; - if (typeName.contains(".")) { - typeName = typeName.substring(typeName.lastIndexOf(".") + 1); - } - commentTextBuilder.append("\n @see #").append(setter.name()); - - if (setter.parameters()[0].type().asTypeVariable() == null) { - commentTextBuilder.append("(").append(typeName).append(")"); - } - commentTextBuilder.append(" \n"); - } - } - member.setRawCommentText(commentTextBuilder.toString()); - } - /** - * Test whether the method is a getter. - * @param ped property method documentation. Needs to be either property - * method, property getter, or property setter. - * @return true if the given documentation belongs to a getter. - */ - private boolean isGetter(ProgramElementDoc ped) { - final String pedName = ped.name(); - return pedName.startsWith("get") || pedName.startsWith("is"); - } - - /** - * Test whether the method is a setter. - * @param ped property method documentation. Needs to be either property - * method, property getter, or property setter. - * @return true if the given documentation belongs to a setter. - */ - private boolean isSetter(ProgramElementDoc ped) { - return ped.name().startsWith("set"); - } - - /** - * Build the inherited member summary for the given methods. - * - * @param writer the writer for this member summary. - * @param visibleMemberMap the map for the members to document. - * @param summaryTreeList list of content trees to which the documentation will be added - */ - private void buildInheritedSummary(MemberSummaryWriter writer, - VisibleMemberMap visibleMemberMap, LinkedList summaryTreeList) { - for (ClassDoc inhclass : visibleMemberMap.getVisibleClassesList()) { - if (!(inhclass.isPublic() || - utils.isLinkable(inhclass, configuration))) { - continue; - } - if (inhclass == classDoc) { - continue; - } - List inhmembers = visibleMemberMap.getMembersFor(inhclass); - if (inhmembers.size() > 0) { - Collections.sort(inhmembers); - Content inheritedTree = writer.getInheritedSummaryHeader(inhclass); - Content linksTree = writer.getInheritedSummaryLinksTree(); - for (int j = 0; j < inhmembers.size(); ++j) { - writer.addInheritedMemberSummary( - inhclass.isPackagePrivate() && - !utils.isLinkable(inhclass, configuration) ? - classDoc : inhclass, - inhmembers.get(j), - j == 0, - j == inhmembers.size() - 1, linksTree); - } - inheritedTree.addContent(linksTree); - summaryTreeList.add(writer.getMemberTree(inheritedTree)); - } - } - } - - /** - * Add the summary for the documentation. - * - * @param writer the writer for this member summary. - * @param visibleMemberMap the map for the members to document. - * @param showInheritedSummary true if inherited summary should be documented - * @param memberSummaryTree the content tree to which the documentation will be added - */ - private void addSummary(MemberSummaryWriter writer, - VisibleMemberMap visibleMemberMap, boolean showInheritedSummary, - Content memberSummaryTree) { - LinkedList summaryTreeList = new LinkedList<>(); - buildSummary(writer, visibleMemberMap, summaryTreeList); - if (showInheritedSummary) - buildInheritedSummary(writer, visibleMemberMap, summaryTreeList); - if (!summaryTreeList.isEmpty()) { - Content memberTree = writer.getMemberSummaryHeader( - classDoc, memberSummaryTree); - for (Content aSummaryTreeList : summaryTreeList) { - memberTree.addContent(aSummaryTreeList); - } - writer.addMemberTree(memberSummaryTree, memberTree); - } - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MethodBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MethodBuilder.java deleted file mode 100644 index abd7a757704..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MethodBuilder.java +++ /dev/null @@ -1,242 +0,0 @@ -/* - * Copyright (c) 2003, 2014, 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.doclets.internal.toolkit.builders; - -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; - -/** - * Builds documentation for a method. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class MethodBuilder extends AbstractMemberBuilder { - - /** - * The index of the current field that is being documented at this point - * in time. - */ - private int currentMethodIndex; - - /** - * The class whose methods are being documented. - */ - private final ClassDoc classDoc; - - /** - * The visible methods for the given class. - */ - private final VisibleMemberMap visibleMemberMap; - - /** - * The writer to output the method documentation. - */ - private final MethodWriter writer; - - /** - * The methods being documented. - */ - private List methods; - - - /** - * Construct a new MethodBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - */ - private MethodBuilder(Context context, - ClassDoc classDoc, - MethodWriter writer) { - super(context); - this.classDoc = classDoc; - this.writer = writer; - visibleMemberMap = new VisibleMemberMap( - classDoc, - VisibleMemberMap.METHODS, - configuration); - methods = - new ArrayList<>(visibleMemberMap.getLeafClassMembers(configuration)); - if (configuration.getMemberComparator() != null) { - Collections.sort(methods, configuration.getMemberComparator()); - } - } - - /** - * Construct a new MethodBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - * - * @return an instance of a MethodBuilder. - */ - public static MethodBuilder getInstance(Context context, - ClassDoc classDoc, MethodWriter writer) { - return new MethodBuilder(context, classDoc, writer); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return "MethodDetails"; - } - - /** - * Returns a list of methods that will be documented for the given class. - * This information can be used for doclet specific documentation - * generation. - * - * @param classDoc the {@link ClassDoc} we want to check. - * @return a list of methods that will be documented. - */ - public List members(ClassDoc classDoc) { - return visibleMemberMap.getMembersFor(classDoc); - } - - /** - * Returns the visible member map for the methods of this class. - * - * @return the visible member map for the methods of this class. - */ - public VisibleMemberMap getVisibleMemberMap() { - return visibleMemberMap; - } - - /** - * {@inheritDoc} - */ - public boolean hasMembersToDocument() { - return methods.size() > 0; - } - - /** - * Build the method documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildMethodDoc(XMLNode node, Content memberDetailsTree) { - if (writer == null) { - return; - } - int size = methods.size(); - if (size > 0) { - Content methodDetailsTree = writer.getMethodDetailsTreeHeader( - classDoc, memberDetailsTree); - for (currentMethodIndex = 0; currentMethodIndex < size; - currentMethodIndex++) { - Content methodDocTree = writer.getMethodDocTreeHeader( - (MethodDoc) methods.get(currentMethodIndex), - methodDetailsTree); - buildChildren(node, methodDocTree); - methodDetailsTree.addContent(writer.getMethodDoc( - methodDocTree, (currentMethodIndex == size - 1))); - } - memberDetailsTree.addContent( - writer.getMethodDetails(methodDetailsTree)); - } - } - - /** - * Build the signature. - * - * @param node the XML element that specifies which components to document - * @param methodDocTree the content tree to which the documentation will be added - */ - public void buildSignature(XMLNode node, Content methodDocTree) { - methodDocTree.addContent( - writer.getSignature((MethodDoc) methods.get(currentMethodIndex))); - } - - /** - * Build the deprecation information. - * - * @param node the XML element that specifies which components to document - * @param methodDocTree the content tree to which the documentation will be added - */ - public void buildDeprecationInfo(XMLNode node, Content methodDocTree) { - writer.addDeprecated( - (MethodDoc) methods.get(currentMethodIndex), methodDocTree); - } - - /** - * Build the comments for the method. Do nothing if - * {@link Configuration#nocomment} is set to true. - * - * @param node the XML element that specifies which components to document - * @param methodDocTree the content tree to which the documentation will be added - */ - public void buildMethodComments(XMLNode node, Content methodDocTree) { - if (!configuration.nocomment) { - MethodDoc method = (MethodDoc) methods.get(currentMethodIndex); - - if (method.inlineTags().length == 0) { - DocFinder.Output docs = DocFinder.search(configuration, - new DocFinder.Input(method)); - method = docs.inlineTags != null && docs.inlineTags.length > 0 ? - (MethodDoc) docs.holder : method; - } - //NOTE: When we fix the bug where ClassDoc.interfaceTypes() does - // not pass all implemented interfaces, holder will be the - // interface type. For now, it is really the erasure. - writer.addComments(method.containingClass(), method, methodDocTree); - } - } - - /** - * Build the tag information. - * - * @param node the XML element that specifies which components to document - * @param methodDocTree the content tree to which the documentation will be added - */ - public void buildTagInfo(XMLNode node, Content methodDocTree) { - writer.addTags((MethodDoc) methods.get(currentMethodIndex), - methodDocTree); - } - - /** - * Return the method writer for this builder. - * - * @return the method writer for this builder. - */ - public MethodWriter getWriter() { - return writer; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/PackageSummaryBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/PackageSummaryBuilder.java deleted file mode 100644 index fad38eec48e..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/PackageSummaryBuilder.java +++ /dev/null @@ -1,364 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit.builders; - -import java.io.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; - -/** - * Builds the summary for a given package. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class PackageSummaryBuilder extends AbstractBuilder { - /** - * The root element of the package summary XML is {@value}. - */ - public static final String ROOT = "PackageDoc"; - - /** - * The package being documented. - */ - private final PackageDoc packageDoc; - - /** - * The doclet specific writer that will output the result. - */ - private final PackageSummaryWriter packageWriter; - - /** - * The content that will be added to the package summary documentation tree. - */ - private Content contentTree; - - /** - * Construct a new PackageSummaryBuilder. - * - * @param context the build context. - * @param pkg the package being documented. - * @param packageWriter the doclet specific writer that will output the - * result. - */ - private PackageSummaryBuilder(Context context, - PackageDoc pkg, - PackageSummaryWriter packageWriter) { - super(context); - this.packageDoc = pkg; - this.packageWriter = packageWriter; - } - - /** - * Construct a new PackageSummaryBuilder. - * - * @param context the build context. - * @param pkg the package being documented. - * @param packageWriter the doclet specific writer that will output the - * result. - * - * @return an instance of a PackageSummaryBuilder. - */ - public static PackageSummaryBuilder getInstance(Context context, - PackageDoc pkg, PackageSummaryWriter packageWriter) { - return new PackageSummaryBuilder(context, pkg, packageWriter); - } - - /** - * Build the package summary. - */ - public void build() throws IOException { - if (packageWriter == null) { - //Doclet does not support this output. - return; - } - build(layoutParser.parseXML(ROOT), contentTree); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return ROOT; - } - - /** - * Build the package documentation. - * - * @param node the XML element that specifies which components to document - * @param contentTree the content tree to which the documentation will be added - */ - public void buildPackageDoc(XMLNode node, Content contentTree) throws Exception { - contentTree = packageWriter.getPackageHeader(utils.getPackageName(packageDoc)); - buildChildren(node, contentTree); - packageWriter.addPackageFooter(contentTree); - packageWriter.printDocument(contentTree); - packageWriter.close(); - utils.copyDocFiles(configuration, packageDoc); - } - - /** - * Build the content for the package doc. - * - * @param node the XML element that specifies which components to document - * @param contentTree the content tree to which the package contents - * will be added - */ - public void buildContent(XMLNode node, Content contentTree) { - Content packageContentTree = packageWriter.getContentHeader(); - buildChildren(node, packageContentTree); - packageWriter.addPackageContent(contentTree, packageContentTree); - } - - /** - * Build the package summary. - * - * @param node the XML element that specifies which components to document - * @param packageContentTree the package content tree to which the summaries will - * be added - */ - public void buildSummary(XMLNode node, Content packageContentTree) { - Content summaryContentTree = packageWriter.getSummaryHeader(); - buildChildren(node, summaryContentTree); - packageContentTree.addContent(summaryContentTree); - } - - /** - * Build the summary for the interfaces in this package. - * - * @param node the XML element that specifies which components to document - * @param summaryContentTree the summary tree to which the interface summary - * will be added - */ - public void buildInterfaceSummary(XMLNode node, Content summaryContentTree) { - String interfaceTableSummary = - configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Interface_Summary"), - configuration.getText("doclet.interfaces")); - String[] interfaceTableHeader = new String[] { - configuration.getText("doclet.Interface"), - configuration.getText("doclet.Description") - }; - ClassDoc[] interfaces = - packageDoc.isIncluded() - ? packageDoc.interfaces() - : configuration.classDocCatalog.interfaces( - utils.getPackageName(packageDoc)); - interfaces = utils.filterOutPrivateClasses(interfaces, configuration.javafx); - if (interfaces.length > 0) { - packageWriter.addClassesSummary( - interfaces, - configuration.getText("doclet.Interface_Summary"), - interfaceTableSummary, interfaceTableHeader, summaryContentTree); - } - } - - /** - * Build the summary for the classes in this package. - * - * @param node the XML element that specifies which components to document - * @param summaryContentTree the summary tree to which the class summary will - * be added - */ - public void buildClassSummary(XMLNode node, Content summaryContentTree) { - String classTableSummary = - configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Class_Summary"), - configuration.getText("doclet.classes")); - String[] classTableHeader = new String[] { - configuration.getText("doclet.Class"), - configuration.getText("doclet.Description") - }; - ClassDoc[] classes = - packageDoc.isIncluded() - ? packageDoc.ordinaryClasses() - : configuration.classDocCatalog.ordinaryClasses( - utils.getPackageName(packageDoc)); - classes = utils.filterOutPrivateClasses(classes, configuration.javafx); - if (classes.length > 0) { - packageWriter.addClassesSummary( - classes, - configuration.getText("doclet.Class_Summary"), - classTableSummary, classTableHeader, summaryContentTree); - } - } - - /** - * Build the summary for the enums in this package. - * - * @param node the XML element that specifies which components to document - * @param summaryContentTree the summary tree to which the enum summary will - * be added - */ - public void buildEnumSummary(XMLNode node, Content summaryContentTree) { - String enumTableSummary = - configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Enum_Summary"), - configuration.getText("doclet.enums")); - String[] enumTableHeader = new String[] { - configuration.getText("doclet.Enum"), - configuration.getText("doclet.Description") - }; - ClassDoc[] enums = - packageDoc.isIncluded() - ? packageDoc.enums() - : configuration.classDocCatalog.enums( - utils.getPackageName(packageDoc)); - enums = utils.filterOutPrivateClasses(enums, configuration.javafx); - if (enums.length > 0) { - packageWriter.addClassesSummary( - enums, - configuration.getText("doclet.Enum_Summary"), - enumTableSummary, enumTableHeader, summaryContentTree); - } - } - - /** - * Build the summary for the exceptions in this package. - * - * @param node the XML element that specifies which components to document - * @param summaryContentTree the summary tree to which the exception summary will - * be added - */ - public void buildExceptionSummary(XMLNode node, Content summaryContentTree) { - String exceptionTableSummary = - configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Exception_Summary"), - configuration.getText("doclet.exceptions")); - String[] exceptionTableHeader = new String[] { - configuration.getText("doclet.Exception"), - configuration.getText("doclet.Description") - }; - ClassDoc[] exceptions = - packageDoc.isIncluded() - ? packageDoc.exceptions() - : configuration.classDocCatalog.exceptions( - utils.getPackageName(packageDoc)); - exceptions = utils.filterOutPrivateClasses(exceptions, configuration.javafx); - if (exceptions.length > 0) { - packageWriter.addClassesSummary( - exceptions, - configuration.getText("doclet.Exception_Summary"), - exceptionTableSummary, exceptionTableHeader, summaryContentTree); - } - } - - /** - * Build the summary for the errors in this package. - * - * @param node the XML element that specifies which components to document - * @param summaryContentTree the summary tree to which the error summary will - * be added - */ - public void buildErrorSummary(XMLNode node, Content summaryContentTree) { - String errorTableSummary = - configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Error_Summary"), - configuration.getText("doclet.errors")); - String[] errorTableHeader = new String[] { - configuration.getText("doclet.Error"), - configuration.getText("doclet.Description") - }; - ClassDoc[] errors = - packageDoc.isIncluded() - ? packageDoc.errors() - : configuration.classDocCatalog.errors( - utils.getPackageName(packageDoc)); - errors = utils.filterOutPrivateClasses(errors, configuration.javafx); - if (errors.length > 0) { - packageWriter.addClassesSummary( - errors, - configuration.getText("doclet.Error_Summary"), - errorTableSummary, errorTableHeader, summaryContentTree); - } - } - - /** - * Build the summary for the annotation type in this package. - * - * @param node the XML element that specifies which components to document - * @param summaryContentTree the summary tree to which the annotation type - * summary will be added - */ - public void buildAnnotationTypeSummary(XMLNode node, Content summaryContentTree) { - String annotationtypeTableSummary = - configuration.getText("doclet.Member_Table_Summary", - configuration.getText("doclet.Annotation_Types_Summary"), - configuration.getText("doclet.annotationtypes")); - String[] annotationtypeTableHeader = new String[] { - configuration.getText("doclet.AnnotationType"), - configuration.getText("doclet.Description") - }; - ClassDoc[] annotationTypes = - packageDoc.isIncluded() - ? packageDoc.annotationTypes() - : configuration.classDocCatalog.annotationTypes( - utils.getPackageName(packageDoc)); - annotationTypes = utils.filterOutPrivateClasses(annotationTypes, configuration.javafx); - if (annotationTypes.length > 0) { - packageWriter.addClassesSummary( - annotationTypes, - configuration.getText("doclet.Annotation_Types_Summary"), - annotationtypeTableSummary, annotationtypeTableHeader, - summaryContentTree); - } - } - - /** - * Build the description of the summary. - * - * @param node the XML element that specifies which components to document - * @param packageContentTree the tree to which the package description will - * be added - */ - public void buildPackageDescription(XMLNode node, Content packageContentTree) { - if (configuration.nocomment) { - return; - } - packageWriter.addPackageDescription(packageContentTree); - } - - /** - * Build the tags of the summary. - * - * @param node the XML element that specifies which components to document - * @param packageContentTree the tree to which the package tags will be added - */ - public void buildPackageTags(XMLNode node, Content packageContentTree) { - if (configuration.nocomment) { - return; - } - packageWriter.addPackageTags(packageContentTree); - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/PropertyBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/PropertyBuilder.java deleted file mode 100644 index ba04ab2bd33..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/PropertyBuilder.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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.doclets.internal.toolkit.builders; - -import java.util.*; - -import com.sun.tools.doclets.internal.toolkit.util.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.javadoc.*; - -/** - * Builds documentation for a property. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.7 - */ -@Deprecated -public class PropertyBuilder extends AbstractMemberBuilder { - - /** - * The class whose properties are being documented. - */ - private final ClassDoc classDoc; - - /** - * The visible properties for the given class. - */ - private final VisibleMemberMap visibleMemberMap; - - /** - * The writer to output the property documentation. - */ - private final PropertyWriter writer; - - /** - * The list of properties being documented. - */ - private final List properties; - - /** - * The index of the current property that is being documented at this point - * in time. - */ - private int currentPropertyIndex; - - /** - * Construct a new PropertyBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - */ - private PropertyBuilder(Context context, - ClassDoc classDoc, - PropertyWriter writer) { - super(context); - this.classDoc = classDoc; - this.writer = writer; - visibleMemberMap = - new VisibleMemberMap( - classDoc, - VisibleMemberMap.PROPERTIES, - configuration); - properties = - new ArrayList<>(visibleMemberMap.getMembersFor(classDoc)); - if (configuration.getMemberComparator() != null) { - Collections.sort(properties, configuration.getMemberComparator()); - } - } - - /** - * Construct a new PropertyBuilder. - * - * @param context the build context. - * @param classDoc the class whoses members are being documented. - * @param writer the doclet specific writer. - */ - public static PropertyBuilder getInstance(Context context, - ClassDoc classDoc, - PropertyWriter writer) { - return new PropertyBuilder(context, classDoc, writer); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return "PropertyDetails"; - } - - /** - * Returns a list of properties that will be documented for the given class. - * This information can be used for doclet specific documentation - * generation. - * - * @param classDoc the {@link ClassDoc} we want to check. - * @return a list of properties that will be documented. - */ - public List members(ClassDoc classDoc) { - return visibleMemberMap.getMembersFor(classDoc); - } - - /** - * Returns the visible member map for the properties of this class. - * - * @return the visible member map for the properties of this class. - */ - public VisibleMemberMap getVisibleMemberMap() { - return visibleMemberMap; - } - - /** - * summaryOrder.size() - */ - public boolean hasMembersToDocument() { - return properties.size() > 0; - } - - /** - * Build the property documentation. - * - * @param node the XML element that specifies which components to document - * @param memberDetailsTree the content tree to which the documentation will be added - */ - public void buildPropertyDoc(XMLNode node, Content memberDetailsTree) { - if (writer == null) { - return; - } - int size = properties.size(); - if (size > 0) { - Content propertyDetailsTree = writer.getPropertyDetailsTreeHeader( - classDoc, memberDetailsTree); - for (currentPropertyIndex = 0; currentPropertyIndex < size; - currentPropertyIndex++) { - Content propertyDocTree = writer.getPropertyDocTreeHeader( - (MethodDoc) properties.get(currentPropertyIndex), - propertyDetailsTree); - buildChildren(node, propertyDocTree); - propertyDetailsTree.addContent(writer.getPropertyDoc( - propertyDocTree, (currentPropertyIndex == size - 1))); - } - memberDetailsTree.addContent( - writer.getPropertyDetails(propertyDetailsTree)); - } - } - - /** - * Build the signature. - * - * @param node the XML element that specifies which components to document - * @param propertyDocTree the content tree to which the documentation will be added - */ - public void buildSignature(XMLNode node, Content propertyDocTree) { - propertyDocTree.addContent( - writer.getSignature((MethodDoc) properties.get(currentPropertyIndex))); - } - - /** - * Build the deprecation information. - * - * @param node the XML element that specifies which components to document - * @param propertyDocTree the content tree to which the documentation will be added - */ - public void buildDeprecationInfo(XMLNode node, Content propertyDocTree) { - writer.addDeprecated( - (MethodDoc) properties.get(currentPropertyIndex), propertyDocTree); - } - - /** - * Build the comments for the property. Do nothing if - * {@link Configuration#nocomment} is set to true. - * - * @param node the XML element that specifies which components to document - * @param propertyDocTree the content tree to which the documentation will be added - */ - public void buildPropertyComments(XMLNode node, Content propertyDocTree) { - if (!configuration.nocomment) { - writer.addComments((MethodDoc) properties.get(currentPropertyIndex), propertyDocTree); - } - } - - /** - * Build the tag information. - * - * @param node the XML element that specifies which components to document - * @param propertyDocTree the content tree to which the documentation will be added - */ - public void buildTagInfo(XMLNode node, Content propertyDocTree) { - writer.addTags((MethodDoc) properties.get(currentPropertyIndex), propertyDocTree); - } - - /** - * Return the property writer for this builder. - * - * @return the property writer for this builder. - */ - public PropertyWriter getWriter() { - return writer; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java deleted file mode 100644 index 983d3faf2ef..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/SerializedFormBuilder.java +++ /dev/null @@ -1,594 +0,0 @@ -/* - * Copyright (c) 2003, 2015, 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.doclets.internal.toolkit.builders; - -import java.io.*; -import java.util.*; - -import com.sun.javadoc.*; -import com.sun.tools.doclets.internal.toolkit.*; -import com.sun.tools.doclets.internal.toolkit.util.*; -import com.sun.tools.javac.util.StringUtils; - -/** - * Builds the serialized form. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - * - * @author Jamie Ho - * @author Bhavesh Patel (Modified) - * @since 1.5 - */ -@Deprecated -public class SerializedFormBuilder extends AbstractBuilder { - - /** - * The root element of the serialized form XML is {@value}. - */ - public static final String NAME = "SerializedForm"; - - /** - * The writer for this builder. - */ - private SerializedFormWriter writer; - - /** - * The writer for serializable fields. - */ - private SerializedFormWriter.SerialFieldWriter fieldWriter; - - /** - * The writer for serializable method documentation. - */ - private SerializedFormWriter.SerialMethodWriter methodWriter; - - /** - * The header for the serial version UID. Save the string - * here instead of the properties file because we do not want - * this string to be localized. - */ - private static final String SERIAL_VERSION_UID_HEADER = "serialVersionUID:"; - - /** - * The current package being documented. - */ - private PackageDoc currentPackage; - - /** - * The current class being documented. - */ - private ClassDoc currentClass; - - /** - * The current member being documented. - */ - protected MemberDoc currentMember; - - /** - * The content that will be added to the serialized form documentation tree. - */ - private Content contentTree; - - - /** - * Construct a new SerializedFormBuilder. - * @param context the build context. - */ - private SerializedFormBuilder(Context context) { - super(context); - } - - /** - * Construct a new SerializedFormBuilder. - * @param context the build context. - */ - public static SerializedFormBuilder getInstance(Context context) { - return new SerializedFormBuilder(context); - } - - /** - * Build the serialized form. - */ - public void build() throws IOException { - if (! serialClassFoundToDocument(configuration.root.classes())) { - //Nothing to document. - return; - } - try { - writer = configuration.getWriterFactory().getSerializedFormWriter(); - if (writer == null) { - //Doclet does not support this output. - return; - } - } catch (Exception e) { - throw new DocletAbortException(e); - } - build(layoutParser.parseXML(NAME), contentTree); - writer.close(); - } - - /** - * {@inheritDoc} - */ - public String getName() { - return NAME; - } - - /** - * Build the serialized form. - * - * @param node the XML element that specifies which components to document - * @param serializedTree content tree to which the documentation will be added - */ - public void buildSerializedForm(XMLNode node, Content serializedTree) throws Exception { - serializedTree = writer.getHeader(configuration.getText( - "doclet.Serialized_Form")); - buildChildren(node, serializedTree); - writer.addFooter(serializedTree); - writer.printDocument(serializedTree); - writer.close(); - } - - /** - * Build the serialized form summaries. - * - * @param node the XML element that specifies which components to document - * @param serializedTree content tree to which the documentation will be added - */ - public void buildSerializedFormSummaries(XMLNode node, Content serializedTree) { - Content serializedSummariesTree = writer.getSerializedSummariesHeader(); - for (PackageDoc pkg : configuration.packages) { - currentPackage = pkg; - buildChildren(node, serializedSummariesTree); - } - serializedTree.addContent(writer.getSerializedContent( - serializedSummariesTree)); - } - - /** - * Build the package serialized form for the current package being processed. - * - * @param node the XML element that specifies which components to document - * @param serializedSummariesTree content tree to which the documentation will be added - */ - public void buildPackageSerializedForm(XMLNode node, Content serializedSummariesTree) { - Content packageSerializedTree = writer.getPackageSerializedHeader(); - String foo = currentPackage.name(); - ClassDoc[] classes = currentPackage.allClasses(false); - if (classes == null || classes.length == 0) { - return; - } - if (!serialInclude(currentPackage)) { - return; - } - if (!serialClassFoundToDocument(classes)) { - return; - } - buildChildren(node, packageSerializedTree); - writer.addPackageSerializedTree(serializedSummariesTree, packageSerializedTree); - } - - /** - * Build the package header. - * - * @param node the XML element that specifies which components to document - * @param packageSerializedTree content tree to which the documentation will be added - */ - public void buildPackageHeader(XMLNode node, Content packageSerializedTree) { - packageSerializedTree.addContent(writer.getPackageHeader( - utils.getPackageName(currentPackage))); - } - - /** - * Build the class serialized form. - * - * @param node the XML element that specifies which components to document - * @param packageSerializedTree content tree to which the documentation will be added - */ - public void buildClassSerializedForm(XMLNode node, Content packageSerializedTree) { - Content classSerializedTree = writer.getClassSerializedHeader(); - ClassDoc[] classes = currentPackage.allClasses(false); - Arrays.sort(classes); - for (ClassDoc classDoc : classes) { - currentClass = classDoc; - fieldWriter = writer.getSerialFieldWriter(currentClass); - methodWriter = writer.getSerialMethodWriter(currentClass); - if (currentClass.isClass() && currentClass.isSerializable()) { - if (!serialClassInclude(currentClass)) { - continue; - } - Content classTree = writer.getClassHeader(currentClass); - buildChildren(node, classTree); - classSerializedTree.addContent(classTree); - } - } - packageSerializedTree.addContent(classSerializedTree); - } - - /** - * Build the serial UID information for the given class. - * - * @param node the XML element that specifies which components to document - * @param classTree content tree to which the serial UID information will be added - */ - public void buildSerialUIDInfo(XMLNode node, Content classTree) { - Content serialUidTree = writer.getSerialUIDInfoHeader(); - for (FieldDoc field : currentClass.fields(false)) { - if (field.name().equals("serialVersionUID") && - field.constantValueExpression() != null) { - writer.addSerialUIDInfo(SERIAL_VERSION_UID_HEADER, - field.constantValueExpression(), serialUidTree); - break; - } - } - classTree.addContent(serialUidTree); - } - - /** - * Build the summaries for the methods and fields. - * - * @param node the XML element that specifies which components to document - * @param classTree content tree to which the documentation will be added - */ - public void buildClassContent(XMLNode node, Content classTree) { - Content classContentTree = writer.getClassContentHeader(); - buildChildren(node, classContentTree); - classTree.addContent(classContentTree); - } - - /** - * Build the summaries for the methods that belong to the given - * class. - * - * @param node the XML element that specifies which components to document - * @param classContentTree content tree to which the documentation will be added - */ - public void buildSerializableMethods(XMLNode node, Content classContentTree) { - Content serializableMethodTree = methodWriter.getSerializableMethodsHeader(); - MemberDoc[] members = currentClass.serializationMethods(); - int membersLength = members.length; - if (membersLength > 0) { - for (int i = 0; i < membersLength; i++) { - currentMember = members[i]; - Content methodsContentTree = methodWriter.getMethodsContentHeader( - (i == membersLength - 1)); - buildChildren(node, methodsContentTree); - serializableMethodTree.addContent(methodsContentTree); - } - } - if (currentClass.serializationMethods().length > 0) { - classContentTree.addContent(methodWriter.getSerializableMethods( - configuration.getText("doclet.Serialized_Form_methods"), - serializableMethodTree)); - if (currentClass.isSerializable() && !currentClass.isExternalizable()) { - if (currentClass.serializationMethods().length == 0) { - Content noCustomizationMsg = methodWriter.getNoCustomizationMsg( - configuration.getText( - "doclet.Serializable_no_customization")); - classContentTree.addContent(methodWriter.getSerializableMethods( - configuration.getText("doclet.Serialized_Form_methods"), - noCustomizationMsg)); - } - } - } - } - - /** - * Build the method sub header. - * - * @param node the XML element that specifies which components to document - * @param methodsContentTree content tree to which the documentation will be added - */ - public void buildMethodSubHeader(XMLNode node, Content methodsContentTree) { - methodWriter.addMemberHeader((MethodDoc)currentMember, methodsContentTree); - } - - /** - * Build the deprecated method description. - * - * @param node the XML element that specifies which components to document - * @param methodsContentTree content tree to which the documentation will be added - */ - public void buildDeprecatedMethodInfo(XMLNode node, Content methodsContentTree) { - methodWriter.addDeprecatedMemberInfo((MethodDoc) currentMember, methodsContentTree); - } - - /** - * Build the information for the method. - * - * @param node the XML element that specifies which components to document - * @param methodsContentTree content tree to which the documentation will be added - */ - public void buildMethodInfo(XMLNode node, Content methodsContentTree) { - if(configuration.nocomment){ - return; - } - buildChildren(node, methodsContentTree); - } - - /** - * Build method description. - * - * @param node the XML element that specifies which components to document - * @param methodsContentTree content tree to which the documentation will be added - */ - public void buildMethodDescription(XMLNode node, Content methodsContentTree) { - methodWriter.addMemberDescription((MethodDoc) currentMember, methodsContentTree); - } - - /** - * Build the method tags. - * - * @param node the XML element that specifies which components to document - * @param methodsContentTree content tree to which the documentation will be added - */ - public void buildMethodTags(XMLNode node, Content methodsContentTree) { - methodWriter.addMemberTags((MethodDoc) currentMember, methodsContentTree); - MethodDoc method = (MethodDoc)currentMember; - if (method.name().compareTo("writeExternal") == 0 - && method.tags("serialData").length == 0) { - if (configuration.serialwarn) { - configuration.getDocletSpecificMsg().warning( - currentMember.position(), "doclet.MissingSerialDataTag", - method.containingClass().qualifiedName(), method.name()); - } - } - } - - /** - * Build the field header. - * - * @param node the XML element that specifies which components to document - * @param classContentTree content tree to which the documentation will be added - */ - public void buildFieldHeader(XMLNode node, Content classContentTree) { - if (currentClass.serializableFields().length > 0) { - buildFieldSerializationOverview(currentClass, classContentTree); - } - } - - /** - * Build the serialization overview for the given class. - * - * @param classDoc the class to print the overview for. - * @param classContentTree content tree to which the documentation will be added - */ - public void buildFieldSerializationOverview(ClassDoc classDoc, Content classContentTree) { - if (classDoc.definesSerializableFields()) { - FieldDoc serialPersistentField = classDoc.serializableFields()[0]; - // Check to see if there are inline comments, tags or deprecation - // information to be printed. - if (fieldWriter.shouldPrintOverview(serialPersistentField)) { - Content serializableFieldsTree = fieldWriter.getSerializableFieldsHeader(); - Content fieldsOverviewContentTree = fieldWriter.getFieldsContentHeader(true); - fieldWriter.addMemberDeprecatedInfo(serialPersistentField, - fieldsOverviewContentTree); - if (!configuration.nocomment) { - fieldWriter.addMemberDescription(serialPersistentField, - fieldsOverviewContentTree); - fieldWriter.addMemberTags(serialPersistentField, - fieldsOverviewContentTree); - } - serializableFieldsTree.addContent(fieldsOverviewContentTree); - classContentTree.addContent(fieldWriter.getSerializableFields( - configuration.getText("doclet.Serialized_Form_class"), - serializableFieldsTree)); - } - } - } - - /** - * Build the summaries for the fields that belong to the given class. - * - * @param node the XML element that specifies which components to document - * @param classContentTree content tree to which the documentation will be added - */ - public void buildSerializableFields(XMLNode node, Content classContentTree) { - MemberDoc[] members = currentClass.serializableFields(); - int membersLength = members.length; - if (membersLength > 0) { - Content serializableFieldsTree = fieldWriter.getSerializableFieldsHeader(); - for (int i = 0; i < membersLength; i++) { - currentMember = members[i]; - if (!currentClass.definesSerializableFields()) { - Content fieldsContentTree = fieldWriter.getFieldsContentHeader( - (i == membersLength - 1)); - buildChildren(node, fieldsContentTree); - serializableFieldsTree.addContent(fieldsContentTree); - } - else { - buildSerialFieldTagsInfo(serializableFieldsTree); - } - } - classContentTree.addContent(fieldWriter.getSerializableFields( - configuration.getText("doclet.Serialized_Form_fields"), - serializableFieldsTree)); - } - } - - /** - * Build the field sub header. - * - * @param node the XML element that specifies which components to document - * @param fieldsContentTree content tree to which the documentation will be added - */ - public void buildFieldSubHeader(XMLNode node, Content fieldsContentTree) { - if (!currentClass.definesSerializableFields()) { - FieldDoc field = (FieldDoc) currentMember; - fieldWriter.addMemberHeader(field.type().asClassDoc(), - field.type().typeName(), field.type().dimension(), field.name(), - fieldsContentTree); - } - } - - /** - * Build the field deprecation information. - * - * @param node the XML element that specifies which components to document - * @param fieldsContentTree content tree to which the documentation will be added - */ - public void buildFieldDeprecationInfo(XMLNode node, Content fieldsContentTree) { - if (!currentClass.definesSerializableFields()) { - FieldDoc field = (FieldDoc)currentMember; - fieldWriter.addMemberDeprecatedInfo(field, fieldsContentTree); - } - } - - /** - * Build the serial field tags information. - * - * @param serializableFieldsTree content tree to which the documentation will be added - */ - public void buildSerialFieldTagsInfo(Content serializableFieldsTree) { - if(configuration.nocomment){ - return; - } - FieldDoc field = (FieldDoc)currentMember; - // Process Serializable Fields specified as array of - // ObjectStreamFields. Print a member for each serialField tag. - // (There should be one serialField tag per ObjectStreamField - // element.) - SerialFieldTag[] tags = field.serialFieldTags(); - Arrays.sort(tags); - int tagsLength = tags.length; - for (int i = 0; i < tagsLength; i++) { - if (tags[i].fieldName() == null || tags[i].fieldType() == null) // ignore malformed @serialField tags - continue; - Content fieldsContentTree = fieldWriter.getFieldsContentHeader( - (i == tagsLength - 1)); - fieldWriter.addMemberHeader(tags[i].fieldTypeDoc(), - tags[i].fieldType(), "", tags[i].fieldName(), fieldsContentTree); - fieldWriter.addMemberDescription(tags[i], fieldsContentTree); - serializableFieldsTree.addContent(fieldsContentTree); - } - } - - /** - * Build the field information. - * - * @param node the XML element that specifies which components to document - * @param fieldsContentTree content tree to which the documentation will be added - */ - public void buildFieldInfo(XMLNode node, Content fieldsContentTree) { - if(configuration.nocomment){ - return; - } - FieldDoc field = (FieldDoc)currentMember; - ClassDoc cd = field.containingClass(); - // Process default Serializable field. - if ((field.tags("serial").length == 0) && ! field.isSynthetic() - && configuration.serialwarn) { - configuration.message.warning(field.position(), - "doclet.MissingSerialTag", cd.qualifiedName(), - field.name()); - } - fieldWriter.addMemberDescription(field, fieldsContentTree); - fieldWriter.addMemberTags(field, fieldsContentTree); - } - - /** - * Return true if the given Doc should be included - * in the serialized form. - * - * @param doc the Doc object to check for serializability. - */ - public static boolean serialInclude(Doc doc) { - if (doc == null) { - return false; - } - return doc.isClass() ? - serialClassInclude((ClassDoc)doc) : - serialDocInclude(doc); - } - - /** - * Return true if the given ClassDoc should be included - * in the serialized form. - * - * @param cd the ClassDoc object to check for serializability. - */ - private static boolean serialClassInclude(ClassDoc cd) { - if (cd.isEnum()) { - return false; - } - try { - cd.superclassType(); - } catch (NullPointerException e) { - //Workaround for null pointer bug in ClassDoc.superclassType(). - return false; - } - if (cd.isSerializable()) { - if (cd.tags("serial").length > 0) { - return serialDocInclude(cd); - } else if (cd.isPublic() || cd.isProtected()) { - return true; - } else { - return false; - } - } - return false; - } - - /** - * Return true if the given Doc should be included - * in the serialized form. - * - * @param doc the Doc object to check for serializability. - */ - private static boolean serialDocInclude(Doc doc) { - if (doc.isEnum()) { - return false; - } - Tag[] serial = doc.tags("serial"); - if (serial.length > 0) { - String serialtext = StringUtils.toLowerCase(serial[0].text()); - if (serialtext.contains("exclude")) { - return false; - } else if (serialtext.contains("include")) { - return true; - } - } - return true; - } - - /** - * Return true if any of the given classes have a @serialinclude tag. - * - * @param classes the classes to check. - * @return true if any of the given classes have a @serialinclude tag. - */ - private boolean serialClassFoundToDocument(ClassDoc[] classes) { - for (ClassDoc aClass : classes) { - if (serialClassInclude(aClass)) { - return true; - } - } - return false; - } -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/XMLNode.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/XMLNode.java deleted file mode 100644 index f32bd6681fa..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/XMLNode.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2010, 2012, 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.doclets.internal.toolkit.builders; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * Simple class to represent the attribute and elements of an XML node. - * - *

    This is NOT part of any supported API. - * If you write code that depends on this, you do so at your own risk. - * This code and its internal interfaces are subject to change or - * deletion without notice. - */ -@Deprecated -public class XMLNode { - XMLNode(XMLNode parent, String qname) { - this.parent = parent; - name = qname; - attrs = new HashMap<>(); - children = new ArrayList<>(); - - if (parent != null) - parent.children.add(this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("<"); - sb.append(name); - for (Map.Entry e: attrs.entrySet()) - sb.append(" " + e.getKey() + "=\"" + e.getValue() + "\""); - if (children.size() == 0) - sb.append("/>"); - else { - sb.append(">"); - for (XMLNode c: children) - sb.append(c.toString()); - sb.append(""); - } - return sb.toString(); - } - - final XMLNode parent; - final String name; - final Map attrs; - final List children; -} diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/package-info.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/package-info.java deleted file mode 100644 index c11193fc36a..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/builders/package-info.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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. - */ - -/** - This doclet-independent package has a set of classes and - interfaces that are the building blocks for doclets. They - define the basic structure of doclets and make doclet - writing much easier because they provide the content generation - code to be shared among different doclets. Builders only provide - the structure and content of API documentation. - They will not provide any style markup. - -

    This is NOT part of any supported API. - If you write code that depends on this, you do so at your own risk. - This code and its internal interfaces are subject to change or - deletion without notice. -*/ - -package com.sun.tools.doclets.internal.toolkit.builders; diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/package-info.java b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/package-info.java deleted file mode 100644 index 30bc952e01b..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/package-info.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2003, 2013, 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. - */ - -/** - Contains the base classes that make up a doclet. Doclets that reuse - the functionality provided by the toolkit should have the following - characteristics: -

      -
    • - The main driver class should extend - {@link com.sun.tools.doclets.internal.toolkit.AbstractDoclet}. -
    • -
    • - The doclet configuration class should extend - {@link com.sun.tools.doclets.internal.toolkit.Configuration}. -
    • -
    • - The doclet should have a writer factory that implements - {@link com.sun.tools.doclets.internal.toolkit.WriterFactory}. - This class constructs writers that write doclet specific output. -
    • -
    • - The doclet should have a taglet writer that extends - {@link com.sun.tools.doclets.internal.toolkit.taglets.TagletWriter}. - This writer determines how to output each given tag. -
    • -
    - -

    This is NOT part of any supported API. - If you write code that depends on this, you do so at your own risk. - This code and its internal interfaces are subject to change or - deletion without notice. -*/ - -package com.sun.tools.doclets.internal.toolkit; diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclet.xml b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclet.xml deleted file mode 100644 index 3cbe58297e5..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclet.xml +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - - - -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets.properties b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets.properties deleted file mode 100644 index dd6bfc038de..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets.properties +++ /dev/null @@ -1,219 +0,0 @@ -doclet.Generating_0=Generating {0}... -doclet.Toolkit_Usage_Violation=The Doclet Toolkit can only be used by {0} -doclet.MissingSerialTag=in class {0}, missing @serial tag for default serializable field: {1}. -doclet.MissingSerialDataTag=in class {0}, missing @serialData tag in method {1}. -doclet.Serializable_no_customization=No readObject or writeObject method declared. -doclet.Serialized_Form=Serialized Form -doclet.Serialized_Form_methods=Serialization Methods -doclet.Serialized_Form_fields=Serialized Fields -doclet.Serialized_Form_class=Serialization Overview -doclet.Class_0_implements_serializable=Class {0} implements Serializable -doclet.Class_0_extends_implements_serializable=Class {0} extends {1} implements Serializable -doclet.Option_conflict=Option {0} conflicts with {1} -doclet.Option_reuse=Option reused: {0} -doclet.Option_doclint_no_qualifiers=Access qualifiers not permitted for -Xdoclint arguments -doclet.Option_doclint_invalid_arg=Invalid argument for -Xdoclint option -doclet.Option_doclint_package_invalid_arg=Invalid argument for -Xdoclint/package option -doclet.exception_encountered= {0} encountered \n\ -\twhile attempting to create file: {1} -doclet.perform_copy_exception_encountered= {0} encountered while \n\ -performing copy. -doclet.File_not_found=File not found: {0} -doclet.Copy_Overwrite_warning=File {0} not copied to {1} due to existing file with same name... -doclet.Copying_File_0_To_Dir_1=Copying file {0} to directory {1}... -doclet.Copying_File_0_To_File_1=Copying file {0} to file {1}... -doclet.No_Public_Classes_To_Document=No public or protected classes found to document. -doclet.destination_directory_not_directory_0=Destination directory is not a directory {0} -doclet.destination_directory_not_writable_0=Destination directory not writable {0} -doclet.Encoding_not_supported=Encoding not supported: {0} -doclet.Building_Tree=Building tree for all the packages and classes... -doclet.Building_Index=Building index for all the packages and classes... -doclet.Building_Index_For_All_Classes=Building index for all classes... -doclet.JavaScript_in_option=Argument for {0} contains JavaScript.\n\ -Use --allow-script-in-comments to allow use of JavaScript. -doclet.sourcetab_warning=The argument for -sourcetab must be an integer greater than 0. -doclet.Packages=Packages -doclet.Other_Packages=Other Packages -doclet.Notice_taglet_registered=Registered Taglet {0} ... -doclet.Notice_taglet_unseen=Note: Custom tags that were not seen: {0} -doclet.Notice_taglet_overriden=Note: Custom tags that override standard tags: {0} -doclet.Notice_taglet_conflict_warn=Note: Custom tags that could override future standard tags: {0}. To avoid potential overrides, use at least one period character (.) in custom tag names. -doclet.Error_taglet_not_registered=Error - Exception {0} thrown while trying to register Taglet {1}... -doclet.Error_invalid_custom_tag_argument=Error - {0} is an invalid argument to the -tag option... -doclet.Author=Author: -doclet.DefaultValue=Default value: -doclet.PropertyDescription=Property description: -doclet.PropertyGetter=Gets the value of the property -doclet.PropertySetter=Sets the value of the property -doclet.PropertyGetterWithName=Gets the value of the property {0}. -doclet.PropertySetterWithName=Sets the value of the property {0}. -doclet.Default=Default: -doclet.Parameters=Parameters: -doclet.TypeParameters=Type Parameters: -doclet.Parameters_warn=@param argument "{0}" is not a parameter name. -doclet.Parameters_dup_warn=Parameter "{0}" is documented more than once. -doclet.Type_Parameters_warn=@param argument "{0}" is not a type parameter name. -doclet.Type_Parameters_dup_warn=Type parameter "{0}" is documented more than once. -doclet.Returns=Returns: -doclet.Return_tag_on_void_method=@return tag cannot be used in method with void return type. -doclet.See_Also=See Also: -doclet.See=See: -doclet.SerialData=Serial Data: -doclet.Since=Since: -doclet.Throws=Throws: -doclet.Version=Version: -doclet.Factory=Factory: -doclet.UnknownTag={0} is an unknown tag. -doclet.UnknownTagLowercase={0} is an unknown tag -- same as a known tag except for case. -doclet.noInheritedDoc=@inheritDoc used but {0} does not override or implement any method. -doclet.malformed_html_link_tag= tag is malformed:\n"{0}" -doclet.tag_misuse=Tag {0} cannot be used in {1} documentation. It can only be used in the following types of documentation: {2}. -doclet.javafx_tag_misuse=Tags @propertyGetter, @propertySetter and @propertyDescription can only be used in JavaFX properties getters and setters. -doclet.Package_Summary=Package Summary -doclet.Interface_Summary=Interface Summary -doclet.Annotation_Types_Summary=Annotation Types Summary -doclet.Enum_Summary=Enum Summary -doclet.Exception_Summary=Exception Summary -doclet.Error_Summary=Error Summary -doclet.Class_Summary=Class Summary -doclet.Nested_Class_Summary=Nested Class Summary -doclet.Annotation_Type_Optional_Member_Summary=Optional Element Summary -doclet.Annotation_Type_Required_Member_Summary=Required Element Summary -doclet.Field_Summary=Field Summary -doclet.Property_Summary=Property Summary -doclet.Enum_Constant_Summary=Enum Constant Summary -doclet.Constructor_Summary=Constructor Summary -doclet.Method_Summary=Method Summary -doclet.Interfaces=Interfaces -doclet.Enums=Enums -doclet.AnnotationTypes=Annotation Types -doclet.Exceptions=Exceptions -doclet.Errors=Errors -doclet.Classes=Classes -doclet.Packages=Packages -doclet.packages=packages -doclet.All_Classes=All Classes -doclet.All_Superinterfaces=All Superinterfaces: -doclet.All_Implemented_Interfaces=All Implemented Interfaces: -doclet.All_classes_and_interfaces=All classes and interfaces (except non-static nested types) -doclet.Package_class_and_interface_descriptions=Package, class and interface descriptions -doclet.Interface=Interface -doclet.Class=Class -doclet.AnnotationType=Annotation Type -doclet.annotationtype=annotation type -doclet.annotationtypes=annotation types -doclet.Enum=Enum -doclet.enum=enum -doclet.enums=enums -doclet.interface=interface -doclet.interfaces=interfaces -doclet.class=class -doclet.classes=classes -doclet.Error=Error -doclet.error=error -doclet.errors=errors -doclet.Exception=Exception -doclet.exception=exception -doclet.exceptions=exceptions -doclet.Package_private=(package private) -doclet.Nested_Classes_Interfaces_Inherited_From_Class=Nested classes/interfaces inherited from class -doclet.Nested_Classes_Interface_Inherited_From_Interface=Nested classes/interfaces inherited from interface -doclet.Methods_Inherited_From_Class=Methods inherited from class -doclet.Methods_Inherited_From_Interface=Methods inherited from interface -doclet.Fields_Inherited_From_Class=Fields inherited from class -doclet.Fields_Inherited_From_Interface=Fields inherited from interface -doclet.Properties_Inherited_From_Class=Properties inherited from class -doclet.Properties_Inherited_From_Interface=Properties inherited from interface -doclet.Annotation_Type_Member_Detail=Element Detail -doclet.Enum_Constant_Detail=Enum Constant Detail -doclet.Constants_Summary=Constant Field Values -doclet.Field_Detail=Field Detail -doclet.Property_Detail=Property Detail -doclet.Method_Detail=Method Detail -doclet.Constructor_Detail=Constructor Detail -doclet.Deprecated=Deprecated. -doclet.Groupname_already_used=In -group option, groupname already used: {0} -doclet.value_tag_invalid_reference={0} (referenced by @value tag) is an unknown reference. -doclet.value_tag_invalid_constant=@value tag (which references {0}) can only be used in constants. -doclet.value_tag_invalid_use=@value tag cannot be used here. -doclet.dest_dir_create=Creating destination directory: "{0}" -doclet.in={0} in {1} -doclet.Use_Table_Summary=Use table, listing {0}, and an explanation -doclet.Constants_Table_Summary={0} table, listing constant fields, and values -doclet.Member_Table_Summary={0} table, listing {1}, and an explanation -doclet.fields=fields -doclet.Fields=Fields -doclet.properties=properties -doclet.Properties=Properties -doclet.constructors=constructors -doclet.Constructors=Constructors -doclet.methods=methods -doclet.Methods=Methods -doclet.All_Methods=All Methods -doclet.Static_Methods=Static Methods -doclet.Instance_Methods=Instance Methods -doclet.Abstract_Methods=Abstract Methods -doclet.Concrete_Methods=Concrete Methods -doclet.Default_Methods=Default Methods -doclet.Deprecated_Methods=Deprecated Methods -doclet.annotation_type_optional_members=optional elements -doclet.Annotation_Type_Optional_Members=Optional Elements -doclet.annotation_type_required_members=required elements -doclet.Annotation_Type_Required_Members=Required Elements -doclet.enum_constants=enum constants -doclet.Enum_Constants=Enum Constants -doclet.nested_classes=nested classes -doclet.Nested_Classes=Nested Classes -doclet.subclasses=subclasses -doclet.subinterfaces=subinterfaces -doclet.Modifier=Modifier -doclet.Type=Type -doclet.Types=Types -doclet.Members=Members -doclet.SearchTags=SearchTags -doclet.search=SEARCH: -doclet.invalid_usage_of_tag=invalid usage of {0} tag. -doclet.Field=Field -doclet.Property=Property -doclet.Constructor=Constructor -doclet.Method=Method -doclet.Annotation_Type_Optional_Member=Optional Element -doclet.Annotation_Type_Required_Member=Required Element -doclet.Annotation_Type_Member=Annotation Type Element -doclet.Enum_Constant=Enum Constant -doclet.Class=Class -doclet.Description=Description -doclet.ConstantField=Constant Field -doclet.Value=Value -doclet.0_and_1={0} and {1} - -#Documentation for Enums -doclet.enum_values_doc.main=\n\ - Returns an array containing the constants of this enum type, in\n\ - the order they are declared. This method may be used to iterate\n\ - over the constants as follows:\n\ -
    \n\
    - for ({0} c : {0}.values())\n\
    -     System.out.println(c);\n\
    - 
    - -doclet.enum_values_doc.return=\n\ - an array containing the constants of this enum type, in the order they are declared - -doclet.enum_valueof_doc.main=\n\ - Returns the enum constant of this type with the specified name.\n\ - The string must match exactly an identifier used to declare an\n\ - enum constant in this type. (Extraneous whitespace characters are \n\ - not permitted.) - -doclet.enum_valueof_doc.param_name=\ - the name of the enum constant to be returned. - -doclet.enum_valueof_doc.return=\ - the enum constant with the specified name - -doclet.enum_valueof_doc.throws_ila=\ - if this enum type has no constant with the specified name - -doclet.enum_valueof_doc.throws_npe=\ - if the argument is null diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_ja.properties b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_ja.properties deleted file mode 100644 index 03f488a3293..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_ja.properties +++ /dev/null @@ -1,200 +0,0 @@ -doclet.Generating_0={0}\u306E\u751F\u6210\u4E2D... -doclet.Toolkit_Usage_Violation=\u30C9\u30C3\u30AF\u30EC\u30C3\u30C8\u30FB\u30C4\u30FC\u30EB\u30FB\u30AD\u30C3\u30C8\u306F{0}\u306B\u3088\u3063\u3066\u306E\u307F\u4F7F\u7528\u3055\u308C\u307E\u3059 -doclet.MissingSerialTag=\u30AF\u30E9\u30B9{0}\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u76F4\u5217\u5316\u53EF\u80FD\u30D5\u30A3\u30FC\u30EB\u30C9{1}\u306E\u305F\u3081\u306E@serial\u30BF\u30B0\u304C\u3042\u308A\u307E\u305B\u3093\u3002 -doclet.MissingSerialDataTag=\u30AF\u30E9\u30B9{0}\u306E\u30E1\u30BD\u30C3\u30C9{1}\u306B@serialData\u30BF\u30B0\u304C\u3042\u308A\u307E\u305B\u3093\u3002 -doclet.Serializable_no_customization=readObject\u307E\u305F\u306FwriteObject\u30E1\u30BD\u30C3\u30C9\u304C\u5BA3\u8A00\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002 -doclet.Serialized_Form=\u76F4\u5217\u5316\u3055\u308C\u305F\u5F62\u5F0F -doclet.Serialized_Form_methods=\u76F4\u5217\u5316\u30E1\u30BD\u30C3\u30C9 -doclet.Serialized_Form_fields=\u76F4\u5217\u5316\u3055\u308C\u305F\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.Serialized_Form_class=\u76F4\u5217\u5316\u306E\u6982\u8981 -doclet.Class_0_implements_serializable=Class {0} implements Serializable -doclet.Class_0_extends_implements_serializable=Class {0} extends {1} implements Serializable -doclet.Option_conflict=\u30AA\u30D7\u30B7\u30E7\u30F3{0}\u304C{1}\u3068\u77DB\u76FE\u3057\u307E\u3059 -doclet.Option_reuse=\u30AA\u30D7\u30B7\u30E7\u30F3\u304C\u518D\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059: {0} -doclet.Option_doclint_no_qualifiers=\u30A2\u30AF\u30BB\u30B9\u4FEE\u98FE\u5B50\u306F-Xdoclint\u306E\u5F15\u6570\u306B\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093 -doclet.Option_doclint_invalid_arg=-Xdoclint\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u5F15\u6570\u304C\u7121\u52B9\u3067\u3059 -doclet.Option_doclint_package_invalid_arg=-Xdoclint/package\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u5F15\u6570\u304C\u7121\u52B9\u3067\u3059 -doclet.exception_encountered= {0}\u3092\u691C\u51FA\n\t\u30D5\u30A1\u30A4\u30EB\u306E\u4F5C\u6210\u4E2D: {1} -doclet.perform_copy_exception_encountered= \u30B3\u30D4\u30FC\u5B9F\u884C\u4E2D\u306B{0}\u3092\n\u691C\u51FA\u3057\u307E\u3057\u305F\u3002 -doclet.File_not_found=\u30D5\u30A1\u30A4\u30EB\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093: {0} -doclet.Copy_Overwrite_warning=\u30D5\u30A1\u30A4\u30EB{0}\u306F\u540C\u3058\u540D\u524D\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308B\u306E\u3067{1}\u306B\u30B3\u30D4\u30FC\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F... -doclet.Copying_File_0_To_Dir_1=\u30D5\u30A1\u30A4\u30EB{0}\u3092\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA{1}\u306B\u30B3\u30D4\u30FC\u4E2D... -doclet.Copying_File_0_To_File_1=\u30D5\u30A1\u30A4\u30EB{0}\u3092\u30D5\u30A1\u30A4\u30EB{1}\u306B\u30B3\u30D4\u30FC\u4E2D... -doclet.No_Public_Classes_To_Document=\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308Bpublic\u307E\u305F\u306Fprotected\u30AF\u30E9\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002 -doclet.destination_directory_not_directory_0=\u8EE2\u9001\u5148\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA{0}\u306F\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3067\u306F\u3042\u308A\u307E\u305B\u3093 -doclet.destination_directory_not_writable_0=\u8EE2\u9001\u5148\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA{0}\u306F\u66F8\u8FBC\u307F\u53EF\u80FD\u3067\u306F\u3042\u308A\u307E\u305B\u3093 -doclet.Encoding_not_supported=\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0{0}\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093 -doclet.Building_Tree=\u5168\u30D1\u30C3\u30B1\u30FC\u30B8\u3068\u30AF\u30E9\u30B9\u306E\u968E\u5C64\u30C4\u30EA\u30FC\u3092\u4F5C\u6210\u3057\u3066\u3044\u307E\u3059... -doclet.Building_Index=\u5168\u30D1\u30C3\u30B1\u30FC\u30B8\u3068\u30AF\u30E9\u30B9\u306E\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9\u3092\u4F5C\u6210\u3057\u3066\u3044\u307E\u3059... -doclet.Building_Index_For_All_Classes=\u5168\u30AF\u30E9\u30B9\u306E\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9\u3092\u4F5C\u6210\u3057\u3066\u3044\u307E\u3059... -doclet.JavaScript_in_option={0}\u306E\u5F15\u6570\u306BJavaScript\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002\n--allow-script-in-comments\u3092\u4F7F\u7528\u3057\u3066\u3001JavaScript\u306E\u4F7F\u7528\u3092\u8A31\u53EF\u3057\u3066\u304F\u3060\u3055\u3044\u3002 -doclet.sourcetab_warning=-sourcetab\u306E\u5F15\u6570\u306F0\u3088\u308A\u5927\u304D\u3044\u6574\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002 -doclet.Packages=\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.Other_Packages=\u305D\u306E\u4ED6\u306E\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.Notice_taglet_registered=\u767B\u9332\u3055\u308C\u305F\u30BF\u30B0\u30EC\u30C3\u30C8{0} ... -doclet.Notice_taglet_unseen=\u6CE8\u610F: \u975E\u8868\u793A\u306E\u30AB\u30B9\u30BF\u30E0\u30FB\u30BF\u30B0: {0} -doclet.Notice_taglet_overriden=\u6CE8\u610F: \u6A19\u6E96\u30BF\u30B0\u3092\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3059\u308B\u30AB\u30B9\u30BF\u30E0\u30FB\u30BF\u30B0: {0} -doclet.Notice_taglet_conflict_warn=\u6CE8\u610F: \u6A19\u6E96\u30BF\u30B0\u3092\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3059\u308B\u53EF\u80FD\u6027\u306E\u3042\u308B\u30AB\u30B9\u30BF\u30E0\u30FB\u30BF\u30B0: {0}\u3002\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3092\u907F\u3051\u308B\u305F\u3081\u306B\u3001\u30AB\u30B9\u30BF\u30E0\u30FB\u30BF\u30B0\u540D\u306E\u4E2D\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D4\u30EA\u30AA\u30C9(.)\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002 -doclet.Error_taglet_not_registered=\u30A8\u30E9\u30FC - \u30BF\u30B0\u30EC\u30C3\u30C8{1}\u3092\u767B\u9332\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308B\u3068\u304D\u306B\u3001\u4F8B\u5916{0}\u304C\u30B9\u30ED\u30FC\u3055\u308C\u307E\u3057\u305F... -doclet.Error_invalid_custom_tag_argument=\u30A8\u30E9\u30FC - {0}\u306F-tag\u30AA\u30D7\u30B7\u30E7\u30F3\u306B\u5BFE\u3057\u3066\u7121\u52B9\u306A\u5F15\u6570\u3067\u3059... -doclet.Author=\u4F5C\u6210\u8005: -doclet.DefaultValue=\u30C7\u30D5\u30A9\u30EB\u30C8\u5024: -doclet.PropertyDescription=\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u8AAC\u660E: -doclet.PropertyGetter=\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u5024\u3092\u53D6\u5F97\u3057\u307E\u3059 -doclet.PropertySetter=\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u5024\u3092\u8A2D\u5B9A\u3057\u307E\u3059 -doclet.PropertyGetterWithName=\u30D7\u30ED\u30D1\u30C6\u30A3{0}\u306E\u5024\u3092\u53D6\u5F97\u3057\u307E\u3059\u3002 -doclet.PropertySetterWithName=\u30D7\u30ED\u30D1\u30C6\u30A3{0}\u306E\u5024\u3092\u8A2D\u5B9A\u3057\u307E\u3059\u3002 -doclet.Default=\u30C7\u30D5\u30A9\u30EB\u30C8: -doclet.Parameters=\u30D1\u30E9\u30E1\u30FC\u30BF: -doclet.TypeParameters=\u578B\u30D1\u30E9\u30E1\u30FC\u30BF: -doclet.Parameters_warn=@param argument "{0}"\u306F\u30D1\u30E9\u30E1\u30FC\u30BF\u540D\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002 -doclet.Parameters_dup_warn=\u30D1\u30E9\u30E1\u30FC\u30BF"{0}"\u304C2\u56DE\u4EE5\u4E0A\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3055\u308C\u3066\u3044\u307E\u3059\u3002 -doclet.Type_Parameters_warn=@param argument "{0}"\u306F\u578B\u30D1\u30E9\u30E1\u30FC\u30BF\u540D\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002 -doclet.Type_Parameters_dup_warn=\u578B\u30D1\u30E9\u30E1\u30FC\u30BF"{0}"\u304C2\u56DE\u4EE5\u4E0A\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3055\u308C\u3066\u3044\u307E\u3059\u3002 -doclet.Returns=\u623B\u308A\u5024: -doclet.Return_tag_on_void_method=\u623B\u308A\u5024\u306E\u578B\u304Cvoid\u306E\u30E1\u30BD\u30C3\u30C9\u3067\u306F@return\u30BF\u30B0\u3092\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002 -doclet.See_Also=\u95A2\u9023\u9805\u76EE: -doclet.See=\u53C2\u7167\u5148: -doclet.SerialData=\u30B7\u30EA\u30A2\u30EB\u30FB\u30C7\u30FC\u30BF: -doclet.Since=\u5C0E\u5165\u3055\u308C\u305F\u30D0\u30FC\u30B8\u30E7\u30F3: -doclet.Throws=\u4F8B\u5916: -doclet.Version=\u30D0\u30FC\u30B8\u30E7\u30F3: -doclet.Factory=\u30D5\u30A1\u30AF\u30C8\u30EA: -doclet.UnknownTag={0}\u306F\u4E0D\u660E\u306A\u30BF\u30B0\u3067\u3059\u3002 -doclet.UnknownTagLowercase={0}\u306F\u4E0D\u660E\u306A\u30BF\u30B0\u3067\u3059\u3002\u5927\u6587\u5B57\u3068\u5C0F\u6587\u5B57\u306E\u533A\u5225\u3092\u9664\u3044\u3066\u306F\u65E2\u77E5\u306E\u30BF\u30B0\u3068\u540C\u3058\u3067\u3059\u3002 -doclet.noInheritedDoc=@inheritDoc\u304C\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059\u304C\u3001{0}\u306F\u3069\u306E\u30E1\u30BD\u30C3\u30C9\u3082\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u307E\u305F\u306F\u5B9F\u88C5\u3057\u3066\u3044\u307E\u305B\u3093\u3002 -doclet.malformed_html_link_tag=
    \u30BF\u30B0\u306E\u5F62\u5F0F\u304C\u4E0D\u6B63:\n"{0}" -doclet.tag_misuse={0}\u30BF\u30B0\u306F{1}\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5185\u3067\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u4F7F\u7528\u3067\u304D\u308B\u306E\u306F\u6B21\u306E\u30BF\u30A4\u30D7\u306E\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5185\u306E\u307F\u3067\u3059: {2}\u3002 -doclet.javafx_tag_misuse=\u30BF\u30B0@propertyGetter\u3001@propertySetter\u304A\u3088\u3073@propertyDescription\u306F\u3001JavaFX\u306E\u30D7\u30ED\u30D1\u30C6\u30A3getter\u3068setter\u306E\u307F\u3067\u4F7F\u7528\u3067\u304D\u307E\u3059\u3002 -doclet.Package_Summary=\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u6982\u8981 -doclet.Interface_Summary=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306E\u6982\u8981 -doclet.Annotation_Types_Summary=\u6CE8\u91C8\u578B\u306E\u6982\u8981 -doclet.Enum_Summary=\u5217\u6319\u578B\u306E\u6982\u8981 -doclet.Exception_Summary=\u4F8B\u5916\u306E\u6982\u8981 -doclet.Error_Summary=\u30A8\u30E9\u30FC\u306E\u6982\u8981 -doclet.Class_Summary=\u30AF\u30E9\u30B9\u306E\u6982\u8981 -doclet.Nested_Class_Summary=\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30AF\u30E9\u30B9\u306E\u6982\u8981 -doclet.Annotation_Type_Optional_Member_Summary=\u4EFB\u610F\u8981\u7D20\u306E\u6982\u8981 -doclet.Annotation_Type_Required_Member_Summary=\u5FC5\u9808\u8981\u7D20\u306E\u6982\u8981 -doclet.Field_Summary=\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u6982\u8981 -doclet.Property_Summary=\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u6982\u8981 -doclet.Enum_Constant_Summary=\u5217\u6319\u578B\u5B9A\u6570\u306E\u6982\u8981 -doclet.Constructor_Summary=\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u306E\u6982\u8981 -doclet.Method_Summary=\u30E1\u30BD\u30C3\u30C9\u306E\u6982\u8981 -doclet.Interfaces=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Enums=\u5217\u6319\u578B -doclet.AnnotationTypes=\u6CE8\u91C8\u578B -doclet.Exceptions=\u4F8B\u5916 -doclet.Errors=\u30A8\u30E9\u30FC -doclet.Classes=\u30AF\u30E9\u30B9 -doclet.Packages=\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.packages=\u30D1\u30C3\u30B1\u30FC\u30B8 -doclet.All_Classes=\u3059\u3079\u3066\u306E\u30AF\u30E9\u30B9 -doclet.All_Superinterfaces=\u3059\u3079\u3066\u306E\u30B9\u30FC\u30D1\u30FC\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9: -doclet.All_Implemented_Interfaces=\u3059\u3079\u3066\u306E\u5B9F\u88C5\u3055\u308C\u305F\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9: -doclet.All_classes_and_interfaces=\u3059\u3079\u3066\u306E\u30AF\u30E9\u30B9\u304A\u3088\u3073\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9(\u975Estatic\u306E\u30CD\u30B9\u30C8\u3055\u308C\u305F\u578B\u3092\u9664\u304F) -doclet.Package_class_and_interface_descriptions=\u30D1\u30C3\u30B1\u30FC\u30B8\u3001\u30AF\u30E9\u30B9\u304A\u3088\u3073\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u306E\u8AAC\u660E -doclet.Interface=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Class=\u30AF\u30E9\u30B9 -doclet.AnnotationType=\u6CE8\u91C8\u578B -doclet.annotationtype=\u6CE8\u91C8\u578B -doclet.annotationtypes=\u6CE8\u91C8\u578B -doclet.Enum=\u5217\u6319\u578B -doclet.enum=\u5217\u6319 -doclet.enums=\u5217\u6319 -doclet.interface=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.interfaces=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.class=\u30AF\u30E9\u30B9 -doclet.classes=\u30AF\u30E9\u30B9 -doclet.Error=\u30A8\u30E9\u30FC -doclet.error=\u30A8\u30E9\u30FC -doclet.errors=\u30A8\u30E9\u30FC -doclet.Exception=\u4F8B\u5916 -doclet.exception=\u4F8B\u5916 -doclet.exceptions=\u4F8B\u5916 -doclet.Package_private=(package private) -doclet.Nested_Classes_Interfaces_Inherited_From_Class=\u30AF\u30E9\u30B9\u304B\u3089\u7D99\u627F\u3055\u308C\u305F\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30AF\u30E9\u30B9/\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Nested_Classes_Interface_Inherited_From_Interface=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u304B\u3089\u7D99\u627F\u3055\u308C\u305F\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30AF\u30E9\u30B9/\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Methods_Inherited_From_Class=\u30AF\u30E9\u30B9\u304B\u3089\u7D99\u627F\u3055\u308C\u305F\u30E1\u30BD\u30C3\u30C9 -doclet.Methods_Inherited_From_Interface=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u304B\u3089\u7D99\u627F\u3055\u308C\u305F\u30E1\u30BD\u30C3\u30C9 -doclet.Fields_Inherited_From_Class=\u30AF\u30E9\u30B9\u304B\u3089\u7D99\u627F\u3055\u308C\u305F\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.Fields_Inherited_From_Interface=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u304B\u3089\u7D99\u627F\u3055\u308C\u305F\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.Properties_Inherited_From_Class=\u30AF\u30E9\u30B9\u304B\u3089\u7D99\u627F\u3055\u308C\u305F\u30D7\u30ED\u30D1\u30C6\u30A3 -doclet.Properties_Inherited_From_Interface=\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9\u304B\u3089\u7D99\u627F\u3055\u308C\u305F\u30D7\u30ED\u30D1\u30C6\u30A3 -doclet.Annotation_Type_Member_Detail=\u8981\u7D20\u306E\u8A73\u7D30 -doclet.Enum_Constant_Detail=\u5217\u6319\u578B\u5B9A\u6570\u306E\u8A73\u7D30 -doclet.Constants_Summary=\u5B9A\u6570\u30D5\u30A3\u30FC\u30EB\u30C9\u5024 -doclet.Field_Detail=\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u8A73\u7D30 -doclet.Property_Detail=\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u8A73\u7D30 -doclet.Method_Detail=\u30E1\u30BD\u30C3\u30C9\u306E\u8A73\u7D30 -doclet.Constructor_Detail=\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u306E\u8A73\u7D30 -doclet.Deprecated=\u63A8\u5968\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002 -doclet.Groupname_already_used=-group\u30AA\u30D7\u30B7\u30E7\u30F3\u306B\u304A\u3044\u3066\u3001\u3059\u3067\u306B\u30B0\u30EB\u30FC\u30D7\u540D\u304C\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u3059: {0} -doclet.value_tag_invalid_reference={0}(@value\u30BF\u30B0\u306B\u3088\u308A\u53C2\u7167\u3055\u308C\u3066\u3044\u308B)\u306F\u4E0D\u660E\u306A\u53C2\u7167\u3067\u3059\u3002 -doclet.value_tag_invalid_constant=@value\u30BF\u30B0({0}\u3092\u53C2\u7167\u3057\u3066\u3044\u308B)\u306F\u5B9A\u6570\u5185\u3067\u306E\u307F\u4F7F\u7528\u3067\u304D\u307E\u3059\u3002 -doclet.value_tag_invalid_use=@value\u30BF\u30B0\u306F\u3053\u3053\u3067\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002 -doclet.dest_dir_create=\u5B9B\u5148\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306E\u4F5C\u6210\u4E2D: "{0}" -doclet.in={1}\u306E{0} -doclet.Use_Table_Summary=\u8868\u3001{0}\u306E\u30EA\u30B9\u30C8\u304A\u3088\u3073\u8AAC\u660E\u306E\u4F7F\u7528 -doclet.Constants_Table_Summary={0}\u8868\u3001\u5B9A\u6570\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u30EA\u30B9\u30C8\u304A\u3088\u3073\u5024 -doclet.Member_Table_Summary={0}\u8868\u3001{1}\u306E\u30EA\u30B9\u30C8\u304A\u3088\u3073\u8AAC\u660E -doclet.fields=\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.Fields=\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.properties=\u30D7\u30ED\u30D1\u30C6\u30A3 -doclet.Properties=\u30D7\u30ED\u30D1\u30C6\u30A3 -doclet.constructors=\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.Constructors=\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.methods=\u30E1\u30BD\u30C3\u30C9 -doclet.Methods=\u30E1\u30BD\u30C3\u30C9 -doclet.All_Methods=\u3059\u3079\u3066\u306E\u30E1\u30BD\u30C3\u30C9 -doclet.Static_Methods=static\u30E1\u30BD\u30C3\u30C9 -doclet.Instance_Methods=\u30A4\u30F3\u30B9\u30BF\u30F3\u30B9\u30FB\u30E1\u30BD\u30C3\u30C9 -doclet.Abstract_Methods=abstract\u30E1\u30BD\u30C3\u30C9 -doclet.Concrete_Methods=concrete\u30E1\u30BD\u30C3\u30C9 -doclet.Default_Methods=\u30C7\u30D5\u30A9\u30EB\u30C8\u30FB\u30E1\u30BD\u30C3\u30C9 -doclet.Deprecated_Methods=\u63A8\u5968\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30BD\u30C3\u30C9 -doclet.annotation_type_optional_members=\u4EFB\u610F\u8981\u7D20 -doclet.Annotation_Type_Optional_Members=\u4EFB\u610F\u8981\u7D20 -doclet.annotation_type_required_members=\u5FC5\u9808\u8981\u7D20 -doclet.Annotation_Type_Required_Members=\u5FC5\u9808\u8981\u7D20 -doclet.enum_constants=\u5217\u6319\u578B\u5B9A\u6570 -doclet.Enum_Constants=\u5217\u6319\u5B9A\u6570 -doclet.nested_classes=\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30AF\u30E9\u30B9 -doclet.Nested_Classes=\u30CD\u30B9\u30C8\u3055\u308C\u305F\u30AF\u30E9\u30B9 -doclet.subclasses=\u30B5\u30D6\u30AF\u30E9\u30B9 -doclet.subinterfaces=\u30B5\u30D6\u30A4\u30F3\u30BF\u30D5\u30A7\u30FC\u30B9 -doclet.Modifier=\u4FEE\u98FE\u5B50 -doclet.Type=\u30BF\u30A4\u30D7 -doclet.Types=\u30BF\u30A4\u30D7 -doclet.Members=\u30E1\u30F3\u30D0\u30FC -doclet.SearchTags=SearchTags -doclet.search=SEARCH: -doclet.invalid_usage_of_tag={0}\u30BF\u30B0\u306E\u4F7F\u7528\u65B9\u6CD5\u304C\u7121\u52B9\u3067\u3059\u3002 -doclet.Field=\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.Property=\u30D7\u30ED\u30D1\u30C6\u30A3 -doclet.Constructor=\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF -doclet.Method=\u30E1\u30BD\u30C3\u30C9 -doclet.Annotation_Type_Optional_Member=\u4EFB\u610F\u8981\u7D20 -doclet.Annotation_Type_Required_Member=\u5FC5\u9808\u8981\u7D20 -doclet.Annotation_Type_Member=\u6CE8\u91C8\u578B\u8981\u7D20 -doclet.Enum_Constant=\u5217\u6319\u578B\u5B9A\u6570 -doclet.Class=\u30AF\u30E9\u30B9 -doclet.Description=\u8AAC\u660E -doclet.ConstantField=\u5B9A\u6570\u30D5\u30A3\u30FC\u30EB\u30C9 -doclet.Value=\u5024 -doclet.0_and_1={0}\u3068{1} - -#Documentation for Enums -doclet.enum_values_doc.main=\n\u3053\u306E\u5217\u6319\u578B\u306E\u5B9A\u6570\u3092\u542B\u3080\u914D\u5217\u3092\u5BA3\u8A00\u3055\u308C\u3066\u3044\u308B\u9806\u5E8F\u3067\u8FD4\u3057\u307E\u3059\u3002\n\u3053\u306E\u30E1\u30BD\u30C3\u30C9\u306F\u6B21\u306E\u3088\u3046\u306B\u3057\u3066\u5B9A\u6570\u3092\u53CD\u5FA9\u3059\u308B\u305F\u3081\u306B\n\u4F7F\u7528\u3067\u304D\u307E\u3059:\n
    \nfor({0} c: {0}.values())\n  System.out.println(c);\n
    \n - -doclet.enum_values_doc.return=\n\u3053\u306E\u5217\u6319\u578B\u306E\u5B9A\u6570\u3092\u542B\u3080\u3001\u5BA3\u8A00\u3055\u308C\u3066\u3044\u308B\u9806\u5E8F\u3067\u306E\u914D\u5217 - -doclet.enum_valueof_doc.main=\n\u6307\u5B9A\u3057\u305F\u540D\u524D\u3092\u6301\u3064\u3053\u306E\u578B\u306E\u5217\u6319\u578B\u5B9A\u6570\u3092\u8FD4\u3057\u307E\u3059\u3002\n\u6587\u5B57\u5217\u306F\u3001\u3053\u306E\u578B\u306E\u5217\u6319\u578B\u5B9A\u6570\u3092\u5BA3\u8A00\u3059\u308B\u306E\u306B\u4F7F\u7528\u3057\u305F\u8B58\u5225\u5B50\u3068\u6B63\u78BA\u306B\n\u4E00\u81F4\u3057\u3066\u3044\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002\n(\u4F59\u5206\u306A\u7A7A\u767D\u6587\u5B57\u3092\u542B\u3081\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002)\n - -doclet.enum_valueof_doc.param_name=\u8FD4\u3055\u308C\u308B\u5217\u6319\u578B\u5B9A\u6570\u306E\u540D\u524D\u3002 - -doclet.enum_valueof_doc.return=\u6307\u5B9A\u3057\u305F\u540D\u524D\u306E\u5217\u6319\u578B\u5B9A\u6570 - -doclet.enum_valueof_doc.throws_ila=\u3053\u306E\u5217\u6319\u578B\u306B\u3001\u6307\u5B9A\u3057\u305F\u540D\u524D\u306E\u5B9A\u6570\u304C\u306A\u3044\u5834\u5408 - -doclet.enum_valueof_doc.throws_npe=\u5F15\u6570\u304Cnull\u306E\u5834\u5408 diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_zh_CN.properties b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_zh_CN.properties deleted file mode 100644 index 177d3da36f8..00000000000 --- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_zh_CN.properties +++ /dev/null @@ -1,200 +0,0 @@ -doclet.Generating_0=\u6B63\u5728\u751F\u6210{0}... -doclet.Toolkit_Usage_Violation=\u53EA\u6709{0}\u53EF\u4EE5\u4F7F\u7528 Doclet \u5DE5\u5177\u7BB1 -doclet.MissingSerialTag=\u5728\u7C7B{0}\u4E2D, \u9ED8\u8BA4\u7684\u53EF\u5E8F\u5217\u5316\u5B57\u6BB5{1}\u7F3A\u5C11 @serial \u6807\u8BB0\u3002 -doclet.MissingSerialDataTag=\u5728\u7C7B{0}\u4E2D, \u65B9\u6CD5{1}\u4E2D\u7F3A\u5C11 @serialData \u6807\u8BB0\u3002 -doclet.Serializable_no_customization=\u672A\u58F0\u660E readObject \u6216 writeObject \u65B9\u6CD5\u3002 -doclet.Serialized_Form=\u5E8F\u5217\u5316\u8868\u683C -doclet.Serialized_Form_methods=\u5E8F\u5217\u5316\u65B9\u6CD5 -doclet.Serialized_Form_fields=\u5E8F\u5217\u5316\u5B57\u6BB5 -doclet.Serialized_Form_class=\u5E8F\u5217\u5316\u6982\u89C8 -doclet.Class_0_implements_serializable=\u7C7B{0}\u5B9E\u73B0\u53EF\u5E8F\u5217\u5316 -doclet.Class_0_extends_implements_serializable=\u7C7B{0}\u6269\u5C55{1}\u5B9E\u73B0\u53EF\u5E8F\u5217\u5316 -doclet.Option_conflict=\u9009\u9879{0}\u4E0E{1}\u51B2\u7A81 -doclet.Option_reuse=\u91CD\u590D\u4F7F\u7528\u7684\u9009\u9879: {0} -doclet.Option_doclint_no_qualifiers=-Xdoclint \u53C2\u6570\u4E0D\u5141\u8BB8\u4F7F\u7528\u8BBF\u95EE\u9650\u5B9A\u7B26 -doclet.Option_doclint_invalid_arg=-Xdoclint \u9009\u9879\u7684\u53C2\u6570\u65E0\u6548 -doclet.Option_doclint_package_invalid_arg=-Xdoclint/package \u9009\u9879\u7684\u53C2\u6570\u65E0\u6548 -doclet.exception_encountered= \u5C1D\u8BD5\u521B\u5EFA\u6587\u4EF6{1}\u65F6 \n\t\u9047\u5230{0} -doclet.perform_copy_exception_encountered= \u6267\u884C\u590D\u5236\u65F6 \n\u9047\u5230{0}\u3002 -doclet.File_not_found=\u627E\u4E0D\u5230\u6587\u4EF6: {0} -doclet.Copy_Overwrite_warning=\u672A\u5C06\u6587\u4EF6{0}\u590D\u5236\u5230 {1}, \u56E0\u4E3A\u73B0\u6709\u6587\u4EF6\u5177\u6709\u76F8\u540C\u540D\u79F0... -doclet.Copying_File_0_To_Dir_1=\u6B63\u5728\u5C06\u6587\u4EF6{0}\u590D\u5236\u5230\u76EE\u5F55 {1}... -doclet.Copying_File_0_To_File_1=\u6B63\u5728\u5C06\u6587\u4EF6{0}\u590D\u5236\u5230\u6587\u4EF6{1}... -doclet.No_Public_Classes_To_Document=\u627E\u4E0D\u5230\u53EF\u4EE5\u6587\u6863\u5316\u7684\u516C\u5171\u6216\u53D7\u4FDD\u62A4\u7684\u7C7B\u3002 -doclet.destination_directory_not_directory_0=\u76EE\u6807\u76EE\u5F55\u4E0D\u662F\u76EE\u5F55 {0} -doclet.destination_directory_not_writable_0=\u76EE\u6807\u76EE\u5F55\u4E0D\u53EF\u5199\u5165 {0} -doclet.Encoding_not_supported=\u4E0D\u652F\u6301\u7F16\u7801: {0} -doclet.Building_Tree=\u6B63\u5728\u6784\u5EFA\u6240\u6709\u7A0B\u5E8F\u5305\u548C\u7C7B\u7684\u6811... -doclet.Building_Index=\u6B63\u5728\u6784\u5EFA\u6240\u6709\u7A0B\u5E8F\u5305\u548C\u7C7B\u7684\u7D22\u5F15... -doclet.Building_Index_For_All_Classes=\u6B63\u5728\u6784\u5EFA\u6240\u6709\u7C7B\u7684\u7D22\u5F15... -doclet.JavaScript_in_option={0} \u7684\u53C2\u6570\u5305\u542B JavaScript\u3002\n\u4F7F\u7528 --allow-script-in-comments \u53EF\u5141\u8BB8\u4F7F\u7528 JavaScript\u3002 -doclet.sourcetab_warning=-sourcetab \u7684\u53C2\u6570\u5FC5\u987B\u662F\u5927\u4E8E 0 \u7684\u6574\u6570\u3002 -doclet.Packages=\u7A0B\u5E8F\u5305 -doclet.Other_Packages=\u5176\u4ED6\u7A0B\u5E8F\u5305 -doclet.Notice_taglet_registered=\u6CE8\u518C\u7684 Taglet {0}... -doclet.Notice_taglet_unseen=\u6CE8: \u627E\u4E0D\u5230\u7684\u5B9A\u5236\u6807\u8BB0: {0} -doclet.Notice_taglet_overriden=\u6CE8: \u8986\u76D6\u6807\u51C6\u6807\u8BB0\u7684\u5B9A\u5236\u6807\u8BB0: {0} -doclet.Notice_taglet_conflict_warn=\u6CE8: \u53EF\u80FD\u8986\u76D6\u5C06\u6765\u7684\u6807\u51C6\u6807\u8BB0\u7684\u5B9A\u5236\u6807\u8BB0: {0}\u3002\u4E3A\u4E86\u907F\u514D\u51FA\u73B0\u53EF\u80FD\u7684\u8986\u76D6, \u8BF7\u5728\u5B9A\u5236\u6807\u8BB0\u540D\u79F0\u4E2D\u81F3\u5C11\u4F7F\u7528\u4E00\u4E2A\u53E5\u70B9\u5B57\u7B26 (.)\u3002 -doclet.Error_taglet_not_registered=\u9519\u8BEF - \u5C1D\u8BD5\u6CE8\u518C Taglet {1}\u65F6\u629B\u51FA\u5F02\u5E38\u9519\u8BEF{0}... -doclet.Error_invalid_custom_tag_argument=\u9519\u8BEF - \u5BF9\u4E8E -tag \u9009\u9879, {0}\u662F\u65E0\u6548\u53C2\u6570... -doclet.Author=\u4F5C\u8005: -doclet.DefaultValue=\u9ED8\u8BA4\u503C: -doclet.PropertyDescription=\u5C5E\u6027\u8BF4\u660E: -doclet.PropertyGetter=\u83B7\u53D6\u5C5E\u6027\u7684\u503C -doclet.PropertySetter=\u8BBE\u7F6E\u5C5E\u6027\u7684\u503C -doclet.PropertyGetterWithName=\u83B7\u53D6\u5C5E\u6027{0}\u7684\u503C\u3002 -doclet.PropertySetterWithName=\u8BBE\u7F6E\u5C5E\u6027{0}\u7684\u503C\u3002 -doclet.Default=\u9ED8\u8BA4\u503C: -doclet.Parameters=\u53C2\u6570: -doclet.TypeParameters=\u7C7B\u578B\u53C2\u6570: -doclet.Parameters_warn=@param argument "{0}" \u4E0D\u662F\u53C2\u6570\u540D\u79F0\u3002 -doclet.Parameters_dup_warn=\u591A\u6B21\u5BF9\u53C2\u6570 "{0}" \u8FDB\u884C\u6587\u6863\u5316\u3002 -doclet.Type_Parameters_warn=@param argument "{0}" \u4E0D\u662F\u7C7B\u578B\u53C2\u6570\u540D\u79F0\u3002 -doclet.Type_Parameters_dup_warn=\u591A\u6B21\u5BF9\u7C7B\u578B\u53C2\u6570 "{0}" \u8FDB\u884C\u6587\u6863\u5316\u3002 -doclet.Returns=\u8FD4\u56DE: -doclet.Return_tag_on_void_method=\u4E0D\u80FD\u5728\u8FD4\u56DE\u7C7B\u578B\u4E3A\u7A7A\u7684\u65B9\u6CD5\u4E2D\u4F7F\u7528 @return \u6807\u8BB0\u3002 -doclet.See_Also=\u53E6\u8BF7\u53C2\u9605: -doclet.See=\u8BF7\u53C2\u9605: -doclet.SerialData=\u5E8F\u5217\u6570\u636E: -doclet.Since=\u4ECE\u4EE5\u4E0B\u7248\u672C\u5F00\u59CB: -doclet.Throws=\u629B\u51FA: -doclet.Version=\u7248\u672C: -doclet.Factory=\u5DE5\u5382: -doclet.UnknownTag={0}\u662F\u672A\u77E5\u6807\u8BB0\u3002 -doclet.UnknownTagLowercase={0}\u662F\u672A\u77E5\u6807\u8BB0 - \u9664\u4E86\u5927\u5C0F\u5199\u4E4B\u5916\u5176\u4ED6\u65B9\u9762\u4E0E\u5DF2\u77E5\u6807\u8BB0\u76F8\u540C\u3002 -doclet.noInheritedDoc=\u4F7F\u7528\u4E86 @inheritDoc, \u4F46{0}\u672A\u8986\u76D6\u6216\u5B9E\u73B0\u4EFB\u4F55\u65B9\u6CD5\u3002 -doclet.malformed_html_link_tag=
    \u6807\u8BB0\u683C\u5F0F\u9519\u8BEF: \n"{0}" -doclet.tag_misuse=\u4E0D\u80FD\u5728{1}\u6587\u6863\u4E2D\u4F7F\u7528\u6807\u8BB0{0}\u3002\u53EA\u80FD\u5728\u4EE5\u4E0B\u7C7B\u578B\u7684\u6587\u6863\u4E2D\u4F7F\u7528\u8BE5\u6807\u8BB0: {2}\u3002 -doclet.javafx_tag_misuse=\u6807\u8BB0 @propertyGetter, @propertySetter \u548C @propertyDescription \u53EA\u80FD\u5728 JavaFX \u5C5E\u6027 getter \u548C setter \u4E2D\u4F7F\u7528\u3002 -doclet.Package_Summary=\u7A0B\u5E8F\u5305\u6982\u8981 -doclet.Interface_Summary=\u63A5\u53E3\u6982\u8981 -doclet.Annotation_Types_Summary=\u6CE8\u91CA\u7C7B\u578B\u6982\u8981 -doclet.Enum_Summary=\u679A\u4E3E\u6982\u8981 -doclet.Exception_Summary=\u5F02\u5E38\u9519\u8BEF\u6982\u8981 -doclet.Error_Summary=\u9519\u8BEF\u6982\u8981 -doclet.Class_Summary=\u7C7B\u6982\u8981 -doclet.Nested_Class_Summary=\u5D4C\u5957\u7C7B\u6982\u8981 -doclet.Annotation_Type_Optional_Member_Summary=\u53EF\u9009\u5143\u7D20\u6982\u8981 -doclet.Annotation_Type_Required_Member_Summary=\u5FC5\u9700\u5143\u7D20\u6982\u8981 -doclet.Field_Summary=\u5B57\u6BB5\u6982\u8981 -doclet.Property_Summary=\u5C5E\u6027\u6982\u8981 -doclet.Enum_Constant_Summary=\u679A\u4E3E\u5E38\u91CF\u6982\u8981 -doclet.Constructor_Summary=\u6784\u9020\u5668\u6982\u8981 -doclet.Method_Summary=\u65B9\u6CD5\u6982\u8981 -doclet.Interfaces=\u63A5\u53E3 -doclet.Enums=\u679A\u4E3E -doclet.AnnotationTypes=\u6CE8\u91CA\u7C7B\u578B -doclet.Exceptions=\u5F02\u5E38\u9519\u8BEF -doclet.Errors=\u9519\u8BEF -doclet.Classes=\u7C7B -doclet.Packages=\u7A0B\u5E8F\u5305 -doclet.packages=\u7A0B\u5E8F\u5305 -doclet.All_Classes=\u6240\u6709\u7C7B -doclet.All_Superinterfaces=\u6240\u6709\u8D85\u7EA7\u63A5\u53E3: -doclet.All_Implemented_Interfaces=\u6240\u6709\u5DF2\u5B9E\u73B0\u7684\u63A5\u53E3: -doclet.All_classes_and_interfaces=\u6240\u6709\u7C7B\u548C\u63A5\u53E3 (\u9664\u4E86\u975E\u9759\u6001\u5D4C\u5957\u7C7B\u578B) -doclet.Package_class_and_interface_descriptions=\u7A0B\u5E8F\u5305, \u7C7B\u548C\u63A5\u53E3\u8BF4\u660E -doclet.Interface=\u63A5\u53E3 -doclet.Class=\u7C7B -doclet.AnnotationType=\u6CE8\u91CA\u7C7B\u578B -doclet.annotationtype=\u6CE8\u91CA\u7C7B\u578B -doclet.annotationtypes=\u6CE8\u91CA\u7C7B\u578B -doclet.Enum=\u679A\u4E3E -doclet.enum=\u679A\u4E3E -doclet.enums=\u679A\u4E3E -doclet.interface=\u63A5\u53E3 -doclet.interfaces=\u63A5\u53E3 -doclet.class=\u7C7B -doclet.classes=\u7C7B -doclet.Error=\u9519\u8BEF -doclet.error=\u9519\u8BEF -doclet.errors=\u9519\u8BEF -doclet.Exception=\u5F02\u5E38\u9519\u8BEF -doclet.exception=\u5F02\u5E38\u9519\u8BEF -doclet.exceptions=\u5F02\u5E38\u9519\u8BEF -doclet.Package_private=(\u4E13\u7528\u7A0B\u5E8F\u5305) -doclet.Nested_Classes_Interfaces_Inherited_From_Class=\u4ECE\u7C7B\u7EE7\u627F\u7684\u5D4C\u5957\u7C7B/\u63A5\u53E3 -doclet.Nested_Classes_Interface_Inherited_From_Interface=\u4ECE\u63A5\u53E3\u7EE7\u627F\u7684\u5D4C\u5957\u7C7B/\u63A5\u53E3 -doclet.Methods_Inherited_From_Class=\u4ECE\u7C7B\u7EE7\u627F\u7684\u65B9\u6CD5 -doclet.Methods_Inherited_From_Interface=\u4ECE\u63A5\u53E3\u7EE7\u627F\u7684\u65B9\u6CD5 -doclet.Fields_Inherited_From_Class=\u4ECE\u7C7B\u7EE7\u627F\u7684\u5B57\u6BB5 -doclet.Fields_Inherited_From_Interface=\u4ECE\u63A5\u53E3\u7EE7\u627F\u7684\u5B57\u6BB5 -doclet.Properties_Inherited_From_Class=\u4ECE\u7C7B\u7EE7\u627F\u7684\u5C5E\u6027 -doclet.Properties_Inherited_From_Interface=\u4ECE\u63A5\u53E3\u7EE7\u627F\u7684\u5C5E\u6027 -doclet.Annotation_Type_Member_Detail=\u5143\u7D20\u8BE6\u7EC6\u8D44\u6599 -doclet.Enum_Constant_Detail=\u679A\u4E3E\u5E38\u91CF\u8BE6\u7EC6\u8D44\u6599 -doclet.Constants_Summary=\u5E38\u91CF\u5B57\u6BB5\u503C -doclet.Field_Detail=\u5B57\u6BB5\u8BE6\u7EC6\u8D44\u6599 -doclet.Property_Detail=\u5C5E\u6027\u8BE6\u7EC6\u4FE1\u606F -doclet.Method_Detail=\u65B9\u6CD5\u8BE6\u7EC6\u8D44\u6599 -doclet.Constructor_Detail=\u6784\u9020\u5668\u8BE6\u7EC6\u8D44\u6599 -doclet.Deprecated=\u5DF2\u8FC7\u65F6\u3002 -doclet.Groupname_already_used=\u5728 -group \u9009\u9879\u4E2D, groupname \u5DF2\u4F7F\u7528: {0} -doclet.value_tag_invalid_reference={0} (\u7531 @value \u6807\u8BB0\u5F15\u7528) \u4E3A\u672A\u77E5\u5F15\u7528\u3002 -doclet.value_tag_invalid_constant=@value \u6807\u8BB0 (\u5F15\u7528{0}) \u53EA\u80FD\u5728\u5E38\u91CF\u4E2D\u4F7F\u7528\u3002 -doclet.value_tag_invalid_use=\u6B64\u5904\u4E0D\u80FD\u4F7F\u7528 @value \u6807\u8BB0\u3002 -doclet.dest_dir_create=\u6B63\u5728\u521B\u5EFA\u76EE\u6807\u76EE\u5F55: "{0}" -doclet.in={1}\u4E2D\u7684{0} -doclet.Use_Table_Summary=\u4F7F\u7528\u8868, \u5217\u8868{0}\u548C\u89E3\u91CA -doclet.Constants_Table_Summary={0}\u8868, \u5217\u8868\u5E38\u91CF\u5B57\u6BB5\u548C\u503C -doclet.Member_Table_Summary={0}\u8868, \u5217\u8868{1}\u548C\u89E3\u91CA -doclet.fields=\u5B57\u6BB5 -doclet.Fields=\u5B57\u6BB5 -doclet.properties=\u5C5E\u6027 -doclet.Properties=\u5C5E\u6027 -doclet.constructors=\u6784\u9020\u5668 -doclet.Constructors=\u6784\u9020\u5668 -doclet.methods=\u65B9\u6CD5 -doclet.Methods=\u65B9\u6CD5 -doclet.All_Methods=\u6240\u6709\u65B9\u6CD5 -doclet.Static_Methods=\u9759\u6001\u65B9\u6CD5 -doclet.Instance_Methods=\u5B9E\u4F8B\u65B9\u6CD5 -doclet.Abstract_Methods=\u62BD\u8C61\u65B9\u6CD5 -doclet.Concrete_Methods=\u5177\u4F53\u65B9\u6CD5 -doclet.Default_Methods=\u9ED8\u8BA4\u65B9\u6CD5 -doclet.Deprecated_Methods=\u5DF2\u8FC7\u65F6\u7684\u65B9\u6CD5 -doclet.annotation_type_optional_members=\u53EF\u9009\u5143\u7D20 -doclet.Annotation_Type_Optional_Members=\u53EF\u9009\u5143\u7D20 -doclet.annotation_type_required_members=\u5FC5\u9700\u7684\u5143\u7D20 -doclet.Annotation_Type_Required_Members=\u6240\u9700\u5143\u7D20 -doclet.enum_constants=\u679A\u4E3E\u5E38\u91CF -doclet.Enum_Constants=\u679A\u4E3E\u5E38\u91CF -doclet.nested_classes=\u5D4C\u5957\u7C7B -doclet.Nested_Classes=\u5D4C\u5957\u7C7B -doclet.subclasses=\u5B50\u7C7B -doclet.subinterfaces=\u5B50\u63A5\u53E3 -doclet.Modifier=\u9650\u5B9A\u7B26 -doclet.Type=\u7C7B\u578B -doclet.Types=\u7C7B\u578B -doclet.Members=\u6210\u5458 -doclet.SearchTags=\u641C\u7D22\u6807\u8BB0 -doclet.search=SEARCH: -doclet.invalid_usage_of_tag={0} \u6807\u8BB0\u7684\u7528\u6CD5\u65E0\u6548\u3002 -doclet.Field=\u5B57\u6BB5 -doclet.Property=\u5C5E\u6027 -doclet.Constructor=\u6784\u9020\u5668 -doclet.Method=\u65B9\u6CD5 -doclet.Annotation_Type_Optional_Member=\u53EF\u9009\u5143\u7D20 -doclet.Annotation_Type_Required_Member=\u5FC5\u9700\u7684\u5143\u7D20 -doclet.Annotation_Type_Member=\u6CE8\u91CA\u7C7B\u578B\u5143\u7D20 -doclet.Enum_Constant=\u679A\u4E3E\u5E38\u91CF -doclet.Class=\u7C7B -doclet.Description=\u8BF4\u660E -doclet.ConstantField=\u5E38\u91CF\u5B57\u6BB5 -doclet.Value=\u503C -doclet.0_and_1={0}\u548C{1} - -#Documentation for Enums -doclet.enum_values_doc.main=\n\u6309\u7167\u58F0\u660E\u8BE5\u679A\u4E3E\u7C7B\u578B\u7684\u5E38\u91CF\u7684\u987A\u5E8F, \u8FD4\u56DE\n\u5305\u542B\u8FD9\u4E9B\u5E38\u91CF\u7684\u6570\u7EC4\u3002\u8BE5\u65B9\u6CD5\u53EF\u7528\u4E8E\u8FED\u4EE3\n\u5E38\u91CF, \u5982\u4E0B\u6240\u793A:\n
    \nfor ({0} c : {0}.values())\n    System.out.println(c);\n
    - -doclet.enum_values_doc.return=\n\u6309\u7167\u58F0\u660E\u8BE5\u679A\u4E3E\u7C7B\u578B\u7684\u5E38\u91CF\u7684\u987A\u5E8F\u8FD4\u56DE\u7684\u5305\u542B\u8FD9\u4E9B\u5E38\u91CF\u7684\u6570\u7EC4 - -doclet.enum_valueof_doc.main=\n\u8FD4\u56DE\u5E26\u6709\u6307\u5B9A\u540D\u79F0\u7684\u8BE5\u7C7B\u578B\u7684\u679A\u4E3E\u5E38\u91CF\u3002\n\u5B57\u7B26\u4E32\u5FC5\u987B\u4E0E\u7528\u4E8E\u58F0\u660E\u8BE5\u7C7B\u578B\u7684\u679A\u4E3E\u5E38\u91CF\u7684\n\u6807\u8BC6\u7B26\u5B8C\u5168\u5339\u914D\u3002(\u4E0D\u5141\u8BB8\u6709\u591A\u4F59\n\u7684\u7A7A\u683C\u5B57\u7B26\u3002) - -doclet.enum_valueof_doc.param_name=\u8981\u8FD4\u56DE\u7684\u679A\u4E3E\u5E38\u91CF\u7684\u540D\u79F0\u3002 - -doclet.enum_valueof_doc.return=\u8FD4\u56DE\u5E26\u6709\u6307\u5B9A\u540D\u79F0\u7684\u679A\u4E3E\u5E38\u91CF - -doclet.enum_valueof_doc.throws_ila=\u5982\u679C\u8BE5\u679A\u4E3E\u7C7B\u578B\u6CA1\u6709\u5E26\u6709\u6307\u5B9A\u540D\u79F0\u7684\u5E38\u91CF - -doclet.enum_valueof_doc.throws_npe=\u5982\u679C\u53C2\u6570\u4E3A\u7A7A\u503C diff --git a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/glass.png b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/resources/glass.png deleted file mode 100644 index a7f591f467a1c0c949bbc510156a0c1afb860a6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 499 zcmVJoRsvExf%rEN>jUL}qZ_~k#FbE+Q;{`;0FZwVNX2n-^JoI; zP;4#$8DIy*Yk-P>VN(DUKmPse7mx+ExD4O|;?E5D0Z5($mjO3`*anwQU^s{ZDK#Lz zj>~{qyaIx5K!t%=G&2IJNzg!ChRpyLkO7}Ry!QaotAHAMpbB3AF(}|_f!G-oI|uK6 z`id_dumai5K%C3Y$;tKS_iqMPHg<*|-@e`liWLAggVM!zAP#@l;=c>S03;{#04Z~5 zN_+ss=Yg6*hTr59mzMwZ@+l~q!+?ft!fF66AXT#wWavHt30bZWFCK%!BNk}LN?0Hg z1VF_nfs`Lm^DjYZ1(1uD0u4CSIr)XAaq type pairs - class2type = {}, - - // List of deleted data cache ids, so we can reuse them - core_deletedIds = [], - - core_version = "1.10.2", - - // Save a reference to some core methods - core_concat = core_deletedIds.concat, - core_push = core_deletedIds.push, - core_slice = core_deletedIds.slice, - core_indexOf = core_deletedIds.indexOf, - core_toString = class2type.toString, - core_hasOwn = class2type.hasOwnProperty, - core_trim = core_version.trim, - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context, rootjQuery ); - }, - - // Used for matching numbers - core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, - - // Used for splitting on whitespace - core_rnotwhite = /\S+/g, - - // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, - - // Match a standalone tag - rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, - - // JSON RegExp - rvalidchars = /^[\],:{}\s]*$/, - rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, - rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, - rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, - - // Matches dashed string for camelizing - rmsPrefix = /^-ms-/, - rdashAlpha = /-([\da-z])/gi, - - // Used by jQuery.camelCase as callback to replace() - fcamelCase = function( all, letter ) { - return letter.toUpperCase(); - }, - - // The ready event handler - completed = function( event ) { - - // readyState === "complete" is good enough for us to call the dom ready in oldIE - if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { - detach(); - jQuery.ready(); - } - }, - // Clean-up method for dom ready events - detach = function() { - if ( document.addEventListener ) { - document.removeEventListener( "DOMContentLoaded", completed, false ); - window.removeEventListener( "load", completed, false ); - - } else { - document.detachEvent( "onreadystatechange", completed ); - window.detachEvent( "onload", completed ); - } - }; - -jQuery.fn = jQuery.prototype = { - // The current version of jQuery being used - jquery: core_version, - - constructor: jQuery, - init: function( selector, context, rootjQuery ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) { - context = context instanceof jQuery ? context[0] : context; - - // scripts is true for back-compat - jQuery.merge( this, jQuery.parseHTML( - match[1], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[2] ); - - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id !== match[2] ) { - return rootjQuery.find( selector ); - } - - // Otherwise, we inject the element directly into the jQuery object - this.length = 1; - this[0] = elem; - } - - this.context = document; - this.selector = selector; - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || rootjQuery ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this.context = this[0] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return rootjQuery.ready( selector ); - } - - if ( selector.selector !== undefined ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return jQuery.makeArray( selector, this ); - }, - - // Start with an empty selector - selector: "", - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return core_slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num == null ? - - // Return a 'clean' array - this.toArray() : - - // Return just the object - ( num < 0 ? this[ this.length + num ] : this[ num ] ); - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - ret.context = this.context; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - ready: function( fn ) { - // Add the callback - jQuery.ready.promise().done( fn ); - - return this; - }, - - slice: function() { - return this.pushStack( core_slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function( elem, i ) { - return callback.call( elem, i, elem ); - })); - }, - - end: function() { - return this.prevObject || this.constructor(null); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: core_push, - sort: [].sort, - splice: [].splice -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -jQuery.extend = jQuery.fn.extend = function() { - var src, copyIsArray, copy, name, options, clone, - target = arguments[0] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) { - target = {}; - } - - // extend jQuery itself if only one argument is passed - if ( length === i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) { - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) { - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { - if ( copyIsArray ) { - copyIsArray = false; - clone = src && jQuery.isArray(src) ? src : []; - - } else { - clone = src && jQuery.isPlainObject(src) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend({ - // Unique for each copy of jQuery on the page - // Non-digits removed to match rinlinejQuery - expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), - - noConflict: function( deep ) { - if ( window.$ === jQuery ) { - window.$ = _$; - } - - if ( deep && window.jQuery === jQuery ) { - window.jQuery = _jQuery; - } - - return jQuery; - }, - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Hold (or release) the ready event - holdReady: function( hold ) { - if ( hold ) { - jQuery.readyWait++; - } else { - jQuery.ready( true ); - } - }, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). - if ( !document.body ) { - return setTimeout( jQuery.ready ); - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - - // Trigger any bound ready events - if ( jQuery.fn.trigger ) { - jQuery( document ).trigger("ready").off("ready"); - } - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return jQuery.type(obj) === "function"; - }, - - isArray: Array.isArray || function( obj ) { - return jQuery.type(obj) === "array"; - }, - - isWindow: function( obj ) { - /* jshint eqeqeq: false */ - return obj != null && obj == obj.window; - }, - - isNumeric: function( obj ) { - return !isNaN( parseFloat(obj) ) && isFinite( obj ); - }, - - type: function( obj ) { - if ( obj == null ) { - return String( obj ); - } - return typeof obj === "object" || typeof obj === "function" ? - class2type[ core_toString.call(obj) ] || "object" : - typeof obj; - }, - - isPlainObject: function( obj ) { - var key; - - // Must be an Object. - // Because of IE, we also have to check the presence of the constructor property. - // Make sure that DOM nodes and window objects don't pass through, as well - if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { - return false; - } - - try { - // Not own constructor property must be Object - if ( obj.constructor && - !core_hasOwn.call(obj, "constructor") && - !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { - return false; - } - } catch ( e ) { - // IE8,9 Will throw exceptions on certain host objects #9897 - return false; - } - - // Support: IE<9 - // Handle iteration over inherited properties before own properties. - if ( jQuery.support.ownLast ) { - for ( key in obj ) { - return core_hasOwn.call( obj, key ); - } - } - - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - for ( key in obj ) {} - - return key === undefined || core_hasOwn.call( obj, key ); - }, - - isEmptyObject: function( obj ) { - var name; - for ( name in obj ) { - return false; - } - return true; - }, - - error: function( msg ) { - throw new Error( msg ); - }, - - // data: string of html - // context (optional): If specified, the fragment will be created in this context, defaults to document - // keepScripts (optional): If true, will include scripts passed in the html string - parseHTML: function( data, context, keepScripts ) { - if ( !data || typeof data !== "string" ) { - return null; - } - if ( typeof context === "boolean" ) { - keepScripts = context; - context = false; - } - context = context || document; - - var parsed = rsingleTag.exec( data ), - scripts = !keepScripts && []; - - // Single tag - if ( parsed ) { - return [ context.createElement( parsed[1] ) ]; - } - - parsed = jQuery.buildFragment( [ data ], context, scripts ); - if ( scripts ) { - jQuery( scripts ).remove(); - } - return jQuery.merge( [], parsed.childNodes ); - }, - - parseJSON: function( data ) { - // Attempt to parse using the native JSON parser first - if ( window.JSON && window.JSON.parse ) { - return window.JSON.parse( data ); - } - - if ( data === null ) { - return data; - } - - if ( typeof data === "string" ) { - - // Make sure leading/trailing whitespace is removed (IE can't handle it) - data = jQuery.trim( data ); - - if ( data ) { - // Make sure the incoming data is actual JSON - // Logic borrowed from http://json.org/json2.js - if ( rvalidchars.test( data.replace( rvalidescape, "@" ) - .replace( rvalidtokens, "]" ) - .replace( rvalidbraces, "")) ) { - - return ( new Function( "return " + data ) )(); - } - } - } - - jQuery.error( "Invalid JSON: " + data ); - }, - - // Cross-browser xml parsing - parseXML: function( data ) { - var xml, tmp; - if ( !data || typeof data !== "string" ) { - return null; - } - try { - if ( window.DOMParser ) { // Standard - tmp = new DOMParser(); - xml = tmp.parseFromString( data , "text/xml" ); - } else { // IE - xml = new ActiveXObject( "Microsoft.XMLDOM" ); - xml.async = "false"; - xml.loadXML( data ); - } - } catch( e ) { - xml = undefined; - } - if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; - }, - - noop: function() {}, - - // Evaluates a script in a global context - // Workarounds based on findings by Jim Driscoll - // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context - globalEval: function( data ) { - if ( data && jQuery.trim( data ) ) { - // We use execScript on Internet Explorer - // We use an anonymous function so that context is window - // rather than jQuery in Firefox - ( window.execScript || function( data ) { - window[ "eval" ].call( window, data ); - } )( data ); - } - }, - - // Convert dashed to camelCase; used by the css and data modules - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - }, - - // args is for internal usage only - each: function( obj, callback, args ) { - var value, - i = 0, - length = obj.length, - isArray = isArraylike( obj ); - - if ( args ) { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } - - // A special, fast, case for the most common use of each - } else { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } - } - - return obj; - }, - - // Use native String.trim function wherever possible - trim: core_trim && !core_trim.call("\uFEFF\xA0") ? - function( text ) { - return text == null ? - "" : - core_trim.call( text ); - } : - - // Otherwise use our own trimming functionality - function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArraylike( Object(arr) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - core_push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - var len; - - if ( arr ) { - if ( core_indexOf ) { - return core_indexOf.call( arr, elem, i ); - } - - len = arr.length; - i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; - - for ( ; i < len; i++ ) { - // Skip accessing in sparse arrays - if ( i in arr && arr[ i ] === elem ) { - return i; - } - } - } - - return -1; - }, - - merge: function( first, second ) { - var l = second.length, - i = first.length, - j = 0; - - if ( typeof l === "number" ) { - for ( ; j < l; j++ ) { - first[ i++ ] = second[ j ]; - } - } else { - while ( second[j] !== undefined ) { - first[ i++ ] = second[ j++ ]; - } - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, inv ) { - var retVal, - ret = [], - i = 0, - length = elems.length; - inv = !!inv; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - retVal = !!callback( elems[ i ], i ); - if ( inv !== retVal ) { - ret.push( elems[ i ] ); - } - } - - return ret; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var value, - i = 0, - length = elems.length, - isArray = isArraylike( elems ), - ret = []; - - // Go through the array, translating each of the items to their - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret[ ret.length ] = value; - } - } - } - - // Flatten any nested arrays - return core_concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var args, proxy, tmp; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = core_slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - // Multifunctional method to get and set values of a collection - // The value/s can optionally be executed if it's a function - access: function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - length = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < length; i++ ) { - fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); - } - } - } - - return chainable ? - elems : - - // Gets - bulk ? - fn.call( elems ) : - length ? fn( elems[0], key ) : emptyGet; - }, - - now: function() { - return ( new Date() ).getTime(); - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations. - // Note: this method belongs to the css module but it's needed here for the support module. - // If support gets modularized, this method should be moved back to the css module. - swap: function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; - } -}); - -jQuery.ready.promise = function( obj ) { - if ( !readyList ) { - - readyList = jQuery.Deferred(); - - // Catch cases where $(document).ready() is called after the browser event has already occurred. - // we once tried to use readyState "interactive" here, but it caused issues like the one - // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 - if ( document.readyState === "complete" ) { - // Handle it asynchronously to allow scripts the opportunity to delay ready - setTimeout( jQuery.ready ); - - // Standards-based browsers support DOMContentLoaded - } else if ( document.addEventListener ) { - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed, false ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed, false ); - - // If IE event model is used - } else { - // Ensure firing before onload, maybe late but safe also for iframes - document.attachEvent( "onreadystatechange", completed ); - - // A fallback to window.onload, that will always work - window.attachEvent( "onload", completed ); - - // If IE and not a frame - // continually check to see if the document is ready - var top = false; - - try { - top = window.frameElement == null && document.documentElement; - } catch(e) {} - - if ( top && top.doScroll ) { - (function doScrollCheck() { - if ( !jQuery.isReady ) { - - try { - // Use the trick by Diego Perini - // http://javascript.nwbox.com/IEContentLoaded/ - top.doScroll("left"); - } catch(e) { - return setTimeout( doScrollCheck, 50 ); - } - - // detach all dom ready events - detach(); - - // and execute any waiting functions - jQuery.ready(); - } - })(); - } - } - } - return readyList.promise( obj ); -}; - -// Populate the class2type map -jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -}); - -function isArraylike( obj ) { - var length = obj.length, - type = jQuery.type( obj ); - - if ( jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.nodeType === 1 && length ) { - return true; - } - - return type === "array" || type !== "function" && - ( length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj ); -} - -// All jQuery objects should point back to these -rootjQuery = jQuery(document); -/*! - * Sizzle CSS Selector Engine v1.10.2 - * http://sizzlejs.com/ - * - * Copyright 2013 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2013-07-03 - */ -(function( window, undefined ) { - -var i, - support, - cachedruns, - Expr, - getText, - isXML, - compile, - outermostContext, - sortInput, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + -(new Date()), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - hasDuplicate = false, - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - return 0; - } - return 0; - }, - - // General-purpose constants - strundefined = typeof undefined, - MAX_NEGATIVE = 1 << 31, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf if we can't use a native one - indexOf = arr.indexOf || function( elem ) { - var i = 0, - len = this.length; - for ( ; i < len; i++ ) { - if ( this[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - // http://www.w3.org/TR/css3-syntax/#characters - characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", - - // Loosely modeled on CSS identifier characters - // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors - // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = characterEncoding.replace( "w", "w#" ), - - // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + - "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", - - // Prefer arguments quoted, - // then not containing pseudos/brackets, - // then attribute selectors/non-parenthetical expressions, - // then anything else - // These preferences are here to reduce the number of selectors - // needing tokenize in the PSEUDO preFilter - pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rsibling = new RegExp( whitespace + "*[+~]" ), - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rescape = /'|\\/g, - - // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - // BMP codepoint - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }; - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var match, elem, m, nodeType, - // QSA vars - i, groups, old, nid, newContext, newSelector; - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - - context = context || document; - results = results || []; - - if ( !selector || typeof selector !== "string" ) { - return results; - } - - if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { - return []; - } - - if ( documentIsHTML && !seed ) { - - // Shortcuts - if ( (match = rquickExpr.exec( selector )) ) { - // Speed-up: Sizzle("#ID") - if ( (m = match[1]) ) { - if ( nodeType === 9 ) { - elem = context.getElementById( m ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE, Opera, and Webkit return items - // by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - } else { - // Context is not a document - if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && - contains( context, elem ) && elem.id === m ) { - results.push( elem ); - return results; - } - } - - // Speed-up: Sizzle("TAG") - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Speed-up: Sizzle(".CLASS") - } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // QSA path - if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - nid = old = expando; - newContext = context; - newSelector = nodeType === 9 && selector; - - // qSA works strangely on Element-rooted queries - // We can work around this by specifying an extra ID on the root - // and working up from there (Thanks to Andrew Dupont for the technique) - // IE 8 doesn't work on object elements - if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { - groups = tokenize( selector ); - - if ( (old = context.getAttribute("id")) ) { - nid = old.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", nid ); - } - nid = "[id='" + nid + "'] "; - - i = groups.length; - while ( i-- ) { - groups[i] = nid + toSelector( groups[i] ); - } - newContext = rsibling.test( selector ) && context.parentNode || context; - newSelector = groups.join(","); - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - context.removeAttribute("id"); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {Function(string, Object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key += " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created div and expects a boolean result - */ -function assert( fn ) { - var div = document.createElement("div"); - - try { - return !!fn( div ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( div.parentNode ) { - div.parentNode.removeChild( div ); - } - // release memory in IE - div = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = attrs.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - ( ~b.sourceIndex || MAX_NEGATIVE ) - - ( ~a.sourceIndex || MAX_NEGATIVE ); - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Detect xml - * @param {Element|Object} elem An element or a document - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var doc = node ? node.ownerDocument || node : preferredDoc, - parent = doc.defaultView; - - // If no document and documentElement is available, return - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Set our document - document = doc; - docElem = doc.documentElement; - - // Support tests - documentIsHTML = !isXML( doc ); - - // Support: IE>8 - // If iframe document is assigned to "document" variable and if iframe has been reloaded, - // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 - // IE6-8 do not support the defaultView property so parent will be undefined - if ( parent && parent.attachEvent && parent !== parent.top ) { - parent.attachEvent( "onbeforeunload", function() { - setDocument(); - }); - } - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) - support.attributes = assert(function( div ) { - div.className = "i"; - return !div.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( div ) { - div.appendChild( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - // Check if getElementsByClassName can be trusted - support.getElementsByClassName = assert(function( div ) { - div.innerHTML = "
    "; - - // Support: Safari<4 - // Catch class over-caching - div.firstChild.className = "i"; - // Support: Opera<10 - // Catch gEBCN failure to find non-leading classes - return div.getElementsByClassName("i").length === 2; - }); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( div ) { - docElem.appendChild( div ).id = expando; - return !doc.getElementsByName || !doc.getElementsByName( expando ).length; - }); - - // ID find and filter - if ( support.getById ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && documentIsHTML ) { - var m = context.getElementById( id ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - return m && m.parentNode ? [m] : []; - } - }; - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - } else { - // Support: IE6/7 - // getElementById is not reliable as a find shortcut - delete Expr.find["ID"]; - - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== strundefined ) { - return context.getElementsByTagName( tag ); - } - } : - function( tag, context ) { - var elem, - tmp = [], - i = 0, - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See http://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( div ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // http://bugs.jquery.com/ticket/12359 - div.innerHTML = ""; - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - }); - - assert(function( div ) { - - // Support: Opera 10-12/IE8 - // ^= $= *= and empty values - // Should not select anything - // Support: Windows 8 Native Apps - // The type attribute is restricted during .innerHTML assignment - var input = doc.createElement("input"); - input.setAttribute( "type", "hidden" ); - div.appendChild( input ).setAttribute( "t", "" ); - - if ( div.querySelectorAll("[t^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":enabled").length ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - div.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( div ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( div, "div" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( div, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - - // Element contains another - // Purposefully does not implement inclusive descendent - // As in, an element does not contain itself - contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = docElem.compareDocumentPosition ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); - - if ( compare ) { - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === doc || contains(preferredDoc, a) ) { - return -1; - } - if ( b === doc || contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } - - // Not directly comparable, sort on existence of method - return a.compareDocumentPosition ? -1 : 1; - } : - function( a, b ) { - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - - // Parentless nodes are either documents or disconnected - } else if ( !aup || !bup ) { - return a === doc ? -1 : - b === doc ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return doc; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch(e) {} - } - - return Sizzle( expr, document, null, [elem] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val === undefined ? - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null : - val; -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - for ( ; (node = elem[i]); i++ ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (see #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[5] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] && match[4] !== undefined ) { - match[2] = match[4]; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, outerCache, node, diff, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - // Seek `elem` from a previously-cached index - outerCache = parent[ expando ] || (parent[ expando ] = {}); - cache = outerCache[ type ] || []; - nodeIndex = cache[0] === dirruns && cache[1]; - diff = cache[0] === dirruns && cache[2]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - outerCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - // Use previously-cached element index if available - } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { - diff = cache[1]; - - // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) - } else { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { - // Cache the index of each encountered element - if ( useCache ) { - (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf.call( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": function( elem ) { - return elem.disabled === false; - }, - - "disabled": function( elem ) { - return elem.disabled === true; - }, - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), - // not comment, processing instructions, or others - // Thanks to Diego Perini for the nodeName shortcut - // Greater than "@" means alpha characters (specifically not starting with "#" or "?") - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) - // use getAttribute instead to test this case - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -function tokenize( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( tokens = [] ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -} - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - checkNonElements = base && dir === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var data, cache, outerCache, - dirkey = dirruns + " " + doneName; - - // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { - if ( (data = cache[1]) === true || data === cachedruns ) { - return data === true; - } - } else { - cache = outerCache[ dir ] = [ dirkey ]; - cache[1] = matcher( elem, context, xml ) || cachedruns; - if ( cache[1] === true ) { - return true; - } - } - } - } - } - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf.call( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - // A counter to specify which element is currently being matched - var matcherCachedRuns = 0, - bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, expandContext ) { - var elem, j, matcher, - setMatched = [], - matchedCount = 0, - i = "0", - unmatched = seed && [], - outermost = expandContext != null, - contextBackup = outermostContext, - // We must always have either seed elements or context - elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); - - if ( outermost ) { - outermostContext = context !== document && context; - cachedruns = matcherCachedRuns; - } - - // Add elements passing elementMatchers directly to results - // Keep `i` a string if there are no elements so `matchedCount` will be "00" below - for ( ; (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - cachedruns = ++matcherCachedRuns; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // Apply set filters to unmatched elements - matchedCount += i; - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !group ) { - group = tokenize( selector ); - } - i = group.length; - while ( i-- ) { - cached = matcherFromTokens( group[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - } - return cached; -}; - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function select( selector, context, results, seed ) { - var i, tokens, token, type, find, - match = tokenize( selector ); - - if ( !seed ) { - // Try to minimize operations if there is only one group - if ( match.length === 1 ) { - - // Take a shortcut and set the context if the root selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - support.getById && context.nodeType === 9 && documentIsHTML && - Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - } - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && context.parentNode || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - } - - // Compile and execute a filtering function - // Provide `match` to avoid retokenization if we modified the selector above - compile( selector, match )( - seed, - context, - !documentIsHTML, - results, - rsibling.test( selector ) - ); - return results; -} - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome<14 -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( div1 ) { - // Should return 1, but returns 4 (following) - return div1.compareDocumentPosition( document.createElement("div") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( div ) { - div.innerHTML = "
    "; - return div.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( div ) { - div.innerHTML = ""; - div.firstChild.setAttribute( "value", "" ); - return div.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( div ) { - return div.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - elem[ name ] === true ? name.toLowerCase() : null; - } - }); -} - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; -jQuery.expr[":"] = jQuery.expr.pseudos; -jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; - - -})( window ); -// String to Object options format cache -var optionsCache = {}; - -// Convert String-formatted options into Object-formatted ones and store in cache -function createOptions( options ) { - var object = optionsCache[ options ] = {}; - jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { - object[ flag ] = true; - }); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - ( optionsCache[ options ] || createOptions( options ) ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - // Last fire value (for non-forgettable lists) - memory, - // Flag to know if list was already fired - fired, - // End of the loop when firing - firingLength, - // Index of currently firing callback (modified by remove if needed) - firingIndex, - // First callback to fire (used internally by add and fireWith) - firingStart, - // Actual callback list - list = [], - // Stack of fire calls for repeatable lists - stack = !options.once && [], - // Fire callbacks - fire = function( data ) { - memory = options.memory && data; - fired = true; - firingIndex = firingStart || 0; - firingStart = 0; - firingLength = list.length; - firing = true; - for ( ; list && firingIndex < firingLength; firingIndex++ ) { - if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { - memory = false; // To prevent further calls using add - break; - } - } - firing = false; - if ( list ) { - if ( stack ) { - if ( stack.length ) { - fire( stack.shift() ); - } - } else if ( memory ) { - list = []; - } else { - self.disable(); - } - } - }, - // Actual Callbacks object - self = { - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - // First, we save the current length - var start = list.length; - (function add( args ) { - jQuery.each( args, function( _, arg ) { - var type = jQuery.type( arg ); - if ( type === "function" ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && type !== "string" ) { - // Inspect recursively - add( arg ); - } - }); - })( arguments ); - // Do we need to add the callbacks to the - // current firing batch? - if ( firing ) { - firingLength = list.length; - // With memory, if we're not firing then - // we should call right away - } else if ( memory ) { - firingStart = start; - fire( memory ); - } - } - return this; - }, - // Remove a callback from the list - remove: function() { - if ( list ) { - jQuery.each( arguments, function( _, arg ) { - var index; - while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - // Handle firing indexes - if ( firing ) { - if ( index <= firingLength ) { - firingLength--; - } - if ( index <= firingIndex ) { - firingIndex--; - } - } - } - }); - } - return this; - }, - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); - }, - // Remove all callbacks from the list - empty: function() { - list = []; - firingLength = 0; - return this; - }, - // Have the list do nothing anymore - disable: function() { - list = stack = memory = undefined; - return this; - }, - // Is it disabled? - disabled: function() { - return !list; - }, - // Lock the list in its current state - lock: function() { - stack = undefined; - if ( !memory ) { - self.disable(); - } - return this; - }, - // Is it locked? - locked: function() { - return !stack; - }, - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( list && ( !fired || stack ) ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( firing ) { - stack.push( args ); - } else { - fire( args ); - } - } - return this; - }, - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; -jQuery.extend({ - - Deferred: function( func ) { - var tuples = [ - // action, add listener, listener list, final state - [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], - [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], - [ "notify", "progress", jQuery.Callbacks("memory") ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - then: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - return jQuery.Deferred(function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - var action = tuple[ 0 ], - fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; - // deferred[ done | fail | progress ] for forwarding actions to newDefer - deferred[ tuple[1] ](function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { - returned.promise() - .done( newDefer.resolve ) - .fail( newDefer.reject ) - .progress( newDefer.notify ); - } else { - newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); - } - }); - }); - fns = null; - }).promise(); - }, - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Keep pipe for back-compat - promise.pipe = promise.then; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 3 ]; - - // promise[ done | fail | progress ] = list.add - promise[ tuple[1] ] = list.add; - - // Handle state - if ( stateString ) { - list.add(function() { - // state = [ resolved | rejected ] - state = stateString; - - // [ reject_list | resolve_list ].disable; progress_list.lock - }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); - } - - // deferred[ resolve | reject | notify ] - deferred[ tuple[0] ] = function() { - deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); - return this; - }; - deferred[ tuple[0] + "With" ] = list.fireWith; - }); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( subordinate /* , ..., subordinateN */ ) { - var i = 0, - resolveValues = core_slice.call( arguments ), - length = resolveValues.length, - - // the count of uncompleted subordinates - remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, - - // the master Deferred. If resolveValues consist of only a single Deferred, just use that. - deferred = remaining === 1 ? subordinate : jQuery.Deferred(), - - // Update function for both resolve and progress values - updateFunc = function( i, contexts, values ) { - return function( value ) { - contexts[ i ] = this; - values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; - if( values === progressValues ) { - deferred.notifyWith( contexts, values ); - } else if ( !( --remaining ) ) { - deferred.resolveWith( contexts, values ); - } - }; - }, - - progressValues, progressContexts, resolveContexts; - - // add listeners to Deferred subordinates; treat others as resolved - if ( length > 1 ) { - progressValues = new Array( length ); - progressContexts = new Array( length ); - resolveContexts = new Array( length ); - for ( ; i < length; i++ ) { - if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { - resolveValues[ i ].promise() - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ) - .progress( updateFunc( i, progressContexts, progressValues ) ); - } else { - --remaining; - } - } - } - - // if we're not waiting on anything, resolve the master - if ( !remaining ) { - deferred.resolveWith( resolveContexts, resolveValues ); - } - - return deferred.promise(); - } -}); -jQuery.support = (function( support ) { - - var all, a, input, select, fragment, opt, eventName, isSupported, i, - div = document.createElement("div"); - - // Setup - div.setAttribute( "className", "t" ); - div.innerHTML = "
    a"; - - // Finish early in limited (non-browser) environments - all = div.getElementsByTagName("*") || []; - a = div.getElementsByTagName("a")[ 0 ]; - if ( !a || !a.style || !all.length ) { - return support; - } - - // First batch of tests - select = document.createElement("select"); - opt = select.appendChild( document.createElement("option") ); - input = div.getElementsByTagName("input")[ 0 ]; - - a.style.cssText = "top:1px;float:left;opacity:.5"; - - // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) - support.getSetAttribute = div.className !== "t"; - - // IE strips leading whitespace when .innerHTML is used - support.leadingWhitespace = div.firstChild.nodeType === 3; - - // Make sure that tbody elements aren't automatically inserted - // IE will insert them into empty tables - support.tbody = !div.getElementsByTagName("tbody").length; - - // Make sure that link elements get serialized correctly by innerHTML - // This requires a wrapper element in IE - support.htmlSerialize = !!div.getElementsByTagName("link").length; - - // Get the style information from getAttribute - // (IE uses .cssText instead) - support.style = /top/.test( a.getAttribute("style") ); - - // Make sure that URLs aren't manipulated - // (IE normalizes it by default) - support.hrefNormalized = a.getAttribute("href") === "/a"; - - // Make sure that element opacity exists - // (IE uses filter instead) - // Use a regex to work around a WebKit issue. See #5145 - support.opacity = /^0.5/.test( a.style.opacity ); - - // Verify style float existence - // (IE uses styleFloat instead of cssFloat) - support.cssFloat = !!a.style.cssFloat; - - // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) - support.checkOn = !!input.value; - - // Make sure that a selected-by-default option has a working selected property. - // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) - support.optSelected = opt.selected; - - // Tests for enctype support on a form (#6743) - support.enctype = !!document.createElement("form").enctype; - - // Makes sure cloning an html5 element does not cause problems - // Where outerHTML is undefined, this still works - support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>"; - - // Will be defined later - support.inlineBlockNeedsLayout = false; - support.shrinkWrapBlocks = false; - support.pixelPosition = false; - support.deleteExpando = true; - support.noCloneEvent = true; - support.reliableMarginRight = true; - support.boxSizingReliable = true; - - // Make sure checked status is properly cloned - input.checked = true; - support.noCloneChecked = input.cloneNode( true ).checked; - - // Make sure that the options inside disabled selects aren't marked as disabled - // (WebKit marks them as disabled) - select.disabled = true; - support.optDisabled = !opt.disabled; - - // Support: IE<9 - try { - delete div.test; - } catch( e ) { - support.deleteExpando = false; - } - - // Check if we can trust getAttribute("value") - input = document.createElement("input"); - input.setAttribute( "value", "" ); - support.input = input.getAttribute( "value" ) === ""; - - // Check if an input maintains its value after becoming a radio - input.value = "t"; - input.setAttribute( "type", "radio" ); - support.radioValue = input.value === "t"; - - // #11217 - WebKit loses check when the name is after the checked attribute - input.setAttribute( "checked", "t" ); - input.setAttribute( "name", "t" ); - - fragment = document.createDocumentFragment(); - fragment.appendChild( input ); - - // Check if a disconnected checkbox will retain its checked - // value of true after appended to the DOM (IE6/7) - support.appendChecked = input.checked; - - // WebKit doesn't clone checked state correctly in fragments - support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE<9 - // Opera does not clone events (and typeof div.attachEvent === undefined). - // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() - if ( div.attachEvent ) { - div.attachEvent( "onclick", function() { - support.noCloneEvent = false; - }); - - div.cloneNode( true ).click(); - } - - // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) - for ( i in { submit: true, change: true, focusin: true }) { - div.setAttribute( eventName = "on" + i, "t" ); - - support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; - } - - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - // Support: IE<9 - // Iteration over object's inherited properties before its own. - for ( i in jQuery( support ) ) { - break; - } - support.ownLast = i !== "0"; - - // Run tests that need a body at doc ready - jQuery(function() { - var container, marginDiv, tds, - divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", - body = document.getElementsByTagName("body")[0]; - - if ( !body ) { - // Return for frameset docs that don't have a body - return; - } - - container = document.createElement("div"); - container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; - - body.appendChild( container ).appendChild( div ); - - // Support: IE8 - // Check if table cells still have offsetWidth/Height when they are set - // to display:none and there are still other visible table cells in a - // table row; if so, offsetWidth/Height are not reliable for use when - // determining if an element has been hidden directly using - // display:none (it is still safe to use offsets if a parent element is - // hidden; don safety goggles and see bug #4512 for more information). - div.innerHTML = "
    t
    "; - tds = div.getElementsByTagName("td"); - tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; - isSupported = ( tds[ 0 ].offsetHeight === 0 ); - - tds[ 0 ].style.display = ""; - tds[ 1 ].style.display = "none"; - - // Support: IE8 - // Check if empty table cells still have offsetWidth/Height - support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); - - // Check box-sizing and margin behavior. - div.innerHTML = ""; - div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; - - // Workaround failing boxSizing test due to offsetWidth returning wrong value - // with some non-1 values of body zoom, ticket #13543 - jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { - support.boxSizing = div.offsetWidth === 4; - }); - - // Use window.getComputedStyle because jsdom on node.js will break without it. - if ( window.getComputedStyle ) { - support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; - support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; - - // Check if div with explicit width and no margin-right incorrectly - // gets computed margin-right based on width of container. (#3333) - // Fails in WebKit before Feb 2011 nightlies - // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right - marginDiv = div.appendChild( document.createElement("div") ); - marginDiv.style.cssText = div.style.cssText = divReset; - marginDiv.style.marginRight = marginDiv.style.width = "0"; - div.style.width = "1px"; - - support.reliableMarginRight = - !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); - } - - if ( typeof div.style.zoom !== core_strundefined ) { - // Support: IE<8 - // Check if natively block-level elements act like inline-block - // elements when setting their display to 'inline' and giving - // them layout - div.innerHTML = ""; - div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; - support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); - - // Support: IE6 - // Check if elements with layout shrink-wrap their children - div.style.display = "block"; - div.innerHTML = "
    "; - div.firstChild.style.width = "5px"; - support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); - - if ( support.inlineBlockNeedsLayout ) { - // Prevent IE 6 from affecting layout for positioned elements #11048 - // Prevent IE from shrinking the body in IE 7 mode #12869 - // Support: IE<8 - body.style.zoom = 1; - } - } - - body.removeChild( container ); - - // Null elements to avoid leaks in IE - container = div = tds = marginDiv = null; - }); - - // Null elements to avoid leaks in IE - all = select = fragment = opt = a = input = null; - - return support; -})({}); - -var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, - rmultiDash = /([A-Z])/g; - -function internalData( elem, name, data, pvt /* Internal Use Only */ ){ - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var ret, thisCache, - internalKey = jQuery.expando, - - // We have to handle DOM nodes and JS objects differently because IE6-7 - // can't GC object references properly across the DOM-JS boundary - isNode = elem.nodeType, - - // Only DOM nodes need the global jQuery cache; JS object data is - // attached directly to the object so GC can occur automatically - cache = isNode ? jQuery.cache : elem, - - // Only defining an ID for JS objects if its cache already exists allows - // the code to shortcut on the same path as a DOM node with no cache - id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; - - // Avoid doing any more work than we need to when trying to get data on an - // object that has no data at all - if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { - return; - } - - if ( !id ) { - // Only DOM nodes need a new unique ID for each element since their data - // ends up in the global cache - if ( isNode ) { - id = elem[ internalKey ] = core_deletedIds.pop() || jQuery.guid++; - } else { - id = internalKey; - } - } - - if ( !cache[ id ] ) { - // Avoid exposing jQuery metadata on plain JS objects when the object - // is serialized using JSON.stringify - cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; - } - - // An object can be passed to jQuery.data instead of a key/value pair; this gets - // shallow copied over onto the existing cache - if ( typeof name === "object" || typeof name === "function" ) { - if ( pvt ) { - cache[ id ] = jQuery.extend( cache[ id ], name ); - } else { - cache[ id ].data = jQuery.extend( cache[ id ].data, name ); - } - } - - thisCache = cache[ id ]; - - // jQuery data() is stored in a separate object inside the object's internal data - // cache in order to avoid key collisions between internal data and user-defined - // data. - if ( !pvt ) { - if ( !thisCache.data ) { - thisCache.data = {}; - } - - thisCache = thisCache.data; - } - - if ( data !== undefined ) { - thisCache[ jQuery.camelCase( name ) ] = data; - } - - // Check for both converted-to-camel and non-converted data property names - // If a data property was specified - if ( typeof name === "string" ) { - - // First Try to find as-is property data - ret = thisCache[ name ]; - - // Test for null|undefined property data - if ( ret == null ) { - - // Try to find the camelCased property - ret = thisCache[ jQuery.camelCase( name ) ]; - } - } else { - ret = thisCache; - } - - return ret; -} - -function internalRemoveData( elem, name, pvt ) { - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var thisCache, i, - isNode = elem.nodeType, - - // See jQuery.data for more information - cache = isNode ? jQuery.cache : elem, - id = isNode ? elem[ jQuery.expando ] : jQuery.expando; - - // If there is already no cache entry for this object, there is no - // purpose in continuing - if ( !cache[ id ] ) { - return; - } - - if ( name ) { - - thisCache = pvt ? cache[ id ] : cache[ id ].data; - - if ( thisCache ) { - - // Support array or space separated string names for data keys - if ( !jQuery.isArray( name ) ) { - - // try the string as a key before any manipulation - if ( name in thisCache ) { - name = [ name ]; - } else { - - // split the camel cased version by spaces unless a key with the spaces exists - name = jQuery.camelCase( name ); - if ( name in thisCache ) { - name = [ name ]; - } else { - name = name.split(" "); - } - } - } else { - // If "name" is an array of keys... - // When data is initially created, via ("key", "val") signature, - // keys will be converted to camelCase. - // Since there is no way to tell _how_ a key was added, remove - // both plain key and camelCase key. #12786 - // This will only penalize the array argument path. - name = name.concat( jQuery.map( name, jQuery.camelCase ) ); - } - - i = name.length; - while ( i-- ) { - delete thisCache[ name[i] ]; - } - - // If there is no data left in the cache, we want to continue - // and let the cache object itself get destroyed - if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { - return; - } - } - } - - // See jQuery.data for more information - if ( !pvt ) { - delete cache[ id ].data; - - // Don't destroy the parent cache unless the internal data object - // had been the only thing left in it - if ( !isEmptyDataObject( cache[ id ] ) ) { - return; - } - } - - // Destroy the cache - if ( isNode ) { - jQuery.cleanData( [ elem ], true ); - - // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) - /* jshint eqeqeq: false */ - } else if ( jQuery.support.deleteExpando || cache != cache.window ) { - /* jshint eqeqeq: true */ - delete cache[ id ]; - - // When all else fails, null - } else { - cache[ id ] = null; - } -} - -jQuery.extend({ - cache: {}, - - // The following elements throw uncatchable exceptions if you - // attempt to add expando properties to them. - noData: { - "applet": true, - "embed": true, - // Ban all objects except for Flash (which handle expandos) - "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" - }, - - hasData: function( elem ) { - elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; - return !!elem && !isEmptyDataObject( elem ); - }, - - data: function( elem, name, data ) { - return internalData( elem, name, data ); - }, - - removeData: function( elem, name ) { - return internalRemoveData( elem, name ); - }, - - // For internal use only. - _data: function( elem, name, data ) { - return internalData( elem, name, data, true ); - }, - - _removeData: function( elem, name ) { - return internalRemoveData( elem, name, true ); - }, - - // A method for determining if a DOM node can handle the data expando - acceptData: function( elem ) { - // Do not set data on non-element because it will not be cleared (#8335). - if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) { - return false; - } - - var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; - - // nodes accept data unless otherwise specified; rejection can be conditional - return !noData || noData !== true && elem.getAttribute("classid") === noData; - } -}); - -jQuery.fn.extend({ - data: function( key, value ) { - var attrs, name, - data = null, - i = 0, - elem = this[0]; - - // Special expections of .data basically thwart jQuery.access, - // so implement the relevant behavior ourselves - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = jQuery.data( elem ); - - if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { - attrs = elem.attributes; - for ( ; i < attrs.length; i++ ) { - name = attrs[i].name; - - if ( name.indexOf("data-") === 0 ) { - name = jQuery.camelCase( name.slice(5) ); - - dataAttr( elem, name, data[ name ] ); - } - } - jQuery._data( elem, "parsedAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each(function() { - jQuery.data( this, key ); - }); - } - - return arguments.length > 1 ? - - // Sets one value - this.each(function() { - jQuery.data( this, key, value ); - }) : - - // Gets one value - // Try to fetch any internally stored data first - elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null; - }, - - removeData: function( key ) { - return this.each(function() { - jQuery.removeData( this, key ); - }); - } -}); - -function dataAttr( elem, key, data ) { - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - - var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); - - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = data === "true" ? true : - data === "false" ? false : - data === "null" ? null : - // Only convert to a number if it doesn't change the string - +data + "" === data ? +data : - rbrace.test( data ) ? jQuery.parseJSON( data ) : - data; - } catch( e ) {} - - // Make sure we set the data so it isn't changed later - jQuery.data( elem, key, data ); - - } else { - data = undefined; - } - } - - return data; -} - -// checks a cache object for emptiness -function isEmptyDataObject( obj ) { - var name; - for ( name in obj ) { - - // if the public data object is empty, the private is still empty - if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { - continue; - } - if ( name !== "toJSON" ) { - return false; - } - } - - return true; -} -jQuery.extend({ - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = jQuery._data( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || jQuery.isArray(data) ) { - queue = jQuery._data( elem, type, jQuery.makeArray(data) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // not intended for public consumption - generates a queueHooks object, or returns the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return jQuery._data( elem, key ) || jQuery._data( elem, key, { - empty: jQuery.Callbacks("once memory").add(function() { - jQuery._removeData( elem, type + "queue" ); - jQuery._removeData( elem, key ); - }) - }); - } -}); - -jQuery.fn.extend({ - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[0], type ); - } - - return data === undefined ? - this : - this.each(function() { - var queue = jQuery.queue( this, type, data ); - - // ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[0] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - }); - }, - dequeue: function( type ) { - return this.each(function() { - jQuery.dequeue( this, type ); - }); - }, - // Based off of the plugin by Clint Helfers, with permission. - // http://blindsignals.com/index.php/2009/07/jquery-delay/ - delay: function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = setTimeout( next, time ); - hooks.stop = function() { - clearTimeout( timeout ); - }; - }); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while( i-- ) { - tmp = jQuery._data( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -}); -var nodeHook, boolHook, - rclass = /[\t\r\n\f]/g, - rreturn = /\r/g, - rfocusable = /^(?:input|select|textarea|button|object)$/i, - rclickable = /^(?:a|area)$/i, - ruseDefault = /^(?:checked|selected)$/i, - getSetAttribute = jQuery.support.getSetAttribute, - getSetInput = jQuery.support.input; - -jQuery.fn.extend({ - attr: function( name, value ) { - return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each(function() { - jQuery.removeAttr( this, name ); - }); - }, - - prop: function( name, value ) { - return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - name = jQuery.propFix[ name ] || name; - return this.each(function() { - // try/catch handles cases where IE balks (such as removing a property on window) - try { - this[ name ] = undefined; - delete this[ name ]; - } catch( e ) {} - }); - }, - - addClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).addClass( value.call( this, j, this.className ) ); - }); - } - - if ( proceed ) { - // The disjunction here is for better compressibility (see removeClass) - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - " " - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - elem.className = jQuery.trim( cur ); - - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, clazz, j, - i = 0, - len = this.length, - proceed = arguments.length === 0 || typeof value === "string" && value; - - if ( jQuery.isFunction( value ) ) { - return this.each(function( j ) { - jQuery( this ).removeClass( value.call( this, j, this.className ) ); - }); - } - if ( proceed ) { - classes = ( value || "" ).match( core_rnotwhite ) || []; - - for ( ; i < len; i++ ) { - elem = this[ i ]; - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( elem.className ? - ( " " + elem.className + " " ).replace( rclass, " " ) : - "" - ); - - if ( cur ) { - j = 0; - while ( (clazz = classes[j++]) ) { - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - elem.className = value ? jQuery.trim( cur ) : ""; - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value; - - if ( typeof stateVal === "boolean" && type === "string" ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( jQuery.isFunction( value ) ) { - return this.each(function( i ) { - jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); - }); - } - - return this.each(function() { - if ( type === "string" ) { - // toggle individual class names - var className, - i = 0, - self = jQuery( this ), - classNames = value.match( core_rnotwhite ) || []; - - while ( (className = classNames[ i++ ]) ) { - // check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( type === core_strundefined || type === "boolean" ) { - if ( this.className ) { - // store className if set - jQuery._data( this, "__className__", this.className ); - } - - // If the element has a class name or if we're passed "false", - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; - } - }); - }, - - hasClass: function( selector ) { - var className = " " + selector + " ", - i = 0, - l = this.length; - for ( ; i < l; i++ ) { - if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { - return true; - } - } - - return false; - }, - - val: function( value ) { - var ret, hooks, isFunction, - elem = this[0]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { - return ret; - } - - ret = elem.value; - - return typeof ret === "string" ? - // handle most common string cases - ret.replace(rreturn, "") : - // handle cases where value is null/undef or number - ret == null ? "" : ret; - } - - return; - } - - isFunction = jQuery.isFunction( value ); - - return this.each(function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( isFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - } else if ( typeof val === "number" ) { - val += ""; - } else if ( jQuery.isArray( val ) ) { - val = jQuery.map(val, function ( value ) { - return value == null ? "" : value + ""; - }); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - }); - } -}); - -jQuery.extend({ - valHooks: { - option: { - get: function( elem ) { - // Use proper attribute retrieval(#6932, #12072) - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - elem.text; - } - }, - select: { - get: function( elem ) { - var value, option, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one" || index < 0, - values = one ? null : [], - max = one ? index + 1 : options.length, - i = index < 0 ? - max : - one ? index : 0; - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // oldIE doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - // Don't return options that are disabled or in a disabled optgroup - ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && - ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) { - optionSet = true; - } - } - - // force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - }, - - attr: function( elem, name, value ) { - var hooks, ret, - nType = elem.nodeType; - - // don't get/set attributes on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === core_strundefined ) { - return jQuery.prop( elem, name, value ); - } - - // All attributes are lowercase - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - name = name.toLowerCase(); - hooks = jQuery.attrHooks[ name ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); - } - - if ( value !== undefined ) { - - if ( value === null ) { - jQuery.removeAttr( elem, name ); - - } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { - return ret; - - } else { - elem.setAttribute( name, value + "" ); - return value; - } - - } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { - return ret; - - } else { - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? - undefined : - ret; - } - }, - - removeAttr: function( elem, value ) { - var name, propName, - i = 0, - attrNames = value && value.match( core_rnotwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( (name = attrNames[i++]) ) { - propName = jQuery.propFix[ name ] || name; - - // Boolean attributes get special treatment (#10870) - if ( jQuery.expr.match.bool.test( name ) ) { - // Set corresponding property to false - if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { - elem[ propName ] = false; - // Support: IE<9 - // Also clear defaultChecked/defaultSelected (if appropriate) - } else { - elem[ jQuery.camelCase( "default-" + name ) ] = - elem[ propName ] = false; - } - - // See #9699 for explanation of this approach (setting first, then removal) - } else { - jQuery.attr( elem, name, "" ); - } - - elem.removeAttribute( getSetAttribute ? name : propName ); - } - } - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { - // Setting the type on a radio button after the value resets the value in IE6-9 - // Reset value to default in case type is set after value during creation - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - }, - - prop: function( elem, name, value ) { - var ret, hooks, notxml, - nType = elem.nodeType; - - // don't get/set properties on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); - - if ( notxml ) { - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? - ret : - ( elem[ name ] = value ); - - } else { - return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? - ret : - elem[ name ]; - } - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set - // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - return tabindex ? - parseInt( tabindex, 10 ) : - rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? - 0 : - -1; - } - } - } -}); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { - // IE<8 needs the *property* name - elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name ); - - // Use defaultChecked and defaultSelected for oldIE - } else { - elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true; - } - - return name; - } -}; -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; - - jQuery.expr.attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ? - function( elem, name, isXML ) { - var fn = jQuery.expr.attrHandle[ name ], - ret = isXML ? - undefined : - /* jshint eqeqeq: false */ - (jQuery.expr.attrHandle[ name ] = undefined) != - getter( elem, name, isXML ) ? - - name.toLowerCase() : - null; - jQuery.expr.attrHandle[ name ] = fn; - return ret; - } : - function( elem, name, isXML ) { - return isXML ? - undefined : - elem[ jQuery.camelCase( "default-" + name ) ] ? - name.toLowerCase() : - null; - }; -}); - -// fix oldIE attroperties -if ( !getSetInput || !getSetAttribute ) { - jQuery.attrHooks.value = { - set: function( elem, value, name ) { - if ( jQuery.nodeName( elem, "input" ) ) { - // Does not return so that setAttribute is also used - elem.defaultValue = value; - } else { - // Use nodeHook if defined (#1954); otherwise setAttribute is fine - return nodeHook && nodeHook.set( elem, value, name ); - } - } - }; -} - -// IE6/7 do not support getting/setting some attributes with get/setAttribute -if ( !getSetAttribute ) { - - // Use this for any attribute in IE6/7 - // This fixes almost every IE6/7 issue - nodeHook = { - set: function( elem, value, name ) { - // Set the existing or create a new attribute node - var ret = elem.getAttributeNode( name ); - if ( !ret ) { - elem.setAttributeNode( - (ret = elem.ownerDocument.createAttribute( name )) - ); - } - - ret.value = value += ""; - - // Break association with cloned elements by also using setAttribute (#9646) - return name === "value" || value === elem.getAttribute( name ) ? - value : - undefined; - } - }; - jQuery.expr.attrHandle.id = jQuery.expr.attrHandle.name = jQuery.expr.attrHandle.coords = - // Some attributes are constructed with empty-string values when not defined - function( elem, name, isXML ) { - var ret; - return isXML ? - undefined : - (ret = elem.getAttributeNode( name )) && ret.value !== "" ? - ret.value : - null; - }; - jQuery.valHooks.button = { - get: function( elem, name ) { - var ret = elem.getAttributeNode( name ); - return ret && ret.specified ? - ret.value : - undefined; - }, - set: nodeHook.set - }; - - // Set contenteditable to false on removals(#10429) - // Setting to empty string throws an error as an invalid value - jQuery.attrHooks.contenteditable = { - set: function( elem, value, name ) { - nodeHook.set( elem, value === "" ? false : value, name ); - } - }; - - // Set width and height to auto instead of 0 on empty string( Bug #8150 ) - // This is for removals - jQuery.each([ "width", "height" ], function( i, name ) { - jQuery.attrHooks[ name ] = { - set: function( elem, value ) { - if ( value === "" ) { - elem.setAttribute( name, "auto" ); - return value; - } - } - }; - }); -} - - -// Some attributes require a special call on IE -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !jQuery.support.hrefNormalized ) { - // href/src property should get the full normalized URL (#10299/#12915) - jQuery.each([ "href", "src" ], function( i, name ) { - jQuery.propHooks[ name ] = { - get: function( elem ) { - return elem.getAttribute( name, 4 ); - } - }; - }); -} - -if ( !jQuery.support.style ) { - jQuery.attrHooks.style = { - get: function( elem ) { - // Return undefined in the case of empty string - // Note: IE uppercases css property names, but if we were to .toLowerCase() - // .cssText, that would destroy case senstitivity in URL's, like in "background" - return elem.style.cssText || undefined; - }, - set: function( elem, value ) { - return ( elem.style.cssText = value + "" ); - } - }; -} - -// Safari mis-reports the default selected property of an option -// Accessing the parent's selectedIndex property fixes it -if ( !jQuery.support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - var parent = elem.parentNode; - - if ( parent ) { - parent.selectedIndex; - - // Make sure that it also works with optgroups, see #5701 - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - return null; - } - }; -} - -jQuery.each([ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -}); - -// IE6/7 call enctype encoding -if ( !jQuery.support.enctype ) { - jQuery.propFix.enctype = "encoding"; -} - -// Radios and checkboxes getter/setter -jQuery.each([ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( jQuery.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); - } - } - }; - if ( !jQuery.support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - // Support: Webkit - // "" is returned instead of "on" if a value isn't specified - return elem.getAttribute("value") === null ? "on" : elem.value; - }; - } -}); -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - var tmp, events, t, handleObjIn, - special, eventHandle, handleObj, - handlers, type, namespaces, origType, - elemData = jQuery._data( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !(events = elemData.events) ) { - events = elemData.events = {}; - } - if ( !(eventHandle = elemData.handle) ) { - eventHandle = elemData.handle = function( e ) { - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? - jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : - undefined; - }; - // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events - eventHandle.elem = elem; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend({ - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join(".") - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !(handlers = events[ type ]) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener/attachEvent if the special events handler returns false - if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - // Bind the global event handler to the element - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle, false ); - - } else if ( elem.attachEvent ) { - elem.attachEvent( "on" + type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - // Nullify elem to prevent memory leaks in IE - elem = null; - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - var j, handleObj, tmp, - origCount, t, events, - special, handlers, type, - namespaces, origType, - elemData = jQuery.hasData( elem ) && jQuery._data( elem ); - - if ( !elemData || !(events = elemData.events) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( core_rnotwhite ) || [""]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - delete elemData.handle; - - // removeData also checks for emptiness and clears the expando if empty - // so use it instead of delete - jQuery._removeData( elem, "events" ); - } - }, - - trigger: function( event, data, elem, onlyHandlers ) { - var handle, ontype, cur, - bubbleType, special, tmp, i, - eventPath = [ elem || document ], - type = core_hasOwn.call( event, "type" ) ? event.type : event, - namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf(".") >= 0 ) { - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split("."); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf(":") < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join("."); - event.namespace_re = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === (elem.ownerDocument || document) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { - event.preventDefault(); - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && - jQuery.acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name name as the event. - // Can't use an .isFunction() check here because IE6/7 fails that test. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - try { - elem[ type ](); - } catch ( e ) { - // IE<9 dies on focus/blur to hidden element (#1486,#12518) - // only reproducible on winXP IE8 native, not IE9 in IE8 mode - } - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - dispatch: function( event ) { - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( event ); - - var i, ret, handleObj, matched, j, - handlerQueue = [], - args = core_slice.call( arguments ), - handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[0] = event; - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or - // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). - if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) - .apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( (event.result = ret) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var sel, handleObj, matches, i, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { - - /* jshint eqeqeq: false */ - for ( ; cur != this; cur = cur.parentNode || this ) { - /* jshint eqeqeq: true */ - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { - matches = []; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matches[ sel ] === undefined ) { - matches[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) >= 0 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matches[ sel ] ) { - matches.push( handleObj ); - } - } - if ( matches.length ) { - handlerQueue.push({ elem: cur, handlers: matches }); - } - } - } - } - - // Add the remaining (directly-bound) handlers - if ( delegateCount < handlers.length ) { - handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); - } - - return handlerQueue; - }, - - fix: function( event ) { - if ( event[ jQuery.expando ] ) { - return event; - } - - // Create a writable copy of the event object and normalize some properties - var i, prop, copy, - type = event.type, - originalEvent = event, - fixHook = this.fixHooks[ type ]; - - if ( !fixHook ) { - this.fixHooks[ type ] = fixHook = - rmouseEvent.test( type ) ? this.mouseHooks : - rkeyEvent.test( type ) ? this.keyHooks : - {}; - } - copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; - - event = new jQuery.Event( originalEvent ); - - i = copy.length; - while ( i-- ) { - prop = copy[ i ]; - event[ prop ] = originalEvent[ prop ]; - } - - // Support: IE<9 - // Fix target property (#1925) - if ( !event.target ) { - event.target = originalEvent.srcElement || document; - } - - // Support: Chrome 23+, Safari? - // Target should not be a text node (#504, #13143) - if ( event.target.nodeType === 3 ) { - event.target = event.target.parentNode; - } - - // Support: IE<9 - // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) - event.metaKey = !!event.metaKey; - - return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; - }, - - // Includes some event props shared by KeyEvent and MouseEvent - props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), - - fixHooks: {}, - - keyHooks: { - props: "char charCode key keyCode".split(" "), - filter: function( event, original ) { - - // Add which for key events - if ( event.which == null ) { - event.which = original.charCode != null ? original.charCode : original.keyCode; - } - - return event; - } - }, - - mouseHooks: { - props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), - filter: function( event, original ) { - var body, eventDoc, doc, - button = original.button, - fromElement = original.fromElement; - - // Calculate pageX/Y if missing and clientX/Y available - if ( event.pageX == null && original.clientX != null ) { - eventDoc = event.target.ownerDocument || document; - doc = eventDoc.documentElement; - body = eventDoc.body; - - event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); - event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); - } - - // Add relatedTarget, if necessary - if ( !event.relatedTarget && fromElement ) { - event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - // Note: button is not normalized, so don't use it - if ( !event.which && button !== undefined ) { - event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); - } - - return event; - } - }, - - special: { - load: { - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - focus: { - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - try { - this.focus(); - return false; - } catch ( e ) { - // Support: IE<9 - // If we error on focus to hidden element (#1486, #12518), - // let .trigger() run the handlers - } - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - click: { - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { - this.click(); - return false; - } - }, - - // For cross-browser consistency, don't fire native .click() on links - _default: function( event ) { - return jQuery.nodeName( event.target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Even when returnValue equals to undefined Firefox will still show alert - if ( event.result !== undefined ) { - event.originalEvent.returnValue = event.result; - } - } - } - }, - - simulate: function( type, elem, event, bubble ) { - // Piggyback on a donor event to simulate a different one. - // Fake originalEvent to avoid donor's stopPropagation, but if the - // simulated event prevents default then we do the same on the donor. - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true, - originalEvent: {} - } - ); - if ( bubble ) { - jQuery.event.trigger( e, null, elem ); - } else { - jQuery.event.dispatch.call( elem, e ); - } - if ( e.isDefaultPrevented() ) { - event.preventDefault(); - } - } -}; - -jQuery.removeEvent = document.removeEventListener ? - function( elem, type, handle ) { - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle, false ); - } - } : - function( elem, type, handle ) { - var name = "on" + type; - - if ( elem.detachEvent ) { - - // #8545, #7054, preventing memory leaks for custom events in IE6-8 - // detachEvent needed property on element, by name of that event, to properly expose it to GC - if ( typeof elem[ name ] === core_strundefined ) { - elem[ name ] = null; - } - - elem.detachEvent( name, handle ); - } - }; - -jQuery.Event = function( src, props ) { - // Allow instantiation without the 'new' keyword - if ( !(this instanceof jQuery.Event) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || - src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - if ( !e ) { - return; - } - - // If preventDefault exists, run it on the original event - if ( e.preventDefault ) { - e.preventDefault(); - - // Support: IE - // Otherwise set the returnValue property of the original event to false - } else { - e.returnValue = false; - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - if ( !e ) { - return; - } - // If stopPropagation exists, run it on the original event - if ( e.stopPropagation ) { - e.stopPropagation(); - } - - // Support: IE - // Set the cancelBubble property of the original event to true - e.cancelBubble = true; - }, - stopImmediatePropagation: function() { - this.isImmediatePropagationStopped = returnTrue; - this.stopPropagation(); - } -}; - -// Create mouseenter/leave events using mouseover/out and event-time checks -jQuery.each({ - mouseenter: "mouseover", - mouseleave: "mouseout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mousenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || (related !== target && !jQuery.contains( target, related )) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -}); - -// IE submit delegation -if ( !jQuery.support.submitBubbles ) { - - jQuery.event.special.submit = { - setup: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Lazy-add a submit handler when a descendant form may potentially be submitted - jQuery.event.add( this, "click._submit keypress._submit", function( e ) { - // Node name check avoids a VML-related crash in IE (#9807) - var elem = e.target, - form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; - if ( form && !jQuery._data( form, "submitBubbles" ) ) { - jQuery.event.add( form, "submit._submit", function( event ) { - event._submit_bubble = true; - }); - jQuery._data( form, "submitBubbles", true ); - } - }); - // return undefined since we don't need an event listener - }, - - postDispatch: function( event ) { - // If form was submitted by the user, bubble the event up the tree - if ( event._submit_bubble ) { - delete event._submit_bubble; - if ( this.parentNode && !event.isTrigger ) { - jQuery.event.simulate( "submit", this.parentNode, event, true ); - } - } - }, - - teardown: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Remove delegated handlers; cleanData eventually reaps submit handlers attached above - jQuery.event.remove( this, "._submit" ); - } - }; -} - -// IE change delegation and checkbox/radio fix -if ( !jQuery.support.changeBubbles ) { - - jQuery.event.special.change = { - - setup: function() { - - if ( rformElems.test( this.nodeName ) ) { - // IE doesn't fire change on a check/radio until blur; trigger it on click - // after a propertychange. Eat the blur-change in special.change.handle. - // This still fires onchange a second time for check/radio after blur. - if ( this.type === "checkbox" || this.type === "radio" ) { - jQuery.event.add( this, "propertychange._change", function( event ) { - if ( event.originalEvent.propertyName === "checked" ) { - this._just_changed = true; - } - }); - jQuery.event.add( this, "click._change", function( event ) { - if ( this._just_changed && !event.isTrigger ) { - this._just_changed = false; - } - // Allow triggered, simulated change events (#11500) - jQuery.event.simulate( "change", this, event, true ); - }); - } - return false; - } - // Delegated event; lazy-add a change handler on descendant inputs - jQuery.event.add( this, "beforeactivate._change", function( e ) { - var elem = e.target; - - if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { - jQuery.event.add( elem, "change._change", function( event ) { - if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { - jQuery.event.simulate( "change", this.parentNode, event, true ); - } - }); - jQuery._data( elem, "changeBubbles", true ); - } - }); - }, - - handle: function( event ) { - var elem = event.target; - - // Swallow native change events from checkbox/radio, we already triggered them above - if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { - return event.handleObj.handler.apply( this, arguments ); - } - }, - - teardown: function() { - jQuery.event.remove( this, "._change" ); - - return !rformElems.test( this.nodeName ); - } - }; -} - -// Create "bubbling" focus and blur events -if ( !jQuery.support.focusinBubbles ) { - jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler while someone wants focusin/focusout - var attaches = 0, - handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - if ( attaches++ === 0 ) { - document.addEventListener( orig, handler, true ); - } - }, - teardown: function() { - if ( --attaches === 0 ) { - document.removeEventListener( orig, handler, true ); - } - } - }; - }); -} - -jQuery.fn.extend({ - - on: function( types, selector, data, fn, /*INTERNAL*/ one ) { - var type, origFn; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - this.on( type, selector, data, types[ type ], one ); - } - return this; - } - - if ( data == null && fn == null ) { - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return this; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return this.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - }); - }, - one: function( types, selector, data, fn ) { - return this.on( types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each(function() { - jQuery.event.remove( this, types, fn, selector ); - }); - }, - - trigger: function( type, data ) { - return this.each(function() { - jQuery.event.trigger( type, data, this ); - }); - }, - triggerHandler: function( type, data ) { - var elem = this[0]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -}); -var isSimple = /^.[^:#\[\.,]*$/, - rparentsprev = /^(?:parents|prev(?:Until|All))/, - rneedsContext = jQuery.expr.match.needsContext, - // methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend({ - find: function( selector ) { - var i, - ret = [], - self = this, - len = self.length; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - }) ); - } - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - // Needed because $( selector, context ) becomes $( context ).find( selector ) - ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); - ret.selector = this.selector ? this.selector + " " + selector : selector; - return ret; - }, - - has: function( target ) { - var i, - targets = jQuery( target, this ), - len = targets.length; - - return this.filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( this, targets[i] ) ) { - return true; - } - } - }); - }, - - not: function( selector ) { - return this.pushStack( winnow(this, selector || [], true) ); - }, - - filter: function( selector ) { - return this.pushStack( winnow(this, selector || [], false) ); - }, - - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - ret = [], - pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? - jQuery( selectors, context || this.context ) : - 0; - - for ( ; i < l; i++ ) { - for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { - // Always skip document fragments - if ( cur.nodeType < 11 && (pos ? - pos.index(cur) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector(cur, selectors)) ) { - - cur = ret.push( cur ); - break; - } - } - } - - return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; - } - - // index in selector - if ( typeof elem === "string" ) { - return jQuery.inArray( this[0], jQuery( elem ) ); - } - - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[0] : elem, this ); - }, - - add: function( selector, context ) { - var set = typeof selector === "string" ? - jQuery( selector, context ) : - jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), - all = jQuery.merge( this.get(), set ); - - return this.pushStack( jQuery.unique(all) ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter(selector) - ); - } -}); - -function sibling( cur, dir ) { - do { - cur = cur[ dir ]; - } while ( cur && cur.nodeType !== 1 ); - - return cur; -} - -jQuery.each({ - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return jQuery.dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return jQuery.dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return jQuery.dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return jQuery.dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return jQuery.dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return jQuery.dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return jQuery.sibling( elem.firstChild ); - }, - contents: function( elem ) { - return jQuery.nodeName( elem, "iframe" ) ? - elem.contentDocument || elem.contentWindow.document : - jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var ret = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - ret = jQuery.filter( selector, ret ); - } - - if ( this.length > 1 ) { - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - ret = jQuery.unique( ret ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - ret = ret.reverse(); - } - } - - return this.pushStack( ret ); - }; -}); - -jQuery.extend({ - filter: function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - return elems.length === 1 && elem.nodeType === 1 ? - jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : - jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - })); - }, - - dir: function( elem, dir, until ) { - var matched = [], - cur = elem[ dir ]; - - while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { - if ( cur.nodeType === 1 ) { - matched.push( cur ); - } - cur = cur[dir]; - } - return matched; - }, - - sibling: function( n, elem ) { - var r = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - r.push( n ); - } - } - - return r; - } -}); - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - /* jshint -W018 */ - return !!qualifier.call( elem, i, elem ) !== not; - }); - - } - - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - }); - - } - - if ( typeof qualifier === "string" ) { - if ( isSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - qualifier = jQuery.filter( qualifier, elements ); - } - - return jQuery.grep( elements, function( elem ) { - return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; - }); -} -function createSafeFragment( document ) { - var list = nodeNames.split( "|" ), - safeFrag = document.createDocumentFragment(); - - if ( safeFrag.createElement ) { - while ( list.length ) { - safeFrag.createElement( - list.pop() - ); - } - } - return safeFrag; -} - -var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + - "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", - rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, - rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), - rleadingWhitespace = /^\s+/, - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - rtagName = /<([\w:]+)/, - rtbody = /\s*$/g, - - // We have to close these tags to support XHTML (#13200) - wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
    ", "
    " ], - area: [ 1, "", "" ], - param: [ 1, "", "" ], - thead: [ 1, "", "
    " ], - tr: [ 2, "", "
    " ], - col: [ 2, "", "
    " ], - td: [ 3, "", "
    " ], - - // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, - // unless wrapped in a div with non-breaking characters in front of it. - _default: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
    ", "
    " ] - }, - safeFragment = createSafeFragment( document ), - fragmentDiv = safeFragment.appendChild( document.createElement("div") ); - -wrapMap.optgroup = wrapMap.option; -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -jQuery.fn.extend({ - text: function( value ) { - return jQuery.access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); - }, null, value, arguments.length ); - }, - - append: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - }); - }, - - before: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - }); - }, - - // keepData is for internal use only--do not document - remove: function( selector, keepData ) { - var elem, - elems = selector ? jQuery.filter( selector, this ) : this, - i = 0; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( !keepData && elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem ) ); - } - - if ( elem.parentNode ) { - if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { - setGlobalEval( getAll( elem, "script" ) ); - } - elem.parentNode.removeChild( elem ); - } - } - - return this; - }, - - empty: function() { - var elem, - i = 0; - - for ( ; (elem = this[i]) != null; i++ ) { - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - } - - // Remove any remaining nodes - while ( elem.firstChild ) { - elem.removeChild( elem.firstChild ); - } - - // If this is a select, ensure that it displays empty (#12336) - // Support: IE<9 - if ( elem.options && jQuery.nodeName( elem, "select" ) ) { - elem.options.length = 0; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function () { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - }); - }, - - html: function( value ) { - return jQuery.access( this, function( value ) { - var elem = this[0] || {}, - i = 0, - l = this.length; - - if ( value === undefined ) { - return elem.nodeType === 1 ? - elem.innerHTML.replace( rinlinejQuery, "" ) : - undefined; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && - ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && - !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { - - value = value.replace( rxhtmlTag, "<$1>" ); - - try { - for (; i < l; i++ ) { - // Remove element nodes and prevent memory leaks - elem = this[i] || {}; - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch(e) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var - // Snapshot the DOM in case .domManip sweeps something relevant into its fragment - args = jQuery.map( this, function( elem ) { - return [ elem.nextSibling, elem.parentNode ]; - }), - i = 0; - - // Make the changes, replacing each context element with the new content - this.domManip( arguments, function( elem ) { - var next = args[ i++ ], - parent = args[ i++ ]; - - if ( parent ) { - // Don't use the snapshot next if it has moved (#13810) - if ( next && next.parentNode !== parent ) { - next = this.nextSibling; - } - jQuery( this ).remove(); - parent.insertBefore( elem, next ); - } - // Allow new content to include elements from the context set - }, true ); - - // Force removal if there was no new content (e.g., from empty arguments) - return i ? this : this.remove(); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, callback, allowIntersection ) { - - // Flatten any nested arrays - args = core_concat.apply( [], args ); - - var first, node, hasScripts, - scripts, doc, fragment, - i = 0, - l = this.length, - set = this, - iNoClone = l - 1, - value = args[0], - isFunction = jQuery.isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { - return this.each(function( index ) { - var self = set.eq( index ); - if ( isFunction ) { - args[0] = value.call( this, index, self.html() ); - } - self.domManip( args, callback, allowIntersection ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( this[i], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { - - if ( node.src ) { - // Hope ajax is available... - jQuery._evalUrl( node.src ); - } else { - jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); - } - } - } - } - - // Fix #11809: Avoid leaking memory - fragment = first = null; - } - } - - return this; - } -}); - -// Support: IE<8 -// Manipulating tables requires a tbody -function manipulationTarget( elem, content ) { - return jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? - - elem.getElementsByTagName("tbody")[0] || - elem.appendChild( elem.ownerDocument.createElement("tbody") ) : - elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - if ( match ) { - elem.type = match[1]; - } else { - elem.removeAttribute("type"); - } - return elem; -} - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var elem, - i = 0; - for ( ; (elem = elems[i]) != null; i++ ) { - jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); - } -} - -function cloneCopyEvent( src, dest ) { - - if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { - return; - } - - var type, i, l, - oldData = jQuery._data( src ), - curData = jQuery._data( dest, oldData ), - events = oldData.events; - - if ( events ) { - delete curData.handle; - curData.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - - // make the cloned public data object a copy from the original - if ( curData.data ) { - curData.data = jQuery.extend( {}, curData.data ); - } -} - -function fixCloneNodeIssues( src, dest ) { - var nodeName, e, data; - - // We do not need to do anything for non-Elements - if ( dest.nodeType !== 1 ) { - return; - } - - nodeName = dest.nodeName.toLowerCase(); - - // IE6-8 copies events bound via attachEvent when using cloneNode. - if ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) { - data = jQuery._data( dest ); - - for ( e in data.events ) { - jQuery.removeEvent( dest, e, data.handle ); - } - - // Event data gets referenced instead of copied if the expando gets copied too - dest.removeAttribute( jQuery.expando ); - } - - // IE blanks contents when cloning scripts, and tries to evaluate newly-set text - if ( nodeName === "script" && dest.text !== src.text ) { - disableScript( dest ).text = src.text; - restoreScript( dest ); - - // IE6-10 improperly clones children of object elements using classid. - // IE10 throws NoModificationAllowedError if parent is null, #12132. - } else if ( nodeName === "object" ) { - if ( dest.parentNode ) { - dest.outerHTML = src.outerHTML; - } - - // This path appears unavoidable for IE9. When cloning an object - // element in IE9, the outerHTML strategy above is not sufficient. - // If the src has innerHTML and the destination does not, - // copy the src.innerHTML into the dest.innerHTML. #10324 - if ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { - dest.innerHTML = src.innerHTML; - } - - } else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { - // IE6-8 fails to persist the checked state of a cloned checkbox - // or radio button. Worse, IE6-7 fail to give the cloned element - // a checked appearance if the defaultChecked value isn't also set - - dest.defaultChecked = dest.checked = src.checked; - - // IE6-7 get confused and end up setting the value of a cloned - // checkbox/radio button to an empty string instead of "on" - if ( dest.value !== src.value ) { - dest.value = src.value; - } - - // IE6-8 fails to return the selected option to the default selected - // state when cloning options - } else if ( nodeName === "option" ) { - dest.defaultSelected = dest.selected = src.defaultSelected; - - // IE6-8 fails to set the defaultValue to the correct value when - // cloning other types of input fields - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -jQuery.each({ - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - i = 0, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone(true); - jQuery( insert[i] )[ original ]( elems ); - - // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() - core_push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -}); - -function getAll( context, tag ) { - var elems, elem, - i = 0, - found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : - typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : - undefined; - - if ( !found ) { - for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { - if ( !tag || jQuery.nodeName( elem, tag ) ) { - found.push( elem ); - } else { - jQuery.merge( found, getAll( elem, tag ) ); - } - } - } - - return tag === undefined || tag && jQuery.nodeName( context, tag ) ? - jQuery.merge( [ context ], found ) : - found; -} - -// Used in buildFragment, fixes the defaultChecked property -function fixDefaultChecked( elem ) { - if ( manipulation_rcheckableType.test( elem.type ) ) { - elem.defaultChecked = elem.checked; - } -} - -jQuery.extend({ - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var destElements, node, clone, i, srcElements, - inPage = jQuery.contains( elem.ownerDocument, elem ); - - if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { - clone = elem.cloneNode( true ); - - // IE<=8 does not properly clone detached, unknown element nodes - } else { - fragmentDiv.innerHTML = elem.outerHTML; - fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); - } - - if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && - (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { - - // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - // Fix all IE cloning issues - for ( i = 0; (node = srcElements[i]) != null; ++i ) { - // Ensure that the destination node is not null; Fixes #9587 - if ( destElements[i] ) { - fixCloneNodeIssues( node, destElements[i] ); - } - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0; (node = srcElements[i]) != null; i++ ) { - cloneCopyEvent( node, destElements[i] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - destElements = srcElements = node = null; - - // Return the cloned set - return clone; - }, - - buildFragment: function( elems, context, scripts, selection ) { - var j, elem, contains, - tmp, tag, tbody, wrap, - l = elems.length, - - // Ensure a safe fragment - safe = createSafeFragment( context ), - - nodes = [], - i = 0; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || safe.appendChild( context.createElement("div") ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - - tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; - - // Descend through wrappers to the right content - j = wrap[0]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Manually add leading whitespace removed by IE - if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { - nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); - } - - // Remove IE's autoinserted from table fragments - if ( !jQuery.support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[1] === "
    " && !rtbody.test( elem ) ? - tmp : - 0; - - j = elem && elem.childNodes.length; - while ( j-- ) { - if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { - elem.removeChild( tbody ); - } - } - } - - jQuery.merge( nodes, tmp.childNodes ); - - // Fix #12392 for WebKit and IE > 9 - tmp.textContent = ""; - - // Fix #12392 for oldIE - while ( tmp.firstChild ) { - tmp.removeChild( tmp.firstChild ); - } - - // Remember the top-level container for proper cleanup - tmp = safe.lastChild; - } - } - } - - // Fix #11356: Clear elements from fragment - if ( tmp ) { - safe.removeChild( tmp ); - } - - // Reset defaultChecked for any radios and checkboxes - // about to be appended to the DOM in IE 6/7 (#8060) - if ( !jQuery.support.appendChecked ) { - jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); - } - - i = 0; - while ( (elem = nodes[ i++ ]) ) { - - // #4087 - If origin and destination elements are the same, and this is - // that element, do not do anything - if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( safe.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( (elem = tmp[ j++ ]) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - tmp = null; - - return safe; - }, - - cleanData: function( elems, /* internal */ acceptData ) { - var elem, type, id, data, - i = 0, - internalKey = jQuery.expando, - cache = jQuery.cache, - deleteExpando = jQuery.support.deleteExpando, - special = jQuery.event.special; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( acceptData || jQuery.acceptData( elem ) ) { - - id = elem[ internalKey ]; - data = id && cache[ id ]; - - if ( data ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Remove cache only if it was not already removed by jQuery.event.remove - if ( cache[ id ] ) { - - delete cache[ id ]; - - // IE does not allow us to delete expando properties from nodes, - // nor does it have a removeAttribute function on Document nodes; - // we must handle all of these cases - if ( deleteExpando ) { - delete elem[ internalKey ]; - - } else if ( typeof elem.removeAttribute !== core_strundefined ) { - elem.removeAttribute( internalKey ); - - } else { - elem[ internalKey ] = null; - } - - core_deletedIds.push( id ); - } - } - } - } - }, - - _evalUrl: function( url ) { - return jQuery.ajax({ - url: url, - type: "GET", - dataType: "script", - async: false, - global: false, - "throws": true - }); - } -}); -jQuery.fn.extend({ - wrapAll: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapAll( html.call(this, i) ); - }); - } - - if ( this[0] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); - - if ( this[0].parentNode ) { - wrap.insertBefore( this[0] ); - } - - wrap.map(function() { - var elem = this; - - while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { - elem = elem.firstChild; - } - - return elem; - }).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( jQuery.isFunction( html ) ) { - return this.each(function(i) { - jQuery(this).wrapInner( html.call(this, i) ); - }); - } - - return this.each(function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - }); - }, - - wrap: function( html ) { - var isFunction = jQuery.isFunction( html ); - - return this.each(function(i) { - jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); - }); - }, - - unwrap: function() { - return this.parent().each(function() { - if ( !jQuery.nodeName( this, "body" ) ) { - jQuery( this ).replaceWith( this.childNodes ); - } - }).end(); - } -}); -var iframe, getStyles, curCSS, - ralpha = /alpha\([^)]*\)/i, - ropacity = /opacity\s*=\s*([^)]*)/, - rposition = /^(top|right|bottom|left)$/, - // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" - // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rmargin = /^margin/, - rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), - rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), - rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), - elemdisplay = { BODY: "block" }, - - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: 0, - fontWeight: 400 - }, - - cssExpand = [ "Top", "Right", "Bottom", "Left" ], - cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; - -// return a css property mapped to a potentially vendor prefixed property -function vendorPropName( style, name ) { - - // shortcut for names that are not vendor prefixed - if ( name in style ) { - return name; - } - - // check for vendor prefixed names - var capName = name.charAt(0).toUpperCase() + name.slice(1), - origName = name, - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in style ) { - return name; - } - } - - return origName; -} - -function isHidden( elem, el ) { - // isHidden might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); -} - -function showHide( elements, show ) { - var display, elem, hidden, - values = [], - index = 0, - length = elements.length; - - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - values[ index ] = jQuery._data( elem, "olddisplay" ); - display = elem.style.display; - if ( show ) { - // Reset the inline display of this element to learn if it is - // being hidden by cascaded rules or not - if ( !values[ index ] && display === "none" ) { - elem.style.display = ""; - } - - // Set elements which have been overridden with display: none - // in a stylesheet to whatever the default browser style is - // for such an element - if ( elem.style.display === "" && isHidden( elem ) ) { - values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); - } - } else { - - if ( !values[ index ] ) { - hidden = isHidden( elem ); - - if ( display && display !== "none" || !hidden ) { - jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); - } - } - } - } - - // Set the display of most of the elements in a second loop - // to avoid the constant reflow - for ( index = 0; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - if ( !show || elem.style.display === "none" || elem.style.display === "" ) { - elem.style.display = show ? values[ index ] || "" : "none"; - } - } - - return elements; -} - -jQuery.fn.extend({ - css: function( name, value ) { - return jQuery.access( this, function( elem, name, value ) { - var len, styles, - map = {}, - i = 0; - - if ( jQuery.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - }, - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each(function() { - if ( isHidden( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - }); - } -}); - -jQuery.extend({ - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "columnCount": true, - "fillOpacity": true, - "fontWeight": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: { - // normalize float css property - "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat" - }, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = jQuery.camelCase( name ), - style = elem.style; - - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // convert relative number strings (+= or -=) to relative numbers. #7345 - if ( type === "string" && (ret = rrelNum.exec( value )) ) { - value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); - // Fixes bug #9237 - type = "number"; - } - - // Make sure that NaN and null values aren't set. See: #7116 - if ( value == null || type === "number" && isNaN( value ) ) { - return; - } - - // If a number was passed in, add 'px' to the (except for certain CSS properties) - if ( type === "number" && !jQuery.cssNumber[ origName ] ) { - value += "px"; - } - - // Fixes #8908, it can be done more correctly by specifing setters in cssHooks, - // but it would mean to define eight (for every problematic property) identical functions - if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { - - // Wrapped to prevent IE from throwing errors when 'invalid' values are provided - // Fixes bug #5509 - try { - style[ name ] = value; - } catch(e) {} - } - - } else { - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var num, val, hooks, - origName = jQuery.camelCase( name ); - - // Make sure that we're working with the right name - name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); - - // gets hook for the prefixed version - // followed by the unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - //convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Return, converting to number if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; - } - return val; - } -}); - -// NOTE: we've included the "window" in window.getComputedStyle -// because jsdom on node.js will break without it. -if ( window.getComputedStyle ) { - getStyles = function( elem ) { - return window.getComputedStyle( elem, null ); - }; - - curCSS = function( elem, name, _computed ) { - var width, minWidth, maxWidth, - computed = _computed || getStyles( elem ), - - // getPropertyValue is only needed for .css('filter') in IE9, see #12537 - ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, - style = elem.style; - - if ( computed ) { - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right - // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels - // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values - if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret; - }; -} else if ( document.documentElement.currentStyle ) { - getStyles = function( elem ) { - return elem.currentStyle; - }; - - curCSS = function( elem, name, _computed ) { - var left, rs, rsLeft, - computed = _computed || getStyles( elem ), - ret = computed ? computed[ name ] : undefined, - style = elem.style; - - // Avoid setting ret to empty string here - // so we don't default to auto - if ( ret == null && style && style[ name ] ) { - ret = style[ name ]; - } - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - // but not position css attributes, as those are proportional to the parent element instead - // and we can't measure the parent instead because it might trigger a "stacking dolls" problem - if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) { - - // Remember the original values - left = style.left; - rs = elem.runtimeStyle; - rsLeft = rs && rs.left; - - // Put in the new values to get a computed value out - if ( rsLeft ) { - rs.left = elem.currentStyle.left; - } - style.left = name === "fontSize" ? "1em" : ret; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - if ( rsLeft ) { - rs.left = rsLeft; - } - } - - return ret === "" ? "auto" : ret; - }; -} - -function setPositiveNumber( elem, value, subtract ) { - var matches = rnumsplit.exec( value ); - return matches ? - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : - value; -} - -function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { - var i = extra === ( isBorderBox ? "border" : "content" ) ? - // If we already have the right measurement, avoid augmentation - 4 : - // Otherwise initialize for horizontal or vertical properties - name === "width" ? 1 : 0, - - val = 0; - - for ( ; i < 4; i += 2 ) { - // both box models exclude margin, so add it if we want it - if ( extra === "margin" ) { - val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); - } - - if ( isBorderBox ) { - // border-box includes padding, so remove it if we want content - if ( extra === "content" ) { - val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // at this point, extra isn't border nor margin, so remove border - if ( extra !== "margin" ) { - val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } else { - // at this point, extra isn't content, so add padding - val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // at this point, extra isn't content nor padding, so add border - if ( extra !== "padding" ) { - val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - return val; -} - -function getWidthOrHeight( elem, name, extra ) { - - // Start with offset property, which is equivalent to the border-box value - var valueIsBorderBox = true, - val = name === "width" ? elem.offsetWidth : elem.offsetHeight, - styles = getStyles( elem ), - isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; - - // some non-html elements return undefined for offsetWidth, so check for null/undefined - // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 - // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 - if ( val <= 0 || val == null ) { - // Fall back to computed then uncomputed css if necessary - val = curCSS( elem, name, styles ); - if ( val < 0 || val == null ) { - val = elem.style[ name ]; - } - - // Computed unit is not pixels. Stop here and return. - if ( rnumnonpx.test(val) ) { - return val; - } - - // we need the check for style in case a browser which returns unreliable values - // for getComputedStyle silently falls back to the reliable elem.style - valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); - - // Normalize "", auto, and prepare for extra - val = parseFloat( val ) || 0; - } - - // use the active box-sizing model to add/subtract irrelevant styles - return ( val + - augmentWidthOrHeight( - elem, - name, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles - ) - ) + "px"; -} - -// Try to determine the default display value of an element -function css_defaultDisplay( nodeName ) { - var doc = document, - display = elemdisplay[ nodeName ]; - - if ( !display ) { - display = actualDisplay( nodeName, doc ); - - // If the simple way fails, read from inside an iframe - if ( display === "none" || !display ) { - // Use the already-created iframe if possible - iframe = ( iframe || - jQuery("\n" - + ""); - } - - void html5NegatedOutput() { - // Negated test for overview-frame page - checkOutput("overview-frame.html", false, - "", - "\n" - + "
      \n" - + "
    • All Classes
    • ", - "
      \n" - + "

      Packages

      "); - - // Negated test for allclasses-frame page - checkOutput("allclasses-frame.html", false, - "", - "\n" - + "
        \n" - + "
      • "); - - // Negated test for allclasses-noframe page - checkOutput("allclasses-noframe.html", false, - "", - "\n" - + "
          \n" - + "
        • "); - - // Negated test for overview-summary page - checkOutput("overview-summary.html", false, - "", - "\n" - + "\n" - + "", - "
    \n" - + "
    ", - "\n" - + "
    \n" - + ""); - - // Negated test for package-frame page - checkOutput("pkg/package-frame.html", false, - "", - "\n" - + "

    pkg

    "); - - // Negated test for package-summary page - checkOutput("pkg/package-summary.html", false, - "", - "\n" - + "\n" - + "", - "", - "
    ", - "
    ", - "
    ", - "
    ", - "
    "); - - // Negated test for package-tree page - checkOutput("pkg/package-tree.html", false, - "", - "\n" - + "\n" - + ""); - - // Negated test for package-use page - checkOutput("pkg1/package-use.html", false, - "", - "\n" - + "\n" - + "", - "
    "); - - // Negated test for constant-values page - checkOutput("constant-values.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "\n" - + "
     
    \n" - + "
    ", - "
    "); - - // Negated test for deprecated-list page - checkOutput("deprecated-list.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "\n" - + "
     
    \n" - + "
    \n" - + "

    Deprecated API

    \n" - + "

    Contents

    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    "); - - // Negated test for serialized-form page - checkOutput("serialized-form.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "\n" - + "
     
    \n" - + "
    ", - "
  • \n" - + "

    Package pkg

    "); - - // Negated test for overview-tree page - checkOutput("overview-tree.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "
  • \n" - + "
     
    \n" - + "
    ", - "
    \n" - + "

    Class Hierarchy

    ", - "\n" - + "

    Interface Hierarchy

    ", - "\n" - + "

    Enum Hierarchy

    "); - - // Negated test for index-all page - checkOutput("index-all.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "
    \n" - + "
     
    \n" - + "
    "); - - // Negated test for src-html page - checkOutput("src-html/pkg/AnotherClass.html", false, - "", - "\n" - + "
    "); - - // Negated test for help-doc page - checkOutput("help-doc.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "
    \n" - + "
     
    \n" - + "
    ", - "
      \n" - + "
    • \n" - + "

      Overview

      ", - "
    • \n" - + "

      Package

      ", - "
    • \n" - + "

      Class/Interface

      "); - - // Negated test for a regular class page and members (nested class, field, constructore and method) - checkOutput("pkg/AnotherClass.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "
      ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
      \n" - + "
    • \n" - + "\n" - + "\n" - + "

      Field Detail

      ", - "\n" - + "
        \n" - + "
      • \n" - + "\n" - + "\n" - + "

        Constructor Detail

        ", - "\n" - + "
          \n" - + "
        • \n" - + "\n" - + "\n" - + "

          Method Detail

          "); - - // Negated test for enum page - checkOutput("pkg/AnotherClass.ModalExclusionType.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "
          ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
      \n" - + "
    • \n" - + "\n" - + "\n" - + "

      Enum Constant Detail

      ", - "\n" - + "
        \n" - + "
      • \n" - + "\n" - + "\n" - + "

        Method Detail

        "); - - // Negated test for interface page - checkOutput("pkg2/Interface.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "
        ", - "\n" - + "
    ", - "\n" - + "
      \n" - + "
    • \n" - + "\n" - + "\n" - + "

      Method Detail

      "); - - // Negated test for error page - checkOutput("pkg/TestError.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "
      ", - "\n" - + "
        \n" - + "
      • \n" - + "\n" - + "\n" - + "

        Constructor Summary

        ", - "\n" - + "
          \n" - + "
        • \n" - + "\n" - + "\n" - + "

          Constructor Detail

          "); - - // Negated test for exception page - checkOutput("pkg/TestException.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "
          ", - "\n" - + "
            \n" - + "
          • \n" - + "\n" - + "\n" - + "

            Constructor Summary

            ", - "\n" - + "
              \n" - + "
            • \n" - + "\n" - + "\n" - + "

              Constructor Detail

              "); - - // Negated test for annotation page - checkOutput("pkg2/TestAnnotationType.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "
              ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
      \n" - + "
    • \n" - + "\n" - + "\n" - + "

      Element Detail

      "); - - // Negated test for class use page - checkOutput("pkg1/class-use/RegClass.html", false, - "", - "\n" - + "\n" - + "", - "\n" - + "\n" - + "
       
      \n" - + "
      ", - "
    ", - "
  • \n" - + "\n" - + "\n" - + "

    Uses of RegClass in pkg

    \n" - + "
  • "); - - // Negated test for main index page - checkOutput("index.html", false, - "", - "\n" - + "
    \n"); - } - - void html4Output() { - // Test for overview-frame page - checkOutput("overview-frame.html", true, - "", - "\n" - + "
      \n" - + "
    • All Classes
    • ", - "
      \n" - + "

      Packages

      "); - - // Test for allclasses-frame page - checkOutput("allclasses-frame.html", true, - "", - "\n" - + "
        \n" - + "
      • "); - - // Test for allclasses-noframe page - checkOutput("allclasses-noframe.html", true, - "", - "\n" - + "
          \n" - + "
        • "); - - // Test for overview-summary page - checkOutput("overview-summary.html", true, - "", - "\n" - + "\n" - + "", - "
    \n" - + "
    ", - "\n" - + "
    \n" - + ""); - - // Test for package-frame page - checkOutput("pkg/package-frame.html", true, - "", - "\n" - + "

    pkg

    "); - - // Test for package-summary page - checkOutput("pkg/package-summary.html", true, - "", - "\n" - + "\n" - + "", - "", - "
    ", - "
    ", - "
    ", - "
    ", - "
    "); - - // Test for package-tree page - checkOutput("pkg/package-tree.html", true, - "", - "\n" - + "\n" - + "", - "
  • "); - - // Test for package-use page - checkOutput("pkg1/package-use.html", true, - "", - "\n" - + "\n" - + "", - "
  • "); - - // Test for constant-values page - checkOutput("constant-values.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "\n" - + "
     
    \n" - + "
    ", - "
    "); - - // Test for deprecated-list page - checkOutput("deprecated-list.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "\n" - + "
     
    \n" - + "
    \n" - + "

    Deprecated API

    \n" - + "

    Contents

    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    ", - "
    "); - - // Test for serialized-form page - checkOutput("serialized-form.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "\n" - + "
     
    \n" - + "
    ", - "
  • \n" - + "

    Package pkg

    "); - - // Test for overview-tree page - checkOutput("overview-tree.html", true, - "", - "\n" - + "\n" - + "", - "
  • ", - "\n" - + "
  • \n" - + "
     
    \n" - + "
    ", - "

    Hierarchy For All Packages

    \n" - + "Package Hierarchies:", - "
    \n" - + "

    Class Hierarchy

    ", - "\n" - + "

    Interface Hierarchy

    ", - "\n" - + "

    Enum Hierarchy

    "); - - // Test for index-all page - checkOutput("index-all.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "
    \n" - + "
     
    \n" - + "
    "); - - // Test for src-html page - checkOutput("src-html/pkg/AnotherClass.html", true, - "", - "\n" - + "
    "); - - // Test for help-doc page - checkOutput("help-doc.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "
    \n" - + "
     
    \n" - + "
    ", - "
      \n" - + "
    • \n" - + "

      Overview

      ", - "
    • \n" - + "

      Package

      ", - "
    • \n" - + "

      Class/Interface

      "); - - // Test for a regular class page and members (nested class, field, constructore and method) - checkOutput("pkg/AnotherClass.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "
      ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
      \n" - + "
    • \n" - + "\n" - + "\n" - + "

      Field Detail

      ", - "\n" - + "
        \n" - + "
      • \n" - + "\n" - + "\n" - + "

        Constructor Detail

        ", - "\n" - + "
          \n" - + "
        • \n" - + "\n" - + "\n" - + "

          Method Detail

          "); - - // Test for enum page - checkOutput("pkg/AnotherClass.ModalExclusionType.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "
          ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
      \n" - + "
    • \n" - + "\n" - + "\n" - + "

      Enum Constant Detail

      ", - "\n" - + "
        \n" - + "
      • \n" - + "\n" - + "\n" - + "

        Method Detail

        "); - - // Test for interface page - checkOutput("pkg2/Interface.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "
        ", - "\n" - + "
    ", - "\n" - + "
      \n" - + "
    • \n" - + "\n" - + "\n" - + "

      Method Detail

      "); - - // Test for error page - checkOutput("pkg/TestError.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "
      ", - "\n" - + "
        \n" - + "
      • \n" - + "\n" - + "\n" - + "

        Constructor Summary

        ", - "\n" - + "
          \n" - + "
        • \n" - + "\n" - + "\n" - + "

          Constructor Detail

          "); - - // Test for exception page - checkOutput("pkg/TestException.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "
          ", - "\n" - + "
            \n" - + "
          • \n" - + "\n" - + "\n" - + "

            Constructor Summary

            ", - "\n" - + "
              \n" - + "
            • \n" - + "\n" - + "\n" - + "

              Constructor Detail

              "); - - // Test for annotation page - checkOutput("pkg2/TestAnnotationType.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "
              ", - "\n" - + "
    ", - "\n" - + "
    ", - "\n" - + "
      \n" - + "
    • \n" - + "\n" - + "\n" - + "

      Element Detail

      "); - - // Test for class use page - checkOutput("pkg1/class-use/RegClass.html", true, - "", - "\n" - + "\n" - + "", - "\n" - + "\n" - + "
       
      \n" - + "
      ", - "
    ", - "
  • \n" - + "\n" - + "\n" - + "

    Uses of RegClass in pkg

    \n" - + "
  • "); - - // Test for main index page - checkOutput("index.html", true, - "", - "", - "\n" - + "
    \n" - + "
    \n" - + "
    \n" - + "\n" - + "
    "); - } - - void html4NegatedOutput() { - // Negated test for overview-frame page - checkOutput("overview-frame.html", false, - "", - "\n" - + "
      \n" - + "
    • All Classes
    • ", - "
      \n" - + "

      Packages

      "); - - // Negated test for allclasses-frame page - checkOutput("allclasses-frame.html", false, - "", - "\n" - + "
        \n" - + "
      • "); - - // Negated test for allclasses-noframe page - checkOutput("allclasses-noframe.html", false, - "", - "\n" - + "
          \n" - + "
        • "); - - // Negated test for overview-summary page - checkOutput("overview-summary.html", false, - "", - "\n" - + "\n" - + "", - "
    \n" - + "
    ", - "
    \n" - + "