mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2026-01-07 00:51:39 +01:00
Compare commits
266 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a23f487d2d | ||
|
|
878c3094e8 | ||
|
|
a6ce90c2bb | ||
|
|
94b9558f88 | ||
|
|
9ffe95ffcc | ||
|
|
4c3d527e86 | ||
|
|
71731e8436 | ||
|
|
a88f2106e1 | ||
|
|
2ec9bad2a7 | ||
|
|
fe7aa5b921 | ||
|
|
6e82bae36d | ||
|
|
24fcef007b | ||
|
|
3499342d2a | ||
|
|
79af461471 | ||
|
|
8bf03b4adb | ||
|
|
75f841a96e | ||
|
|
9a9ea73154 | ||
|
|
8ea587954f | ||
|
|
09778d93e7 | ||
|
|
3bf01a8f13 | ||
|
|
e2c09d8670 | ||
|
|
827b98beca | ||
|
|
2315bd81f0 | ||
|
|
7dd13af2ed | ||
|
|
4c2a46386f | ||
|
|
d0acfd8b31 | ||
|
|
7856101004 | ||
|
|
30d9505bc1 | ||
|
|
872af9f8c7 | ||
|
|
6d0a5e031b | ||
|
|
65e1007b58 | ||
|
|
6667edcb0b | ||
|
|
b50d693f59 | ||
|
|
ab474107c0 | ||
|
|
5fcd775286 | ||
|
|
0f356feefb | ||
|
|
798e9abf97 | ||
|
|
6c9a7e8afe | ||
|
|
7918093df4 | ||
|
|
0ce3618e91 | ||
|
|
3333513f33 | ||
|
|
093ffa46b3 | ||
|
|
3ee6a85bc7 | ||
|
|
d9b6a2252e | ||
|
|
def4483570 | ||
|
|
46c42f2362 | ||
|
|
da2b8ebcd0 | ||
|
|
54b3f1068d | ||
|
|
3ed22e2e7a | ||
|
|
59d983ade0 | ||
|
|
4c1bad113e | ||
|
|
4721c15d98 | ||
|
|
a3af9140c9 | ||
|
|
c583b690e3 | ||
|
|
90b1aee142 | ||
|
|
3db64bc897 | ||
|
|
aa514761f5 | ||
|
|
be3a1f1294 | ||
|
|
50689ce536 | ||
|
|
cb2742d7b2 | ||
|
|
b2f97fc341 | ||
|
|
d8292cad05 | ||
|
|
b097f12a5d | ||
|
|
a11cd67b7c | ||
|
|
b466a2fcc9 | ||
|
|
578138abeb | ||
|
|
ac4b216060 | ||
|
|
06dc51ad43 | ||
|
|
5ed12881c7 | ||
|
|
301d96b277 | ||
|
|
7b9b3e0723 | ||
|
|
fa5bf6c037 | ||
|
|
1778e5915b | ||
|
|
b9bb7ed20f | ||
|
|
3f2aa03af7 | ||
|
|
aedd67d988 | ||
|
|
7d420d30b9 | ||
|
|
c28b62e1d5 | ||
|
|
7d8f9efba6 | ||
|
|
02d508cbf2 | ||
|
|
354661db00 | ||
|
|
cbc42a9c38 | ||
|
|
f8a396b166 | ||
|
|
452d4d3f20 | ||
|
|
1d2b6d72b2 | ||
|
|
9a5d0532c5 | ||
|
|
658feaa3e4 | ||
|
|
24fdb8e4be | ||
|
|
aca1227406 | ||
|
|
75379fe244 | ||
|
|
fbec558c0b | ||
|
|
7ebb690ec3 | ||
|
|
774e4684d2 | ||
|
|
fdab284b8a | ||
|
|
d78b7fcc9b | ||
|
|
d550e02d46 | ||
|
|
f98b97ffea | ||
|
|
d8b50037de | ||
|
|
fc188b8b29 | ||
|
|
cb3b73b7b2 | ||
|
|
792cd2a88a | ||
|
|
ef226d3a7e | ||
|
|
6ceaf265fd | ||
|
|
a79bbfdcfe | ||
|
|
314304f9ba | ||
|
|
8fae4c547c | ||
|
|
d66b689a4b | ||
|
|
9130e7d347 | ||
|
|
872d3ebfc7 | ||
|
|
3338c4f11b | ||
|
|
afe5efd931 | ||
|
|
8790c489e1 | ||
|
|
4e09ef7579 | ||
|
|
9e26dc467b | ||
|
|
ea9763ee24 | ||
|
|
bc02d891d1 | ||
|
|
31e53b285c | ||
|
|
c857f977c3 | ||
|
|
22c0a5cddf | ||
|
|
6dfe09a9a6 | ||
|
|
8c4325e8f4 | ||
|
|
7bf6422983 | ||
|
|
9d6744c9fe | ||
|
|
82eb86f2be | ||
|
|
2f8af77fdb | ||
|
|
3fef36803a | ||
|
|
2437247a8d | ||
|
|
6b6386f999 | ||
|
|
68c91249fb | ||
|
|
426d2a0ee7 | ||
|
|
099a44dbf8 | ||
|
|
bdafe7ca74 | ||
|
|
6538a1bcf9 | ||
|
|
08f07d0f8a | ||
|
|
7d5c536756 | ||
|
|
35107a8833 | ||
|
|
b097e4f361 | ||
|
|
19bd0b795f | ||
|
|
78ceeef3f3 | ||
|
|
395e0cb9be | ||
|
|
f3564aefec | ||
|
|
b097c4f9bb | ||
|
|
a2e3e2663f | ||
|
|
f0f100555b | ||
|
|
d1a146f003 | ||
|
|
0971a64602 | ||
|
|
6909a95df2 | ||
|
|
24bbb68d38 | ||
|
|
219445d03a | ||
|
|
638db1aabb | ||
|
|
fe1aaa8154 | ||
|
|
25497fcea7 | ||
|
|
59b2cbc448 | ||
|
|
a74a7d0f30 | ||
|
|
2d83195be5 | ||
|
|
827200b265 | ||
|
|
36736be8ba | ||
|
|
54b80cfe2a | ||
|
|
a3128d7e74 | ||
|
|
ba2db6a2db | ||
|
|
b797a234b8 | ||
|
|
a65646a1fb | ||
|
|
d43e798981 | ||
|
|
df5da31f55 | ||
|
|
66637352ac | ||
|
|
2655dbfaac | ||
|
|
c1073a5d61 | ||
|
|
f169709382 | ||
|
|
a5c921b198 | ||
|
|
9d2c02479e | ||
|
|
01dedb8e87 | ||
|
|
110817bd8a | ||
|
|
0cb80c55d7 | ||
|
|
ebcf9040aa | ||
|
|
0e8d2a916a | ||
|
|
05f0b795a4 | ||
|
|
e364d187ea | ||
|
|
2a737b4aa9 | ||
|
|
b84cd5a9cd | ||
|
|
50dfd0ebd9 | ||
|
|
33e236c766 | ||
|
|
8ae07c63e4 | ||
|
|
103e820d94 | ||
|
|
a7e89dff0e | ||
|
|
19093784f4 | ||
|
|
86a40825c7 | ||
|
|
22fac524b1 | ||
|
|
a51137d942 | ||
|
|
642a5040a0 | ||
|
|
3f6ce374d9 | ||
|
|
55dc8eb040 | ||
|
|
4d07a8cfb9 | ||
|
|
7ac7d3079f | ||
|
|
604fce4d26 | ||
|
|
2ce8e7fb86 | ||
|
|
e9b3362ace | ||
|
|
ae71131125 | ||
|
|
3bb5216024 | ||
|
|
b1c83646db | ||
|
|
ba1462a2e1 | ||
|
|
653e280412 | ||
|
|
193cf2ead1 | ||
|
|
8440a8dba3 | ||
|
|
2ea2c4b650 | ||
|
|
7cfb301baa | ||
|
|
6293f73bd8 | ||
|
|
945ec03563 | ||
|
|
ee5188c4c3 | ||
|
|
20ee77e0d0 | ||
|
|
f1b3e33db7 | ||
|
|
da10005c86 | ||
|
|
bde3f2ada5 | ||
|
|
a5da46de60 | ||
|
|
baffaa8b3e | ||
|
|
31eb8dfb51 | ||
|
|
4ba0a90189 | ||
|
|
b838a00326 | ||
|
|
d12079f670 | ||
|
|
97bb9bff6f | ||
|
|
3b19a505dc | ||
|
|
c3f366cc5a | ||
|
|
e5047864cd | ||
|
|
44904765ca | ||
|
|
da30267d99 | ||
|
|
b8fae2d33c | ||
|
|
8c000e858b | ||
|
|
11c8663522 | ||
|
|
ae2586d2c3 | ||
|
|
c854c85621 | ||
|
|
dd76763423 | ||
|
|
46899d3487 | ||
|
|
df2fe68912 | ||
|
|
f138786c7a | ||
|
|
e4502f3b6f | ||
|
|
25a00f88d0 | ||
|
|
74c57a988e | ||
|
|
1024df69d8 | ||
|
|
7db63ef95f | ||
|
|
4b3efaf3d1 | ||
|
|
95f53ce57b | ||
|
|
d92c74443f | ||
|
|
68d0756ea6 | ||
|
|
6b90310fed | ||
|
|
d89108356d | ||
|
|
f63a5c2e42 | ||
|
|
0681d1454c | ||
|
|
9a130fd30d | ||
|
|
d214e051c9 | ||
|
|
b982198ede | ||
|
|
272f5e12f9 | ||
|
|
00b701feda | ||
|
|
28848d3300 | ||
|
|
ce7e28f3e6 | ||
|
|
813ad65e9a | ||
|
|
8fdb1d367a | ||
|
|
10f62128a4 | ||
|
|
2b871b4ad6 | ||
|
|
ec41d4d0e9 | ||
|
|
f6e8569c85 | ||
|
|
dfb6852a16 | ||
|
|
2453a64fc4 | ||
|
|
b23fe07b43 | ||
|
|
d663bac931 | ||
|
|
c3de9bf468 | ||
|
|
de6e2fb6e2 | ||
|
|
99c5ea5368 |
3
.hgtags
3
.hgtags
@@ -41,3 +41,6 @@ dfd8506f74c3731bb169ce93c72612d78ee0413b jdk7-b63
|
||||
d22867c5f1b295a0a2b3b4bc8999a2676f6e20c3 jdk7-b64
|
||||
7d3bf00f3cc4f8125de1842521e7567f37dc84b8 jdk7-b65
|
||||
62109d1b9e7310f29ab51ca6f1d71b899c0ce6b0 jdk7-b66
|
||||
eb24af1404aec8aa140c4cd4d13d2839b150dd41 jdk7-b67
|
||||
bca2225b66d78c4bf4d9801f54cac7715a598650 jdk7-b68
|
||||
1b662b1ed14eb4ae31d5138a36c433b13d941dc5 jdk7-b69
|
||||
|
||||
@@ -41,3 +41,6 @@ c7ed15ab92ce36a09d264a5e34025884b2d7607f jdk7-b62
|
||||
269c1ec4435dfb7b452ae6e3bdde005d55c5c830 jdk7-b64
|
||||
e01380cd1de4ce048b87d059d238e5ab5e341947 jdk7-b65
|
||||
6bad5e3fe50337d95b1416d744780d65bc570da6 jdk7-b66
|
||||
c4523c6f82048f420bf0d57c4cd47976753b7d2c jdk7-b67
|
||||
e1b972ff53cd58f825791f8ed9b2deffd16e768c jdk7-b68
|
||||
82e6c820c51ac27882b77755d42efefdbf1dcda0 jdk7-b69
|
||||
|
||||
@@ -32,7 +32,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
--- end of LICENSE file ---
|
||||
%% This notice is provided with respect to ASM, which may be included with this software:
|
||||
Copyright (c) 2000-2005 INRIA, France Telecom
|
||||
Copyright (c) 2000-2007 INRIA, France Telecom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
@@ -41,3 +41,6 @@ d20e45cd539f20405ff843652069cfd7550c5ab3 jdk7-b63
|
||||
047dd27fddb607f8135296b3754131f6e13cb8c7 jdk7-b64
|
||||
97fd9b42f5c2d342b90d18f0a2b57e4117e39415 jdk7-b65
|
||||
a821e059a961bcb02830280d51f6dd030425c066 jdk7-b66
|
||||
a12ea7c7b497b4ba7830550095ef633bd6f43971 jdk7-b67
|
||||
5182bcc9c60cac429d1f7988676cec7320752be3 jdk7-b68
|
||||
8120d308ec4e805c5588b8d9372844d781c4112d jdk7-b69
|
||||
|
||||
@@ -32,7 +32,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
--- end of LICENSE file ---
|
||||
%% This notice is provided with respect to ASM, which may be included with this software:
|
||||
Copyright (c) 2000-2005 INRIA, France Telecom
|
||||
Copyright (c) 2000-2007 INRIA, France Telecom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
@@ -110,7 +110,7 @@ BOOTSTRAP_TARGET_LEVEL = 5
|
||||
ifdef TARGET_CLASS_VERSION
|
||||
TARGET_LEVEL = $(TARGET_CLASS_VERSION)
|
||||
else
|
||||
TARGET_LEVEL = 6
|
||||
TARGET_LEVEL = 7
|
||||
endif
|
||||
|
||||
ifndef TARGET_JAVA
|
||||
|
||||
@@ -107,12 +107,12 @@ endif
|
||||
NO_PROPRIETARY_API_WARNINGS = -XDignore.symbol.file=true
|
||||
JAVACFLAGS += $(NO_PROPRIETARY_API_WARNINGS)
|
||||
|
||||
# Add the source level (currently all source is 1.5, should this be 1.6?)
|
||||
LANGUAGE_VERSION = -source 1.5
|
||||
# Add the source level
|
||||
LANGUAGE_VERSION = -source 7
|
||||
JAVACFLAGS += $(LANGUAGE_VERSION)
|
||||
|
||||
# Add the class version we want (currently this is 5, should it be 6 or even 7?)
|
||||
TARGET_CLASS_VERSION = 5
|
||||
# Add the class version we want
|
||||
TARGET_CLASS_VERSION = 7
|
||||
CLASS_VERSION = -target $(TARGET_CLASS_VERSION)
|
||||
JAVACFLAGS += $(CLASS_VERSION)
|
||||
JAVACFLAGS += -encoding ascii
|
||||
|
||||
@@ -41,3 +41,6 @@ a88386380bdaaa5ab4ffbedf22c57bac5dbec034 jdk7-b62
|
||||
ba36394eb84b949b31212bdb32a518a8f92bab5b jdk7-b64
|
||||
ba313800759b678979434d6da8ed3bf49eb8bea4 jdk7-b65
|
||||
57c71ad0341b8b64ed20f81151eb7f06324f8894 jdk7-b66
|
||||
18f526145aea355a9320b724373386fc2170f183 jdk7-b67
|
||||
d07e68298d4e17ebf93d8299e43fcc3ded26472a jdk7-b68
|
||||
54fd4d9232969ea6cd3d236e5ad276183bb0d423 jdk7-b69
|
||||
|
||||
@@ -32,7 +32,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
--- end of LICENSE file ---
|
||||
%% This notice is provided with respect to ASM, which may be included with this software:
|
||||
Copyright (c) 2000-2005 INRIA, France Telecom
|
||||
Copyright (c) 2000-2007 INRIA, France Telecom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
@@ -41,3 +41,6 @@ ae449e9c04c1fe651bd30f0f4d4cc24ba794e0c4 jdk7-b63
|
||||
a10eec7a1edf536f39b5828d8623054dbc62c2b7 jdk7-b64
|
||||
008c662e0ee9a91aebb75e46b97de979083d5c1c jdk7-b65
|
||||
22f9d5d5b5fe0f47048f41e6c6e54fee5edad0ec jdk7-b66
|
||||
a033af8d824a408d3ac602205ecdefc128749e1e jdk7-b67
|
||||
83b2a9331383f9db7a49350d4cb13b7635f6b861 jdk7-b68
|
||||
a4ab0d6ded63bed0fd1e5be55d38090e0ee5efb7 jdk7-b69
|
||||
|
||||
@@ -32,7 +32,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
--- end of LICENSE file ---
|
||||
%% This notice is provided with respect to ASM, which may be included with this software:
|
||||
Copyright (c) 2000-2005 INRIA, France Telecom
|
||||
Copyright (c) 2000-2007 INRIA, France Telecom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
# one of the standard user build.properties files (see build.xml)
|
||||
|
||||
# options for the <javac> tasks used to compile the tools
|
||||
javac.source = 5
|
||||
javac.target = 5
|
||||
javac.source = 7
|
||||
javac.target = 7
|
||||
javac.debug = true
|
||||
javac.no.jdk.warnings = -XDignore.symbol.file=true
|
||||
# set the following to -version to verify the versions of javac being used
|
||||
|
||||
@@ -1027,6 +1027,9 @@ public abstract class XMLScanner
|
||||
int c = fEntityScanner.peekChar();
|
||||
if (XMLChar.isMarkup(c) || c == ']') {
|
||||
fStringBuffer.append((char)fEntityScanner.scanChar());
|
||||
} else if (c != -1 && isInvalidLiteral(c)) {
|
||||
reportFatalError("InvalidCharInSystemID",
|
||||
new Object[] {Integer.toString(c, 16)});
|
||||
}
|
||||
} while (fEntityScanner.scanLiteral(quote, ident) != quote);
|
||||
fStringBuffer.append(ident);
|
||||
|
||||
@@ -41,3 +41,6 @@ b8a6e883c0a6708f6d818815040525d472262495 jdk7-b63
|
||||
aaa25dfd3de68c6f1a1d3ef8c45fd99f76bca6dd jdk7-b64
|
||||
aa22a1be5866a6608ba17a7a443945559409ae0f jdk7-b65
|
||||
fa8712c099edd5c9a6b3ed9729353738004d388f jdk7-b66
|
||||
faa13cd4d6cdcfb155da5ed23b0da6e0ed0f9ea8 jdk7-b67
|
||||
845fa487f0f72a9f232ead8315c0087a477a5a31 jdk7-b68
|
||||
3e64fdfb92910e164d1f4b21b147719d5c674254 jdk7-b69
|
||||
|
||||
@@ -32,7 +32,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
--- end of LICENSE file ---
|
||||
%% This notice is provided with respect to ASM, which may be included with this software:
|
||||
Copyright (c) 2000-2005 INRIA, France Telecom
|
||||
Copyright (c) 2000-2007 INRIA, France Telecom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
# one of the standard user build.properties files (see build.xml)
|
||||
|
||||
# options for the <javac> tasks used to compile the tools
|
||||
javac.source = 5
|
||||
javac.target = 5
|
||||
javac.source = 7
|
||||
javac.target = 7
|
||||
javac.debug = true
|
||||
javac.no.jdk.warnings = -XDignore.symbol.file=true
|
||||
# set the following to -version to verify the versions of javac being used
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.codemodel.internal;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
@@ -199,8 +199,7 @@ public final class JAnnotationUse extends JAnnotationValue {
|
||||
*
|
||||
*/
|
||||
public JAnnotationUse param(String name, Class value){
|
||||
addValue(name, new JAnnotationStringValue(JExpr.lit(value.getName())));
|
||||
return this;
|
||||
return param(name,clazz.owner().ref(value));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.codemodel.internal;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
@@ -111,6 +111,14 @@ public final class JBlock implements JGenerable, JStatement {
|
||||
return r;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this block is empty and does not contain
|
||||
* any statement.
|
||||
*/
|
||||
public boolean isEmpty() {
|
||||
return content.isEmpty();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds a local variable declaration to this block
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.codemodel.internal;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -77,7 +78,8 @@ public class JCommentPart extends ArrayList<Object> {
|
||||
*/
|
||||
protected void format( JFormatter f, String indent ) {
|
||||
if(!f.isPrinting()) {
|
||||
// quickly pass the types to JFormatter
|
||||
// quickly pass the types to JFormatter, as that's all we care.
|
||||
// we don't need to worry about the exact formatting of text.
|
||||
for( Object o : this )
|
||||
if(o instanceof JClass)
|
||||
f.g((JClass)o);
|
||||
@@ -97,12 +99,12 @@ public class JCommentPart extends ArrayList<Object> {
|
||||
while( (idx=s.indexOf('\n'))!=-1 ) {
|
||||
String line = s.substring(0,idx);
|
||||
if(line.length()>0)
|
||||
f.p(line);
|
||||
f.p(escape(line));
|
||||
s = s.substring(idx+1);
|
||||
f.nl().p(indent);
|
||||
}
|
||||
if(s.length()!=0)
|
||||
f.p(s);
|
||||
f.p(escape(s));
|
||||
} else
|
||||
if(o instanceof JClass) {
|
||||
// TODO: this doesn't print the parameterized type properly
|
||||
@@ -117,4 +119,16 @@ public class JCommentPart extends ArrayList<Object> {
|
||||
if(!isEmpty())
|
||||
f.nl();
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes the appearance of the comment terminator.
|
||||
*/
|
||||
private String escape(String s) {
|
||||
while(true) {
|
||||
int idx = s.indexOf("*/");
|
||||
if(idx <0) return s;
|
||||
|
||||
s = s.substring(0,idx+1)+"<!---->"+s.substring(idx+1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.codemodel.internal;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
@@ -198,8 +198,12 @@ public abstract class JExpr {
|
||||
char c = s.charAt(i);
|
||||
int j = charEscape.indexOf(c);
|
||||
if(j>=0) {
|
||||
sb.append('\\');
|
||||
sb.append(charMacro.charAt(j));
|
||||
if((quote=='"' && c=='\'') || (quote=='\'' && c=='"')) {
|
||||
sb.append(c);
|
||||
} else {
|
||||
sb.append('\\');
|
||||
sb.append(charMacro.charAt(j));
|
||||
}
|
||||
} else {
|
||||
// technically Unicode escape shouldn't be done here,
|
||||
// for it's a lexical level handling.
|
||||
|
||||
@@ -231,6 +231,7 @@ public class JJavaName {
|
||||
"(.*)basis","$1bases",
|
||||
"(.*)axis","$1axes",
|
||||
"(.+)is","$1ises",
|
||||
"(.+)ss","$1sses",
|
||||
"(.+)us","$1uses",
|
||||
"(.+)s","$1s",
|
||||
"(.*)foot","$1feet",
|
||||
|
||||
@@ -388,10 +388,11 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
|
||||
f.g(a).nl();
|
||||
}
|
||||
|
||||
// declare the generics parameters
|
||||
f.g(mods);
|
||||
|
||||
// declare the generics parameters
|
||||
super.declare(f);
|
||||
|
||||
f.g(mods);
|
||||
if (!isConstructor())
|
||||
f.g(type);
|
||||
f.id(name).p('(').i();
|
||||
|
||||
@@ -98,32 +98,7 @@ public final class JPackage implements JDeclaration, JGenerable, JClassContainer
|
||||
JPackage(String name, JCodeModel cw) {
|
||||
this.owner = cw;
|
||||
if (name.equals(".")) {
|
||||
String msg = "JPackage name . is not allowed";
|
||||
throw new IllegalArgumentException(msg);
|
||||
}
|
||||
|
||||
int dots = 1;
|
||||
for (int i = 0; i < name.length(); i++) {
|
||||
char c = name.charAt(i);
|
||||
if (c == '.') {
|
||||
dots++;
|
||||
continue;
|
||||
}
|
||||
if (dots > 1) {
|
||||
String msg = "JPackage name " + name + " missing identifier";
|
||||
throw new IllegalArgumentException(msg);
|
||||
} else if (dots == 1 && !Character.isJavaIdentifierStart(c)) {
|
||||
String msg =
|
||||
"JPackage name " + name + " contains illegal " + "character for beginning of identifier: " + c;
|
||||
throw new IllegalArgumentException(msg);
|
||||
} else if (!Character.isJavaIdentifierPart(c)) {
|
||||
String msg = "JPackage name " + name + "contains illegal " + "character: " + c;
|
||||
throw new IllegalArgumentException(msg);
|
||||
}
|
||||
dots = 0;
|
||||
}
|
||||
if (!name.trim().equals("") && dots != 0) {
|
||||
String msg = "JPackage name not allowed to end with .";
|
||||
String msg = "Package name . is not allowed";
|
||||
throw new IllegalArgumentException(msg);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.codemodel.internal;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.codemodel.internal;
|
||||
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
<!--
|
||||
Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
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. Sun designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
have any questions.
|
||||
-->
|
||||
<HTML>
|
||||
<BODY>
|
||||
Various resource file formats (classes that implement <code>JResourceFile</code>).
|
||||
</BODY>
|
||||
</HTML>
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* <h1>Library for generating Java source code</h1>.
|
||||
*
|
||||
|
||||
@@ -22,11 +22,10 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @(#)$Id: EncoderFactory.java,v 1.3 2005/09/10 19:07:33 kohsuke Exp $
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.codemodel.internal.util;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
|
||||
@@ -22,11 +22,10 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @(#)$Id: MS1252Encoder.java,v 1.2 2005/09/10 19:07:33 kohsuke Exp $
|
||||
*/
|
||||
|
||||
|
||||
package com.sun.codemodel.internal.util;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.codemodel.internal.writer;
|
||||
|
||||
import java.io.OutputStream;
|
||||
|
||||
33
jaxws/src/share/classes/com/sun/istack/internal/Builder.java
Normal file
33
jaxws/src/share/classes/com/sun/istack/internal/Builder.java
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* 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. Sun designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
package com.sun.istack.internal;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Martin Grebac
|
||||
*/
|
||||
public interface Builder<T> {
|
||||
T build();
|
||||
}
|
||||
@@ -25,6 +25,7 @@
|
||||
package com.sun.istack.internal;
|
||||
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
/**
|
||||
* Pool of reusable objects that are indistinguishable from each other,
|
||||
@@ -33,6 +34,7 @@ import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public interface Pool<T> {
|
||||
|
||||
/**
|
||||
* Gets a new object from the pool.
|
||||
*
|
||||
@@ -46,7 +48,6 @@ public interface Pool<T> {
|
||||
*/
|
||||
void recycle(@NotNull T t);
|
||||
|
||||
|
||||
/**
|
||||
* Default implementation that uses {@link ConcurrentLinkedQueue}
|
||||
* as the data store.
|
||||
@@ -55,7 +56,10 @@ public interface Pool<T> {
|
||||
* <p>
|
||||
* Don't rely on the fact that this class extends from {@link ConcurrentLinkedQueue}.
|
||||
*/
|
||||
public abstract class Impl<T> extends ConcurrentLinkedQueue<T> implements Pool<T> {
|
||||
public abstract class Impl<T> implements Pool<T> {
|
||||
|
||||
private volatile WeakReference<ConcurrentLinkedQueue<T>> queue;
|
||||
|
||||
/**
|
||||
* Gets a new object from the pool.
|
||||
*
|
||||
@@ -66,9 +70,10 @@ public interface Pool<T> {
|
||||
* always non-null.
|
||||
*/
|
||||
public final @NotNull T take() {
|
||||
T t = super.poll();
|
||||
if(t==null)
|
||||
T t = getQueue().poll();
|
||||
if(t==null) {
|
||||
return create();
|
||||
}
|
||||
return t;
|
||||
}
|
||||
|
||||
@@ -76,7 +81,22 @@ public interface Pool<T> {
|
||||
* Returns an object back to the pool.
|
||||
*/
|
||||
public final void recycle(T t) {
|
||||
super.offer(t);
|
||||
getQueue().offer(t);
|
||||
}
|
||||
|
||||
private ConcurrentLinkedQueue<T> getQueue() {
|
||||
WeakReference<ConcurrentLinkedQueue<T>> q = queue;
|
||||
if (q != null) {
|
||||
ConcurrentLinkedQueue<T> d = q.get();
|
||||
if (d != null) {
|
||||
return d;
|
||||
}
|
||||
}
|
||||
// overwrite the queue
|
||||
ConcurrentLinkedQueue<T> d = new ConcurrentLinkedQueue<T>();
|
||||
queue = new WeakReference<ConcurrentLinkedQueue<T>>(d);
|
||||
|
||||
return d;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -54,12 +54,22 @@ public class XMLStreamReaderToContentHandler {
|
||||
|
||||
// if true, when the conversion is completed, leave the cursor to the last
|
||||
// event that was fired (such as end element)
|
||||
private boolean eagerQuit;
|
||||
private final boolean eagerQuit;
|
||||
|
||||
/**
|
||||
* If true, not start/endDocument event.
|
||||
*/
|
||||
private boolean fragment;
|
||||
private final boolean fragment;
|
||||
|
||||
// array of the even length of the form { prefix0, uri0, prefix1, uri1, ... }
|
||||
private final String[] inscopeNamespaces;
|
||||
|
||||
/**
|
||||
* @see #XMLStreamReaderToContentHandler(XMLStreamReader, ContentHandler, boolean, boolean, String[])
|
||||
*/
|
||||
public XMLStreamReaderToContentHandler(XMLStreamReader staxCore, ContentHandler saxCore, boolean eagerQuit, boolean fragment) {
|
||||
this(staxCore, saxCore, eagerQuit, fragment, new String[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new StAX to SAX adapter that will convert a StAX event
|
||||
@@ -69,14 +79,22 @@ public class XMLStreamReaderToContentHandler {
|
||||
* StAX event source
|
||||
* @param saxCore
|
||||
* SAXevent sink
|
||||
* @param eagerQuit
|
||||
* @param fragment
|
||||
* @param inscopeNamespaces
|
||||
* array of the even length of the form { prefix0, uri0, prefix1, uri1, ... }
|
||||
*/
|
||||
public XMLStreamReaderToContentHandler(XMLStreamReader staxCore, ContentHandler saxCore, boolean eagerQuit, boolean fragment) {
|
||||
public XMLStreamReaderToContentHandler(XMLStreamReader staxCore, ContentHandler saxCore,
|
||||
boolean eagerQuit, boolean fragment, String[] inscopeNamespaces) {
|
||||
this.staxStreamReader = staxCore;
|
||||
this.saxHandler = saxCore;
|
||||
this.eagerQuit = eagerQuit;
|
||||
this.fragment = fragment;
|
||||
this.inscopeNamespaces = inscopeNamespaces;
|
||||
assert inscopeNamespaces.length%2 == 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @see StAXReaderToContentHandler#bridge()
|
||||
*/
|
||||
@@ -100,6 +118,10 @@ public class XMLStreamReaderToContentHandler {
|
||||
|
||||
handleStartDocument();
|
||||
|
||||
for(int i=0; i < inscopeNamespaces.length; i+=2) {
|
||||
saxHandler.startPrefixMapping(inscopeNamespaces[i], inscopeNamespaces[i+1]);
|
||||
}
|
||||
|
||||
OUTER:
|
||||
do {
|
||||
// These are all of the events listed in the javadoc for
|
||||
@@ -156,6 +178,10 @@ public class XMLStreamReaderToContentHandler {
|
||||
event=staxStreamReader.next();
|
||||
} while (depth!=0);
|
||||
|
||||
for(int i=0; i < inscopeNamespaces.length; i+=2) {
|
||||
saxHandler.endPrefixMapping(inscopeNamespaces[i]);
|
||||
}
|
||||
|
||||
handleEndDocument();
|
||||
} catch (SAXException e) {
|
||||
throw new XMLStreamException2(e);
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* 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. Sun designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.istack.internal.localization;
|
||||
|
||||
/**
|
||||
* Localizable message.
|
||||
*
|
||||
* @author WS Development Team
|
||||
*/
|
||||
public interface Localizable {
|
||||
/**
|
||||
* Gets the key in the resource bundle.
|
||||
*
|
||||
* @return
|
||||
* if this method returns {@link #NOT_LOCALIZABLE},
|
||||
* that means the message is not localizable, and
|
||||
* the first item of {@link #getArguments()} array
|
||||
* holds a String.
|
||||
*/
|
||||
public String getKey();
|
||||
|
||||
/**
|
||||
* Returns the arguments for message formatting.
|
||||
*
|
||||
* @return
|
||||
* can be an array of length 0 but never be null.
|
||||
*/
|
||||
public Object[] getArguments();
|
||||
public String getResourceBundleName();
|
||||
|
||||
|
||||
/**
|
||||
* Special constant that represents a message that
|
||||
* is not localizable.
|
||||
*
|
||||
* <p>
|
||||
* Use of "new" is to create an unique instance.
|
||||
*/
|
||||
public static final String NOT_LOCALIZABLE = new String("\u0000");
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* 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. Sun designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.istack.internal.localization;
|
||||
|
||||
/**
|
||||
* @author WS Development Team
|
||||
*/
|
||||
public final class LocalizableMessage implements Localizable {
|
||||
|
||||
private final String _bundlename;
|
||||
private final String _key;
|
||||
private final Object[] _args;
|
||||
|
||||
public LocalizableMessage(String bundlename, String key, Object... args) {
|
||||
_bundlename = bundlename;
|
||||
_key = key;
|
||||
if(args==null)
|
||||
args = new Object[0];
|
||||
_args = args;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return _key;
|
||||
}
|
||||
|
||||
public Object[] getArguments() {
|
||||
return _args;
|
||||
}
|
||||
|
||||
public String getResourceBundleName() {
|
||||
return _bundlename;
|
||||
}
|
||||
}
|
||||
@@ -23,28 +23,21 @@
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.xml.internal.ws.addressing.model;
|
||||
|
||||
import javax.xml.ws.WebServiceException;
|
||||
import javax.xml.namespace.QName;
|
||||
package com.sun.istack.internal.localization;
|
||||
|
||||
/**
|
||||
* @author Arun Gupta
|
||||
* @author WS Development Team
|
||||
*/
|
||||
public class InvalidMapException extends WebServiceException {
|
||||
QName name;
|
||||
QName subsubcode;
|
||||
public class LocalizableMessageFactory {
|
||||
|
||||
public InvalidMapException(QName name, QName subsubcode) {
|
||||
this.name = name;
|
||||
this.subsubcode = subsubcode;
|
||||
private final String _bundlename;
|
||||
|
||||
public LocalizableMessageFactory(String bundlename) {
|
||||
_bundlename = bundlename;
|
||||
}
|
||||
|
||||
public QName getMapQName() {
|
||||
return name;
|
||||
public Localizable getMessage(String key, Object... args) {
|
||||
return new LocalizableMessage(_bundlename, key, args);
|
||||
}
|
||||
|
||||
public QName getSubsubcode() {
|
||||
return subsubcode;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* 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. Sun designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.istack.internal.localization;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Localizes the {@link Localizable} into a message
|
||||
* by using a configured {@link Locale}.
|
||||
*
|
||||
* @author WS Development Team
|
||||
*/
|
||||
public class Localizer {
|
||||
|
||||
private final Locale _locale;
|
||||
private final HashMap _resourceBundles;
|
||||
|
||||
public Localizer() {
|
||||
this(Locale.getDefault());
|
||||
}
|
||||
|
||||
public Localizer(Locale l) {
|
||||
_locale = l;
|
||||
_resourceBundles = new HashMap();
|
||||
}
|
||||
|
||||
public Locale getLocale() {
|
||||
return _locale;
|
||||
}
|
||||
|
||||
public String localize(Localizable l) {
|
||||
String key = l.getKey();
|
||||
if (key == Localizable.NOT_LOCALIZABLE) {
|
||||
// this message is not localizable
|
||||
return (String) l.getArguments()[0];
|
||||
}
|
||||
String bundlename = l.getResourceBundleName();
|
||||
|
||||
try {
|
||||
ResourceBundle bundle =
|
||||
(ResourceBundle) _resourceBundles.get(bundlename);
|
||||
|
||||
if (bundle == null) {
|
||||
try {
|
||||
bundle = ResourceBundle.getBundle(bundlename, _locale);
|
||||
} catch (MissingResourceException e) {
|
||||
// work around a bug in the com.sun.enterprise.deployment.WebBundleArchivist:
|
||||
// all files with an extension different from .class (hence all the .properties files)
|
||||
// get copied to the top level directory instead of being in the package where they
|
||||
// are defined
|
||||
// so, since we can't find the bundle under its proper name, we look for it under
|
||||
// the top-level package
|
||||
|
||||
int i = bundlename.lastIndexOf('.');
|
||||
if (i != -1) {
|
||||
String alternateBundleName =
|
||||
bundlename.substring(i + 1);
|
||||
try {
|
||||
bundle =
|
||||
ResourceBundle.getBundle(
|
||||
alternateBundleName,
|
||||
_locale);
|
||||
} catch (MissingResourceException e2) {
|
||||
// give up
|
||||
return getDefaultMessage(l);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_resourceBundles.put(bundlename, bundle);
|
||||
}
|
||||
|
||||
if (bundle == null) {
|
||||
return getDefaultMessage(l);
|
||||
}
|
||||
|
||||
if (key == null)
|
||||
key = "undefined";
|
||||
|
||||
String msg;
|
||||
try {
|
||||
msg = bundle.getString(key);
|
||||
} catch (MissingResourceException e) {
|
||||
// notice that this may throw a MissingResourceException of its own (caught below)
|
||||
msg = bundle.getString("undefined");
|
||||
}
|
||||
|
||||
// localize all arguments to the given localizable object
|
||||
Object[] args = l.getArguments();
|
||||
for (int i = 0; i < args.length; ++i) {
|
||||
if (args[i] instanceof Localizable)
|
||||
args[i] = localize((Localizable) args[i]);
|
||||
}
|
||||
|
||||
String message = MessageFormat.format(msg, args);
|
||||
return message;
|
||||
|
||||
} catch (MissingResourceException e) {
|
||||
return getDefaultMessage(l);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private String getDefaultMessage(Localizable l) {
|
||||
String key = l.getKey();
|
||||
Object[] args = l.getArguments();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("[failed to localize] ");
|
||||
sb.append(key);
|
||||
if (args != null) {
|
||||
sb.append('(');
|
||||
for (int i = 0; i < args.length; ++i) {
|
||||
if (i != 0)
|
||||
sb.append(", ");
|
||||
sb.append(String.valueOf(args[i]));
|
||||
}
|
||||
sb.append(')');
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -66,10 +66,7 @@ public class AnnotationProcessorFactoryImpl implements AnnotationProcessorFactor
|
||||
types.add("javax.jws.soap.SOAPBinding");
|
||||
types.add("javax.jws.soap.SOAPMessageHandler");
|
||||
types.add("javax.jws.soap.SOAPMessageHandlers");
|
||||
types.add("javax.xml.ws.BeginService");
|
||||
types.add("javax.xml.ws.EndService");
|
||||
types.add("javax.xml.ws.BindingType");
|
||||
types.add("javax.xml.ws.ParameterIndex");
|
||||
types.add("javax.xml.ws.RequestWrapper");
|
||||
types.add("javax.xml.ws.ResponseWrapper");
|
||||
types.add("javax.xml.ws.ServiceMode");
|
||||
@@ -78,8 +75,6 @@ public class AnnotationProcessorFactoryImpl implements AnnotationProcessorFactor
|
||||
types.add("javax.xml.ws.WebServiceClient");
|
||||
types.add("javax.xml.ws.WebServiceProvider");
|
||||
types.add("javax.xml.ws.WebServiceRef");
|
||||
|
||||
types.add("javax.xml.ws.security.MessageSecurity");
|
||||
supportedAnnotations = Collections.unmodifiableCollection(types);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -30,8 +30,8 @@ BASEDIR_DOESNT_EXIST = \
|
||||
Non-existent directory: {0}
|
||||
|
||||
VERSION = \
|
||||
schemagen version "JAXB 2.1.3" \n\
|
||||
JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build JAXB 2.1.3 in JDK)
|
||||
schemagen version "JAXB 2.1.10 in JDK 6" \n\
|
||||
JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build JAXB 2.1.10 in JDK 6)
|
||||
|
||||
USAGE = \
|
||||
Usage: schemagen [-options ...] <java files> \n\
|
||||
@@ -42,4 +42,3 @@ Options: \n\
|
||||
\ \ \ \ -episode <file> : generate episode file for separate compilation\n\
|
||||
\ \ \ \ -version : display version information\n\
|
||||
\ \ \ \ -help : display this usage message
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* 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. Sun designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/**
|
||||
* CLI entry point to schemagen that checks for JDK 5.0
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class SchemaGeneratorFacade {
|
||||
|
||||
public static void main(String[] args) throws Throwable {
|
||||
try {
|
||||
ClassLoader cl = SchemaGeneratorFacade.class.getClassLoader();
|
||||
if(cl==null) cl = ClassLoader.getSystemClassLoader();
|
||||
|
||||
Class driver = cl.loadClass("com.sun.tools.internal.jxc.SchemaGenerator");
|
||||
Method mainMethod = driver.getDeclaredMethod("main", new Class[]{String[].class});
|
||||
try {
|
||||
mainMethod.invoke(null,new Object[]{args});
|
||||
} catch (IllegalAccessException e) {
|
||||
throw e;
|
||||
} catch (InvocationTargetException e) {
|
||||
if(e.getTargetException()!=null)
|
||||
throw e.getTargetException();
|
||||
}
|
||||
} catch (UnsupportedClassVersionError e) {
|
||||
System.err.println("schemagen requires JDK 5.0 or later. Please download it from http://java.sun.com/j2se/1.5/");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc.apt;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc.apt;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc.apt;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc.apt;
|
||||
|
||||
import com.sun.mirror.apt.AnnotationProcessorEnvironment;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc.apt;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
@@ -31,4 +31,3 @@ UNRECOGNIZED_PARAMETER = \
|
||||
|
||||
OPERAND_MISSING = \
|
||||
Option "{0}" is missing an operand.
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc.apt;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc.apt;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc.apt;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -75,6 +75,11 @@ public class Classes extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
{
|
||||
if(($__uri == "" && $__local == "classes")) {
|
||||
@@ -92,18 +97,6 @@ public class Classes extends NGCCHandler {
|
||||
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
if(($__uri == "" && $__local == "excludes")) {
|
||||
$runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
|
||||
$_ngcc_current_state = 6;
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 1;
|
||||
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 11:
|
||||
{
|
||||
if(($__uri == "" && $__local == "includes")) {
|
||||
@@ -115,9 +108,16 @@ public class Classes extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
case 2:
|
||||
{
|
||||
revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
if(($__uri == "" && $__local == "excludes")) {
|
||||
$runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
|
||||
$_ngcc_current_state = 6;
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 1;
|
||||
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@@ -133,6 +133,17 @@ public class Classes extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
$_ngcc_current_state = 3;
|
||||
$runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
{
|
||||
if(($__uri == "" && $__local == "excludes")) {
|
||||
@@ -144,29 +155,12 @@ public class Classes extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
$_ngcc_current_state = 3;
|
||||
$runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
$_ngcc_current_state = 1;
|
||||
$runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
if(($__uri == "" && $__local == "classes")) {
|
||||
$runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
|
||||
$_ngcc_current_state = 0;
|
||||
}
|
||||
else {
|
||||
unexpectedLeaveElement($__qname);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
{
|
||||
if(($__uri == "" && $__local == "includes")) {
|
||||
@@ -178,9 +172,15 @@ public class Classes extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
case 1:
|
||||
{
|
||||
revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
|
||||
if(($__uri == "" && $__local == "classes")) {
|
||||
$runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
|
||||
$_ngcc_current_state = 0;
|
||||
}
|
||||
else {
|
||||
unexpectedLeaveElement($__qname);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@@ -196,6 +196,11 @@ public class Classes extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
$_ngcc_current_state = 3;
|
||||
@@ -208,11 +213,6 @@ public class Classes extends NGCCHandler {
|
||||
$runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
unexpectedEnterAttribute($__qname);
|
||||
@@ -226,6 +226,11 @@ public class Classes extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
$_ngcc_current_state = 3;
|
||||
@@ -238,11 +243,6 @@ public class Classes extends NGCCHandler {
|
||||
$runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
unexpectedLeaveAttribute($__qname);
|
||||
@@ -253,6 +253,11 @@ public class Classes extends NGCCHandler {
|
||||
|
||||
public void text(String $value) throws SAXException {
|
||||
switch($_ngcc_current_state) {
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromText(this, super._cookie, $value);
|
||||
}
|
||||
break;
|
||||
case 9:
|
||||
{
|
||||
include_content = $value;
|
||||
@@ -260,14 +265,14 @@ public class Classes extends NGCCHandler {
|
||||
action2();
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
{
|
||||
exclude_content = $value;
|
||||
$_ngcc_current_state = 3;
|
||||
action0();
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
case 3:
|
||||
{
|
||||
exclude_content = $value;
|
||||
$_ngcc_current_state = 3;
|
||||
@@ -301,11 +306,6 @@ public class Classes extends NGCCHandler {
|
||||
action1();
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromText(this, super._cookie, $value);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,15 +70,10 @@ public class Config extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 0:
|
||||
case 4:
|
||||
{
|
||||
revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
if(($__uri == "" && $__local == "schema")) {
|
||||
NGCCHandler h = new Schema(this, super._source, $runtime, 3, baseDir);
|
||||
if(($__uri == "" && $__local == "classes")) {
|
||||
NGCCHandler h = new Classes(this, super._source, $runtime, 34);
|
||||
spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
else {
|
||||
@@ -97,10 +92,26 @@ public class Config extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
if(($__uri == "" && $__local == "schema")) {
|
||||
NGCCHandler h = new Schema(this, super._source, $runtime, 31, baseDir);
|
||||
spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
else {
|
||||
unexpectedEnterElement($__qname);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
if(($__uri == "" && $__local == "schema")) {
|
||||
NGCCHandler h = new Schema(this, super._source, $runtime, 4, baseDir);
|
||||
NGCCHandler h = new Schema(this, super._source, $runtime, 32, baseDir);
|
||||
spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
else {
|
||||
@@ -120,17 +131,6 @@ public class Config extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
if(($__uri == "" && $__local == "classes")) {
|
||||
NGCCHandler h = new Classes(this, super._source, $runtime, 6);
|
||||
spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
else {
|
||||
unexpectedEnterElement($__qname);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
unexpectedEnterElement($__qname);
|
||||
@@ -145,11 +145,6 @@ public class Config extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
if(($__uri == "" && $__local == "config")) {
|
||||
@@ -161,6 +156,11 @@ public class Config extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
$_ngcc_current_state = 1;
|
||||
@@ -257,13 +257,6 @@ public class Config extends NGCCHandler {
|
||||
public void text(String $value) throws SAXException {
|
||||
int $ai;
|
||||
switch($_ngcc_current_state) {
|
||||
case 6:
|
||||
{
|
||||
bd = $value;
|
||||
$_ngcc_current_state = 5;
|
||||
action1();
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromText(this, super._cookie, $value);
|
||||
@@ -283,31 +276,38 @@ public class Config extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
{
|
||||
bd = $value;
|
||||
$_ngcc_current_state = 5;
|
||||
action1();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
|
||||
switch($__cookie__) {
|
||||
case 3:
|
||||
{
|
||||
_schema = ((Schema)$__result__);
|
||||
action0();
|
||||
$_ngcc_current_state = 1;
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
_schema = ((Schema)$__result__);
|
||||
action0();
|
||||
$_ngcc_current_state = 1;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
case 34:
|
||||
{
|
||||
classes = ((Classes)$__result__);
|
||||
$_ngcc_current_state = 2;
|
||||
}
|
||||
break;
|
||||
case 31:
|
||||
{
|
||||
_schema = ((Schema)$__result__);
|
||||
action0();
|
||||
$_ngcc_current_state = 1;
|
||||
}
|
||||
break;
|
||||
case 32:
|
||||
{
|
||||
_schema = ((Schema)$__result__);
|
||||
action0();
|
||||
$_ngcc_current_state = 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -65,6 +65,23 @@ public class Schema extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
if(($ai = $runtime.getAttributeIndex("","location"))>=0) {
|
||||
$runtime.consumeAttribute($ai);
|
||||
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 1;
|
||||
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
{
|
||||
if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
|
||||
@@ -88,23 +105,6 @@ public class Schema extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
if(($ai = $runtime.getAttributeIndex("","location"))>=0) {
|
||||
$runtime.consumeAttribute($ai);
|
||||
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 1;
|
||||
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
unexpectedEnterElement($__qname);
|
||||
@@ -119,23 +119,23 @@ public class Schema extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 6:
|
||||
case 0:
|
||||
{
|
||||
if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
|
||||
revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
if(($ai = $runtime.getAttributeIndex("","location"))>=0) {
|
||||
$runtime.consumeAttribute($ai);
|
||||
$runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 2;
|
||||
$_ngcc_current_state = 1;
|
||||
$runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
if(($__uri == "" && $__local == "schema")) {
|
||||
@@ -147,14 +147,14 @@ public class Schema extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
case 6:
|
||||
{
|
||||
if(($ai = $runtime.getAttributeIndex("","location"))>=0) {
|
||||
if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
|
||||
$runtime.consumeAttribute($ai);
|
||||
$runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 1;
|
||||
$_ngcc_current_state = 2;
|
||||
$runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
}
|
||||
@@ -172,17 +172,6 @@ public class Schema extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 6:
|
||||
{
|
||||
if(($__uri == "" && $__local == "namespace")) {
|
||||
$_ngcc_current_state = 8;
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 2;
|
||||
$runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname);
|
||||
@@ -199,6 +188,17 @@ public class Schema extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
{
|
||||
if(($__uri == "" && $__local == "namespace")) {
|
||||
$_ngcc_current_state = 8;
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 2;
|
||||
$runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
unexpectedEnterAttribute($__qname);
|
||||
@@ -212,17 +212,17 @@ public class Schema extends NGCCHandler {
|
||||
$localName = $__local;
|
||||
$qname = $__qname;
|
||||
switch($_ngcc_current_state) {
|
||||
case 6:
|
||||
{
|
||||
$_ngcc_current_state = 2;
|
||||
$runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
$_ngcc_current_state = 1;
|
||||
$runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
{
|
||||
if(($__uri == "" && $__local == "namespace")) {
|
||||
@@ -233,6 +233,12 @@ public class Schema extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
{
|
||||
$_ngcc_current_state = 2;
|
||||
$runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
{
|
||||
if(($__uri == "" && $__local == "location")) {
|
||||
@@ -243,12 +249,6 @@ public class Schema extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
$_ngcc_current_state = 1;
|
||||
$runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
unexpectedLeaveAttribute($__qname);
|
||||
@@ -260,24 +260,6 @@ public class Schema extends NGCCHandler {
|
||||
public void text(String $value) throws SAXException {
|
||||
int $ai;
|
||||
switch($_ngcc_current_state) {
|
||||
case 8:
|
||||
{
|
||||
namespace = $value;
|
||||
$_ngcc_current_state = 7;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
{
|
||||
if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
|
||||
$runtime.consumeAttribute($ai);
|
||||
$runtime.sendText(super._cookie, $value);
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 2;
|
||||
$runtime.sendText(super._cookie, $value);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
revertToParentFromText(this, super._cookie, $value);
|
||||
@@ -295,6 +277,12 @@ public class Schema extends NGCCHandler {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
{
|
||||
namespace = $value;
|
||||
$_ngcc_current_state = 7;
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
{
|
||||
loc = $value;
|
||||
@@ -302,6 +290,18 @@ public class Schema extends NGCCHandler {
|
||||
action0();
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
{
|
||||
if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
|
||||
$runtime.consumeAttribute($ai);
|
||||
$runtime.sendText(super._cookie, $value);
|
||||
}
|
||||
else {
|
||||
$_ngcc_current_state = 2;
|
||||
$runtime.sendText(super._cookie, $value);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
have any questions.
|
||||
-->
|
||||
|
||||
|
||||
<!-- THIS IS A GENERATED FILE. DO NOT MODIFY. -->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
||||
<xs:element name="config">
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.jxc.model.nav;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -306,7 +307,7 @@ public class APTNavigator implements Navigator<TypeMirror,TypeDeclaration,FieldD
|
||||
}
|
||||
|
||||
public boolean isInnerClass(TypeDeclaration clazz) {
|
||||
return clazz.getDeclaringType()!=null;
|
||||
return clazz.getDeclaringType()!=null && !clazz.getModifiers().contains(Modifier.STATIC);
|
||||
}
|
||||
|
||||
public boolean isArray(TypeMirror t) {
|
||||
|
||||
@@ -55,10 +55,12 @@ public final class Invoker {
|
||||
static int invoke(String mainClass, String[] args) throws Throwable {
|
||||
// use the platform default proxy if available.
|
||||
// see sun.net.spi.DefaultProxySelector for details.
|
||||
try {
|
||||
System.setProperty("java.net.useSystemProxies","true");
|
||||
} catch (SecurityException e) {
|
||||
// failing to set this property isn't fatal
|
||||
if(!noSystemProxies) {
|
||||
try {
|
||||
System.setProperty("java.net.useSystemProxies","true");
|
||||
} catch (SecurityException e) {
|
||||
// failing to set this property isn't fatal
|
||||
}
|
||||
}
|
||||
|
||||
ClassLoader oldcc = Thread.currentThread().getContextClassLoader();
|
||||
@@ -220,4 +222,18 @@ public final class Invoker {
|
||||
"com.sun.xml.internal.bind.",
|
||||
"com.sun.xml.internal.ws."
|
||||
};
|
||||
|
||||
/**
|
||||
* Escape hatch to work around IBM JDK problem.
|
||||
* See http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?nav=false&forum=367&thread=164718&cat=10
|
||||
*/
|
||||
public static boolean noSystemProxies = false;
|
||||
|
||||
static {
|
||||
try {
|
||||
noSystemProxies = Boolean.getBoolean(Invoker.class.getName()+".noSystemProxies");
|
||||
} catch(SecurityException e) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ import com.sun.tools.internal.ws.processor.generator.JavaGeneratorExtensionFacad
|
||||
*
|
||||
* @see JavaGeneratorExtensionFacade
|
||||
* @author Vivek Pandey
|
||||
* @deprecated This class is deprecated, will be removed in JAX-WS 2.2 RI.
|
||||
*/
|
||||
public abstract class TJavaGeneratorExtension {
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* 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. Sun designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
package com.sun.tools.internal.ws.api;
|
||||
|
||||
/**
|
||||
* Allows to customize wsgen behaviour using this extension.
|
||||
* The extension implementations are found using service
|
||||
* discovery mechanism i.e. JAX-WS tooltime locates
|
||||
* {@link WsgenExtension}s through the
|
||||
* <tt>META-INF/services/com.sun.tools.internal.ws.api.WsgenExtension</tt>
|
||||
* files.
|
||||
*
|
||||
* {@link WsgenProtocol} annotation can be specified on the
|
||||
* extensions to extend -wsdl[:protocol] behaviour.
|
||||
*
|
||||
* @author Jitendra Kotamraju
|
||||
* @since JAX-WS RI 2.1.6
|
||||
* @see WsgenProtocol
|
||||
*/
|
||||
public abstract class WsgenExtension {
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* 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. Sun designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
package com.sun.tools.internal.ws.api;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* Allows to extend protocol for wsgen's wsdl[:protocol] switch.
|
||||
* This annotation must be specified on {@link WsgenExtension}
|
||||
* implementations.
|
||||
*
|
||||
* @author Jitendra Kotamraju
|
||||
* @since JAX-WS RI 2.1.6
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface WsgenProtocol {
|
||||
/**
|
||||
* Token for wsgen -wsdl[:protocol]
|
||||
* @return
|
||||
*/
|
||||
String token();
|
||||
|
||||
/**
|
||||
* The corresponding lexical string used to create BindingID
|
||||
* @return
|
||||
*/
|
||||
String lexical();
|
||||
}
|
||||
@@ -32,6 +32,8 @@ import javax.xml.namespace.QName;
|
||||
* A WSDL element or attribute that can be extended.
|
||||
*
|
||||
* @author Vivek Pandey
|
||||
* @deprecated This interface is deprecated, will be removed in JAX-WS 2.2 RI.
|
||||
*
|
||||
*/
|
||||
public interface TWSDLExtensible {
|
||||
/**
|
||||
|
||||
@@ -29,6 +29,7 @@ package com.sun.tools.internal.ws.api.wsdl;
|
||||
* A WSDL extension
|
||||
*
|
||||
* @author Vivek Pandey
|
||||
* @deprecated This interface is deprecated, will be removed in JAX-WS 2.2 RI.
|
||||
*/
|
||||
public interface TWSDLExtension {
|
||||
/**
|
||||
|
||||
@@ -33,6 +33,7 @@ import org.w3c.dom.Element;
|
||||
* with it for the WSDL extensibility elements thats not already defined in the WSDL 1.1 spec, such as SOAP or MIME.
|
||||
*
|
||||
* @author Vivek Pandey
|
||||
* @deprecated This class is deprecated, will be removed in JAX-WS 2.2 RI.
|
||||
*/
|
||||
public abstract class TWSDLExtensionHandler {
|
||||
/**
|
||||
|
||||
@@ -33,6 +33,7 @@ import java.util.Map;
|
||||
* Abstracts wsdl:portType/wsdl:operation
|
||||
*
|
||||
* @author Vivek Pandey
|
||||
* @deprecated This interface is deprecated, will be removed in JAX-WS 2.2 RI.
|
||||
*/
|
||||
public interface TWSDLOperation extends TWSDLExtensible{
|
||||
/**
|
||||
|
||||
@@ -33,6 +33,7 @@ import org.xml.sax.Locator;
|
||||
* it can be latter used by other extensions to resolve the namespaces.
|
||||
*
|
||||
* @author Vivek Pandey
|
||||
* @deprecated This interface is deprecated, will be removed in JAX-WS 2.2 RI.
|
||||
*/
|
||||
public interface TWSDLParserContext {
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* <h1>JAX-WS 2.0.1 Tools</h1>
|
||||
* <h1>JAX-WS 2.1 Tools</h1>
|
||||
* This document describes the tools included with JAX-WS 2.0.1.
|
||||
*
|
||||
* {@DotDiagram
|
||||
@@ -42,22 +42,24 @@
|
||||
|
||||
// libraries
|
||||
node [style=filled,color=lightblue];
|
||||
CompileTool; "WSAP"; WebServiceAP; Processor; Modeler; ProcessorActions;
|
||||
WsimportTool; WsgenTool;"WSAP"; WebServiceAP; WSDLModeler;WSDLParser;SeiGenerator;ServiceGenerator;ExceptionGenerator;"JAXB XJC APIs";CodeModel;
|
||||
|
||||
// aps
|
||||
# node [style=filled,color=lightpink];
|
||||
# "JAX-WS"; tools; runtime; SPI; "Annotation Processor";
|
||||
|
||||
"Apt ANT Task" -> APT;
|
||||
"WsGen ANT Task" -> wsgen -> CompileTool;
|
||||
"WsImport ANT Task" -> wsimport -> CompileTool;
|
||||
"WsGen ANT Task" -> wsgen -> WsgenTool;
|
||||
"WsImport ANT Task" -> wsimport -> WsimportTool;
|
||||
|
||||
CompileTool -> APT -> WSAP -> WebServiceAP;
|
||||
CompileTool -> Processor -> Modeler;
|
||||
Processor -> ProcessorActions;
|
||||
CompileTool -> WebServiceAP;
|
||||
|
||||
Modeler -> WSDLModeler;
|
||||
WsgenTool -> APT -> WSAP -> WebServiceAP;
|
||||
WsimportTool -> WSDLModeler;
|
||||
WSDLModeler->WSDLParser;
|
||||
WSDLModeler->"JAXB XJC APIs"
|
||||
WsimportTool->SeiGenerator->CodeModel;
|
||||
WsimportTool->ServiceGenerator->CodeModel;
|
||||
WsimportTool->ExceptionGenerator->CodeModel;
|
||||
WebServiceAP->CodeModel
|
||||
}
|
||||
* }
|
||||
* <div align=right>
|
||||
|
||||
@@ -156,12 +156,14 @@ public abstract class GeneratorBase
|
||||
return comments;
|
||||
}
|
||||
|
||||
protected JDefinedClass getClass(String className, ClassType type) {
|
||||
protected JDefinedClass getClass(String className, ClassType type) throws JClassAlreadyExistsException {
|
||||
JDefinedClass cls;
|
||||
try {
|
||||
cls = cm._class(className, type);
|
||||
} catch (JClassAlreadyExistsException e){
|
||||
cls = cm._getClass(className);
|
||||
if(cls == null)
|
||||
throw e;
|
||||
}
|
||||
return cls;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,11 @@ import com.sun.tools.internal.ws.processor.model.jaxb.JAXBTypeAndAnnotation;
|
||||
import com.sun.tools.internal.ws.wscompile.ErrorReceiver;
|
||||
import com.sun.tools.internal.ws.wscompile.Options;
|
||||
import com.sun.tools.internal.ws.wscompile.WsimportOptions;
|
||||
import com.sun.tools.internal.ws.wscompile.AbortException;
|
||||
import com.sun.tools.internal.ws.wsdl.document.soap.SOAPStyle;
|
||||
import com.sun.tools.internal.ws.wsdl.document.PortType;
|
||||
import com.sun.tools.internal.ws.wsdl.document.Kinds;
|
||||
import com.sun.tools.internal.ws.resources.GeneratorMessages;
|
||||
|
||||
import javax.jws.WebMethod;
|
||||
import javax.jws.WebParam;
|
||||
@@ -48,6 +52,8 @@ import javax.xml.ws.Holder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.xml.sax.Locator;
|
||||
|
||||
public class SeiGenerator extends GeneratorBase{
|
||||
private String serviceNS;
|
||||
private TJavaGeneratorExtension extension;
|
||||
@@ -83,10 +89,22 @@ public class SeiGenerator extends GeneratorBase{
|
||||
}
|
||||
|
||||
|
||||
JDefinedClass cls = getClass(className, ClassType.INTERFACE);
|
||||
if (cls == null)
|
||||
JDefinedClass cls = null;
|
||||
try {
|
||||
cls = getClass(className, ClassType.INTERFACE);
|
||||
} catch (JClassAlreadyExistsException e) {
|
||||
QName portTypeName =
|
||||
(QName) port.getProperty(
|
||||
ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME);
|
||||
Locator loc = null;
|
||||
if(portTypeName != null){
|
||||
PortType pt = port.portTypes.get(portTypeName);
|
||||
if(pt!=null)
|
||||
loc = pt.getLocator();
|
||||
}
|
||||
receiver.error(loc, GeneratorMessages.GENERATOR_SEI_CLASS_ALREADY_EXIST(intf.getName(), portTypeName));
|
||||
return;
|
||||
|
||||
}
|
||||
// If the class has methods it has already been defined
|
||||
// so skip it.
|
||||
if (!cls.methods().isEmpty())
|
||||
@@ -441,15 +459,7 @@ public class SeiGenerator extends GeneratorBase{
|
||||
if (port.isProvider()) {
|
||||
return; // Not generating for Provider based endpoint
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
write(port);
|
||||
} catch (Exception e) {
|
||||
throw new GeneratorException(
|
||||
"generator.nestedGeneratorError",
|
||||
e);
|
||||
}
|
||||
write(port);
|
||||
}
|
||||
|
||||
private void register(TJavaGeneratorExtension h) {
|
||||
|
||||
@@ -29,11 +29,13 @@ import com.sun.codemodel.internal.*;
|
||||
import com.sun.tools.internal.ws.processor.model.Model;
|
||||
import com.sun.tools.internal.ws.processor.model.Port;
|
||||
import com.sun.tools.internal.ws.processor.model.Service;
|
||||
import com.sun.tools.internal.ws.processor.model.ModelProperties;
|
||||
import com.sun.tools.internal.ws.processor.model.java.JavaInterface;
|
||||
import com.sun.tools.internal.ws.wscompile.ErrorReceiver;
|
||||
import com.sun.tools.internal.ws.wscompile.Options;
|
||||
import com.sun.tools.internal.ws.wscompile.WsimportOptions;
|
||||
import com.sun.tools.internal.ws.resources.GeneratorMessages;
|
||||
import com.sun.tools.internal.ws.wsdl.document.PortType;
|
||||
import com.sun.xml.internal.bind.api.JAXBRIContext;
|
||||
import com.sun.xml.internal.ws.util.JAXWSUtils;
|
||||
|
||||
@@ -42,161 +44,174 @@ import javax.xml.ws.WebEndpoint;
|
||||
import javax.xml.ws.WebServiceClient;
|
||||
import javax.xml.ws.WebServiceFeature;
|
||||
import java.io.IOException;
|
||||
import java.io.File;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.xml.sax.Locator;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author WS Development Team
|
||||
*/
|
||||
public class ServiceGenerator extends GeneratorBase{
|
||||
public class ServiceGenerator extends GeneratorBase {
|
||||
|
||||
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver){
|
||||
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver) {
|
||||
ServiceGenerator serviceGenerator = new ServiceGenerator(model, options, receiver);
|
||||
serviceGenerator.doGeneration();
|
||||
}
|
||||
|
||||
private ServiceGenerator(Model model, WsimportOptions options, ErrorReceiver receiver) {
|
||||
super(model, options, receiver);
|
||||
}
|
||||
|
||||
private JInvocation createURL(URL url) {
|
||||
return JExpr._new(cm.ref(URL.class)).arg(url.toExternalForm());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visit(Service service) {
|
||||
JavaInterface intf = service.getJavaInterface();
|
||||
String className = Names.customJavaTypeClassName(intf);
|
||||
if (donotOverride && GeneratorUtil.classExists(options, className)) {
|
||||
log("Class " + className + " exists. Not overriding.");
|
||||
return;
|
||||
}
|
||||
|
||||
JDefinedClass cls;
|
||||
try {
|
||||
JavaInterface intf = service.getJavaInterface();
|
||||
String className = Names.customJavaTypeClassName(intf);
|
||||
if (donotOverride && GeneratorUtil.classExists(options, className)) {
|
||||
log("Class " + className + " exists. Not overriding.");
|
||||
cls = getClass(className, ClassType.CLASS);
|
||||
} catch (JClassAlreadyExistsException e) {
|
||||
receiver.error(service.getLocator(), GeneratorMessages.GENERATOR_SERVICE_CLASS_ALREADY_EXIST(className, service.getName()));
|
||||
return;
|
||||
}
|
||||
|
||||
cls._extends(javax.xml.ws.Service.class);
|
||||
String serviceFieldName = JAXBRIContext.mangleNameToClassName(service.getName().getLocalPart()).toUpperCase();
|
||||
String wsdlLocationName = serviceFieldName + "_WSDL_LOCATION";
|
||||
JFieldVar urlField = cls.field(JMod.PRIVATE | JMod.STATIC | JMod.FINAL, URL.class, wsdlLocationName);
|
||||
|
||||
|
||||
cls.field(JMod.PRIVATE | JMod.STATIC | JMod.FINAL, Logger.class, "logger", cm.ref(Logger.class).staticInvoke("getLogger").arg(JExpr.dotclass(cm.ref(className)).invoke("getName")));
|
||||
|
||||
JClass qNameCls = cm.ref(QName.class);
|
||||
JInvocation inv;
|
||||
inv = JExpr._new(qNameCls);
|
||||
inv.arg("namespace");
|
||||
inv.arg("localpart");
|
||||
|
||||
|
||||
JBlock staticBlock = cls.init();
|
||||
JVar urlVar = staticBlock.decl(cm.ref(URL.class), "url", JExpr._null());
|
||||
JTryBlock tryBlock = staticBlock._try();
|
||||
JVar baseUrl = tryBlock.body().decl(cm.ref(URL.class), "baseUrl");
|
||||
tryBlock.body().assign(baseUrl, JExpr.dotclass(cm.ref(className)).invoke("getResource").arg("."));
|
||||
tryBlock.body().assign(urlVar, JExpr._new(cm.ref(URL.class)).arg(baseUrl).arg(wsdlLocation));
|
||||
JCatchBlock catchBlock = tryBlock._catch(cm.ref(MalformedURLException.class));
|
||||
catchBlock.param("e");
|
||||
|
||||
catchBlock.body().directStatement("logger.warning(\"Failed to create URL for the wsdl Location: " + JExpr.quotify('\'', wsdlLocation) + ", retrying as a local file\");");
|
||||
catchBlock.body().directStatement("logger.warning(e.getMessage());");
|
||||
|
||||
staticBlock.assign(urlField, urlVar);
|
||||
|
||||
//write class comment - JAXWS warning
|
||||
JDocComment comment = cls.javadoc();
|
||||
|
||||
if (service.getJavaDoc() != null) {
|
||||
comment.add(service.getJavaDoc());
|
||||
comment.add("\n\n");
|
||||
}
|
||||
|
||||
for (String doc : getJAXWSClassComment()) {
|
||||
comment.add(doc);
|
||||
}
|
||||
|
||||
JMethod constructor = cls.constructor(JMod.PUBLIC);
|
||||
constructor.param(URL.class, "wsdlLocation");
|
||||
constructor.param(QName.class, "serviceName");
|
||||
constructor.body().directStatement("super(wsdlLocation, serviceName);");
|
||||
|
||||
constructor = cls.constructor(JMod.PUBLIC);
|
||||
constructor.body().directStatement("super(" + wsdlLocationName + ", new QName(\"" + service.getName().getNamespaceURI() + "\", \"" + service.getName().getLocalPart() + "\"));");
|
||||
|
||||
//@WebService
|
||||
JAnnotationUse webServiceClientAnn = cls.annotate(cm.ref(WebServiceClient.class));
|
||||
writeWebServiceClientAnnotation(service, webServiceClientAnn);
|
||||
|
||||
//@HandlerChain
|
||||
writeHandlerConfig(Names.customJavaTypeClassName(service.getJavaInterface()), cls, options);
|
||||
|
||||
for (Port port : service.getPorts()) {
|
||||
if (port.isProvider()) {
|
||||
continue; // No getXYZPort() for porvider based endpoint
|
||||
}
|
||||
|
||||
//Get the SEI class
|
||||
JType retType;
|
||||
try {
|
||||
retType = getClass(port.getJavaInterface().getName(), ClassType.INTERFACE);
|
||||
} catch (JClassAlreadyExistsException e) {
|
||||
QName portTypeName =
|
||||
(QName) port.getProperty(
|
||||
ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME);
|
||||
Locator loc = null;
|
||||
if (portTypeName != null) {
|
||||
PortType pt = port.portTypes.get(portTypeName);
|
||||
if (pt != null)
|
||||
loc = pt.getLocator();
|
||||
}
|
||||
receiver.error(loc, GeneratorMessages.GENERATOR_SEI_CLASS_ALREADY_EXIST(port.getJavaInterface().getName(), portTypeName));
|
||||
return;
|
||||
}
|
||||
|
||||
JDefinedClass cls = getClass(className, ClassType.CLASS);
|
||||
//write getXyzPort()
|
||||
writeDefaultGetPort(port, retType, cls);
|
||||
|
||||
cls._extends(javax.xml.ws.Service.class);
|
||||
String serviceFieldName = JAXBRIContext.mangleNameToClassName(service.getName().getLocalPart()).toUpperCase();
|
||||
String wsdlLocationName = serviceFieldName+"_WSDL_LOCATION";
|
||||
JFieldVar urlField = cls.field(JMod.PRIVATE|JMod.STATIC|JMod.FINAL, URL.class, wsdlLocationName);
|
||||
JClass qNameCls = cm.ref(QName.class);
|
||||
JInvocation inv;
|
||||
inv = JExpr._new(qNameCls);
|
||||
inv.arg("namespace");
|
||||
inv.arg("localpart");
|
||||
|
||||
|
||||
JBlock staticBlock = cls.init();
|
||||
URL url = new URL(JAXWSUtils.absolutize(JAXWSUtils.getFileOrURLName(wsdlLocation)));
|
||||
JVar urlVar = staticBlock.decl(cm.ref(URL.class),"url", JExpr._null());
|
||||
JTryBlock tryBlock = staticBlock._try();
|
||||
tryBlock.body().assign(urlVar, createURL(url));
|
||||
JCatchBlock catchBlock = tryBlock._catch(cm.ref(MalformedURLException.class));
|
||||
catchBlock.param("e");
|
||||
catchBlock.body().directStatement("e.printStackTrace();");
|
||||
staticBlock.assign(urlField, urlVar);
|
||||
|
||||
//write class comment - JAXWS warning
|
||||
JDocComment comment = cls.javadoc();
|
||||
|
||||
if(service.getJavaDoc() != null){
|
||||
comment.add(service.getJavaDoc());
|
||||
comment.add("\n\n");
|
||||
}
|
||||
|
||||
for (String doc : getJAXWSClassComment()) {
|
||||
comment.add(doc);
|
||||
}
|
||||
|
||||
JMethod constructor = cls.constructor(JMod.PUBLIC);
|
||||
constructor.param(URL.class, "wsdlLocation");
|
||||
constructor.param(QName.class, "serviceName");
|
||||
constructor.body().directStatement("super(wsdlLocation, serviceName);");
|
||||
|
||||
constructor = cls.constructor(JMod.PUBLIC);
|
||||
constructor.body().directStatement("super("+wsdlLocationName+", new QName(\""+service.getName().getNamespaceURI()+"\", \""+service.getName().getLocalPart()+"\"));");
|
||||
|
||||
//@WebService
|
||||
JAnnotationUse webServiceClientAnn = cls.annotate(cm.ref(WebServiceClient.class));
|
||||
writeWebServiceClientAnnotation(service, webServiceClientAnn);
|
||||
|
||||
//@HandlerChain
|
||||
writeHandlerConfig(Names.customJavaTypeClassName(service.getJavaInterface()), cls, options);
|
||||
|
||||
for (Port port: service.getPorts()) {
|
||||
if (port.isProvider()) {
|
||||
continue; // No getXYZPort() for porvider based endpoint
|
||||
}
|
||||
|
||||
//write getXyzPort()
|
||||
writeDefaultGetPort(port, cls);
|
||||
|
||||
//write getXyzPort(WebServicesFeature...)
|
||||
if(options.target.isLaterThan(Options.Target.V2_1))
|
||||
writeGetPort(port, cls);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
receiver.error(e);
|
||||
//write getXyzPort(WebServicesFeature...)
|
||||
if (options.target.isLaterThan(Options.Target.V2_1))
|
||||
writeGetPort(port, retType, cls);
|
||||
}
|
||||
}
|
||||
|
||||
private void writeGetPort(Port port, JDefinedClass cls) {
|
||||
JType retType = getClass(port.getJavaInterface().getName(), ClassType.INTERFACE);
|
||||
private void writeGetPort(Port port, JType retType, JDefinedClass cls) {
|
||||
JMethod m = cls.method(JMod.PUBLIC, retType, port.getPortGetter());
|
||||
JDocComment methodDoc = m.javadoc();
|
||||
if(port.getJavaDoc() != null)
|
||||
if (port.getJavaDoc() != null)
|
||||
methodDoc.add(port.getJavaDoc());
|
||||
JCommentPart ret = methodDoc.addReturn();
|
||||
JCommentPart paramDoc = methodDoc.addParam("features");
|
||||
paramDoc.append("A list of ");
|
||||
paramDoc.append("{@link "+WebServiceFeature.class.getName()+"}");
|
||||
paramDoc.append("{@link " + WebServiceFeature.class.getName() + "}");
|
||||
paramDoc.append("to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.");
|
||||
ret.add("returns "+retType.name());
|
||||
ret.add("returns " + retType.name());
|
||||
m.varParam(WebServiceFeature.class, "features");
|
||||
JBlock body = m.body();
|
||||
StringBuffer statement = new StringBuffer("return (");
|
||||
statement.append(retType.name());
|
||||
statement.append(")super.getPort(new QName(\"").append(port.getName().getNamespaceURI()).append("\", \"").append(port.getName().getLocalPart()).append("\"), ");
|
||||
StringBuffer statement = new StringBuffer("return ");
|
||||
statement.append("super.getPort(new QName(\"").append(port.getName().getNamespaceURI()).append("\", \"").append(port.getName().getLocalPart()).append("\"), ");
|
||||
statement.append(retType.name());
|
||||
statement.append(".class, features);");
|
||||
body.directStatement(statement.toString());
|
||||
writeWebEndpoint(port, m);
|
||||
}
|
||||
|
||||
private void writeDefaultGetPort(Port port, JDefinedClass cls) {
|
||||
JType retType = getClass(port.getJavaInterface().getName(), ClassType.INTERFACE);
|
||||
private void writeDefaultGetPort(Port port, JType retType, JDefinedClass cls) {
|
||||
String portGetter = port.getPortGetter();
|
||||
JMethod m = cls.method(JMod.PUBLIC, retType, portGetter);
|
||||
JDocComment methodDoc = m.javadoc();
|
||||
if(port.getJavaDoc() != null)
|
||||
if (port.getJavaDoc() != null)
|
||||
methodDoc.add(port.getJavaDoc());
|
||||
JCommentPart ret = methodDoc.addReturn();
|
||||
ret.add("returns "+retType.name());
|
||||
ret.add("returns " + retType.name());
|
||||
JBlock body = m.body();
|
||||
StringBuffer statement = new StringBuffer("return (");
|
||||
statement.append(retType.name());
|
||||
statement.append(")super.getPort(new QName(\"").append(port.getName().getNamespaceURI()).append("\", \"").append(port.getName().getLocalPart()).append("\"), ");
|
||||
StringBuffer statement = new StringBuffer("return ");
|
||||
statement.append("super.getPort(new QName(\"").append(port.getName().getNamespaceURI()).append("\", \"").append(port.getName().getLocalPart()).append("\"), ");
|
||||
statement.append(retType.name());
|
||||
statement.append(".class);");
|
||||
body.directStatement(statement.toString());
|
||||
writeWebEndpoint(port, m);
|
||||
}
|
||||
|
||||
|
||||
protected JDefinedClass getClass(String className, ClassType type) {
|
||||
JDefinedClass cls;
|
||||
try {
|
||||
cls = cm._class(className, type);
|
||||
} catch (JClassAlreadyExistsException e){
|
||||
cls = cm._getClass(className);
|
||||
}
|
||||
return cls;
|
||||
}
|
||||
|
||||
private void writeWebServiceClientAnnotation(Service service, JAnnotationUse wsa) {
|
||||
String serviceName = service.getName().getLocalPart();
|
||||
String serviceNS= service.getName().getNamespaceURI();
|
||||
String serviceNS = service.getName().getNamespaceURI();
|
||||
wsa.param("name", serviceName);
|
||||
wsa.param("targetNamespace", serviceNS);
|
||||
wsa.param("wsdlLocation", wsdlLocation);
|
||||
|
||||
@@ -22,9 +22,6 @@
|
||||
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||||
* have any questions.
|
||||
*/
|
||||
/*
|
||||
* $Id: W3CAddressingJavaGeneratorExtension.java,v 1.1.2.4 2006/10/31 19:57:28 vivekp Exp $
|
||||
*/
|
||||
|
||||
package com.sun.tools.internal.ws.processor.generator;
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
package com.sun.tools.internal.ws.processor.model;
|
||||
|
||||
import com.sun.tools.internal.ws.processor.model.java.JavaInterface;
|
||||
import com.sun.tools.internal.ws.wsdl.document.PortType;
|
||||
import com.sun.tools.internal.ws.wsdl.document.soap.SOAPStyle;
|
||||
import com.sun.tools.internal.ws.wsdl.framework.Entity;
|
||||
|
||||
@@ -174,4 +175,5 @@ public class Port extends ModelObject {
|
||||
private String _address;
|
||||
private String _serviceImplName;
|
||||
private Map<String, Operation> operationsByName = new HashMap<String, Operation>();
|
||||
public Map<QName, PortType> portTypes = new HashMap<QName, PortType>();
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ package com.sun.tools.internal.ws.processor.model.java;
|
||||
|
||||
import com.sun.tools.internal.ws.resources.ModelMessages;
|
||||
import com.sun.tools.internal.ws.wscompile.ErrorReceiver;
|
||||
import com.sun.tools.internal.ws.wscompile.WsimportOptions;
|
||||
import com.sun.tools.internal.ws.processor.model.Parameter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -42,12 +43,14 @@ public class JavaMethod {
|
||||
private final String name;
|
||||
private final List<JavaParameter> parameters = new ArrayList<JavaParameter>();
|
||||
private final List<String> exceptions = new ArrayList<String>();
|
||||
private final WsimportOptions options;
|
||||
private JavaType returnType;
|
||||
|
||||
public JavaMethod(String name, ErrorReceiver receiver) {
|
||||
public JavaMethod(String name, WsimportOptions options, ErrorReceiver receiver) {
|
||||
this.name = name;
|
||||
this.returnType = null;
|
||||
this.errorReceiver = receiver;
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
@@ -83,10 +86,19 @@ public class JavaMethod {
|
||||
public void addParameter(JavaParameter param) {
|
||||
// verify that this member does not already exist
|
||||
if (hasParameter(param.getName())) {
|
||||
errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName()));
|
||||
Parameter duplicParam = getParameter(param.getName());
|
||||
errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName()));
|
||||
return;
|
||||
if(options.isExtensionMode()){
|
||||
param.setName(getUniqueName(param.getName()));
|
||||
}else{
|
||||
Parameter duplicParam = getParameter(param.getName());
|
||||
if(param.getParameter().isEmbedded()){
|
||||
errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), param.getParameter().getEntityName()));
|
||||
errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), duplicParam.getEntityName()));
|
||||
}else{
|
||||
errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName()));
|
||||
errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName()));
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
parameters.add(param);
|
||||
}
|
||||
@@ -106,4 +118,12 @@ public class JavaMethod {
|
||||
public Iterator<String> getExceptions() {
|
||||
return exceptions.iterator();
|
||||
}
|
||||
|
||||
private String getUniqueName(String param){
|
||||
int parmNum = 0;
|
||||
while(hasParameter(param)){
|
||||
param = param + Integer.toString(parmNum++);
|
||||
}
|
||||
return param;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,11 +71,11 @@ public class JAXBType extends AbstractType{
|
||||
}
|
||||
|
||||
public boolean isUnwrappable(){
|
||||
return getJaxbMapping().getWrapperStyleDrilldown() != null;
|
||||
return jaxbMapping != null && jaxbMapping.getWrapperStyleDrilldown() != null;
|
||||
}
|
||||
|
||||
public boolean hasWrapperChildren(){
|
||||
return (getWrapperChildren().size() > 0) ? true : false;
|
||||
return wrapperChildren.size() > 0;
|
||||
}
|
||||
|
||||
public boolean isLiteralType() {
|
||||
|
||||
@@ -210,6 +210,7 @@ public class WebServiceAP implements AnnotationProcessor, ModelBuilder, WebServi
|
||||
public void onError(String message) {
|
||||
if (messager != null) {
|
||||
messager.printError(message);
|
||||
throw new AbortException();
|
||||
} else {
|
||||
throw new ModelerException(message);
|
||||
}
|
||||
|
||||
@@ -441,10 +441,21 @@ public abstract class WebServiceVisitor extends SimpleDeclarationVisitor impleme
|
||||
|
||||
protected boolean shouldProcessMethod(MethodDeclaration method, WebMethod webMethod) {
|
||||
builder.log("should process method: "+method.getSimpleName()+" hasWebMethods: "+ hasWebMethods+" ");
|
||||
/*
|
||||
Fix for https://jax-ws.dev.java.net/issues/show_bug.cgi?id=577
|
||||
if (hasWebMethods && webMethod == null) {
|
||||
builder.log("webMethod == null");
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
Collection<Modifier> modifiers = method.getModifiers();
|
||||
boolean staticFinal = modifiers.contains(Modifier.STATIC) || modifiers.contains(Modifier.FINAL);
|
||||
if (staticFinal) {
|
||||
if (webMethod != null) {
|
||||
builder.onError(method.getPosition(), WebserviceapMessages.localizableWEBSERVICEAP_WEBSERVICE_METHOD_IS_STATIC_OR_FINAL(method.getDeclaringType(), method));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
boolean retval = (endpointReferencesInterface ||
|
||||
method.getDeclaringType().equals(typeDecl) ||
|
||||
(method.getDeclaringType().getAnnotation(WebService.class) != null));
|
||||
@@ -474,10 +485,6 @@ public abstract class WebServiceVisitor extends SimpleDeclarationVisitor impleme
|
||||
builder.onError(classDecl.getPosition(), WebserviceapMessages.localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_ABSTRACT(classDecl.getQualifiedName()));
|
||||
return false;
|
||||
}
|
||||
if (classDecl.getDeclaringType() != null && !modifiers.contains(Modifier.STATIC) && !isStateful) {
|
||||
builder.onError(classDecl.getPosition(), WebserviceapMessages.localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_INNERCLASS_NOT_STATIC(classDecl.getQualifiedName()));
|
||||
return false;
|
||||
}
|
||||
boolean hasDefaultConstructor = false;
|
||||
for (ConstructorDeclaration constructor : classDecl.getConstructors()) {
|
||||
if (constructor.getModifiers().contains(Modifier.PUBLIC) &&
|
||||
@@ -487,6 +494,11 @@ public abstract class WebServiceVisitor extends SimpleDeclarationVisitor impleme
|
||||
}
|
||||
}
|
||||
if (!hasDefaultConstructor && !isStateful) {
|
||||
if (classDecl.getDeclaringType() != null && !modifiers.contains(Modifier.STATIC)) {
|
||||
builder.onError(classDecl.getPosition(), WebserviceapMessages.localizableWEBSERVICEAP_WEBSERVICE_CLASS_IS_INNERCLASS_NOT_STATIC(classDecl.getQualifiedName()));
|
||||
return false;
|
||||
}
|
||||
|
||||
builder.onError(classDecl.getPosition(), WebserviceapMessages.localizableWEBSERVICEAP_WEBSERVICE_NO_DEFAULT_CONSTRUCTOR(classDecl.getQualifiedName()));
|
||||
return false;
|
||||
}
|
||||
@@ -578,7 +590,7 @@ public abstract class WebServiceVisitor extends SimpleDeclarationVisitor impleme
|
||||
}
|
||||
ClassType superClass = classDecl.getSuperclass();
|
||||
|
||||
if (!superClass.getDeclaration().getQualifiedName().equals(JAVA_LANG_OBJECT) && superClass != null && !methodsAreLegal(superClass.getDeclaration())) {
|
||||
if (!superClass.getDeclaration().getQualifiedName().equals(JAVA_LANG_OBJECT) && !methodsAreLegal(superClass.getDeclaration())) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -596,11 +608,13 @@ public abstract class WebServiceVisitor extends SimpleDeclarationVisitor impleme
|
||||
if (!hasWebMethods && (webMethod !=null) && webMethod.exclude()) {
|
||||
return true;
|
||||
}
|
||||
/*
|
||||
This check is not needed as Impl class is already checked that it is not abstract.
|
||||
if (typeDecl instanceof ClassDeclaration && method.getModifiers().contains(Modifier.ABSTRACT)) {
|
||||
builder.onError(method.getPosition(), WebserviceapMessages.localizableWEBSERVICEAP_WEBSERVICE_METHOD_IS_ABSTRACT(typeDecl.getQualifiedName(), method.getSimpleName()));
|
||||
return false;
|
||||
}
|
||||
|
||||
*/
|
||||
if (!isLegalType(method.getReturnType())) {
|
||||
builder.onError(method.getPosition(), WebserviceapMessages.localizableWEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(typeDecl.getQualifiedName(),
|
||||
method.getSimpleName(),
|
||||
@@ -750,7 +764,12 @@ public abstract class WebServiceVisitor extends SimpleDeclarationVisitor impleme
|
||||
protected boolean isLegalType(TypeMirror type) {
|
||||
if (!(type instanceof DeclaredType))
|
||||
return true;
|
||||
return !builder.isRemote(((DeclaredType)type).getDeclaration());
|
||||
TypeDeclaration typeDecl = ((DeclaredType)type).getDeclaration();
|
||||
if(typeDecl == null) {
|
||||
// can be null, if this type's declaration is unknown. This may be the result of a processing error, such as a missing class file.
|
||||
builder.onError(WebserviceapMessages.WEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(typeDecl.toString(), context.getRound()));
|
||||
}
|
||||
return !builder.isRemote(typeDecl);
|
||||
}
|
||||
|
||||
protected ParameterDeclaration getOutParameter(MethodDeclaration method) {
|
||||
|
||||
@@ -127,8 +127,10 @@ public class WebServiceWrapperGenerator extends WebServiceVisitor {
|
||||
boolean beanGenerated = false;
|
||||
for (ReferenceType thrownType : method.getThrownTypes()) {
|
||||
ClassDeclaration typeDecl = ((ClassType)thrownType).getDeclaration();
|
||||
if (typeDecl == null)
|
||||
if (typeDecl == null){
|
||||
builder.onError(WebserviceapMessages.WEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(thrownType.toString(), context.getRound()));
|
||||
return false;
|
||||
}
|
||||
boolean tmp = generateExceptionBean(typeDecl, beanPackage);
|
||||
beanGenerated = beanGenerated || tmp;
|
||||
}
|
||||
@@ -195,7 +197,7 @@ public class WebServiceWrapperGenerator extends WebServiceVisitor {
|
||||
if (resWrapper.targetNamespace().length() > 0)
|
||||
resNamespace = resWrapper.targetNamespace();
|
||||
}
|
||||
canOverwriteResponse = builder.canOverWriteClass(requestClassName);
|
||||
canOverwriteResponse = builder.canOverWriteClass(responseClassName);
|
||||
if (!canOverwriteResponse) {
|
||||
builder.log("Class " + responseClassName + " exists. Not overwriting.");
|
||||
}
|
||||
@@ -593,7 +595,7 @@ public class WebServiceWrapperGenerator extends WebServiceVisitor {
|
||||
return;
|
||||
|
||||
String accessorName =JAXBRIContext.mangleNameToPropertyName(paramName);
|
||||
String getterPrefix = paramType.equals("boolean") || paramType.equals("java.lang.Boolean") ? "is" : "get";
|
||||
String getterPrefix = paramType.toString().equals("boolean")? "is" : "get";
|
||||
JType propType = getType(paramType);
|
||||
JMethod m = cls.method(JMod.PUBLIC, propType, getterPrefix+ accessorName);
|
||||
JDocComment methodDoc = m.javadoc();
|
||||
|
||||
@@ -57,6 +57,8 @@ public class ConsoleErrorReporter extends ErrorReceiver {
|
||||
print(WscompileMessages.WSIMPORT_ERROR_MESSAGE(e.getMessage()), e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void fatalError(SAXParseException e) {
|
||||
if(debug)
|
||||
e.printStackTrace();
|
||||
@@ -76,6 +78,11 @@ public class ConsoleErrorReporter extends ErrorReceiver {
|
||||
print(WscompileMessages.WSIMPORT_INFO_MESSAGE(e.getMessage()), e);
|
||||
}
|
||||
|
||||
public void debug(SAXParseException e){
|
||||
print(WscompileMessages.WSIMPORT_DEBUG_MESSAGE(e.getMessage()), e);
|
||||
}
|
||||
|
||||
|
||||
private void print(String message, SAXParseException e) {
|
||||
output.println(message);
|
||||
output.println(getLocationString(e));
|
||||
|
||||
@@ -28,6 +28,7 @@ import com.sun.tools.internal.ws.processor.generator.Names;
|
||||
import static com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModelerBase.getExtensionOfType;
|
||||
import com.sun.tools.internal.ws.wscompile.ErrorReceiver;
|
||||
import com.sun.tools.internal.ws.wscompile.WsimportOptions;
|
||||
import com.sun.tools.internal.ws.wscompile.Options;
|
||||
import com.sun.tools.internal.ws.wsdl.document.*;
|
||||
import com.sun.tools.internal.ws.wsdl.document.jaxws.JAXWSBinding;
|
||||
import com.sun.tools.internal.ws.wsdl.document.schema.SchemaKinds;
|
||||
@@ -101,7 +102,7 @@ public class PseudoSchemaBuilder {
|
||||
is.setSystemId(sysId+(i + 1));
|
||||
}
|
||||
//add w3c EPR binding
|
||||
if(!(options.noAddressingBbinding && options.isExtensionMode())){
|
||||
if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){
|
||||
InputSource is = new InputSource(new ByteArrayInputStream(w3ceprSchemaBinding.getBytes()));
|
||||
is.setSystemId(sysId+(++i +1));
|
||||
b.schemas.add(is);
|
||||
|
||||
@@ -74,7 +74,7 @@ import java.io.IOException;
|
||||
public class WSDLModeler extends WSDLModelerBase {
|
||||
|
||||
//map of wsdl:operation QName to <soapenv:Body> child, as per BP it must be unique in a port
|
||||
private final Map<QName, QName> uniqueBodyBlocks = new HashMap<QName, QName>();
|
||||
private final Map<QName, Operation> uniqueBodyBlocks = new HashMap<QName, Operation>();
|
||||
private final QName VOID_BODYBLOCK = new QName("");
|
||||
private ClassNameCollector classNameCollector;
|
||||
private final String explicitDefaultPackage;
|
||||
@@ -334,11 +334,12 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
|| (!soapBinding.getTransport().equals(
|
||||
SOAPConstants.URI_SOAP_TRANSPORT_HTTP) && !soapBinding.getTransport().equals(
|
||||
SOAP12Constants.URI_SOAP_TRANSPORT_HTTP)))) {
|
||||
warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(wsdlPort.getName()));
|
||||
if (!options.isExtensionMode()) {
|
||||
// cannot deal with non-HTTP ports
|
||||
warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_SOAP_BINDING_NON_HTTP_TRANSPORT(wsdlPort.getName()));
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -679,7 +680,12 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
|
||||
if (soapStyle == SOAPStyle.RPC) {
|
||||
if (soapRequestBody.isEncoded()) {
|
||||
error(soapRequestBody, ModelerMessages.WSDLMODELER_20_RPCENC_NOT_SUPPORTED());
|
||||
if(options.isExtensionMode()){
|
||||
warning(soapRequestBody, ModelerMessages.WSDLMODELER_20_RPCENC_NOT_SUPPORTED());
|
||||
processNonSOAPOperation();
|
||||
}else{
|
||||
error(soapRequestBody, ModelerMessages.WSDLMODELER_20_RPCENC_NOT_SUPPORTED());
|
||||
}
|
||||
}
|
||||
return processLiteralSOAPOperation(StyleAndUse.RPC_LITERAL);
|
||||
}
|
||||
@@ -815,18 +821,69 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
QName body = VOID_BODYBLOCK;
|
||||
QName opName = null;
|
||||
|
||||
Operation thatOp;
|
||||
if (bb.hasNext()) {
|
||||
body = bb.next().getName();
|
||||
opName = uniqueBodyBlocks.get(body);
|
||||
thatOp = uniqueBodyBlocks.get(body);
|
||||
} else {
|
||||
//there is no body block
|
||||
body = VOID_BODYBLOCK;
|
||||
opName = uniqueBodyBlocks.get(VOID_BODYBLOCK);
|
||||
thatOp = uniqueBodyBlocks.get(VOID_BODYBLOCK);
|
||||
}
|
||||
if (opName != null) {
|
||||
error(info.port, ModelerMessages.WSDLMODELER_NON_UNIQUE_BODY(info.port.getName(), info.operation.getName(), opName, body));
|
||||
} else {
|
||||
uniqueBodyBlocks.put(body, info.operation.getName());
|
||||
|
||||
if(thatOp != null){
|
||||
if(options.isExtensionMode()){
|
||||
warning(info.port, ModelerMessages.WSDLMODELER_NON_UNIQUE_BODY_WARNING(info.port.getName(), info.operation.getName(), thatOp.getName(), body));
|
||||
}else{
|
||||
error(info.port, ModelerMessages.WSDLMODELER_NON_UNIQUE_BODY_ERROR(info.port.getName(), info.operation.getName(), thatOp.getName(), body));
|
||||
}
|
||||
}else{
|
||||
uniqueBodyBlocks.put(body, info.operation);
|
||||
}
|
||||
|
||||
//Add additional headers
|
||||
if (options.additionalHeaders) {
|
||||
List<Parameter> additionalHeaders = new ArrayList<Parameter>();
|
||||
if (inputMessage != null) {
|
||||
for (MessagePart part : getAdditionHeaderParts(inputMessage, true)) {
|
||||
QName name = part.getDescriptor();
|
||||
JAXBType jaxbType = getJAXBType(part);
|
||||
Block block = new Block(name, jaxbType, part);
|
||||
Parameter param = ModelerUtils.createParameter(part.getName(), jaxbType, block);
|
||||
additionalHeaders.add(param);
|
||||
request.addHeaderBlock(block);
|
||||
request.addParameter(param);
|
||||
definitiveParameterList.add(param);
|
||||
}
|
||||
}
|
||||
|
||||
if (isRequestResponse && outputMessage != null) {
|
||||
List<Parameter> outParams = new ArrayList<Parameter>();
|
||||
for (MessagePart part : getAdditionHeaderParts(outputMessage, false)) {
|
||||
QName name = part.getDescriptor();
|
||||
JAXBType jaxbType = getJAXBType(part);
|
||||
Block block = new Block(name, jaxbType, part);
|
||||
Parameter param = ModelerUtils.createParameter(part.getName(), jaxbType, block);
|
||||
param.setMode(Mode.OUT);
|
||||
outParams.add(param);
|
||||
response.addHeaderBlock(block);
|
||||
response.addParameter(param);
|
||||
}
|
||||
for (Parameter outParam : outParams) {
|
||||
for (Parameter inParam : additionalHeaders) {
|
||||
if (inParam.getName().equals(outParam.getName()) &&
|
||||
inParam.getBlock().getName().equals(outParam.getBlock().getName())) {
|
||||
//it is INOUT
|
||||
inParam.setMode(Mode.INOUT);
|
||||
outParam.setMode(Mode.INOUT);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (outParam.isOUT()) {
|
||||
definitiveParameterList.add(outParam);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// faults with duplicate names
|
||||
@@ -848,6 +905,7 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
return info.operation;
|
||||
}
|
||||
|
||||
|
||||
private boolean validateParameterName(List<Parameter> params) {
|
||||
if (options.isExtensionMode())
|
||||
return true;
|
||||
@@ -1460,6 +1518,19 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
return null;
|
||||
}
|
||||
|
||||
private List<MessagePart> getAdditionHeaderParts(Message message, boolean isInput){
|
||||
List<MessagePart> headerParts = new ArrayList<MessagePart>();
|
||||
List<MessagePart> parts = message.getParts();
|
||||
List<MessagePart> headers = getHeaderParts(isInput);
|
||||
|
||||
for(MessagePart part: headers){
|
||||
if(parts.contains(part))
|
||||
continue;
|
||||
headerParts.add(part);
|
||||
}
|
||||
return headerParts;
|
||||
}
|
||||
|
||||
private List<MessagePart> getHeaderPartsFromMessage(Message message, boolean isInput) {
|
||||
List<MessagePart> headerParts = new ArrayList<MessagePart>();
|
||||
Iterator<MessagePart> parts = message.parts();
|
||||
@@ -1490,19 +1561,6 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
return null;
|
||||
}
|
||||
|
||||
private List<MessagePart> getHeaderPartsNotFromMessage(Message message, boolean isInput) {
|
||||
List<MessagePart> headerParts = new ArrayList<MessagePart>();
|
||||
List<MessagePart> parts = message.getParts();
|
||||
Iterator<MessagePart> headers = getHeaderParts(isInput).iterator();
|
||||
while (headers.hasNext()) {
|
||||
MessagePart part = headers.next();
|
||||
if (!parts.contains(part)) {
|
||||
headerParts.add(part);
|
||||
}
|
||||
}
|
||||
return headerParts;
|
||||
}
|
||||
|
||||
private List<MessagePart> getHeaderParts(boolean isInput) {
|
||||
TWSDLExtensible ext;
|
||||
if (isInput) {
|
||||
@@ -2247,6 +2305,10 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
(QName) port.getProperty(
|
||||
ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME);
|
||||
PortType pt = (PortType) document.find(Kinds.PORT_TYPE, portTypeName);
|
||||
//populate the portType map here. We should get rid of all these properties
|
||||
// lets not do it as it may break NB
|
||||
//TODO: clean all these stuff part of NB RFE
|
||||
port.portTypes.put(portTypeName, pt);
|
||||
JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(pt, JAXWSBinding.class);
|
||||
if (jaxwsCust != null && jaxwsCust.getClassName() != null) {
|
||||
CustomName name = jaxwsCust.getClassName();
|
||||
@@ -2271,7 +2333,7 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
private void createJavaMethodForAsyncOperation(Port port, Operation operation,
|
||||
JavaInterface intf) {
|
||||
String candidateName = getJavaNameForOperation(operation);
|
||||
JavaMethod method = new JavaMethod(candidateName, errReceiver);
|
||||
JavaMethod method = new JavaMethod(candidateName, options, errReceiver);
|
||||
Request request = operation.getRequest();
|
||||
Iterator requestBodyBlocks = request.getBodyBlocks();
|
||||
Block requestBlock =
|
||||
@@ -2338,7 +2400,7 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
return;
|
||||
}
|
||||
String candidateName = getJavaNameForOperation(operation);
|
||||
JavaMethod method = new JavaMethod(candidateName, errReceiver);
|
||||
JavaMethod method = new JavaMethod(candidateName, options, errReceiver);
|
||||
Request request = operation.getRequest();
|
||||
Parameter returnParam = (Parameter) operation.getProperty(WSDL_RESULT_PARAMETER);
|
||||
if (returnParam != null) {
|
||||
@@ -2718,7 +2780,7 @@ public class WSDLModeler extends WSDLModelerBase {
|
||||
|
||||
private void reportError(Entity entity,
|
||||
String formattedMsg, Exception nestedException ) {
|
||||
Locator locator = (entity == null)?NULL_LOCATOR:entity.getLocator();
|
||||
Locator locator = (entity == null)?null:entity.getLocator();
|
||||
|
||||
SAXParseException e = new SAXParseException2( formattedMsg,
|
||||
locator,
|
||||
|
||||
@@ -288,23 +288,11 @@ public abstract class WSDLModelerBase implements Modeler {
|
||||
private boolean validateMimeContentPartNames(List<MIMEContent> mimeContents) {
|
||||
//validate mime:content(s) in the mime:part as per R2909
|
||||
for (MIMEContent mimeContent : mimeContents) {
|
||||
String mimeContnetPart = null;
|
||||
String mimeContnetPart;
|
||||
mimeContnetPart = getMimeContentPartName(mimeContent);
|
||||
if(mimeContnetPart == null) {
|
||||
mimeContnetPart = getMimeContentPartName(mimeContent);
|
||||
if(mimeContnetPart == null) {
|
||||
warning(mimeContent, ModelerMessages.MIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(info.operation.getName().getLocalPart()));
|
||||
return false;
|
||||
}
|
||||
}else {
|
||||
String newMimeContnetPart = getMimeContentPartName(mimeContent);
|
||||
if(newMimeContnetPart == null) {
|
||||
warning(mimeContent, ModelerMessages.MIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(info.operation.getName().getLocalPart()));
|
||||
return false;
|
||||
}else if(!newMimeContnetPart.equals(mimeContnetPart)) {
|
||||
//throw new ModelerException("mimemodeler.invalidMimeContent.differentPart");
|
||||
warning(mimeContent, ModelerMessages.MIMEMODELER_INVALID_MIME_CONTENT_DIFFERENT_PART());
|
||||
return false;
|
||||
}
|
||||
warning(mimeContent, ModelerMessages.MIMEMODELER_INVALID_MIME_CONTENT_MISSING_PART_ATTRIBUTE(info.operation.getName().getLocalPart()));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
@@ -386,6 +374,9 @@ public abstract class WSDLModelerBase implements Modeler {
|
||||
protected String getRequestNamespaceURI(SOAPBody body) {
|
||||
String namespaceURI = body.getNamespace();
|
||||
if (namespaceURI == null) {
|
||||
if(options.isExtensionMode()){
|
||||
return info.modelPort.getName().getNamespaceURI();
|
||||
}
|
||||
// the WSDL document is invalid
|
||||
// at least, that's my interpretation of section 3.5 of the WSDL 1.1 spec!
|
||||
error(body, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_INPUT_SOAP_BODY_MISSING_NAMESPACE(info.bindingOperation.getName()));
|
||||
@@ -396,6 +387,9 @@ public abstract class WSDLModelerBase implements Modeler {
|
||||
protected String getResponseNamespaceURI(SOAPBody body) {
|
||||
String namespaceURI = body.getNamespace();
|
||||
if (namespaceURI == null) {
|
||||
if(options.isExtensionMode()){
|
||||
return info.modelPort.getName().getNamespaceURI();
|
||||
}
|
||||
// the WSDL document is invalid
|
||||
// at least, that's my interpretation of section 3.5 of the WSDL 1.1 spec!
|
||||
error(body, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_OUTPUT_SOAP_BODY_MISSING_NAMESPACE(info.bindingOperation.getName()));
|
||||
@@ -703,14 +697,14 @@ public abstract class WSDLModelerBase implements Modeler {
|
||||
if(numPasses > 1)
|
||||
return;
|
||||
if(entity == null)
|
||||
errReceiver.warning(NULL_LOCATOR, message);
|
||||
errReceiver.warning(null, message);
|
||||
else
|
||||
errReceiver.warning(entity.getLocator(), message);
|
||||
}
|
||||
|
||||
protected void error(Entity entity, String message){
|
||||
if(entity == null)
|
||||
errReceiver.error(NULL_LOCATOR, message);
|
||||
errReceiver.error(null, message);
|
||||
else
|
||||
errReceiver.error(entity.getLocator(), message);
|
||||
throw new AbortException();
|
||||
|
||||
@@ -80,8 +80,10 @@ public class ClassNameCollector extends ExtendedModelVisitor
|
||||
protected void preVisit(Service service) throws Exception {
|
||||
registerClassName(
|
||||
((JavaInterface)service.getJavaInterface()).getName());
|
||||
registerClassName(
|
||||
((JavaInterface)service.getJavaInterface()).getImpl());
|
||||
// We don't generate Impl classes, commenting it out.
|
||||
// Otherwise, it would cause naming conflicts
|
||||
//registerClassName(
|
||||
// ((JavaInterface)service.getJavaInterface()).getImpl());
|
||||
}
|
||||
|
||||
protected void processPort11x(Port port){
|
||||
|
||||
@@ -38,6 +38,30 @@ public final class GeneratorMessages {
|
||||
private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.tools.internal.ws.resources.generator");
|
||||
private final static Localizer localizer = new Localizer();
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -255,18 +255,6 @@ public final class ModelMessages {
|
||||
return localizer.localize(localizableMODEL_SAXPARSER_EXCEPTION(arg0, arg1));
|
||||
}
|
||||
|
||||
public static Localizable localizable_002F_002F_JAXWS() {
|
||||
return messageFactory.getMessage("//JAXWS");
|
||||
}
|
||||
|
||||
/**
|
||||
* 2.0
|
||||
*
|
||||
*/
|
||||
public static String _002F_002F_JAXWS() {
|
||||
return localizer.localize(localizable_002F_002F_JAXWS());
|
||||
}
|
||||
|
||||
public static Localizable localizableMODEL_DUPLICATE_FAULTMESSAGE(Object arg0) {
|
||||
return messageFactory.getMessage("model.duplicate.faultmessage", arg0);
|
||||
}
|
||||
@@ -536,7 +524,9 @@ public final class ModelMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* Failed to generate Java signature: duplicate parameter names {0}. Use JAXWS binding customization to rename the wsdl:part "{1}"
|
||||
* 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) {
|
||||
@@ -639,6 +629,21 @@ public final class ModelMessages {
|
||||
return localizer.localize(localizableMODEL_IMPORTER_INVALID_LITERAL(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableMODEL_PARAMETER_NOTUNIQUE_WRAPPER(Object arg0, Object arg1) {
|
||||
return messageFactory.getMessage("model.parameter.notunique.wrapper", 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.
|
||||
* 3. This is wrapper style operation, to resolve parameter name conflict, you can also try disabling wrapper style by using <jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle> wsdl customization.
|
||||
*
|
||||
*/
|
||||
public static String MODEL_PARAMETER_NOTUNIQUE_WRAPPER(Object arg0, Object 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);
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ public final class ModelerMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* Schema descriptor {0} in message part "{1}" could not be bound to Java!
|
||||
* 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) {
|
||||
@@ -590,6 +590,18 @@ public final class ModelerMessages {
|
||||
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 signaure 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);
|
||||
}
|
||||
@@ -818,18 +830,6 @@ public final class ModelerMessages {
|
||||
return localizer.localize(localizableWSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_MATCHING_OPERATIONS(arg0, arg1));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSDLMODELER_NON_UNIQUE_BODY(Object arg0, Object arg1, Object arg2, Object arg3) {
|
||||
return messageFactory.getMessage("wsdlmodeler.nonUnique.body", arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Non unique body parts! In a port, operations must have unique operation signaure on the wire for successful dispatch. In port {0}, Operations "{1}" and "{2}" have the same request body block {3}
|
||||
*
|
||||
*/
|
||||
public static String WSDLMODELER_NON_UNIQUE_BODY(Object arg0, Object arg1, Object arg2, Object arg3) {
|
||||
return localizer.localize(localizableWSDLMODELER_NON_UNIQUE_BODY(arg0, arg1, arg2, arg3));
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
@@ -1238,6 +1238,18 @@ public final class ModelerMessages {
|
||||
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 signaure 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);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -62,6 +62,30 @@ public final class WscompileMessages {
|
||||
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//<url-path>
|
||||
*
|
||||
*/
|
||||
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");
|
||||
}
|
||||
@@ -142,6 +166,27 @@ public final class WscompileMessages {
|
||||
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
|
||||
*
|
||||
*
|
||||
*/
|
||||
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);
|
||||
}
|
||||
@@ -221,8 +266,8 @@ public final class WscompileMessages {
|
||||
* -p <pkg> specifies the target package
|
||||
* -quiet suppress wsimport output
|
||||
* -s <directory> specify where to place generated source files
|
||||
* -target <version> generate code as per the given JAXWS specification version.
|
||||
* version 2.0 will generate compliant code for JAXWS 2.0 spec.
|
||||
* -target <version> generate code as per the given JAXWS spec version
|
||||
* e.g. 2.0 will generate compliant code for JAXWS 2.0 spec
|
||||
* -verbose output messages about what the compiler is doing
|
||||
* -version print version information
|
||||
* -wsdllocation <location> @WebServiceClient.wsdlLocation value
|
||||
@@ -245,6 +290,44 @@ public final class WscompileMessages {
|
||||
return localizer.localize(localizableWSCOMPILE_ERROR(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSGEN_PROTOCOL_WITHOUT_EXTENSION(Object arg0) {
|
||||
return messageFactory.getMessage("wsgen.protocol.without.extension", arg0);
|
||||
}
|
||||
|
||||
/**
|
||||
* The optional protocol "{0}" must be used in conjunction with the "-extension" option.
|
||||
*
|
||||
*/
|
||||
public static String WSGEN_PROTOCOL_WITHOUT_EXTENSION(Object arg0) {
|
||||
return localizer.localize(localizableWSGEN_PROTOCOL_WITHOUT_EXTENSION(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSIMPORT_COMPILING_CODE() {
|
||||
return messageFactory.getMessage("wsimport.CompilingCode");
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* compiling code...
|
||||
*
|
||||
*
|
||||
*/
|
||||
public static String WSIMPORT_COMPILING_CODE() {
|
||||
return localizer.localize(localizableWSIMPORT_COMPILING_CODE());
|
||||
}
|
||||
|
||||
public static Localizable localizableWSIMPORT_READING_AUTH_FILE(Object arg0) {
|
||||
return messageFactory.getMessage("wsimport.readingAuthFile", arg0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Trying to read authorization file : "{0}"...
|
||||
*
|
||||
*/
|
||||
public static String WSIMPORT_READING_AUTH_FILE(Object arg0) {
|
||||
return localizer.localize(localizableWSIMPORT_READING_AUTH_FILE(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSGEN_NO_WEBSERVICES_CLASS(Object arg0) {
|
||||
return messageFactory.getMessage("wsgen.no.webservices.class", arg0);
|
||||
}
|
||||
@@ -281,6 +364,18 @@ public final class WscompileMessages {
|
||||
return localizer.localize(localizableWSCOMPILE_INFO(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSIMPORT_MAX_REDIRECT_ATTEMPT() {
|
||||
return messageFactory.getMessage("wsimport.maxRedirectAttempt");
|
||||
}
|
||||
|
||||
/**
|
||||
* Can not get a WSDL maximum number of redirects(5) reached
|
||||
*
|
||||
*/
|
||||
public static String WSIMPORT_MAX_REDIRECT_ATTEMPT() {
|
||||
return localizer.localize(localizableWSIMPORT_MAX_REDIRECT_ATTEMPT());
|
||||
}
|
||||
|
||||
public static Localizable localizableWSIMPORT_WARNING_MESSAGE(Object arg0) {
|
||||
return messageFactory.getMessage("wsimport.WarningMessage", arg0);
|
||||
}
|
||||
@@ -324,6 +419,7 @@ public final class WscompileMessages {
|
||||
/**
|
||||
* generating code...
|
||||
*
|
||||
*
|
||||
*/
|
||||
public static String WSIMPORT_GENERATING_CODE() {
|
||||
return localizer.localize(localizableWSIMPORT_GENERATING_CODE());
|
||||
@@ -389,6 +485,30 @@ public final class WscompileMessages {
|
||||
return localizer.localize(localizableWSIMPORT_NO_SUCH_JAXB_OPTION(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSIMPORT_AUTH_FILE_NOT_FOUND(Object arg0, Object arg1) {
|
||||
return messageFactory.getMessage("wsimport.authFileNotFound", arg0, arg1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Authorization file "{0}" not found. If the WSDL access needs Basic Authentication, please provide authorization file with read access at {1} or use -Xauthfile to give the authorization file and on each line provide authorization information using this format : http[s]://user:password@host:port//<url-path>
|
||||
*
|
||||
*/
|
||||
public static String WSIMPORT_AUTH_FILE_NOT_FOUND(Object arg0, Object 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* [DEBUG] {0}
|
||||
*
|
||||
*/
|
||||
public static String WSIMPORT_DEBUG_MESSAGE(Object arg0) {
|
||||
return localizer.localize(localizableWSIMPORT_DEBUG_MESSAGE(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSGEN_COULD_NOT_CREATE_FILE(Object arg0) {
|
||||
return messageFactory.getMessage("wsgen.could.not.create.file", arg0);
|
||||
}
|
||||
@@ -413,8 +533,8 @@ public final class WscompileMessages {
|
||||
return localizer.localize(localizableWSGEN_WSDL_ARG_NO_GENWSDL(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSGEN_HELP(Object arg0) {
|
||||
return messageFactory.getMessage("wsgen.help", arg0);
|
||||
public static Localizable localizableWSGEN_HELP(Object arg0, Object arg1, Object arg2) {
|
||||
return messageFactory.getMessage("wsgen.help", arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -436,18 +556,20 @@ public final class WscompileMessages {
|
||||
* -s <directory> specify where to place generated source files
|
||||
* -verbose output messages about what the compiler is doing
|
||||
* -version print version information
|
||||
* -wsdl[:protocol] generate a WSDL file. The protocol is optional.
|
||||
* Valid protocols are soap1.1 and Xsoap1.2, the default
|
||||
* is soap1.1. Xsoap1.2 is not standard and can only be
|
||||
* used in conjunction with the -extension option
|
||||
* -wsdl[:protocol] generate a WSDL file. The protocol is optional.
|
||||
* Valid protocols are {1},
|
||||
* the default is soap1.1.
|
||||
* The non stanadard protocols {2}
|
||||
* can only be used in conjunction with the
|
||||
* -extension option.
|
||||
* -servicename <name> specify the Service name to use in the generated WSDL
|
||||
* Used in conjunction with the -wsdl option.
|
||||
* -portname <name> specify the Port name to use in the generated WSDL
|
||||
* Used in conjunction with the -wsdl option.
|
||||
*
|
||||
*/
|
||||
public static String WSGEN_HELP(Object arg0) {
|
||||
return localizer.localize(localizableWSGEN_HELP(arg0));
|
||||
public static String WSGEN_HELP(Object arg0, Object arg1, Object arg2) {
|
||||
return localizer.localize(localizableWSGEN_HELP(arg0, arg1, arg2));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSIMPORT_INFO_MESSAGE(Object arg0) {
|
||||
@@ -474,6 +596,18 @@ public final class WscompileMessages {
|
||||
return localizer.localize(localizableWSGEN_SOAP_12_WITHOUT_EXTENSION());
|
||||
}
|
||||
|
||||
public static Localizable localizableWSIMPORT_ILLEGAL_AUTH_INFO(Object arg0) {
|
||||
return messageFactory.getMessage("wsimport.ILLEGAL_AUTH_INFO", arg0);
|
||||
}
|
||||
|
||||
/**
|
||||
* "{0}" is not a valid authorization information format. The format is http[s]://user:password@host:port//<url-path>.
|
||||
*
|
||||
*/
|
||||
public static String WSIMPORT_ILLEGAL_AUTH_INFO(Object arg0) {
|
||||
return localizer.localize(localizableWSIMPORT_ILLEGAL_AUTH_INFO(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSCOMPILE_COMPILATION_FAILED() {
|
||||
return messageFactory.getMessage("wscompile.compilationFailed");
|
||||
}
|
||||
@@ -546,6 +680,18 @@ public final class WscompileMessages {
|
||||
return localizer.localize(localizableWSIMPORT_NO_WSDL(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWSIMPORT_AUTH_INFO_LINENO(Object arg0, Object arg1) {
|
||||
return messageFactory.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 localizableWSGEN_USAGE(Object arg0) {
|
||||
return messageFactory.getMessage("wsgen.usage", arg0);
|
||||
}
|
||||
|
||||
@@ -55,37 +55,39 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* wsdl:binding "{0}" referenced by wsdl:port "{1}", but its not found in the wsdl
|
||||
* 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 localizablePARSING_UNABLE_TO_GET_METADATA(Object arg0, Object arg1) {
|
||||
return messageFactory.getMessage("parsing.unableToGetMetadata", arg0, arg1);
|
||||
}
|
||||
|
||||
/**
|
||||
* {0}
|
||||
*
|
||||
* {1}
|
||||
*
|
||||
*/
|
||||
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.
|
||||
* Failed to parse the WSDL.
|
||||
*
|
||||
*/
|
||||
public static String PARSING_PARSE_FAILED() {
|
||||
return localizer.localize(localizablePARSING_PARSE_FAILED());
|
||||
}
|
||||
|
||||
public static Localizable localizablePARSING_UNABLE_TO_GET_METADATA(Object arg0) {
|
||||
return messageFactory.getMessage("parsing.unableToGetMetadata", arg0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unable to get Metadata from: {0}
|
||||
*
|
||||
*/
|
||||
public static String PARSING_UNABLE_TO_GET_METADATA(Object arg0) {
|
||||
return localizer.localize(localizablePARSING_UNABLE_TO_GET_METADATA(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableVALIDATION_INVALID_PREFIX(Object arg0) {
|
||||
return messageFactory.getMessage("validation.invalidPrefix", arg0);
|
||||
}
|
||||
@@ -151,7 +153,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* wsdl:portType "{0}" referenced by wsdl:binding "{1}", but its not found in the wsdl
|
||||
* 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) {
|
||||
@@ -199,7 +201,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* Both jaxws:version and version are present
|
||||
* Both jaxws:version and version are present
|
||||
*
|
||||
*/
|
||||
public static String INTERNALIZER_TWO_VERSION_ATTRIBUTES() {
|
||||
@@ -212,7 +214,7 @@ public final class WsdlMessages {
|
||||
|
||||
/**
|
||||
* Invalid WSDL, duplicate parts in a wsdl:message is not allowed.
|
||||
* wsdl:message {0} has duplicated part name: "{1}"
|
||||
* wsdl:message {0} has a duplicated part name: "{1}"
|
||||
*
|
||||
*/
|
||||
public static String VALIDATION_DUPLICATE_PART_NAME(Object arg0, Object arg1) {
|
||||
@@ -248,7 +250,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* found unexpected non whitespace text: "{0}"
|
||||
* found unexpected non-whitespace text: "{0}"
|
||||
*
|
||||
*/
|
||||
public static String PARSING_NON_WHITESPACE_TEXT_FOUND(Object arg0) {
|
||||
@@ -260,7 +262,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* No target found for the wsdlLocation: {0}
|
||||
* No target found for the wsdlLocation: {0}
|
||||
*
|
||||
*/
|
||||
public static String INTERNALIZER_TARGET_NOT_FOUND(Object arg0) {
|
||||
@@ -344,7 +346,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* JAXWS version attribute must be "2.0"
|
||||
* JAXWS version attribute must be "2.0"
|
||||
*
|
||||
*/
|
||||
public static String INTERNALIZER_INCORRECT_VERSION() {
|
||||
@@ -399,6 +401,20 @@ public final class WsdlMessages {
|
||||
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);
|
||||
}
|
||||
@@ -440,7 +456,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* not an external binding file. The root element must be '{'http://java.sun.com/xml/ns/jaxws'}'bindings but it is '{'{0}'}'{1}
|
||||
* 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) {
|
||||
@@ -548,7 +564,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* Unable to parse "{0}" : {1}
|
||||
* Unable to parse "{0}" : {1}
|
||||
*
|
||||
*/
|
||||
public static String ABSTRACT_REFERENCE_FINDER_IMPL_UNABLE_TO_PARSE(Object arg0, Object arg1) {
|
||||
@@ -596,7 +612,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* XPath evaluation of "{0}" results in empty target node
|
||||
* XPath evaluation of "{0}" results in an empty target node
|
||||
*
|
||||
*/
|
||||
public static String INTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET(Object arg0) {
|
||||
@@ -620,7 +636,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* Ignoring customization: "{0}", it has no namespace. It must belong to the customization namespace.
|
||||
* Ignoring customization: "{0}", because it has no namespace. It must belong to the customization namespace.
|
||||
*
|
||||
*/
|
||||
public static String INVALID_CUSTOMIZATION_NAMESPACE(Object arg0) {
|
||||
@@ -687,28 +703,28 @@ public final class WsdlMessages {
|
||||
return localizer.localize(localizableVALIDATION_INCORRECT_TARGET_NAMESPACE(arg0, arg1));
|
||||
}
|
||||
|
||||
public static Localizable localizableENTITY_NOT_FOUND_BY_Q_NAME(Object arg0, Object arg1) {
|
||||
return messageFactory.getMessage("entity.notFoundByQName", 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* invalid entity name: "{0}" (in namespace: "{1}")
|
||||
* {0} "{1}" not found in the wsdl: {2}
|
||||
*
|
||||
*/
|
||||
public static String ENTITY_NOT_FOUND_BY_Q_NAME(Object arg0, Object arg1) {
|
||||
return localizer.localize(localizableENTITY_NOT_FOUND_BY_Q_NAME(arg0, arg1));
|
||||
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) {
|
||||
return messageFactory.getMessage("invalid.wsdl", arg0);
|
||||
public static Localizable localizableINVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) {
|
||||
return messageFactory.getMessage("invalid.wsdl", arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
/**
|
||||
* "{0} does not look like a WSDL document, retrying with MEX..."
|
||||
* Invalid WSDL {0}, expected {1} found {2} at (line {3})
|
||||
*
|
||||
*/
|
||||
public static String INVALID_WSDL(Object arg0) {
|
||||
return localizer.localize(localizableINVALID_WSDL(arg0));
|
||||
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 localizableVALIDATION_UNSUPPORTED_SCHEMA_FEATURE(Object arg0) {
|
||||
@@ -788,7 +804,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* Target node is not an element
|
||||
* Target node is not an element
|
||||
*
|
||||
*/
|
||||
public static String INTERNALIZER_TARGET_NOT_AN_ELEMENT() {
|
||||
@@ -860,7 +876,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* Not a WSI-BP compliant WSDL (R2001, R2004). xsd:import must not import XML Schema definition emmbedded inline within WSDLDocument.
|
||||
* 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() {
|
||||
@@ -872,7 +888,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* Not a WSI-BP compliant WSDL (R2003). xsd:import must only be used inside xsd:schema element.
|
||||
* Not a WSI-BP compliant WSDL (R2003). xsd:import must only be used inside xsd:schema elements.
|
||||
*
|
||||
*/
|
||||
public static String WARNING_WSI_R_2003() {
|
||||
@@ -884,7 +900,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* Not a WSI-BP compliant WSDL (R2002). wsdl:import must not be used to import XML Schema embedded in the WSDL document. Expected wsdl namesapce: {0}, found: {1}
|
||||
* 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) {
|
||||
@@ -903,16 +919,28 @@ public final class WsdlMessages {
|
||||
return localizer.localize(localizablePARSING_ELEMENT_OR_TYPE_REQUIRED(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizableWARNING_WSI_R_2001(Object arg0) {
|
||||
return messageFactory.getMessage("warning.wsi.r2001", arg0);
|
||||
public static Localizable localizableWARNING_WSI_R_2001() {
|
||||
return messageFactory.getMessage("warning.wsi.r2001");
|
||||
}
|
||||
|
||||
/**
|
||||
* Not a WSI-BP compliant WSDL (R2001, R2002). wsdl:import must only import WSDL document. Its trying to import: "{0}"
|
||||
* 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(Object arg0) {
|
||||
return localizer.localize(localizableWARNING_WSI_R_2001(arg0));
|
||||
public static String WARNING_WSI_R_2001() {
|
||||
return localizer.localize(localizableWARNING_WSI_R_2001());
|
||||
}
|
||||
|
||||
public static Localizable localizableFILE_NOT_FOUND(Object arg0) {
|
||||
return messageFactory.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) {
|
||||
@@ -944,13 +972,27 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* JAXWS version attribute must be present
|
||||
* JAXWS version attribute must be present
|
||||
*
|
||||
*/
|
||||
public static String INTERNALIZER_VERSION_NOT_PRESENT() {
|
||||
return localizer.localize(localizableINTERNALIZER_VERSION_NOT_PRESENT());
|
||||
}
|
||||
|
||||
public static Localizable localizableFAILED_NOSERVICE(Object arg0) {
|
||||
return messageFactory.getMessage("failed.noservice", arg0);
|
||||
}
|
||||
|
||||
/**
|
||||
* failed.noservice=Could not find wsdl:service in the provided WSDL(s):
|
||||
*
|
||||
* {0} At least one WSDL with at least one service definition needs to be provided.
|
||||
*
|
||||
*/
|
||||
public static String FAILED_NOSERVICE(Object arg0) {
|
||||
return localizer.localize(localizableFAILED_NOSERVICE(arg0));
|
||||
}
|
||||
|
||||
public static Localizable localizablePARSING_TOO_MANY_ELEMENTS(Object arg0, Object arg1, Object arg2) {
|
||||
return messageFactory.getMessage("parsing.tooManyElements", arg0, arg1, arg2);
|
||||
}
|
||||
@@ -968,7 +1010,7 @@ public final class WsdlMessages {
|
||||
}
|
||||
|
||||
/**
|
||||
* "{0}" is not a part of this compilation. Is this a mistake for "{1}"?
|
||||
* "{0}" is not a part of this compilation. Is this a mistake for "{1}"?
|
||||
*
|
||||
*/
|
||||
public static String INTERNALIZER_INCORRECT_SCHEMA_REFERENCE(Object arg0, Object arg1) {
|
||||
|
||||
@@ -25,4 +25,3 @@
|
||||
|
||||
configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
||||
configuration.notBindingFile=Ignoring: binding file "\"{0}\". It is not a jaxws or a jaxb binding file.
|
||||
|
||||
|
||||
@@ -32,4 +32,5 @@ generator.internal.error.should.not.happen=internal error (should not happen): {
|
||||
|
||||
#IndentingWriter
|
||||
generator.indentingwriter.charset.cantencode=WSDL has some characters which native java encoder can''t encode: \"{0}\"
|
||||
|
||||
generator.sei.classAlreadyExist=Could not generate SEI, class: {0} already exists. Rename wsdl:portType \"{1}\" using JAX-WS customization
|
||||
generator.service.classAlreadyExist=Could not generate Service, class: {0} already exists. Rename wsdl:Service \"{1}\" using JAX-WS customization
|
||||
|
||||
@@ -29,4 +29,3 @@
|
||||
javacompiler.classpath.error={0} is not available in the classpath, requires Sun's JDK version 5.0 or latter.
|
||||
javacompiler.nosuchmethod.error=There is no such method {0} available, requires Sun's JDK version 5.0 or latter.
|
||||
javacompiler.error=error : {0}.
|
||||
|
||||
|
||||
@@ -58,7 +58,6 @@ model.schema.invalidWildcard.allCompositor=xsd:all compositor not supported for
|
||||
|
||||
model.uniqueness=uniqueness constraint violation
|
||||
model.part.notUnique=parts in wsdl:message \"{0}\", reference \"{1}\", they must reference unique global elements.
|
||||
model.parameter.notunique=Failed to generate Java signature: duplicate parameter names {0}. Use JAXWS binding customization to rename the wsdl:part \"{1}\"
|
||||
model.exception.notunique=Failed to generate Java signature: duplicate exception names {0}. Use JAXWS binding customization to rename the wsdl:part \"{1}\"
|
||||
model.uniqueness.javastructuretype=uniqueness constraint violation, duplicate member \"{0}\" added to JavaStructureType \"{1}\"
|
||||
model.parent.type.already.set=parent of type \"{0}\" already set to \"{1}\", new value = \"{2}\"
|
||||
@@ -78,15 +77,16 @@ model.arraywrapper.no.parent=LiteralArrayWrapper cannot have a parent type
|
||||
model.arraywrapper.no.subtypes=LiteralArrayWrapper cannot have subtypes
|
||||
model.arraywrapper.no.content.member=LiteralArrayWrapper cannot have a content member
|
||||
model.complexType.simpleContent.reservedName=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.
|
||||
model.parameter.notunique.wrapper=Failed to generate Java signature: duplicate parameter name \"{0}\". Try one of these\n\t1. Use JAXWS binding customization to rename the wsdl:part \"{1}\"\n\t2. Run wsimport with -extension switch.\n\t3. This is wrapper style operation, to resolve parameter name conflict, you can also try disabling wrapper style by using <jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle> wsdl customization.
|
||||
model.parameter.notunique=Failed to generate Java signature: duplicate parameter name \"{0}\". Try one of these\n\t1. Use JAXWS binding customization to rename the wsdl:part \"{1}\"\n\t2. Run wsimport with -extension switch.
|
||||
|
||||
//JAXWS 2.0
|
||||
#JAXWS 2.0
|
||||
model.schema.elementNotFound=Element \"{0}\" not found.
|
||||
model.schema.jaxbException.message="{0}"
|
||||
model.saxparser.exception:{0}\n{1}
|
||||
|
||||
ConsoleErrorReporter.UnknownLocation = \
|
||||
unknown location
|
||||
unknown location
|
||||
|
||||
ConsoleErrorReporter.LineXOfY = \
|
||||
\ \ line {0} of {1}
|
||||
|
||||
\ \ line {0} of {1}
|
||||
|
||||
@@ -65,9 +65,9 @@ wsdlmodeler.warning.noServiceDefinitionsFound=WSDL document does not define any
|
||||
wsdlmodeler.warning.noPortsInService=Service \"{0}\" does not contain any usable ports. try running wsimport with -extension switch.
|
||||
wsdlmodeler.warning.noOperationsInPort=Port \"{0}\" does not contain any usable operations
|
||||
wsdlmodeler.warning.ignoringNonSOAPPort=ignoring port \"{0}\": not a standard SOAP port. try running wsimport with -extension switch.
|
||||
wsdlmodeler.warning.nonSOAPPort=port \"{0}\": not a standard SOAP port. The generated artifacts may not work with JAXWS runtime.
|
||||
wsdlmodeler.warning.nonSOAPPort=port \"{0}\": not a standard SOAP port. The generated artifacts may not work with JAXWS runtime.
|
||||
wsdlmodeler.warning.ignoringNonSOAPPort.noAddress=ignoring port \"{0}\": no SOAP address specified. try running wsimport with -extension switch.
|
||||
wsdlmodeler.warning.noSOAPAddress=port \"{0}\" is not a SOAP port, it has no soap:address
|
||||
wsdlmodeler.warning.noSOAPAddress=port \"{0}\" is not a SOAP port, it has no soap:address
|
||||
wsdlmodeler.warning.ignoringSOAPBinding.nonHTTPTransport:ignoring SOAP port \"{0}\": unrecognized transport. try running wsimport with -extension switch.
|
||||
|
||||
#BP1.1 R2705
|
||||
@@ -189,7 +189,7 @@ mimemodeler.elementPart.invalidElementMimeType=The mime:content part refers to w
|
||||
mimemodeler.invalidMimePart.nameNotAllowed=name attribute on wsdl:part in Operation \"{0}\" is ignored. Its not allowed as per WS-I AP 1.0.
|
||||
|
||||
|
||||
wsdlmodeler20.rpcenc.not.supported=rpc/encoded wsdl's are not supported in JAXWS 2.0.
|
||||
wsdlmodeler20.rpcenc.not.supported=rpc/encoded wsdl's are not supported in JAXWS 2.0.
|
||||
wsdlmodeler.warning.ignoringOperation.notNCName=Ignoring operation \"{0}\", it has illegal character ''{1}'' in its name. Its rpc-literal operation - jaxws won't be able to serialize it!
|
||||
|
||||
wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.nonWrapperStyle=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.
|
||||
@@ -207,11 +207,12 @@ wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.operationName=Invalid o
|
||||
wsdlmodeler.warning.ignoringOperation.javaReservedWordNotAllowed.customizedOperationName=Ignoring operation \"{0}\", can''t generate java method ,customized name \"{1}\" of the wsdl:operation is a java keyword.
|
||||
wsdlmodeler.invalid.operation.javaReservedWordNotAllowed.customizedOperationName=Invalid operation \"{0}\", can''t generate java method ,customized name \"{1}\" of the wsdl:operation is a java keyword.
|
||||
|
||||
wsdlmodeler.jaxb.javatype.notfound=Schema descriptor {0} in message part \"{1}\" could not be bound to Java!
|
||||
wsdlmodeler.jaxb.javatype.notfound=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.
|
||||
wsdlmodeler.unsupportedBinding.mime=WSDL MIME binding is not currently supported!
|
||||
|
||||
wsdlmodeler.nonUnique.body=Non unique body parts! In a port, operations must have unique operation signaure on the wire for successful dispatch. In port {0}, Operations \"{1}\" and \"{2}\" have the same request body block {3}
|
||||
wsdlmodeler.rpclit.unkownschematype=XML type \"{0}\" could not be resolved, XML to JAVA binding failed! Please check the wsdl:part \"{1}\" in the wsdl:message \"{2}\".
|
||||
wsdlmodeler.nonUnique.body.error=Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signaure 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
|
||||
wsdlmodeler.nonUnique.body.warning=Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signaure 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
|
||||
|
||||
wsdlmodeler.rpclit.unkownschematype=XML type \"{0}\" could not be resolved, XML to JAVA binding failed! Please check the wsdl:part \"{1}\" in the wsdl:message \"{2}\".
|
||||
|
||||
wsdlmodeler.responsebean.notfound=wsimport failed to generate async response bean for operation: {0}
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@
|
||||
#
|
||||
|
||||
processor.missing.model=model is missing
|
||||
|
||||
|
||||
@@ -26,4 +26,3 @@
|
||||
holder.valuefield.not.found=Could not find the field in the Holder that contains the Holder''s value: {0}
|
||||
null.namespace.found=Encountered error in wsdl. Check namespace of element <{0}>
|
||||
sax2dom.notsupported.createelement=SAX2DOMEx.DomImplDoesntSupportCreateElementNs: {0}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ webserviceap.oneway.operation.cannot.have.return.type=The method {1} of class {0
|
||||
webserviceap.oneway.operation.cannot.have.holders=The method {1} of class {0} is annotated @Oneway but contains inout or out paramerters (javax.xml.ws.Holder)
|
||||
|
||||
webserviceap.oneway.operation.cannot.declare.exceptions=The method {1} of class {0} is annotated @Oneway but declares the exception {2}
|
||||
|
||||
|
||||
webserviceap.cannot.combine.handlerchain.soapmessagehandlers=You cannot specify both HanlderChain and SOAPMessageHandlers annotations
|
||||
|
||||
webserviceap.invalid.handlerchain.file.nohandler-config=The handlerchain file {0} is invalid, it does not contain a handler-config element
|
||||
@@ -109,19 +109,19 @@ webserviceap.rpc.soapbinding.not.allowed.on.method=SOAPBinding.Style.RPC binding
|
||||
|
||||
webserviceap.mixed.binding.style=Class\: {0} contains mixed bindings. SOAPBinding.Style.RPC and SOAPBinding.Style.DOCUMENT cannot be mixed.
|
||||
|
||||
webserviceap.endpointinteface.plus.annotation=The @{0} annotation cannot be used in with @javax.jws.WebService.endpointInterface element.
|
||||
webserviceap.endpointinteface.plus.annotation=The @{0} annotation cannot be used in with @javax.jws.WebService.endpointInterface element.
|
||||
|
||||
webserviceap.endpointinteface.plus.element=The @javax.jws.WebService.{0} element cannot be used in with @javax.jws.WebService.endpointInterface element.
|
||||
webserviceap.endpointinteface.plus.element=The @javax.jws.WebService.{0} element cannot be used in with @javax.jws.WebService.endpointInterface element.
|
||||
|
||||
webserviceap.non.in.parameters.must.be.holder=Class:\ {0}, method: {1}, parameter: {2} is not WebParam.Mode.IN and is not of type javax.xml.ws.Holder.
|
||||
webserviceap.non.in.parameters.must.be.holder=Class:\ {0}, method: {1}, parameter: {2} is not WebParam.Mode.IN and is not of type javax.xml.ws.Holder.
|
||||
|
||||
webserviceap.invalid.sei.annotation.element=The @javax.jws.WebService.{0} element cannot be specified on a service endpoint interface. Class\: {1}
|
||||
webserviceap.invalid.sei.annotation.element=The @javax.jws.WebService.{0} element cannot be specified on a service endpoint interface. Class\: {1}
|
||||
|
||||
webserviceap.invalid.sei.annotation=The @{0} annotation cannot be used on a service endpoint interface. Class\: {1}
|
||||
webserviceap.invalid.sei.annotation=The @{0} annotation cannot be used on a service endpoint interface. Class\: {1}
|
||||
|
||||
webserviceap.invalid.sei.annotation.element.exclude=The @javax.jws.WebMethod({0}) cannot be used on a service endpoint interface. Class\: {1} method\: {2}
|
||||
|
||||
webserviceap.invalid.webmethod.element.with.exclude=The @javax.jws.WebMethod.{0} element cannot be specified with the @javax.jws.WebMethod.exclude element. Class\: {1} method\: {2}
|
||||
webserviceap.invalid.webmethod.element.with.exclude=The @javax.jws.WebMethod.{0} element cannot be specified with the @javax.jws.WebMethod.exclude element. Class\: {1} method\: {2}
|
||||
|
||||
webserviceap.doc.bare.no.out=Document/literal bare methods with no return type or OUT/INOUT parameters must be annotated as @Oneway. Class\: {0}, method: {1}
|
||||
webserviceap.doc.bare.return.and.out=Document/literal bare methods cannot have a return type and out parameters. Class\: {0}, method: {1}
|
||||
@@ -137,19 +137,20 @@ webserviceap.webservice.class.is.innerclass.not.static=Inner classes annotated w
|
||||
|
||||
webserviceap.webservice.method.is.abstract=Classes annotated with @javax.jws.WebService must not have abstract methods. Class\: {0} Method: {1}
|
||||
|
||||
#webserviceap.doc.bare.return.and.out=Document literal bare methods must not have a return value and an OUT/INOUT parameter. Class\: {0} Method\: {1}
|
||||
webserviceap.webservice.method.is.static.or.final=Method annotated with @javax.jws.WebMethod must not be static or final. Class\: {0} Method: {1}
|
||||
|
||||
#webserviceap.doc.bare.return.and.out=Document literal bare methods must not have a return value and an OUT/INOUT parameter. Class\: {0} Method\: {1}
|
||||
|
||||
webserviceap.webservice.no.default.constructor=Classes annotated with @javax.jws.WebService must have a public default constructor. Class\: {0}
|
||||
|
||||
webserviceap.oneway.and.not.one.in=Document literal bare methods annotated with @javax.jws.Oneway must have one non-header IN parameter. Class\: {0} Method\: {1}
|
||||
webserviceap.oneway.and.not.one.in=Document literal bare methods annotated with @javax.jws.Oneway must have one non-header IN parameter. Class\: {0} Method\: {1}
|
||||
|
||||
webserviceap.doc.bare.no.return.and.no.out=Document literal bare methods that do not have a return value must have a single OUT/INOUT parameter. Class\: {0} Method\: {1}
|
||||
webserviceap.doc.bare.no.return.and.no.out=Document literal bare methods that do not have a return value must have a single OUT/INOUT parameter. Class\: {0} Method\: {1}
|
||||
|
||||
webserviceap.doc.bare.and.no.one.in=Document literal bare methods must have one non-header, IN/INOUT parameter. Class\: {0} Method\: {1}
|
||||
webserviceap.doc.bare.and.no.one.in=Document literal bare methods must have one non-header, IN/INOUT parameter. Class\: {0} Method\: {1}
|
||||
|
||||
webserviceap.method.not.implemented=Methods in an endpointInterface must be implemented in the implementation class. Interface Class\:{0} Implementation Class\:{1} Method\: {2}
|
||||
|
||||
webserviceap.no.package.class.must.have.targetnamespace=@javax.jws.Webservice annotated classes that do not belong to a package must have the @javax.jws.Webservice.targetNamespace element. Class\: {0}
|
||||
|
||||
webserviceap.webservice.and.webserviceprovider=Classes cannot be annotated with both @javax.jws.WebService and @javax.xml.ws.WebServiceProvider. Class\: {0}
|
||||
|
||||
|
||||
@@ -44,12 +44,22 @@ wsimport.help=\nUsage: {0} [options] <WSDL_URI>\n\n\
|
||||
\ -p <pkg> specifies the target package\n\
|
||||
\ -quiet suppress wsimport output\n\
|
||||
\ -s <directory> specify where to place generated source files\n\
|
||||
\ -target <version> generate code as per the given JAXWS specification version.\n\
|
||||
\ version 2.0 will generate compliant code for JAXWS 2.0 spec.\n\
|
||||
\ -target <version> generate code as per the given JAXWS spec version\n\
|
||||
\ e.g. 2.0 will generate compliant code for JAXWS 2.0 spec\n\
|
||||
\ -verbose output messages about what the compiler is doing\n\
|
||||
\ -version print version information\n\
|
||||
\ -wsdllocation <location> @WebServiceClient.wsdlLocation value\n\
|
||||
|
||||
wsimport.usage.extensions=\n\
|
||||
\Extensions:\n\
|
||||
\ -XadditionalHeaders map headers not bound to request or response message to \n\
|
||||
\ Java method parameters\n\
|
||||
\ -Xauthfile file to carry authorization information in the format \n\
|
||||
\ http://username:password@example.org/stock?wsdl\n\
|
||||
\ -Xdebug print debug information\n\
|
||||
\ -Xno-addressing-databinding enable binding of W3C EndpointReferenceType to Java\n\
|
||||
\ -Xnocompile do not compile generated Java files\n\
|
||||
|
||||
|
||||
wsimport.usage.examples=\n\
|
||||
\Examples:\n\
|
||||
@@ -76,15 +86,18 @@ wsgen.help=\nUsage: {0} [options] <SEI>\n\n\
|
||||
\ -s <directory> specify where to place generated source files\n\
|
||||
\ -verbose output messages about what the compiler is doing\n\
|
||||
\ -version print version information\n\
|
||||
\ -wsdl[:protocol] generate a WSDL file. The protocol is optional.\n\
|
||||
\ Valid protocols are soap1.1 and Xsoap1.2, the default\n\
|
||||
\ is soap1.1. Xsoap1.2 is not standard and can only be\n\
|
||||
\ used in conjunction with the -extension option\n\
|
||||
\ -wsdl[:protocol] generate a WSDL file. The protocol is optional.\n\
|
||||
\ Valid protocols are {1},\n\
|
||||
\ the default is soap1.1.\n\
|
||||
\ The non stanadard protocols {2}\n\
|
||||
\ can only be used in conjunction with the\n\
|
||||
\ -extension option.\n\
|
||||
\ -servicename <name> specify the Service name to use in the generated WSDL\n\
|
||||
\ Used in conjunction with the -wsdl option.\n\
|
||||
\ -portname <name> specify the Port name to use in the generated WSDL\n\
|
||||
\ Used in conjunction with the -wsdl option.
|
||||
|
||||
|
||||
wsgen.usage.examples=\n\
|
||||
\Examples:\n\
|
||||
\ wsgen -cp . example.Stock\n\
|
||||
@@ -93,7 +106,7 @@ wsgen.usage.examples=\n\
|
||||
wrapperTask.needEndorsed=\
|
||||
You are running on JDK6 which comes with JAX-WS 2.0 API, but this tool requires JAX-WS 2.1 API. \
|
||||
Use the endorsed standards override mechanism (http://java.sun.com/javase/6/docs/technotes/guides/standards/), \
|
||||
or set xendorsed="true" on <{0}>.
|
||||
or set xendorsed="true" on <{0}>.
|
||||
|
||||
wrapperTask.loading20Api=\
|
||||
You are loading JAX-WS 2.0 API from {0} but this tool requires JAX-WS 2.1 API.
|
||||
@@ -126,7 +139,8 @@ wsgen.class.not.found=Class not found: \"{0}\"
|
||||
wsgen.could.not.create.file="Could not create file: "\{0}\"
|
||||
wsgen.missingFile=Missing SEI
|
||||
wsgen.soap12.without.extension=The optional protocol \"Xsoap1.2\" must be used in conjunction with the \"-extension\" option.
|
||||
wsgen.wsdl.arg.no.genwsdl=The \"{0}\" option can only be in conjunction with the "-wsdl" option.
|
||||
wsgen.protocol.without.extension=The optional protocol \"{0}\" must be used in conjunction with the \"-extension\" option.
|
||||
wsgen.wsdl.arg.no.genwsdl=The \"{0}\" option can only be in conjunction with the "-wsdl" option.
|
||||
wsgen.servicename.missing.namespace=The service name \"{0}\" is missing a namespace.
|
||||
wsgen.servicename.missing.localname=The service name \"{0}\" is missing a localname.
|
||||
wsgen.portname.missing.namespace=The port name \"{0}\" is missing a namespace.
|
||||
@@ -151,17 +165,41 @@ wsimport.FailedToParse = \
|
||||
Failed to parse "{0}": {1}
|
||||
|
||||
wsimport.ParsingWSDL=parsing WSDL...\n\n
|
||||
wsimport.GeneratingCode=generating code...
|
||||
|
||||
wsimport.GeneratingCode=generating code...\n
|
||||
wsimport.CompilingCode=\ncompiling code...\n
|
||||
wsimport.ILLEGAL_TARGET_VERSION = \
|
||||
"{0}" is not a valid target version. "2.0" and "2.1" are supported.
|
||||
|
||||
wsimport.ILLEGAL_AUTH_INFO = \
|
||||
"{0}" is not a valid authorization information format. The format is http[s]://user:password@host:port//<url-path>.
|
||||
|
||||
wsimport.readingAuthFile = \
|
||||
Trying to read authorization file : "{0}"...
|
||||
|
||||
wsimport.authFileNotFound = \
|
||||
Authorization file "{0}" not found. If the WSDL access needs Basic Authentication, please provide authorization file with read access at {1} or use -Xauthfile to give the authorization file and on each line provide authorization information using this format : http[s]://user:password@host:port//<url-path>
|
||||
|
||||
wsimport.authInfoNeeded = \
|
||||
{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//<url-path>
|
||||
|
||||
wsimport.AUTH_INFO_LINENO = \
|
||||
"line {0} of {1}
|
||||
|
||||
|
||||
wsimport.ErrorMessage = \
|
||||
[ERROR] {0}
|
||||
[ERROR] {0}
|
||||
|
||||
wsimport.WarningMessage = \
|
||||
[WARNING] {0}
|
||||
[WARNING] {0}
|
||||
|
||||
wsimport.InfoMessage = \
|
||||
[INFO] {0}
|
||||
|
||||
[INFO] {0}
|
||||
|
||||
wsimport.DebugMessage = \
|
||||
[DEBUG] {0}
|
||||
|
||||
wsimport.httpRedirect = \
|
||||
Server returned HTTP Status code: "{0}", retrying with "{1}"
|
||||
|
||||
wsimport.maxRedirectAttempt = \
|
||||
Can not get a WSDL maximum number of redirects(5) reached
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user