8065870: Update JAX-WS RI integration to latest version (2.2.11-b141124.1933)
Reviewed-by: smarks
This commit is contained in:
parent
61ae72e93c
commit
77c37e1eb7
@ -27,7 +27,6 @@ package com.sun.xml.internal.bind.v2.runtime;
|
|||||||
|
|
||||||
import com.sun.istack.internal.FinalArrayList;
|
import com.sun.istack.internal.FinalArrayList;
|
||||||
import com.sun.istack.internal.SAXException2;
|
import com.sun.istack.internal.SAXException2;
|
||||||
|
|
||||||
import org.xml.sax.Attributes;
|
import org.xml.sax.Attributes;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.DefaultHandler;
|
import org.xml.sax.helpers.DefaultHandler;
|
||||||
@ -69,14 +68,14 @@ final class ContentHandlerAdaptor extends DefaultHandler {
|
|||||||
private boolean containsPrefixMapping(String prefix, String uri) {
|
private boolean containsPrefixMapping(String prefix, String uri) {
|
||||||
for( int i=0; i<prefixMap.size(); i+=2 ) {
|
for( int i=0; i<prefixMap.size(); i+=2 ) {
|
||||||
if(prefixMap.get(i).equals(prefix)
|
if(prefixMap.get(i).equals(prefix)
|
||||||
&& prefixMap.get(i+1).equals(uri))
|
&& prefixMap.get(i+1).equals(uri))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
|
public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
|
||||||
throws SAXException {
|
throws SAXException {
|
||||||
try {
|
try {
|
||||||
flushText();
|
flushText();
|
||||||
|
|
||||||
@ -99,6 +98,7 @@ final class ContentHandlerAdaptor extends DefaultHandler {
|
|||||||
serializer.getNamespaceContext().force(
|
serializer.getNamespaceContext().force(
|
||||||
prefixMap.get(i + 1), prefixMap.get(i));
|
prefixMap.get(i + 1), prefixMap.get(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure namespaces needed by attributes are bound
|
// make sure namespaces needed by attributes are bound
|
||||||
for( int i=0; i<len; i++ ) {
|
for( int i=0; i<len; i++ ) {
|
||||||
String qname = atts.getQName(i);
|
String qname = atts.getQName(i);
|
||||||
@ -107,7 +107,7 @@ final class ContentHandlerAdaptor extends DefaultHandler {
|
|||||||
String prefix = getPrefix(qname);
|
String prefix = getPrefix(qname);
|
||||||
|
|
||||||
serializer.getNamespaceContext().declareNamespace(
|
serializer.getNamespaceContext().declareNamespace(
|
||||||
atts.getURI(i), prefix, true );
|
atts.getURI(i), prefix, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
serializer.endNamespaceDecls(null);
|
serializer.endNamespaceDecls(null);
|
||||||
@ -127,7 +127,6 @@ final class ContentHandlerAdaptor extends DefaultHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure namespaces needed by attributes are bound
|
|
||||||
private String getPrefix(String qname) {
|
private String getPrefix(String qname) {
|
||||||
int idx = qname.indexOf(':');
|
int idx = qname.indexOf(':');
|
||||||
String prefix = (idx == -1) ? "" : qname.substring(0, idx);
|
String prefix = (idx == -1) ? "" : qname.substring(0, idx);
|
||||||
|
@ -70,7 +70,7 @@ class StAXStreamConnector extends StAXConnector {
|
|||||||
// Quick hack until SJSXP fixes 6270116
|
// Quick hack until SJSXP fixes 6270116
|
||||||
boolean isZephyr = readerClass.getName().equals("com.sun.xml.internal.stream.XMLReaderImpl");
|
boolean isZephyr = readerClass.getName().equals("com.sun.xml.internal.stream.XMLReaderImpl");
|
||||||
if (getBoolProp(reader,"org.codehaus.stax2.internNames") &&
|
if (getBoolProp(reader,"org.codehaus.stax2.internNames") &&
|
||||||
getBoolProp(reader,"org.codehaus.stax2.internNsUris"))
|
getBoolProp(reader,"org.codehaus.stax2.internNsUris"))
|
||||||
; // no need for interning
|
; // no need for interning
|
||||||
else
|
else
|
||||||
if (isZephyr)
|
if (isZephyr)
|
||||||
@ -219,8 +219,8 @@ class StAXStreamConnector extends StAXConnector {
|
|||||||
int nsCount = staxStreamReader.getNamespaceCount();
|
int nsCount = staxStreamReader.getNamespaceCount();
|
||||||
for (int i = 0; i < nsCount; i++) {
|
for (int i = 0; i < nsCount; i++) {
|
||||||
visitor.startPrefixMapping(
|
visitor.startPrefixMapping(
|
||||||
fixNull(staxStreamReader.getNamespacePrefix(i)),
|
fixNull(staxStreamReader.getNamespacePrefix(i)),
|
||||||
fixNull(staxStreamReader.getNamespaceURI(i)));
|
fixNull(staxStreamReader.getNamespaceURI(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// fire startElement
|
// fire startElement
|
||||||
@ -310,9 +310,9 @@ class StAXStreamConnector extends StAXConnector {
|
|||||||
protected void handleCharacters() throws XMLStreamException, SAXException {
|
protected void handleCharacters() throws XMLStreamException, SAXException {
|
||||||
if( predictor.expectText() )
|
if( predictor.expectText() )
|
||||||
buffer.append(
|
buffer.append(
|
||||||
staxStreamReader.getTextCharacters(),
|
staxStreamReader.getTextCharacters(),
|
||||||
staxStreamReader.getTextStart(),
|
staxStreamReader.getTextStart(),
|
||||||
staxStreamReader.getTextLength() );
|
staxStreamReader.getTextLength() );
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processText( boolean ignorable ) throws SAXException {
|
private void processText( boolean ignorable ) throws SAXException {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -247,7 +247,7 @@ public abstract class BaseDistributedPropertySet extends BasePropertySet impleme
|
|||||||
if (viewthis.containsKey(key))
|
if (viewthis.containsKey(key))
|
||||||
return true;
|
return true;
|
||||||
for (PropertySet child : satellites.values()) {
|
for (PropertySet child : satellites.values()) {
|
||||||
if (child.containsKey(key))
|
if (child.asMap().containsKey(key))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -26,10 +26,9 @@
|
|||||||
package com.sun.xml.internal.ws.api.model;
|
package com.sun.xml.internal.ws.api.model;
|
||||||
|
|
||||||
import com.sun.xml.internal.bind.api.Bridge;
|
import com.sun.xml.internal.bind.api.Bridge;
|
||||||
|
import com.sun.xml.internal.ws.spi.db.TypeInfo;
|
||||||
|
|
||||||
import javax.xml.ws.WebFault;
|
import javax.xml.ws.WebFault;
|
||||||
import javax.xml.namespace.QName;
|
|
||||||
import java.rmi.RemoteException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class provides abstractio to the the exception class
|
* This class provides abstractio to the the exception class
|
||||||
@ -98,4 +97,9 @@ public interface CheckedException {
|
|||||||
* referenced by wsdl:fault
|
* referenced by wsdl:fault
|
||||||
*/
|
*/
|
||||||
String getMessageName();
|
String getMessageName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gives the {@link com.sun.xml.internal.ws.spi.db.TypeInfo} of the detail
|
||||||
|
*/
|
||||||
|
TypeInfo getDetailType();
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -31,6 +31,8 @@ import com.sun.xml.internal.ws.api.model.soap.SOAPBinding;
|
|||||||
|
|
||||||
import javax.xml.namespace.QName;
|
import javax.xml.namespace.QName;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
import javax.jws.WebService;
|
import javax.jws.WebService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -138,4 +140,10 @@ public interface JavaMethod {
|
|||||||
*/
|
*/
|
||||||
@Nullable QName getResponsePayloadName();
|
@Nullable QName getResponsePayloadName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gives the checked Exception thrown from this method.
|
||||||
|
*
|
||||||
|
* @return Returns the {@link CheckedException}.
|
||||||
|
*/
|
||||||
|
Collection<? extends CheckedException> getCheckedExceptions();
|
||||||
}
|
}
|
||||||
|
@ -482,6 +482,7 @@ public abstract class XMLStreamReaderFactory {
|
|||||||
private static final java.lang.String P_MAX_ELEMENT_DEPTH = "com.ctc.wstx.maxElementDepth";
|
private static final java.lang.String P_MAX_ELEMENT_DEPTH = "com.ctc.wstx.maxElementDepth";
|
||||||
private static final java.lang.String P_MAX_CHARACTERS = "com.ctc.wstx.maxCharacters";
|
private static final java.lang.String P_MAX_CHARACTERS = "com.ctc.wstx.maxCharacters";
|
||||||
private static final java.lang.String P_INTERN_NSURIS = "org.codehaus.stax2.internNsUris";
|
private static final java.lang.String P_INTERN_NSURIS = "org.codehaus.stax2.internNsUris";
|
||||||
|
private static final java.lang.String P_RETURN_NULL_FOR_DEFAULT_NAMESPACE = "com.ctc.wstx.returnNullForDefaultNamespace";
|
||||||
|
|
||||||
public Woodstox(XMLInputFactory xif) {
|
public Woodstox(XMLInputFactory xif) {
|
||||||
super(xif);
|
super(xif);
|
||||||
@ -552,6 +553,19 @@ public abstract class XMLStreamReaderFactory {
|
|||||||
LOGGER.log(Level.FINE, P_MAX_CHARACTERS + " is {0}", maxCharacters);
|
LOGGER.log(Level.FINE, P_MAX_CHARACTERS + " is {0}", maxCharacters);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//Using try/catch instead of isPropertySupported because Woodstox
|
||||||
|
//isPropertySupported is not always reliable
|
||||||
|
try {
|
||||||
|
//this is needed to make sure Woodstox behavior is spec compliant for
|
||||||
|
//calls to XMLStreamReader.getNamespacePrefix
|
||||||
|
xif.setProperty(P_RETURN_NULL_FOR_DEFAULT_NAMESPACE, Boolean.TRUE);
|
||||||
|
if (LOGGER.isLoggable(Level.FINE)) {
|
||||||
|
LOGGER.log(Level.FINE, P_RETURN_NULL_FOR_DEFAULT_NAMESPACE + " is {0}", xif.getProperty(P_RETURN_NULL_FOR_DEFAULT_NAMESPACE));
|
||||||
|
}
|
||||||
|
} catch (Throwable t) {
|
||||||
|
//ignore - this should not happen Woodstox 4.1.2 or later (maybe older version of Woodstox).
|
||||||
|
LOGGER.log(Level.WARNING, "Expected property not found in Woodstox input factory: '{0}'", P_RETURN_NULL_FOR_DEFAULT_NAMESPACE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -37,6 +37,7 @@ import com.sun.xml.internal.ws.message.jaxb.JAXBMessage;
|
|||||||
import com.sun.xml.internal.ws.message.FaultMessage;
|
import com.sun.xml.internal.ws.message.FaultMessage;
|
||||||
import com.sun.xml.internal.ws.model.CheckedExceptionImpl;
|
import com.sun.xml.internal.ws.model.CheckedExceptionImpl;
|
||||||
import com.sun.xml.internal.ws.model.JavaMethodImpl;
|
import com.sun.xml.internal.ws.model.JavaMethodImpl;
|
||||||
|
import com.sun.xml.internal.ws.spi.db.WrapperComposite;
|
||||||
import com.sun.xml.internal.ws.spi.db.XMLBridge;
|
import com.sun.xml.internal.ws.spi.db.XMLBridge;
|
||||||
import com.sun.xml.internal.ws.util.DOMUtil;
|
import com.sun.xml.internal.ws.util.DOMUtil;
|
||||||
import com.sun.xml.internal.ws.util.StringUtils;
|
import com.sun.xml.internal.ws.util.StringUtils;
|
||||||
@ -306,6 +307,7 @@ public abstract class SOAPFaultBuilder {
|
|||||||
try{
|
try{
|
||||||
Node detailNode = getDetail().getDetails().get(0);
|
Node detailNode = getDetail().getDetails().get(0);
|
||||||
Object jaxbDetail = getJAXBObject(detailNode, ce);
|
Object jaxbDetail = getJAXBObject(detailNode, ce);
|
||||||
|
if (jaxbDetail instanceof Exception) return (Exception)jaxbDetail;
|
||||||
Constructor exConstructor;
|
Constructor exConstructor;
|
||||||
try{
|
try{
|
||||||
exConstructor = exceptionClass.getConstructor(String.class, detailBean);
|
exConstructor = exceptionClass.getConstructor(String.class, detailBean);
|
||||||
@ -330,8 +332,7 @@ public abstract class SOAPFaultBuilder {
|
|||||||
return createDetailFromUserDefinedException(ce, exception);
|
return createDetailFromUserDefinedException(ce, exception);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Method m = exception.getClass().getMethod("getFaultInfo");
|
return ce.getFaultInfoGetter().invoke(exception);
|
||||||
return m.invoke(exception);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new SerializationException(e);
|
throw new SerializationException(e);
|
||||||
}
|
}
|
||||||
@ -339,6 +340,7 @@ public abstract class SOAPFaultBuilder {
|
|||||||
|
|
||||||
private static Object createDetailFromUserDefinedException(CheckedExceptionImpl ce, Object exception) {
|
private static Object createDetailFromUserDefinedException(CheckedExceptionImpl ce, Object exception) {
|
||||||
Class detailBean = ce.getDetailBean();
|
Class detailBean = ce.getDetailBean();
|
||||||
|
if (ce.getExceptionClass().equals(detailBean)) return exception;
|
||||||
Field[] fields = detailBean.getDeclaredFields();
|
Field[] fields = detailBean.getDeclaredFields();
|
||||||
try {
|
try {
|
||||||
Object detail = detailBean.newInstance();
|
Object detail = detailBean.newInstance();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -95,6 +95,10 @@ public abstract class AbstractSEIModelImpl implements SEIModel {
|
|||||||
createJAXBContext();
|
createJAXBContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BindingInfo databindingInfo() {
|
||||||
|
return databindingInfo;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Link {@link SEIModel} to {@link WSDLModel}.
|
* Link {@link SEIModel} to {@link WSDLModel}.
|
||||||
* Merge it with {@link #postProcess()}.
|
* Merge it with {@link #postProcess()}.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
package com.sun.xml.internal.ws.model;
|
package com.sun.xml.internal.ws.model;
|
||||||
|
|
||||||
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
import com.sun.xml.internal.bind.api.Bridge;
|
import com.sun.xml.internal.bind.api.Bridge;
|
||||||
import com.sun.xml.internal.ws.api.model.CheckedException;
|
import com.sun.xml.internal.ws.api.model.CheckedException;
|
||||||
import com.sun.xml.internal.ws.api.model.ExceptionType;
|
import com.sun.xml.internal.ws.api.model.ExceptionType;
|
||||||
@ -52,6 +54,7 @@ public final class CheckedExceptionImpl implements CheckedException {
|
|||||||
private final JavaMethodImpl javaMethod;
|
private final JavaMethodImpl javaMethod;
|
||||||
private String messageName;
|
private String messageName;
|
||||||
private String faultAction = "";
|
private String faultAction = "";
|
||||||
|
private Method faultInfoGetter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param jm {@link JavaMethodImpl} that throws this exception
|
* @param jm {@link JavaMethodImpl} that throws this exception
|
||||||
@ -127,5 +130,11 @@ public final class CheckedExceptionImpl implements CheckedException {
|
|||||||
return WsaActionUtil.getDefaultFaultAction(javaMethod,this);
|
return WsaActionUtil.getDefaultFaultAction(javaMethod,this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Method getFaultInfoGetter() {
|
||||||
|
return faultInfoGetter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFaultInfoGetter(Method faultInfoGetter) {
|
||||||
|
this.faultInfoGetter = faultInfoGetter;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -101,7 +101,7 @@ public class ParameterImpl implements Parameter {
|
|||||||
|
|
||||||
public XMLBridge getInlinedRepeatedElementBridge() {
|
public XMLBridge getInlinedRepeatedElementBridge() {
|
||||||
TypeInfo itemType = getItemType();
|
TypeInfo itemType = getItemType();
|
||||||
if (itemType != null) {
|
if (itemType != null && itemType.getWrapperType() == null) {
|
||||||
XMLBridge xb = getOwner().getXMLBridge(itemType);
|
XMLBridge xb = getOwner().getXMLBridge(itemType);
|
||||||
if (xb != null) return new RepeatedElementBridge(typeInfo, xb);
|
if (xb != null) return new RepeatedElementBridge(typeInfo, xb);
|
||||||
}
|
}
|
||||||
@ -255,6 +255,11 @@ public class ParameterImpl implements Parameter {
|
|||||||
|
|
||||||
void fillTypes(List<TypeInfo> types) {
|
void fillTypes(List<TypeInfo> types) {
|
||||||
TypeInfo itemType = getItemType();
|
TypeInfo itemType = getItemType();
|
||||||
types.add((itemType != null) ? itemType : getTypeInfo());
|
if (itemType != null) {
|
||||||
|
types.add(itemType);
|
||||||
|
if (itemType.getWrapperType() != null) types.add(getTypeInfo());
|
||||||
|
} else {
|
||||||
|
types.add(getTypeInfo());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -49,6 +49,7 @@ import com.sun.xml.internal.ws.spi.db.TypeInfo;
|
|||||||
import com.sun.xml.internal.ws.spi.db.WrapperComposite;
|
import com.sun.xml.internal.ws.spi.db.WrapperComposite;
|
||||||
|
|
||||||
import static com.sun.xml.internal.ws.binding.WebServiceFeatureList.getSoapVersion;
|
import static com.sun.xml.internal.ws.binding.WebServiceFeatureList.getSoapVersion;
|
||||||
|
import static com.sun.xml.internal.ws.model.Utils.REFLECTION_NAVIGATOR;
|
||||||
|
|
||||||
import javax.jws.*;
|
import javax.jws.*;
|
||||||
import javax.jws.WebParam.Mode;
|
import javax.jws.WebParam.Mode;
|
||||||
@ -381,6 +382,7 @@ public class RuntimeModeler {
|
|||||||
try {
|
try {
|
||||||
return loader.loadClass(className);
|
return loader.loadClass(className);
|
||||||
} catch (ClassNotFoundException e) {
|
} catch (ClassNotFoundException e) {
|
||||||
|
if (noWrapperGen()) return exception;
|
||||||
logger.fine("Dynamically creating exception bean Class " + className);
|
logger.fine("Dynamically creating exception bean Class " + className);
|
||||||
return WrapperBeanGenerator.createExceptionBean(className, exception, targetNamespace, name, namespace, loader, decapitalizeExceptionBeanProperties);
|
return WrapperBeanGenerator.createExceptionBean(className, exception, targetNamespace, name, namespace, loader, decapitalizeExceptionBeanProperties);
|
||||||
}
|
}
|
||||||
@ -885,7 +887,7 @@ public class RuntimeModeler {
|
|||||||
//set the actual type argument of Holder in the TypeReference
|
//set the actual type argument of Holder in the TypeReference
|
||||||
if (isHolder) {
|
if (isHolder) {
|
||||||
if(clazzType==Holder.class){
|
if(clazzType==Holder.class){
|
||||||
clazzType = (Class) Utils.REFLECTION_NAVIGATOR.erasure(((ParameterizedType)genericParameterTypes[pos]).getActualTypeArguments()[0]);
|
clazzType = erasure(((ParameterizedType)genericParameterTypes[pos]).getActualTypeArguments()[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Mode paramMode = isHolder ? Mode.INOUT : Mode.IN;
|
Mode paramMode = isHolder ? Mode.INOUT : Mode.IN;
|
||||||
@ -1100,7 +1102,7 @@ public class RuntimeModeler {
|
|||||||
//set the actual type argument of Holder in the TypeReference
|
//set the actual type argument of Holder in the TypeReference
|
||||||
if (isHolder) {
|
if (isHolder) {
|
||||||
if (clazzType==Holder.class)
|
if (clazzType==Holder.class)
|
||||||
clazzType = (Class) Utils.REFLECTION_NAVIGATOR.erasure(((ParameterizedType)genericParameterTypes[pos]).getActualTypeArguments()[0]);
|
clazzType = erasure(((ParameterizedType)genericParameterTypes[pos]).getActualTypeArguments()[0]);
|
||||||
}
|
}
|
||||||
Mode paramMode = isHolder ? Mode.INOUT : Mode.IN;
|
Mode paramMode = isHolder ? Mode.INOUT : Mode.IN;
|
||||||
for (Annotation annotation : pannotations[pos]) {
|
for (Annotation annotation : pannotations[pos]) {
|
||||||
@ -1210,7 +1212,8 @@ public class RuntimeModeler {
|
|||||||
continue;
|
continue;
|
||||||
if (RUNTIME_EXCEPTION_CLASS.isAssignableFrom(exception) || REMOTE_EXCEPTION_CLASS.isAssignableFrom(exception))
|
if (RUNTIME_EXCEPTION_CLASS.isAssignableFrom(exception) || REMOTE_EXCEPTION_CLASS.isAssignableFrom(exception))
|
||||||
continue;
|
continue;
|
||||||
|
if (getAnnotation(exception, javax.xml.bind.annotation.XmlTransient.class) != null)
|
||||||
|
continue;
|
||||||
Class exceptionBean;
|
Class exceptionBean;
|
||||||
Annotation[] anns;
|
Annotation[] anns;
|
||||||
WebFault webFault = getAnnotation(exception, WebFault.class);
|
WebFault webFault = getAnnotation(exception, WebFault.class);
|
||||||
@ -1246,6 +1249,7 @@ public class RuntimeModeler {
|
|||||||
CheckedExceptionImpl checkedException =
|
CheckedExceptionImpl checkedException =
|
||||||
new CheckedExceptionImpl(javaMethod, exception, typeRef, exceptionType);
|
new CheckedExceptionImpl(javaMethod, exception, typeRef, exceptionType);
|
||||||
checkedException.setMessageName(messageName);
|
checkedException.setMessageName(messageName);
|
||||||
|
checkedException.setFaultInfoGetter(faultInfoMethod);
|
||||||
for(FaultAction fa: faultActions) {
|
for(FaultAction fa: faultActions) {
|
||||||
if(fa.className().equals(exception) && !fa.value().equals("")) {
|
if(fa.className().equals(exception) && !fa.value().equals("")) {
|
||||||
checkedException.setFaultAction(fa.value());
|
checkedException.setFaultAction(fa.value());
|
||||||
@ -1346,7 +1350,7 @@ public class RuntimeModeler {
|
|||||||
//set the actual type argument of Holder in the TypeReference
|
//set the actual type argument of Holder in the TypeReference
|
||||||
if (isHolder) {
|
if (isHolder) {
|
||||||
if (clazzType==Holder.class)
|
if (clazzType==Holder.class)
|
||||||
clazzType = (Class) Utils.REFLECTION_NAVIGATOR.erasure(((ParameterizedType)genericParameterTypes[pos]).getActualTypeArguments()[0]);
|
clazzType = erasure(((ParameterizedType)genericParameterTypes[pos]).getActualTypeArguments()[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Mode paramMode = isHolder ? Mode.INOUT : Mode.IN;
|
Mode paramMode = isHolder ? Mode.INOUT : Mode.IN;
|
||||||
@ -1434,14 +1438,14 @@ public class RuntimeModeler {
|
|||||||
private Class getAsyncReturnType(Method method, Class returnType) {
|
private Class getAsyncReturnType(Method method, Class returnType) {
|
||||||
if(Response.class.isAssignableFrom(returnType)){
|
if(Response.class.isAssignableFrom(returnType)){
|
||||||
Type ret = method.getGenericReturnType();
|
Type ret = method.getGenericReturnType();
|
||||||
return (Class) Utils.REFLECTION_NAVIGATOR.erasure(((ParameterizedType)ret).getActualTypeArguments()[0]);
|
return erasure(((ParameterizedType)ret).getActualTypeArguments()[0]);
|
||||||
}else{
|
}else{
|
||||||
Type[] types = method.getGenericParameterTypes();
|
Type[] types = method.getGenericParameterTypes();
|
||||||
Class[] params = method.getParameterTypes();
|
Class[] params = method.getParameterTypes();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for(Class cls : params){
|
for(Class cls : params){
|
||||||
if(AsyncHandler.class.isAssignableFrom(cls)){
|
if(AsyncHandler.class.isAssignableFrom(cls)){
|
||||||
return (Class) Utils.REFLECTION_NAVIGATOR.erasure(((ParameterizedType)types[i]).getActualTypeArguments()[0]);
|
return erasure(((ParameterizedType)types[i]).getActualTypeArguments()[0]);
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
@ -1733,5 +1737,7 @@ public class RuntimeModeler {
|
|||||||
return new QName(ns, localPart);
|
return new QName(ns, localPart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static public Class erasure(Type type) {
|
||||||
|
return (Class)REFLECTION_NAVIGATOR.erasure(type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,226 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
|
*
|
||||||
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU General Public License version 2 only, as
|
||||||
|
* published by the Free Software Foundation. Oracle designates this
|
||||||
|
* particular file as subject to the "Classpath" exception as provided
|
||||||
|
* by Oracle in the LICENSE file that accompanied this code.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.sun.xml.internal.ws.spi.db;
|
||||||
|
|
||||||
|
import static com.sun.xml.internal.ws.model.RuntimeModeler.DocWrappeeNamespapceQualified;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Map.Entry;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import static com.sun.xml.internal.ws.wsdl.writer.WSDLGenerator.XsdNs;
|
||||||
|
|
||||||
|
import javax.xml.bind.JAXBException;
|
||||||
|
import javax.xml.bind.SchemaOutputResolver;
|
||||||
|
import javax.xml.namespace.QName;
|
||||||
|
import javax.xml.transform.Result;
|
||||||
|
import javax.xml.ws.WebServiceException;
|
||||||
|
|
||||||
|
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.ComplexType;
|
||||||
|
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.Element;
|
||||||
|
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.ExplicitGroup;
|
||||||
|
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.LocalElement;
|
||||||
|
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.Occurs;
|
||||||
|
import com.sun.xml.internal.txw2.TXW;
|
||||||
|
import com.sun.xml.internal.txw2.output.ResultFactory;
|
||||||
|
import com.sun.xml.internal.ws.api.model.SEIModel;
|
||||||
|
import com.sun.xml.internal.ws.model.AbstractSEIModelImpl;
|
||||||
|
import com.sun.xml.internal.ws.model.JavaMethodImpl;
|
||||||
|
import com.sun.xml.internal.ws.model.ParameterImpl;
|
||||||
|
import com.sun.xml.internal.ws.model.WrapperParameter;
|
||||||
|
import com.sun.xml.internal.ws.wsdl.writer.document.xsd.Schema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ServiceArtifactSchemaGenerator generates XML schema for service artifacts including the wrapper types of
|
||||||
|
* document-literal stype operation and exceptions.
|
||||||
|
*
|
||||||
|
* @author shih-chang.chen@oracle.com
|
||||||
|
*/
|
||||||
|
public class ServiceArtifactSchemaGenerator {
|
||||||
|
|
||||||
|
protected AbstractSEIModelImpl model;
|
||||||
|
protected SchemaOutputResolver xsdResolver;
|
||||||
|
|
||||||
|
public ServiceArtifactSchemaGenerator(SEIModel model) {
|
||||||
|
this.model = (AbstractSEIModelImpl)model;
|
||||||
|
}
|
||||||
|
|
||||||
|
static final String FilePrefix = "jaxwsGen";
|
||||||
|
protected int fileIndex = 0;
|
||||||
|
protected Schema create(String tns) {
|
||||||
|
try {
|
||||||
|
Result res = xsdResolver.createOutput(tns, FilePrefix + (fileIndex++) + ".xsd");
|
||||||
|
return TXW.create(Schema.class, ResultFactory.createSerializer(res));
|
||||||
|
} catch (IOException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
throw new WebServiceException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void generate(SchemaOutputResolver resolver) {
|
||||||
|
xsdResolver = resolver;
|
||||||
|
List<WrapperParameter> wrappers = new ArrayList<WrapperParameter>();
|
||||||
|
for (JavaMethodImpl method : model.getJavaMethods()) {
|
||||||
|
if(method.getBinding().isRpcLit()) continue;
|
||||||
|
for (ParameterImpl p : method.getRequestParameters()) {
|
||||||
|
if (p instanceof WrapperParameter) {
|
||||||
|
if (WrapperComposite.class.equals((((WrapperParameter)p).getTypeInfo().type))) {
|
||||||
|
wrappers.add((WrapperParameter)p);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (ParameterImpl p : method.getResponseParameters()) {
|
||||||
|
if (p instanceof WrapperParameter) {
|
||||||
|
if (WrapperComposite.class.equals((((WrapperParameter)p).getTypeInfo().type))) {
|
||||||
|
wrappers.add((WrapperParameter)p);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (wrappers.isEmpty()) return;
|
||||||
|
HashMap<String, Schema> xsds = initWrappersSchemaWithImports(wrappers);
|
||||||
|
postInit(xsds);
|
||||||
|
for(WrapperParameter wp : wrappers) {
|
||||||
|
String tns = wp.getName().getNamespaceURI();
|
||||||
|
Schema xsd = xsds.get(tns);
|
||||||
|
Element e = xsd._element(Element.class);
|
||||||
|
e._attribute("name", wp.getName().getLocalPart());
|
||||||
|
e.type(wp.getName());
|
||||||
|
ComplexType ct = xsd._element(ComplexType.class);
|
||||||
|
ct._attribute("name", wp.getName().getLocalPart());
|
||||||
|
ExplicitGroup sq = ct.sequence();
|
||||||
|
for (ParameterImpl p : wp.getWrapperChildren() ) if (p.getBinding().isBody()) addChild(sq, p);
|
||||||
|
}
|
||||||
|
for(Schema xsd: xsds.values()) xsd.commit();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void postInit(HashMap<String, Schema> xsds) {
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addChild(ExplicitGroup sq, ParameterImpl param) {
|
||||||
|
TypeInfo typeInfo = param.getItemType();
|
||||||
|
boolean repeatedElement = false;
|
||||||
|
if (typeInfo == null) {
|
||||||
|
typeInfo = param.getTypeInfo();
|
||||||
|
} else {
|
||||||
|
if (typeInfo.getWrapperType() != null) typeInfo = param.getTypeInfo();
|
||||||
|
else repeatedElement = true;
|
||||||
|
}
|
||||||
|
Occurs child = addChild(sq, param.getName(), typeInfo);
|
||||||
|
if (repeatedElement && child != null) {
|
||||||
|
child.maxOccurs("unbounded");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Occurs addChild(ExplicitGroup sq, QName name, TypeInfo typeInfo) {
|
||||||
|
LocalElement le = null;;
|
||||||
|
QName type = model.getBindingContext().getTypeName(typeInfo);
|
||||||
|
if (type != null) {
|
||||||
|
le = sq.element();
|
||||||
|
le._attribute("name", name.getLocalPart());
|
||||||
|
le.type(type);
|
||||||
|
} else {
|
||||||
|
if (typeInfo.type instanceof Class) {
|
||||||
|
try {
|
||||||
|
QName elemName = model.getBindingContext().getElementName((Class)typeInfo.type);
|
||||||
|
if (elemName.getLocalPart().equals("any") && elemName.getNamespaceURI().equals(XsdNs)) {
|
||||||
|
return sq.any();
|
||||||
|
} else {
|
||||||
|
le = sq.element();
|
||||||
|
le.ref(elemName);
|
||||||
|
}
|
||||||
|
} catch (JAXBException je) {
|
||||||
|
throw new WebServiceException(je.getMessage(), je);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return le;
|
||||||
|
}
|
||||||
|
|
||||||
|
//All the imports have to go first ...
|
||||||
|
private HashMap<String, Schema> initWrappersSchemaWithImports(List<WrapperParameter> wrappers) {
|
||||||
|
Object o = model.databindingInfo().properties().get(DocWrappeeNamespapceQualified);
|
||||||
|
boolean wrappeeQualified = (o!= null && o instanceof Boolean) ? ((Boolean) o) : false;
|
||||||
|
HashMap<String, Schema> xsds = new HashMap<String, Schema>();
|
||||||
|
HashMap<String, Set<String>> imports = new HashMap<String, Set<String>>();
|
||||||
|
for(WrapperParameter wp : wrappers) {
|
||||||
|
String tns = wp.getName().getNamespaceURI();
|
||||||
|
Schema xsd = xsds.get(tns);
|
||||||
|
if (xsd == null) {
|
||||||
|
xsd = create(tns);
|
||||||
|
xsd.targetNamespace(tns);
|
||||||
|
if (wrappeeQualified) xsd._attribute("elementFormDefault", "qualified");
|
||||||
|
xsds.put(tns, xsd);
|
||||||
|
}
|
||||||
|
for (ParameterImpl p : wp.getWrapperChildren() ) {
|
||||||
|
String nsToImport = (p.getBinding().isBody())? bodyParamNS(p): null;
|
||||||
|
if (nsToImport != null && !nsToImport.equals(tns) && !nsToImport.equals("http://www.w3.org/2001/XMLSchema")) {
|
||||||
|
Set<String> importSet = imports.get(tns);
|
||||||
|
if (importSet == null) {
|
||||||
|
importSet = new HashSet<String>();
|
||||||
|
imports.put(tns, importSet);
|
||||||
|
}
|
||||||
|
importSet.add(nsToImport);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for(Entry<String, Set<String>> entry: imports.entrySet()) {
|
||||||
|
String tns = entry.getKey();
|
||||||
|
Set<String> importSet = entry.getValue();
|
||||||
|
Schema xsd = xsds.get(tns);
|
||||||
|
for(String nsToImport : importSet) xsd._namespace(nsToImport, true);
|
||||||
|
for(String nsToImport : importSet) {
|
||||||
|
com.sun.xml.internal.ws.wsdl.writer.document.xsd.Import imp = xsd._import();
|
||||||
|
imp.namespace(nsToImport);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return xsds;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected String bodyParamNS(ParameterImpl p) {
|
||||||
|
String nsToImport = null;
|
||||||
|
TypeInfo typeInfo = p.getItemType();
|
||||||
|
if (typeInfo == null) typeInfo = p.getTypeInfo();
|
||||||
|
QName type = model.getBindingContext().getTypeName(typeInfo);
|
||||||
|
if (type != null) {
|
||||||
|
nsToImport = type.getNamespaceURI();
|
||||||
|
} else {
|
||||||
|
if (typeInfo.type instanceof Class) {
|
||||||
|
try {
|
||||||
|
QName elemRef = model.getBindingContext().getElementName((Class)typeInfo.type);
|
||||||
|
if (elemRef != null) nsToImport = elemRef.getNamespaceURI();
|
||||||
|
} catch (JAXBException je) {
|
||||||
|
throw new WebServiceException(je.getMessage(), je);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nsToImport;
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -33,8 +33,7 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.xml.namespace.QName;
|
import javax.xml.namespace.QName;
|
||||||
|
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||||
import com.sun.xml.internal.bind.v2.model.nav.Navigator;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A reference to a JAXB-bound type.
|
* A reference to a JAXB-bound type.
|
||||||
@ -75,6 +74,8 @@ public final class TypeInfo {
|
|||||||
|
|
||||||
private TypeInfo parentCollectionType;
|
private TypeInfo parentCollectionType;
|
||||||
|
|
||||||
|
private TypeInfo wrapperType;
|
||||||
|
|
||||||
private Type genericType;
|
private Type genericType;
|
||||||
|
|
||||||
private boolean nillable = true;
|
private boolean nillable = true;
|
||||||
@ -172,7 +173,6 @@ public final class TypeInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public TypeInfo getItemType() {
|
public TypeInfo getItemType() {
|
||||||
// System.out.println("????? TypeInfo " + type);
|
|
||||||
if (type instanceof Class && ((Class)type).isArray() && !byte[].class.equals(type)) {
|
if (type instanceof Class && ((Class)type).isArray() && !byte[].class.equals(type)) {
|
||||||
Type componentType = ((Class)type).getComponentType();
|
Type componentType = ((Class)type).getComponentType();
|
||||||
Type genericComponentType = null;
|
Type genericComponentType = null;
|
||||||
@ -183,6 +183,7 @@ public final class TypeInfo {
|
|||||||
}
|
}
|
||||||
TypeInfo ti =new TypeInfo(tagName, componentType, annotations);
|
TypeInfo ti =new TypeInfo(tagName, componentType, annotations);
|
||||||
if (genericComponentType != null) ti.setGenericType(genericComponentType);
|
if (genericComponentType != null) ti.setGenericType(genericComponentType);
|
||||||
|
for(Annotation anno : annotations) if (anno instanceof XmlElementWrapper) ti.wrapperType = this;
|
||||||
return ti;
|
return ti;
|
||||||
}
|
}
|
||||||
// if (type instanceof Class && java.util.Collection.class.isAssignableFrom((Class)type)) {
|
// if (type instanceof Class && java.util.Collection.class.isAssignableFrom((Class)type)) {
|
||||||
@ -193,4 +194,8 @@ public final class TypeInfo {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public TypeInfo getWrapperType() {
|
||||||
|
return wrapperType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -483,7 +483,7 @@ public abstract class AbstractSchemaValidationTube extends AbstractFilterTubeImp
|
|||||||
assert docs.size() > 1;
|
assert docs.size() > 1;
|
||||||
|
|
||||||
final StringBuilder sb = new StringBuilder("<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'");
|
final StringBuilder sb = new StringBuilder("<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'");
|
||||||
if (!tns.equals("")) {
|
if (!"".equals(tns)) {
|
||||||
sb.append(" targetNamespace='").append(tns).append("'");
|
sb.append(" targetNamespace='").append(tns).append("'");
|
||||||
}
|
}
|
||||||
sb.append(">\n");
|
sb.append(">\n");
|
||||||
@ -521,7 +521,7 @@ public abstract class AbstractSchemaValidationTube extends AbstractFilterTubeImp
|
|||||||
String systemId = e.getValue();
|
String systemId = e.getValue();
|
||||||
String ns = e.getKey();
|
String ns = e.getKey();
|
||||||
sb.append("<xsd:import schemaLocation='").append(systemId).append("'");
|
sb.append("<xsd:import schemaLocation='").append(systemId).append("'");
|
||||||
if (!ns.equals("")) {
|
if (!"".equals(ns)) {
|
||||||
sb.append(" namespace='").append(ns).append("'");
|
sb.append(" namespace='").append(ns).append("'");
|
||||||
}
|
}
|
||||||
sb.append("/>\n");
|
sb.append("/>\n");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -274,7 +274,7 @@ V-029 = Value "{0}" is not one of the enumerated values for this attribute
|
|||||||
V-030 = Attribute value "{0}" does not name a notation
|
V-030 = Attribute value "{0}" does not name a notation
|
||||||
V-031 = Attribute value "{0}" does not name an unparsed entity
|
V-031 = Attribute value "{0}" does not name an unparsed entity
|
||||||
V-032 = NMTOKENS attributes must have at least one value
|
V-032 = NMTOKENS attributes must have at least one value
|
||||||
# Empty content model is a special type of XML element. I<EFBFBD>d leave the message in English as is (also libraries from outside of Oracle use this exact message) but the word EMPTY can be translated.
|
# Empty content model is a special type of XML element. I'd leave the message in English as is (also libraries from outside of Oracle use this exact message) but the word EMPTY can be translated.
|
||||||
V-033 = Empty content models must have no content
|
V-033 = Empty content models must have no content
|
||||||
# Usage not found. TODO Remove
|
# Usage not found. TODO Remove
|
||||||
#V-034 = Element "{0}" does not allow "{1}" -- {2}
|
#V-034 = Element "{0}" does not allow "{1}" -- {2}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
# questions.
|
# questions.
|
||||||
#
|
#
|
||||||
|
|
||||||
build-id=2.2.11-b140602.1731
|
build-id=2.2.11-b141124.1933
|
||||||
build-version=JAX-WS RI 2.2.11-b140602.1731
|
build-version=JAX-WS RI 2.2.11-b141124.1933
|
||||||
major-version=2.2.11
|
major-version=2.2.11
|
||||||
svn-revision=a684014c13b34abb8b9613e106f44f59abea206f
|
svn-revision=312b19a2e0e312b55e1ea6f531bd595955cd581f
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -71,18 +71,11 @@ import com.sun.xml.internal.ws.wsdl.writer.document.soap.BodyType;
|
|||||||
import com.sun.xml.internal.ws.wsdl.writer.document.soap.Header;
|
import com.sun.xml.internal.ws.wsdl.writer.document.soap.Header;
|
||||||
import com.sun.xml.internal.ws.wsdl.writer.document.soap.SOAPAddress;
|
import com.sun.xml.internal.ws.wsdl.writer.document.soap.SOAPAddress;
|
||||||
import com.sun.xml.internal.ws.wsdl.writer.document.soap.SOAPFault;
|
import com.sun.xml.internal.ws.wsdl.writer.document.soap.SOAPFault;
|
||||||
import com.sun.xml.internal.ws.wsdl.writer.document.xsd.Schema;
|
|
||||||
import com.sun.xml.internal.ws.spi.db.BindingContext;
|
import com.sun.xml.internal.ws.spi.db.BindingContext;
|
||||||
import com.sun.xml.internal.ws.spi.db.BindingHelper;
|
import com.sun.xml.internal.ws.spi.db.BindingHelper;
|
||||||
import com.sun.xml.internal.ws.spi.db.TypeInfo;
|
|
||||||
import com.sun.xml.internal.ws.spi.db.WrapperComposite;
|
|
||||||
import com.sun.xml.internal.ws.util.RuntimeVersion;
|
import com.sun.xml.internal.ws.util.RuntimeVersion;
|
||||||
import com.sun.xml.internal.ws.policy.jaxws.PolicyWSDLGeneratorExtension;
|
import com.sun.xml.internal.ws.policy.jaxws.PolicyWSDLGeneratorExtension;
|
||||||
import com.sun.xml.internal.ws.encoding.soap.streaming.SOAPNamespaceConstants;
|
import com.sun.xml.internal.ws.encoding.soap.streaming.SOAPNamespaceConstants;
|
||||||
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.Element;
|
|
||||||
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.ComplexType;
|
|
||||||
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.ExplicitGroup;
|
|
||||||
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.LocalElement;
|
|
||||||
|
|
||||||
import javax.jws.soap.SOAPBinding.Style;
|
import javax.jws.soap.SOAPBinding.Style;
|
||||||
import javax.jws.soap.SOAPBinding.Use;
|
import javax.jws.soap.SOAPBinding.Use;
|
||||||
@ -100,12 +93,12 @@ import javax.xml.ws.Holder;
|
|||||||
import javax.xml.ws.WebServiceException;
|
import javax.xml.ws.WebServiceException;
|
||||||
|
|
||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
|
import org.w3c.dom.NodeList;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -128,22 +121,6 @@ public class WSDLGenerator {
|
|||||||
* Constant String for ".wsdl"
|
* Constant String for ".wsdl"
|
||||||
*/
|
*/
|
||||||
private static final String DOT_WSDL = ".wsdl";
|
private static final String DOT_WSDL = ".wsdl";
|
||||||
/**
|
|
||||||
* Constant String appended to response message names
|
|
||||||
*/
|
|
||||||
private static final String RESPONSE = "Response";
|
|
||||||
/**
|
|
||||||
* constant String used for part name for wrapped request messages
|
|
||||||
*/
|
|
||||||
private static final String PARAMETERS = "parameters";
|
|
||||||
/**
|
|
||||||
* the part name for unwrappable response messages
|
|
||||||
*/
|
|
||||||
private static final String RESULT = "parameters";
|
|
||||||
/**
|
|
||||||
* the part name for response messages that are not unwrappable
|
|
||||||
*/
|
|
||||||
private static final String UNWRAPPABLE_RESULT = "result";
|
|
||||||
/**
|
/**
|
||||||
* The WSDL namespace
|
* The WSDL namespace
|
||||||
*/
|
*/
|
||||||
@ -196,6 +173,9 @@ public class WSDLGenerator {
|
|||||||
* Constant String to flag the URL to replace at runtime for the endpoint
|
* Constant String to flag the URL to replace at runtime for the endpoint
|
||||||
*/
|
*/
|
||||||
private static final String REPLACE_WITH_ACTUAL_URL = "REPLACE_WITH_ACTUAL_URL";
|
private static final String REPLACE_WITH_ACTUAL_URL = "REPLACE_WITH_ACTUAL_URL";
|
||||||
|
|
||||||
|
static public final String XsdNs = "http://www.w3.org/2001/XMLSchema";
|
||||||
|
|
||||||
private Set<QName> processedExceptions = new HashSet<QName>();
|
private Set<QName> processedExceptions = new HashSet<QName>();
|
||||||
private WSBinding binding;
|
private WSBinding binding;
|
||||||
private String wsdlLocation;
|
private String wsdlLocation;
|
||||||
@ -468,6 +448,13 @@ public class WSDLGenerator {
|
|||||||
Transformer t = tf.newTransformer();
|
Transformer t = tf.newTransformer();
|
||||||
for (DOMResult xsd : resolver.nonGlassfishSchemas) {
|
for (DOMResult xsd : resolver.nonGlassfishSchemas) {
|
||||||
Document doc = (Document) xsd.getNode();
|
Document doc = (Document) xsd.getNode();
|
||||||
|
if (inlineSchemas) {
|
||||||
|
NodeList importList = doc.getDocumentElement().getElementsByTagNameNS("http://www.w3.org/2001/XMLSchema", "import");
|
||||||
|
for(int i = 0; i < importList.getLength(); i++) {
|
||||||
|
org.w3c.dom.Element impElem = (org.w3c.dom.Element)importList.item(i);
|
||||||
|
impElem.removeAttribute("schemaLocation");
|
||||||
|
}
|
||||||
|
}
|
||||||
SAXResult sax = new SAXResult(new TXWContentHandler(types));
|
SAXResult sax = new SAXResult(new TXWContentHandler(types));
|
||||||
t.transform(new DOMSource(doc.getDocumentElement()), sax);
|
t.transform(new DOMSource(doc.getDocumentElement()), sax);
|
||||||
}
|
}
|
||||||
@ -477,64 +464,6 @@ public class WSDLGenerator {
|
|||||||
throw new WebServiceException(e.getMessage(), e);
|
throw new WebServiceException(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
generateWrappers();
|
|
||||||
}
|
|
||||||
|
|
||||||
void generateWrappers() {
|
|
||||||
List<WrapperParameter> wrappers = new ArrayList<WrapperParameter>();
|
|
||||||
for (JavaMethodImpl method : model.getJavaMethods()) {
|
|
||||||
if(method.getBinding().isRpcLit()) continue;
|
|
||||||
for (ParameterImpl p : method.getRequestParameters()) {
|
|
||||||
if (p instanceof WrapperParameter) {
|
|
||||||
if (WrapperComposite.class.equals((((WrapperParameter)p).getTypeInfo().type))) {
|
|
||||||
wrappers.add((WrapperParameter)p);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (ParameterImpl p : method.getResponseParameters()) {
|
|
||||||
if (p instanceof WrapperParameter) {
|
|
||||||
if (WrapperComposite.class.equals((((WrapperParameter)p).getTypeInfo().type))) {
|
|
||||||
wrappers.add((WrapperParameter)p);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (wrappers.isEmpty()) return;
|
|
||||||
HashMap<String, Schema> xsds = new HashMap<String, Schema>();
|
|
||||||
for(WrapperParameter wp : wrappers) {
|
|
||||||
String tns = wp.getName().getNamespaceURI();
|
|
||||||
Schema xsd = xsds.get(tns);
|
|
||||||
if (xsd == null) {
|
|
||||||
xsd = types.schema();
|
|
||||||
xsd.targetNamespace(tns);
|
|
||||||
xsds.put(tns, xsd);
|
|
||||||
}
|
|
||||||
Element e = xsd._element(Element.class);
|
|
||||||
e._attribute("name", wp.getName().getLocalPart());
|
|
||||||
e.type(wp.getName());
|
|
||||||
ComplexType ct = xsd._element(ComplexType.class);
|
|
||||||
ct._attribute("name", wp.getName().getLocalPart());
|
|
||||||
ExplicitGroup sq = ct.sequence();
|
|
||||||
for (ParameterImpl p : wp.getWrapperChildren() ) {
|
|
||||||
if (p.getBinding().isBody()) {
|
|
||||||
LocalElement le = sq.element();
|
|
||||||
le._attribute("name", p.getName().getLocalPart());
|
|
||||||
TypeInfo typeInfo = p.getItemType();
|
|
||||||
boolean repeatedElement = false;
|
|
||||||
if (typeInfo == null) {
|
|
||||||
typeInfo = p.getTypeInfo();
|
|
||||||
} else {
|
|
||||||
repeatedElement = true;
|
|
||||||
}
|
|
||||||
QName type = model.getBindingContext().getTypeName(typeInfo);
|
|
||||||
le.type(type);
|
|
||||||
if (repeatedElement) {
|
|
||||||
le.minOccurs(0);
|
|
||||||
le.maxOccurs("unbounded");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -49,6 +49,14 @@ public interface JAnnotatable {
|
|||||||
*/
|
*/
|
||||||
JAnnotationUse annotate(Class <? extends Annotation> clazz);
|
JAnnotationUse annotate(Class <? extends Annotation> clazz);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes annotation from this program element.
|
||||||
|
*
|
||||||
|
* @param annotation
|
||||||
|
* The annotation to be removed from the program element
|
||||||
|
*/
|
||||||
|
boolean removeAnnotation(JAnnotationUse annotation);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an annotation to this program element
|
* Adds an annotation to this program element
|
||||||
* and returns a type-safe writer to fill in the values of such annotations.
|
* and returns a type-safe writer to fill in the values of such annotations.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -252,6 +252,11 @@ public final class JAnnotationArrayMember extends JAnnotationValue implements JA
|
|||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public boolean removeAnnotation(JAnnotationUse annotation) {
|
||||||
|
return this.values.remove(annotation);
|
||||||
|
}
|
||||||
|
|
||||||
public <W extends JAnnotationWriter> W annotate2(Class<W> clazz) {
|
public <W extends JAnnotationWriter> W annotate2(Class<W> clazz) {
|
||||||
return TypedAnnotationWriter.create(clazz,this);
|
return TypedAnnotationWriter.create(clazz,this);
|
||||||
}
|
}
|
||||||
|
@ -895,6 +895,10 @@ public class JDefinedClass
|
|||||||
return TypedAnnotationWriter.create(clazz,this);
|
return TypedAnnotationWriter.create(clazz,this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean removeAnnotation(JAnnotationUse annotation) {
|
||||||
|
return this.annotations.remove(annotation);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link JAnnotatable#annotations()}
|
* {@link JAnnotatable#annotations()}
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -132,6 +132,9 @@ public final class JEnumConstant extends JExpressionImpl implements JDeclaration
|
|||||||
return TypedAnnotationWriter.create(clazz,this);
|
return TypedAnnotationWriter.create(clazz,this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean removeAnnotation(JAnnotationUse annotation) {
|
||||||
|
return this.annotations.remove(annotation);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* {@link JAnnotatable#annotations()}
|
* {@link JAnnotatable#annotations()}
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -267,6 +267,10 @@ public class JMethod extends JGenerifiableImpl implements JDeclaration, JAnnotat
|
|||||||
return TypedAnnotationWriter.create(clazz,this);
|
return TypedAnnotationWriter.create(clazz,this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean removeAnnotation(JAnnotationUse annotation) {
|
||||||
|
return this.annotations.remove(annotation);
|
||||||
|
}
|
||||||
|
|
||||||
public Collection<JAnnotationUse> annotations() {
|
public Collection<JAnnotationUse> annotations() {
|
||||||
if (annotations == null)
|
if (annotations == null)
|
||||||
annotations = new ArrayList<JAnnotationUse>();
|
annotations = new ArrayList<JAnnotationUse>();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -388,6 +388,10 @@ public final class JPackage implements JDeclaration, JGenerable, JClassContainer
|
|||||||
return TypedAnnotationWriter.create(clazz,this);
|
return TypedAnnotationWriter.create(clazz,this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean removeAnnotation(JAnnotationUse annotation) {
|
||||||
|
return this.annotations.remove(annotation);
|
||||||
|
}
|
||||||
|
|
||||||
public Collection<JAnnotationUse> annotations() {
|
public Collection<JAnnotationUse> annotations() {
|
||||||
if (annotations == null)
|
if (annotations == null)
|
||||||
annotations = new ArrayList<JAnnotationUse>();
|
annotations = new ArrayList<JAnnotationUse>();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -177,6 +177,10 @@ public class JVar extends JExpressionImpl implements JDeclaration, JAssignmentTa
|
|||||||
return TypedAnnotationWriter.create(clazz,this);
|
return TypedAnnotationWriter.create(clazz,this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean removeAnnotation(JAnnotationUse annotation) {
|
||||||
|
return this.annotations.remove(annotation);
|
||||||
|
}
|
||||||
|
|
||||||
public Collection<JAnnotationUse> annotations() {
|
public Collection<JAnnotationUse> annotations() {
|
||||||
if (annotations == null)
|
if (annotations == null)
|
||||||
annotations = new ArrayList<JAnnotationUse>();
|
annotations = new ArrayList<JAnnotationUse>();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -61,6 +61,9 @@ public class JavadocEscapeWriter extends FilterWriter {
|
|||||||
else
|
else
|
||||||
if(ch=='&')
|
if(ch=='&')
|
||||||
out.write("&");
|
out.write("&");
|
||||||
|
else
|
||||||
|
if(ch=='>')
|
||||||
|
out.write(">");
|
||||||
else
|
else
|
||||||
out.write(ch);
|
out.write(ch);
|
||||||
}
|
}
|
||||||
|
@ -30,10 +30,10 @@ BASEDIR_DOESNT_EXIST = \
|
|||||||
Non-existent directory: {0}
|
Non-existent directory: {0}
|
||||||
|
|
||||||
VERSION = \
|
VERSION = \
|
||||||
schemagen 2.2.11-b140528.1207
|
schemagen 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = \
|
FULLVERSION = \
|
||||||
schemagen full version "2.2.11-b140528.1207"
|
schemagen full version "2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = \
|
USAGE = \
|
||||||
Usage: schemagen [-options ...] <java files> \n\
|
Usage: schemagen [-options ...] <java files> \n\
|
||||||
|
@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = Nicht erkanntes {0} in Zeile {1} Spalte {2}
|
|||||||
|
|
||||||
BASEDIR_DOESNT_EXIST = Nicht vorhandenes Verzeichnis: {0}
|
BASEDIR_DOESNT_EXIST = Nicht vorhandenes Verzeichnis: {0}
|
||||||
|
|
||||||
VERSION = schemagen 2.2.11-b140528.1207
|
VERSION = schemagen 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = schemagen vollst\u00E4ndige Version "2.2.11-b140528.1207"
|
FULLVERSION = schemagen vollst\u00E4ndige Version "2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = Verwendung: schemagen [-options ...] <java files> \nOptionen: \n\\ \\ \\ \\ -d <path> : Gibt an, wo die von Prozessor und javac generierten Klassendateien gespeichert werden sollen\n\\ \\ \\ \\ -cp <path> : Gibt an, wo die vom Benutzer angegebenen Dateien gespeichert sind\n\\ \\ \\ \\ -classpath <path> : Gibt an, wo die vom Benutzer angegebenen Dateien gespeichert sind\n\\ \\ \\ \\ -encoding <encoding> : Gibt die Codierung f\u00FCr die Annotationsverarbeitung/den javac-Aufruf an \n\\ \\ \\ \\ -episode <file> : Generiert Episodendatei f\u00FCr separate Kompilierung\n\\ \\ \\ \\ -version : Zeigt Versionsinformation an\n\\ \\ \\ \\ -fullversion : Zeigt vollst\u00E4ndige Versionsinformationen an\n\\ \\ \\ \\ -help : Zeigt diese Verwendungsmeldung an
|
USAGE = Verwendung: schemagen [-options ...] <java files> \nOptionen: \n\\ \\ \\ \\ -d <path> : Gibt an, wo die von Prozessor und javac generierten Klassendateien gespeichert werden sollen\n\\ \\ \\ \\ -cp <path> : Gibt an, wo die vom Benutzer angegebenen Dateien gespeichert sind\n\\ \\ \\ \\ -classpath <path> : Gibt an, wo die vom Benutzer angegebenen Dateien gespeichert sind\n\\ \\ \\ \\ -encoding <encoding> : Gibt die Codierung f\u00FCr die Annotationsverarbeitung/den javac-Aufruf an \n\\ \\ \\ \\ -episode <file> : Generiert Episodendatei f\u00FCr separate Kompilierung\n\\ \\ \\ \\ -version : Zeigt Versionsinformation an\n\\ \\ \\ \\ -fullversion : Zeigt vollst\u00E4ndige Versionsinformationen an\n\\ \\ \\ \\ -help : Zeigt diese Verwendungsmeldung an
|
||||||
|
@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = Aparece un {0} inesperado en la l\u00EDnea {1} y la colu
|
|||||||
|
|
||||||
BASEDIR_DOESNT_EXIST = Directorio no existente: {0}
|
BASEDIR_DOESNT_EXIST = Directorio no existente: {0}
|
||||||
|
|
||||||
VERSION = schemagen 2.2.11-b140528.1207
|
VERSION = schemagen 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = versi\u00F3n completa de schemagen "2.2.11-b140528.1207"
|
FULLVERSION = versi\u00F3n completa de schemagen "2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = Sintaxis: schemagen [-options ...] <archivos java> \nOpciones: \n\\ \\ \\ \\ -d <ruta de acceso> : especifique d\u00F3nde se colocan los archivos de clase generados por javac y el procesador\n\\ \\ \\ \\ -cp <ruta de acceso> : especifique d\u00F3nde se encuentran los archivos especificados por el usuario\n\\ \\ \\ \\ -encoding <codificaci\u00F3n> : especifique la codificaci\u00F3n que se va a utilizar para el procesamiento de anotaciones/llamada de javac\n\\ \\ \\ \\ -episode <archivo> : genera un archivo de episodio para una compilaci\u00F3n diferente\n\\ \\ \\ \\ -version : muestra la informaci\u00F3n de la versi\u00F3n\n\\ \\ \\ \\ -fullversion : muestra la informaci\u00F3n completa de la versi\u00F3n\n\\ \\ \\ \\ -help : muestra este mensaje de sintaxis
|
USAGE = Sintaxis: schemagen [-options ...] <archivos java> \nOpciones: \n\\ \\ \\ \\ -d <ruta de acceso> : especifique d\u00F3nde se colocan los archivos de clase generados por javac y el procesador\n\\ \\ \\ \\ -cp <ruta de acceso> : especifique d\u00F3nde se encuentran los archivos especificados por el usuario\n\\ \\ \\ \\ -encoding <codificaci\u00F3n> : especifique la codificaci\u00F3n que se va a utilizar para el procesamiento de anotaciones/llamada de javac\n\\ \\ \\ \\ -episode <archivo> : genera un archivo de episodio para una compilaci\u00F3n diferente\n\\ \\ \\ \\ -version : muestra la informaci\u00F3n de la versi\u00F3n\n\\ \\ \\ \\ -fullversion : muestra la informaci\u00F3n completa de la versi\u00F3n\n\\ \\ \\ \\ -help : muestra este mensaje de sintaxis
|
||||||
|
@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = Un \u00E9l\u00E9ment {0} inattendu appara\u00EEt \u00E0
|
|||||||
|
|
||||||
BASEDIR_DOESNT_EXIST = R\u00E9pertoire {0} inexistant
|
BASEDIR_DOESNT_EXIST = R\u00E9pertoire {0} inexistant
|
||||||
|
|
||||||
VERSION = schemagen 2.2.11-b140528.1207
|
VERSION = schemagen 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = version compl\u00E8te de schemagen "2.2.11-b140528.1207"
|
FULLVERSION = version compl\u00E8te de schemagen "2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = Syntaxe : schemagen [-options ...] <java files> \nOptions : \n\ \ \ \ -d <path> : indiquez o\u00F9 placer les fichiers de classe g\u00E9n\u00E9r\u00E9s par le processeur et le compilateur javac\n\ \ \ \ -cp <path> : indiquez o\u00F9 trouver les fichiers sp\u00E9cifi\u00E9s par l'utilisateur\n\ \ \ \ -classpath <path> : indiquez o\u00F9 trouver les fichiers sp\u00E9cifi\u00E9s par l'utilisateur\n\ \ \ \ -encoding <encoding> : indiquez l'encodage \u00E0 utiliser pour l'appel de javac/traitement de l'annotation \n\ \ \ \ -episode <file> : g\u00E9n\u00E9rez un fichier d'\u00E9pisode pour la compilation s\u00E9par\u00E9e\n\ \ \ \ -version : affichez les informations de version\n\ \ \ \ -fullversion : affichez les informations compl\u00E8tes de version\n\ \ \ \ -help : affichez ce message de syntaxe
|
USAGE = Syntaxe : schemagen [-options ...] <java files> \nOptions : \n\ \ \ \ -d <path> : indiquez o\u00F9 placer les fichiers de classe g\u00E9n\u00E9r\u00E9s par le processeur et le compilateur javac\n\ \ \ \ -cp <path> : indiquez o\u00F9 trouver les fichiers sp\u00E9cifi\u00E9s par l'utilisateur\n\ \ \ \ -classpath <path> : indiquez o\u00F9 trouver les fichiers sp\u00E9cifi\u00E9s par l'utilisateur\n\ \ \ \ -encoding <encoding> : indiquez l'encodage \u00E0 utiliser pour l'appel de javac/traitement de l'annotation \n\ \ \ \ -episode <file> : g\u00E9n\u00E9rez un fichier d'\u00E9pisode pour la compilation s\u00E9par\u00E9e\n\ \ \ \ -version : affichez les informations de version\n\ \ \ \ -fullversion : affichez les informations compl\u00E8tes de version\n\ \ \ \ -help : affichez ce message de syntaxe
|
||||||
|
@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = {0} imprevisto visualizzato sulla riga {1} colonna {2}
|
|||||||
|
|
||||||
BASEDIR_DOESNT_EXIST = Directory non esistente: {0}
|
BASEDIR_DOESNT_EXIST = Directory non esistente: {0}
|
||||||
|
|
||||||
VERSION = schemagen 2.2.11-b140528.1207
|
VERSION = schemagen 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = versione completa schemagen "2.2.11-b140528.1207"
|
FULLVERSION = versione completa schemagen "2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = Uso: schemagen [-options ...] <java files> \nOpzioni: \n\ \ \ \ -d <path> : specifica dove posizionare il processore e i file della classe generata javac\n\ \ \ \ -cp <path> : specifica dove trovare i file specificati dall'utente\n\ \ \ \ -classpath <path> : specifica dove trovare i file specificati dall'utente\n\ \ \ \ -encoding <encoding> : specifica la codifica da usare per l'elaborazione dell'annotazione/richiamo javac \n\ \ \ \ -episode <file> : genera il file di episodio per la compilazione separata\n\ \ \ \ -version : visualizza le informazioni sulla versione\n\ \ \ \ -fullversion : visualizza le informazioni sulla versione completa\n\ \ \ \ -help : visualizza questo messaggio sull'uso
|
USAGE = Uso: schemagen [-options ...] <java files> \nOpzioni: \n\ \ \ \ -d <path> : specifica dove posizionare il processore e i file della classe generata javac\n\ \ \ \ -cp <path> : specifica dove trovare i file specificati dall'utente\n\ \ \ \ -classpath <path> : specifica dove trovare i file specificati dall'utente\n\ \ \ \ -encoding <encoding> : specifica la codifica da usare per l'elaborazione dell'annotazione/richiamo javac \n\ \ \ \ -episode <file> : genera il file di episodio per la compilazione separata\n\ \ \ \ -version : visualizza le informazioni sulla versione\n\ \ \ \ -fullversion : visualizza le informazioni sulla versione completa\n\ \ \ \ -help : visualizza questo messaggio sull'uso
|
||||||
|
@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = \u4E88\u671F\u3057\u306A\u3044{0}\u304C\u884C{1}\u3001\u
|
|||||||
|
|
||||||
BASEDIR_DOESNT_EXIST = \u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u304C\u5B58\u5728\u3057\u307E\u305B\u3093: {0}
|
BASEDIR_DOESNT_EXIST = \u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u304C\u5B58\u5728\u3057\u307E\u305B\u3093: {0}
|
||||||
|
|
||||||
VERSION = schemagen 2.2.11-b140528.1207
|
VERSION = schemagen 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = schemagen\u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3"2.2.11-b140528.1207"
|
FULLVERSION = schemagen\u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3"2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = \u4F7F\u7528\u65B9\u6CD5: schemagen [-options ...] <java files> \n\u30AA\u30D7\u30B7\u30E7\u30F3: \n\ \ \ \ -d <path> : \u30D7\u30ED\u30BB\u30C3\u30B5\u304A\u3088\u3073javac\u304C\u751F\u6210\u3057\u305F\u30AF\u30E9\u30B9\u30FB\u30D5\u30A1\u30A4\u30EB\u3092\u7F6E\u304F\u4F4D\u7F6E\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -cp <path> : \u30E6\u30FC\u30B6\u30FC\u304C\u6307\u5B9A\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u691C\u7D22\u3059\u308B\u4F4D\u7F6E\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -classpath <path> : \u30E6\u30FC\u30B6\u30FC\u304C\u6307\u5B9A\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u691C\u7D22\u3059\u308B\u4F4D\u7F6E\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -encoding <encoding> : \u6CE8\u91C8\u51E6\u7406/javac\u547C\u51FA\u3057\u306B\u4F7F\u7528\u3059\u308B\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -episode <file> : \u30B3\u30F3\u30D1\u30A4\u30EB\u3054\u3068\u306B\u30A8\u30D4\u30BD\u30FC\u30C9\u30FB\u30D5\u30A1\u30A4\u30EB\u3092\u751F\u6210\u3057\u307E\u3059\n\ \ \ \ -version : \u30D0\u30FC\u30B8\u30E7\u30F3\u60C5\u5831\u3092\u8868\u793A\u3057\u307E\u3059\n\ \ \ \ -fullversion : \u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3\u60C5\u5831\u3092\u8868\u793A\u3057\u307E\u3059\n\ \ \ \ -help : \u3053\u306E\u4F7F\u7528\u4F8B\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u8868\u793A\u3057\u307E\u3059
|
USAGE = \u4F7F\u7528\u65B9\u6CD5: schemagen [-options ...] <java files> \n\u30AA\u30D7\u30B7\u30E7\u30F3: \n\ \ \ \ -d <path> : \u30D7\u30ED\u30BB\u30C3\u30B5\u304A\u3088\u3073javac\u304C\u751F\u6210\u3057\u305F\u30AF\u30E9\u30B9\u30FB\u30D5\u30A1\u30A4\u30EB\u3092\u7F6E\u304F\u4F4D\u7F6E\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -cp <path> : \u30E6\u30FC\u30B6\u30FC\u304C\u6307\u5B9A\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u691C\u7D22\u3059\u308B\u4F4D\u7F6E\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -classpath <path> : \u30E6\u30FC\u30B6\u30FC\u304C\u6307\u5B9A\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u691C\u7D22\u3059\u308B\u4F4D\u7F6E\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -encoding <encoding> : \u6CE8\u91C8\u51E6\u7406/javac\u547C\u51FA\u3057\u306B\u4F7F\u7528\u3059\u308B\u30A8\u30F3\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u3092\u6307\u5B9A\u3057\u307E\u3059\n\ \ \ \ -episode <file> : \u30B3\u30F3\u30D1\u30A4\u30EB\u3054\u3068\u306B\u30A8\u30D4\u30BD\u30FC\u30C9\u30FB\u30D5\u30A1\u30A4\u30EB\u3092\u751F\u6210\u3057\u307E\u3059\n\ \ \ \ -version : \u30D0\u30FC\u30B8\u30E7\u30F3\u60C5\u5831\u3092\u8868\u793A\u3057\u307E\u3059\n\ \ \ \ -fullversion : \u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3\u60C5\u5831\u3092\u8868\u793A\u3057\u307E\u3059\n\ \ \ \ -help : \u3053\u306E\u4F7F\u7528\u4F8B\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u8868\u793A\u3057\u307E\u3059
|
||||||
|
@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = \uC608\uC0C1\uCE58 \uC54A\uC740 {0}\uC774(\uAC00) {1}\uD
|
|||||||
|
|
||||||
BASEDIR_DOESNT_EXIST = \uC874\uC7AC\uD558\uC9C0 \uC54A\uB294 \uB514\uB809\uD1A0\uB9AC: {0}
|
BASEDIR_DOESNT_EXIST = \uC874\uC7AC\uD558\uC9C0 \uC54A\uB294 \uB514\uB809\uD1A0\uB9AC: {0}
|
||||||
|
|
||||||
VERSION = schemagen 2.2.11-b140528.1207
|
VERSION = schemagen 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = schemagen \uC815\uC2DD \uBC84\uC804 "2.2.11-b140528.1207"
|
FULLVERSION = schemagen \uC815\uC2DD \uBC84\uC804 "2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = \uC0AC\uC6A9\uBC95: schemagen [-options ...] <java files> \n\uC635\uC158: \n\ \ \ \ -d <path> : \uD504\uB85C\uC138\uC11C \uBC0F javac\uC5D0\uC11C \uC0DD\uC131\uD55C \uD074\uB798\uC2A4 \uD30C\uC77C\uC744 \uBC30\uCE58\uD560 \uC704\uCE58\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4.\n\ \ \ \ -cp <path> : \uC0AC\uC6A9\uC790\uAC00 \uC9C0\uC815\uD55C \uD30C\uC77C\uC744 \uCC3E\uC744 \uC704\uCE58\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4.\n\ \ \ \ -classpath <path> : \uC0AC\uC6A9\uC790\uAC00 \uC9C0\uC815\uD55C \uD30C\uC77C\uC744 \uCC3E\uC744 \uC704\uCE58\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4.\n\ \ \ \ -encoding <encoding> : \uC8FC\uC11D \uCC98\uB9AC/javac \uD638\uCD9C\uC5D0 \uC0AC\uC6A9\uD560 \uC778\uCF54\uB529\uC744 \uC9C0\uC815\uD569\uB2C8\uB2E4. \n\ \ \ \ -episode <file> : \uBCC4\uB3C4 \uCEF4\uD30C\uC77C\uC744 \uC704\uD574 episode \uD30C\uC77C\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4.\n\ \ \ \ -version : \uBC84\uC804 \uC815\uBCF4\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4.\n\ \ \ \ -fullversion : \uC815\uC2DD \uBC84\uC804 \uC815\uBCF4\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4.\n\ \ \ \ -help : \uC774 \uC0AC\uC6A9\uBC95 \uBA54\uC2DC\uC9C0\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4.
|
USAGE = \uC0AC\uC6A9\uBC95: schemagen [-options ...] <java files> \n\uC635\uC158: \n\ \ \ \ -d <path> : \uD504\uB85C\uC138\uC11C \uBC0F javac\uC5D0\uC11C \uC0DD\uC131\uD55C \uD074\uB798\uC2A4 \uD30C\uC77C\uC744 \uBC30\uCE58\uD560 \uC704\uCE58\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4.\n\ \ \ \ -cp <path> : \uC0AC\uC6A9\uC790\uAC00 \uC9C0\uC815\uD55C \uD30C\uC77C\uC744 \uCC3E\uC744 \uC704\uCE58\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4.\n\ \ \ \ -classpath <path> : \uC0AC\uC6A9\uC790\uAC00 \uC9C0\uC815\uD55C \uD30C\uC77C\uC744 \uCC3E\uC744 \uC704\uCE58\uB97C \uC9C0\uC815\uD569\uB2C8\uB2E4.\n\ \ \ \ -encoding <encoding> : \uC8FC\uC11D \uCC98\uB9AC/javac \uD638\uCD9C\uC5D0 \uC0AC\uC6A9\uD560 \uC778\uCF54\uB529\uC744 \uC9C0\uC815\uD569\uB2C8\uB2E4. \n\ \ \ \ -episode <file> : \uBCC4\uB3C4 \uCEF4\uD30C\uC77C\uC744 \uC704\uD574 episode \uD30C\uC77C\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4.\n\ \ \ \ -version : \uBC84\uC804 \uC815\uBCF4\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4.\n\ \ \ \ -fullversion : \uC815\uC2DD \uBC84\uC804 \uC815\uBCF4\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4.\n\ \ \ \ -help : \uC774 \uC0AC\uC6A9\uBC95 \uBA54\uC2DC\uC9C0\uB97C \uD45C\uC2DC\uD569\uB2C8\uB2E4.
|
||||||
|
@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = {0} inesperado aparece na linha {1} coluna {2}
|
|||||||
|
|
||||||
BASEDIR_DOESNT_EXIST = Diret\u00F3rio n\u00E3o existente: {0}
|
BASEDIR_DOESNT_EXIST = Diret\u00F3rio n\u00E3o existente: {0}
|
||||||
|
|
||||||
VERSION = gera\u00E7\u00E3o do esquema 2.2.11-b140528.1207
|
VERSION = gera\u00E7\u00E3o do esquema 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = vers\u00E3o completa da gera\u00E7\u00E3o do esquema "2.2.11-b140528.1207"
|
FULLVERSION = vers\u00E3o completa da gera\u00E7\u00E3o do esquema "2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = Uso: gera\u00E7\u00E3o do esquema [-options ...] <java files> \nOp\u00E7\u00F5es: \n\\ \\ \\ \\ -d <path> : especificar onde colocar o processador e os arquivos da classe gerados por javac\n\\ \\ \\ \\ -cp <path> : especificar onde localizar arquivos especificados pelo usu\u00E1rio\n\\ \\ \\ \\ -classpath <path> : especificar onde localizar os arquivos especificados pelo usu\u00E1rio\n\\ \\ \\ \\ -encoding <encoding> : especificar codifica\u00E7\u00E3o a ser usada para processamento de anota\u00E7\u00E3o/chamada javac \n\\ \\ \\ \\ -episode <file> : gerar arquivo do epis\u00F3dio para compila\u00E7\u00E3o separada\n\\ \\ \\ \\ -version : exibir informa\u00E7\u00F5es da vers\u00E3o\n\\ \\ \\ \\ -fullversion : exibir informa\u00E7\u00F5es da vers\u00E3o completa\n\\ \\ \\ \\ -help : exibir esta mensagem de uso
|
USAGE = Uso: gera\u00E7\u00E3o do esquema [-options ...] <java files> \nOp\u00E7\u00F5es: \n\\ \\ \\ \\ -d <path> : especificar onde colocar o processador e os arquivos da classe gerados por javac\n\\ \\ \\ \\ -cp <path> : especificar onde localizar arquivos especificados pelo usu\u00E1rio\n\\ \\ \\ \\ -classpath <path> : especificar onde localizar os arquivos especificados pelo usu\u00E1rio\n\\ \\ \\ \\ -encoding <encoding> : especificar codifica\u00E7\u00E3o a ser usada para processamento de anota\u00E7\u00E3o/chamada javac \n\\ \\ \\ \\ -episode <file> : gerar arquivo do epis\u00F3dio para compila\u00E7\u00E3o separada\n\\ \\ \\ \\ -version : exibir informa\u00E7\u00F5es da vers\u00E3o\n\\ \\ \\ \\ -fullversion : exibir informa\u00E7\u00F5es da vers\u00E3o completa\n\\ \\ \\ \\ -help : exibir esta mensagem de uso
|
||||||
|
@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = \u5728\u7B2C {1} \u884C, \u7B2C {2} \u5217\u51FA\u73B0\u
|
|||||||
|
|
||||||
BASEDIR_DOESNT_EXIST = \u4E0D\u5B58\u5728\u7684\u76EE\u5F55: {0}
|
BASEDIR_DOESNT_EXIST = \u4E0D\u5B58\u5728\u7684\u76EE\u5F55: {0}
|
||||||
|
|
||||||
VERSION = schemagen 2.2.11-b140528.1207
|
VERSION = schemagen 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = schemagen \u5B8C\u6574\u7248\u672C "2.2.11-b140528.1207"
|
FULLVERSION = schemagen \u5B8C\u6574\u7248\u672C "2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = \u7528\u6CD5: schemagen [-options ...] <java files> \n\u9009\u9879: \n\ \ \ \ -d <path> : \u6307\u5B9A\u653E\u7F6E\u5904\u7406\u7A0B\u5E8F\u548C javac \u751F\u6210\u7684\u7C7B\u6587\u4EF6\u7684\u4F4D\u7F6E\n\ \ \ \ -cp <path> : \u6307\u5B9A\u67E5\u627E\u7528\u6237\u6307\u5B9A\u6587\u4EF6\u7684\u4F4D\u7F6E\n\ \ \ \ -classpath <path> : \u6307\u5B9A\u67E5\u627E\u7528\u6237\u6307\u5B9A\u6587\u4EF6\u7684\u4F4D\u7F6E\n\ \ \ \ -encoding <encoding> : \u6307\u5B9A\u7528\u4E8E\u6CE8\u91CA\u5904\u7406/javac \u8C03\u7528\u7684\u7F16\u7801\n\ \ \ \ -episode <file> : \u751F\u6210\u7247\u6BB5\u6587\u4EF6\u4EE5\u4F9B\u5355\u72EC\u7F16\u8BD1\n\ \ \ \ -version : \u663E\u793A\u7248\u672C\u4FE1\u606F\n\ \ \ \ -fullversion : \u663E\u793A\u5B8C\u6574\u7684\u7248\u672C\u4FE1\u606F\n\ \ \ \ -help : \u663E\u793A\u6B64\u7528\u6CD5\u6D88\u606F
|
USAGE = \u7528\u6CD5: schemagen [-options ...] <java files> \n\u9009\u9879: \n\ \ \ \ -d <path> : \u6307\u5B9A\u653E\u7F6E\u5904\u7406\u7A0B\u5E8F\u548C javac \u751F\u6210\u7684\u7C7B\u6587\u4EF6\u7684\u4F4D\u7F6E\n\ \ \ \ -cp <path> : \u6307\u5B9A\u67E5\u627E\u7528\u6237\u6307\u5B9A\u6587\u4EF6\u7684\u4F4D\u7F6E\n\ \ \ \ -classpath <path> : \u6307\u5B9A\u67E5\u627E\u7528\u6237\u6307\u5B9A\u6587\u4EF6\u7684\u4F4D\u7F6E\n\ \ \ \ -encoding <encoding> : \u6307\u5B9A\u7528\u4E8E\u6CE8\u91CA\u5904\u7406/javac \u8C03\u7528\u7684\u7F16\u7801\n\ \ \ \ -episode <file> : \u751F\u6210\u7247\u6BB5\u6587\u4EF6\u4EE5\u4F9B\u5355\u72EC\u7F16\u8BD1\n\ \ \ \ -version : \u663E\u793A\u7248\u672C\u4FE1\u606F\n\ \ \ \ -fullversion : \u663E\u793A\u5B8C\u6574\u7684\u7248\u672C\u4FE1\u606F\n\ \ \ \ -help : \u663E\u793A\u6B64\u7528\u6CD5\u6D88\u606F
|
||||||
|
@ -27,8 +27,8 @@ UNEXPECTED_NGCC_TOKEN = \u672A\u9810\u671F\u7684 {0} \u986F\u793A\u65BC\u884C {1
|
|||||||
|
|
||||||
BASEDIR_DOESNT_EXIST = \u4E0D\u5B58\u5728\u7684\u76EE\u9304: {0}
|
BASEDIR_DOESNT_EXIST = \u4E0D\u5B58\u5728\u7684\u76EE\u9304: {0}
|
||||||
|
|
||||||
VERSION = schemagen 2.2.11-b140528.1207
|
VERSION = schemagen 2.2.12-b141016.1821
|
||||||
|
|
||||||
FULLVERSION = schemagen \u5B8C\u6574\u7248\u672C "2.2.11-b140528.1207"
|
FULLVERSION = schemagen \u5B8C\u6574\u7248\u672C "2.2.12-b141016.1821"
|
||||||
|
|
||||||
USAGE = \u7528\u6CD5: schemagen [-options ...] <java files> \n\u9078\u9805: \n\\ \\ \\ \\ -d <path> : \u6307\u5B9A\u8655\u7406\u5668\u4EE5\u53CA javac \u7522\u751F\u7684\u985E\u5225\u6A94\u6848\u653E\u7F6E\u4F4D\u7F6E\n\\ \\ \\ \\ -cp <path> : \u6307\u5B9A\u8981\u5C0B\u627E\u4F7F\u7528\u8005\u6307\u5B9A\u6A94\u6848\u7684\u4F4D\u7F6E\n\\ \\ \\ \\ -classpath <path> : \u6307\u5B9A\u8981\u5C0B\u627E\u4F7F\u7528\u8005\u6307\u5B9A\u6A94\u6848\u7684\u4F4D\u7F6E\n\\ \\ \\ \\ -encoding <encoding> : \u6307\u5B9A\u8981\u7528\u65BC\u8A3B\u89E3\u8655\u7406/javac \u547C\u53EB\u7684\u7DE8\u78BC \n\\ \\ \\ \\ -episode <file> : \u7522\u751F\u7368\u7ACB\u7DE8\u8B6F\u7684\u4E8B\u4EF6 (episode) \u6A94\u6848\n\\ \\ \\ \\ -version : \u986F\u793A\u7248\u672C\u8CC7\u8A0A\n\\ \\ \\ \\ -fullversion : \u986F\u793A\u5B8C\u6574\u7248\u672C\u8CC7\u8A0A\n\\ \\ \\ \\ -help : \u986F\u793A\u6B64\u7528\u6CD5\u8A0A\u606F
|
USAGE = \u7528\u6CD5: schemagen [-options ...] <java files> \n\u9078\u9805: \n\\ \\ \\ \\ -d <path> : \u6307\u5B9A\u8655\u7406\u5668\u4EE5\u53CA javac \u7522\u751F\u7684\u985E\u5225\u6A94\u6848\u653E\u7F6E\u4F4D\u7F6E\n\\ \\ \\ \\ -cp <path> : \u6307\u5B9A\u8981\u5C0B\u627E\u4F7F\u7528\u8005\u6307\u5B9A\u6A94\u6848\u7684\u4F4D\u7F6E\n\\ \\ \\ \\ -classpath <path> : \u6307\u5B9A\u8981\u5C0B\u627E\u4F7F\u7528\u8005\u6307\u5B9A\u6A94\u6848\u7684\u4F4D\u7F6E\n\\ \\ \\ \\ -encoding <encoding> : \u6307\u5B9A\u8981\u7528\u65BC\u8A3B\u89E3\u8655\u7406/javac \u547C\u53EB\u7684\u7DE8\u78BC \n\\ \\ \\ \\ -episode <file> : \u7522\u751F\u7368\u7ACB\u7DE8\u8B6F\u7684\u4E8B\u4EF6 (episode) \u6A94\u6848\n\\ \\ \\ \\ -version : \u986F\u793A\u7248\u672C\u8CC7\u8A0A\n\\ \\ \\ \\ -fullversion : \u986F\u793A\u5B8C\u6574\u7248\u672C\u8CC7\u8A0A\n\\ \\ \\ \\ -help : \u986F\u793A\u6B64\u7528\u6CD5\u8A0A\u606F
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -57,6 +57,9 @@ import java.util.logging.Logger;
|
|||||||
* @author Bhakti Mehta
|
* @author Bhakti Mehta
|
||||||
*/
|
*/
|
||||||
public class SchemaGenerator {
|
public class SchemaGenerator {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = Logger.getLogger(SchemaGenerator.class.getName());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runs the schema generator.
|
* Runs the schema generator.
|
||||||
*/
|
*/
|
||||||
@ -72,7 +75,7 @@ public class SchemaGenerator {
|
|||||||
}
|
}
|
||||||
return run(args, cl);
|
return run(args, cl);
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
System.err.println(e.getMessage());
|
LOGGER.log(Level.SEVERE, e.getMessage(), e);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -206,9 +209,9 @@ public class SchemaGenerator {
|
|||||||
return f.getPath();
|
return f.getPath();
|
||||||
}
|
}
|
||||||
} catch (URISyntaxException ex) {
|
} catch (URISyntaxException ex) {
|
||||||
Logger.getLogger(SchemaGenerator.class.getName()).log(Level.SEVERE, null, ex);
|
LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
|
||||||
} catch (MalformedURLException ex) {
|
} catch (MalformedURLException ex) {
|
||||||
Logger.getLogger(SchemaGenerator.class.getName()).log(Level.SEVERE, null, ex);
|
LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -225,8 +228,9 @@ public class SchemaGenerator {
|
|||||||
StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null);
|
StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null);
|
||||||
JavacOptions options = JavacOptions.parse(compiler, fileManager, args);
|
JavacOptions options = JavacOptions.parse(compiler, fileManager, args);
|
||||||
List<String> unrecognizedOptions = options.getUnrecognizedOptions();
|
List<String> unrecognizedOptions = options.getUnrecognizedOptions();
|
||||||
if (!unrecognizedOptions.isEmpty())
|
if (!unrecognizedOptions.isEmpty()) {
|
||||||
Logger.getLogger(SchemaGenerator.class.getName()).log(Level.WARNING, "Unrecognized options found: {0}", unrecognizedOptions);
|
LOGGER.log(Level.WARNING, "Unrecognized options found: {0}", unrecognizedOptions);
|
||||||
|
}
|
||||||
Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromFiles(options.getFiles());
|
Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromFiles(options.getFiles());
|
||||||
JavaCompiler.CompilationTask task = compiler.getTask(
|
JavaCompiler.CompilationTask task = compiler.getTask(
|
||||||
null,
|
null,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -58,11 +58,7 @@ public class Options {
|
|||||||
public void parseArguments(String[] args) throws BadCommandLineException {
|
public void parseArguments(String[] args) throws BadCommandLineException {
|
||||||
for (int i = 0 ; i <args.length; i++) {
|
for (int i = 0 ; i <args.length; i++) {
|
||||||
if (args[i].charAt(0)== '-') {
|
if (args[i].charAt(0)== '-') {
|
||||||
int j = parseArgument(args,i);
|
i += parseArgument(args, i);
|
||||||
if(j==0)
|
|
||||||
throw new BadCommandLineException(
|
|
||||||
Messages.UNRECOGNIZED_PARAMETER.format(args[i]));
|
|
||||||
i += j;
|
|
||||||
} else {
|
} else {
|
||||||
arguments.add(args[i]);
|
arguments.add(args[i]);
|
||||||
}
|
}
|
||||||
@ -90,11 +86,8 @@ public class Options {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (args[i].equals(DISABLE_XML_SECURITY)) {
|
if (args[i].equals(DISABLE_XML_SECURITY)) {
|
||||||
if (i == args.length - 1)
|
|
||||||
throw new BadCommandLineException(
|
|
||||||
(Messages.OPERAND_MISSING.format(args[i])));
|
|
||||||
disableXmlSecurity = true;
|
disableXmlSecurity = true;
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args[i].equals("-encoding")) {
|
if (args[i].equals("-encoding")) {
|
||||||
@ -114,8 +107,8 @@ public class Options {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
throw new BadCommandLineException(
|
||||||
|
Messages.UNRECOGNIZED_PARAMETER.format(args[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -171,20 +171,20 @@ Driver.CompilingSchema = \
|
|||||||
Driver.FailedToGenerateCode = \
|
Driver.FailedToGenerateCode = \
|
||||||
Failed to produce code.
|
Failed to produce code.
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = \
|
Driver.FilePrologComment = \
|
||||||
This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11-b140528.1207 \n\
|
This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.12-b141016.1821 \n\
|
||||||
See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \n\
|
See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \n\
|
||||||
Any modifications to this file will be lost upon recompilation of the source schema. \n\
|
Any modifications to this file will be lost upon recompilation of the source schema. \n\
|
||||||
Generated on: {0} \n
|
Generated on: {0} \n
|
||||||
|
|
||||||
Driver.Version = \
|
Driver.Version = \
|
||||||
xjc 2.2.11-b140528.1207
|
xjc 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = \
|
Driver.FullVersion = \
|
||||||
xjc full version "2.2.11-b140528.1207"
|
xjc full version "2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -96,14 +96,14 @@ Driver.CompilingSchema = Ein Schema wird kompiliert ...
|
|||||||
|
|
||||||
Driver.FailedToGenerateCode = Code konnte nicht erzeugt werden.
|
Driver.FailedToGenerateCode = Code konnte nicht erzeugt werden.
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11-b140528.1207 generiert \nSiehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \n\u00c4nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. \nGeneriert: {0} \n
|
Driver.FilePrologComment = Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.12-b141016.1821 generiert \nSiehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \n\u00c4nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. \nGeneriert: {0} \n
|
||||||
|
|
||||||
Driver.Version = xjc 2.2.11-b140528.1207
|
Driver.Version = xjc 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = xjc vollst\u00E4ndige Version "2.2.11-b140528.1207"
|
Driver.FullVersion = xjc vollst\u00E4ndige Version "2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -96,14 +96,14 @@ Driver.CompilingSchema = Compilando un esquema...
|
|||||||
|
|
||||||
Driver.FailedToGenerateCode = Fallo al producir c\u00f3digo.
|
Driver.FailedToGenerateCode = Fallo al producir c\u00f3digo.
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = Este archivo ha sido generado por la arquitectura JavaTM para la implantaci\u00f3n de la referencia de enlace (JAXB) XML v2.2.11-b140528.1207 \nVisite <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \nTodas las modificaciones realizadas en este archivo se perder\u00e1n si se vuelve a compilar el esquema de origen. \nGenerado el: {0} \n
|
Driver.FilePrologComment = Este archivo ha sido generado por la arquitectura JavaTM para la implantaci\u00f3n de la referencia de enlace (JAXB) XML v2.2.12-b141016.1821 \nVisite <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \nTodas las modificaciones realizadas en este archivo se perder\u00e1n si se vuelve a compilar el esquema de origen. \nGenerado el: {0} \n
|
||||||
|
|
||||||
Driver.Version = xjc 2.2.11-b140528.1207
|
Driver.Version = xjc 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = versi\u00F3n completa de xjc "2.2.11-b140528.1207"
|
Driver.FullVersion = versi\u00F3n completa de xjc "2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -96,14 +96,14 @@ Driver.CompilingSchema = compilation d'un sch\u00e9ma...
|
|||||||
|
|
||||||
Driver.FailedToGenerateCode = Echec de la production du code.
|
Driver.FailedToGenerateCode = Echec de la production du code.
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = Ce fichier a \u00e9t\u00e9 g\u00e9n\u00e9r\u00e9 par l''impl\u00e9mentation de r\u00e9f\u00e9rence JavaTM Architecture for XML Binding (JAXB), v2.2.11-b140528.1207 \nVoir <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \nToute modification apport\u00e9e \u00e0 ce fichier sera perdue lors de la recompilation du sch\u00e9ma source. \nG\u00e9n\u00e9r\u00e9 le : {0} \n
|
Driver.FilePrologComment = Ce fichier a \u00e9t\u00e9 g\u00e9n\u00e9r\u00e9 par l''impl\u00e9mentation de r\u00e9f\u00e9rence JavaTM Architecture for XML Binding (JAXB), v2.2.12-b141016.1821 \nVoir <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \nToute modification apport\u00e9e \u00e0 ce fichier sera perdue lors de la recompilation du sch\u00e9ma source. \nG\u00e9n\u00e9r\u00e9 le : {0} \n
|
||||||
|
|
||||||
Driver.Version = xjc 2.2.11-b140528.1207
|
Driver.Version = xjc 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = version compl\u00E8te xjc "2.2.11-b140528.1207"
|
Driver.FullVersion = version compl\u00E8te xjc "2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -96,14 +96,14 @@ Driver.CompilingSchema = compilazione di uno schema in corso...
|
|||||||
|
|
||||||
Driver.FailedToGenerateCode = Produzione del codice non riuscita.
|
Driver.FailedToGenerateCode = Produzione del codice non riuscita.
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = Questo file \u00e8 stato generato dall''architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.11-b140528.1207 \nVedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \nQualsiasi modifica a questo file andr\u00e0 persa durante la ricompilazione dello schema di origine. \nGenerato il: {0} \n
|
Driver.FilePrologComment = Questo file \u00e8 stato generato dall''architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.12-b141016.1821 \nVedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \nQualsiasi modifica a questo file andr\u00e0 persa durante la ricompilazione dello schema di origine. \nGenerato il: {0} \n
|
||||||
|
|
||||||
Driver.Version = xjc 2.2.11-b140528.1207
|
Driver.Version = xjc 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = versione completa xjc "2.2.11-b140528.1207"
|
Driver.FullVersion = versione completa xjc "2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -96,14 +96,14 @@ Driver.CompilingSchema = \u30b9\u30ad\u30fc\u30de\u306e\u30b3\u30f3\u30d1\u30a4\
|
|||||||
|
|
||||||
Driver.FailedToGenerateCode = \u30b3\u30fc\u30c9\u306e\u751f\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002
|
Driver.FailedToGenerateCode = \u30b3\u30fc\u30c9\u306e\u751f\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = \u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001JavaTM Architecture for XML Binding(JAXB) Reference Implementation\u3001v2.2.11-b140528.1207\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u307e\u3057\u305f \n<a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044 \n\u30bd\u30fc\u30b9\u30fb\u30b9\u30ad\u30fc\u30de\u306e\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u306f\u5931\u308f\u308c\u307e\u3059\u3002 \n\u751f\u6210\u65e5: {0} \n
|
Driver.FilePrologComment = \u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001JavaTM Architecture for XML Binding(JAXB) Reference Implementation\u3001v2.2.12-b141016.1821\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u307e\u3057\u305f \n<a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044 \n\u30bd\u30fc\u30b9\u30fb\u30b9\u30ad\u30fc\u30de\u306e\u518d\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u306f\u5931\u308f\u308c\u307e\u3059\u3002 \n\u751f\u6210\u65e5: {0} \n
|
||||||
|
|
||||||
Driver.Version = xjc 2.2.11-b140528.1207
|
Driver.Version = xjc 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = xjc\u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3"2.2.11-b140528.1207"
|
Driver.FullVersion = xjc\u30D5\u30EB\u30FB\u30D0\u30FC\u30B8\u30E7\u30F3"2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -96,14 +96,14 @@ Driver.CompilingSchema = \uc2a4\ud0a4\ub9c8\ub97c \ucef4\ud30c\uc77c\ud558\ub294
|
|||||||
|
|
||||||
Driver.FailedToGenerateCode = \ucf54\ub4dc \uc0dd\uc131\uc744 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.
|
Driver.FailedToGenerateCode = \ucf54\ub4dc \uc0dd\uc131\uc744 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = \uc774 \ud30c\uc77c\uc740 JAXB(JavaTM Architecture for XML Binding) \ucc38\uc870 \uad6c\ud604 2.2.11-b140528.1207 \ubc84\uc804\uc744 \ud1b5\ud574 \uc0dd\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \n<a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>\ub97c \ucc38\uc870\ud558\uc2ed\uc2dc\uc624. \n\uc774 \ud30c\uc77c\uc744 \uc218\uc815\ud558\uba74 \uc18c\uc2a4 \uc2a4\ud0a4\ub9c8\ub97c \uc7ac\ucef4\ud30c\uc77c\ud560 \ub54c \uc218\uc815 \uc0ac\ud56d\uc774 \uc190\uc2e4\ub429\ub2c8\ub2e4. \n\uc0dd\uc131 \ub0a0\uc9dc: {0} \n
|
Driver.FilePrologComment = \uc774 \ud30c\uc77c\uc740 JAXB(JavaTM Architecture for XML Binding) \ucc38\uc870 \uad6c\ud604 2.2.12-b141016.1821 \ubc84\uc804\uc744 \ud1b5\ud574 \uc0dd\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \n<a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>\ub97c \ucc38\uc870\ud558\uc2ed\uc2dc\uc624. \n\uc774 \ud30c\uc77c\uc744 \uc218\uc815\ud558\uba74 \uc18c\uc2a4 \uc2a4\ud0a4\ub9c8\ub97c \uc7ac\ucef4\ud30c\uc77c\ud560 \ub54c \uc218\uc815 \uc0ac\ud56d\uc774 \uc190\uc2e4\ub429\ub2c8\ub2e4. \n\uc0dd\uc131 \ub0a0\uc9dc: {0} \n
|
||||||
|
|
||||||
Driver.Version = XJC 2.2.11-b140528.1207
|
Driver.Version = XJC 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = XJC \uC815\uC2DD \uBC84\uC804 "2.2.11-b140528.1207"
|
Driver.FullVersion = XJC \uC815\uC2DD \uBC84\uC804 "2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -96,14 +96,14 @@ Driver.CompilingSchema = compilando um esquema...
|
|||||||
|
|
||||||
Driver.FailedToGenerateCode = Falha ao produzir o c\u00f3digo.
|
Driver.FailedToGenerateCode = Falha ao produzir o c\u00f3digo.
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = Este arquivo foi gerado pela Arquitetura JavaTM para Implementa\u00e7\u00e3o de Refer\u00eancia (JAXB) de Bind XML, v2.2.11-b140528.1207 \nConsulte <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \nTodas as modifica\u00e7\u00f5es neste arquivo ser\u00e3o perdidas ap\u00f3s a recompila\u00e7\u00e3o do esquema de origem. \nGerado em: {0} \n
|
Driver.FilePrologComment = Este arquivo foi gerado pela Arquitetura JavaTM para Implementa\u00e7\u00e3o de Refer\u00eancia (JAXB) de Bind XML, v2.2.12-b141016.1821 \nConsulte <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \nTodas as modifica\u00e7\u00f5es neste arquivo ser\u00e3o perdidas ap\u00f3s a recompila\u00e7\u00e3o do esquema de origem. \nGerado em: {0} \n
|
||||||
|
|
||||||
Driver.Version = xjc 2.2.11-b140528.1207
|
Driver.Version = xjc 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = vers\u00E3o completa de xjc "2.2.11-b140528.1207"
|
Driver.FullVersion = vers\u00E3o completa de xjc "2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -96,14 +96,14 @@ Driver.CompilingSchema = \u6b63\u5728\u7f16\u8bd1\u6a21\u5f0f...
|
|||||||
|
|
||||||
Driver.FailedToGenerateCode = \u65e0\u6cd5\u751f\u6210\u4ee3\u7801\u3002
|
Driver.FailedToGenerateCode = \u65e0\u6cd5\u751f\u6210\u4ee3\u7801\u3002
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = \u6b64\u6587\u4ef6\u662f\u7531 JavaTM Architecture for XML Binding (JAXB) \u5f15\u7528\u5b9e\u73b0 v2.2.11-b140528.1207 \u751f\u6210\u7684\n\u8bf7\u8bbf\u95ee <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \n\u5728\u91cd\u65b0\u7f16\u8bd1\u6e90\u6a21\u5f0f\u65f6, \u5bf9\u6b64\u6587\u4ef6\u7684\u6240\u6709\u4fee\u6539\u90fd\u5c06\u4e22\u5931\u3002\n\u751f\u6210\u65f6\u95f4: {0} \n
|
Driver.FilePrologComment = \u6b64\u6587\u4ef6\u662f\u7531 JavaTM Architecture for XML Binding (JAXB) \u5f15\u7528\u5b9e\u73b0 v2.2.12-b141016.1821 \u751f\u6210\u7684\n\u8bf7\u8bbf\u95ee <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \n\u5728\u91cd\u65b0\u7f16\u8bd1\u6e90\u6a21\u5f0f\u65f6, \u5bf9\u6b64\u6587\u4ef6\u7684\u6240\u6709\u4fee\u6539\u90fd\u5c06\u4e22\u5931\u3002\n\u751f\u6210\u65f6\u95f4: {0} \n
|
||||||
|
|
||||||
Driver.Version = xjc 2.2.11-b140528.1207
|
Driver.Version = xjc 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = xjc \u5B8C\u6574\u7248\u672C "2.2.11-b140528.1207"
|
Driver.FullVersion = xjc \u5B8C\u6574\u7248\u672C "2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -96,14 +96,14 @@ Driver.CompilingSchema = \u6b63\u5728\u7de8\u8b6f\u7db1\u8981...
|
|||||||
|
|
||||||
Driver.FailedToGenerateCode = \u7121\u6cd5\u7522\u751f\u7a0b\u5f0f\u78bc.
|
Driver.FailedToGenerateCode = \u7121\u6cd5\u7522\u751f\u7a0b\u5f0f\u78bc.
|
||||||
|
|
||||||
# DO NOT localize the 2.2.11-b140528.1207 string - it is a token for an mvn <properties filter>
|
# DO NOT localize the 2.2.12-b141016.1821 string - it is a token for an mvn <properties filter>
|
||||||
Driver.FilePrologComment = \u6b64\u6a94\u6848\u662f\u7531 JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11-b140528.1207 \u6240\u7522\u751f \n\u8acb\u53c3\u95b1 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \n\u4e00\u65e6\u91cd\u65b0\u7de8\u8b6f\u4f86\u6e90\u7db1\u8981, \u5c0d\u6b64\u6a94\u6848\u6240\u505a\u7684\u4efb\u4f55\u4fee\u6539\u90fd\u5c07\u6703\u907a\u5931. \n\u7522\u751f\u6642\u9593: {0} \n
|
Driver.FilePrologComment = \u6b64\u6a94\u6848\u662f\u7531 JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.12-b141016.1821 \u6240\u7522\u751f \n\u8acb\u53c3\u95b1 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \n\u4e00\u65e6\u91cd\u65b0\u7de8\u8b6f\u4f86\u6e90\u7db1\u8981, \u5c0d\u6b64\u6a94\u6848\u6240\u505a\u7684\u4efb\u4f55\u4fee\u6539\u90fd\u5c07\u6703\u907a\u5931. \n\u7522\u751f\u6642\u9593: {0} \n
|
||||||
|
|
||||||
Driver.Version = xjc 2.2.11-b140528.1207
|
Driver.Version = xjc 2.2.12-b141016.1821
|
||||||
|
|
||||||
Driver.FullVersion = xjc \u5B8C\u6574\u7248\u672C "2.2.11-b140528.1207"
|
Driver.FullVersion = xjc \u5B8C\u6574\u7248\u672C "2.2.12-b141016.1821"
|
||||||
|
|
||||||
Driver.BuildID = 2.2.11-b140528.1207
|
Driver.BuildID = 2.2.12-b141016.1821
|
||||||
|
|
||||||
# for JDK integration - include version in source zip
|
# for JDK integration - include version in source zip
|
||||||
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
jaxb.jdk.version=@@JAXB_JDK_VERSION@@
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,24 +25,15 @@
|
|||||||
|
|
||||||
package com.sun.tools.internal.xjc.addon.episode;
|
package com.sun.tools.internal.xjc.addon.episode;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileOutputStream;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.OutputStream;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import com.sun.tools.internal.xjc.BadCommandLineException;
|
import com.sun.tools.internal.xjc.BadCommandLineException;
|
||||||
import com.sun.tools.internal.xjc.Options;
|
import com.sun.tools.internal.xjc.Options;
|
||||||
import com.sun.tools.internal.xjc.Plugin;
|
import com.sun.tools.internal.xjc.Plugin;
|
||||||
import com.sun.tools.internal.xjc.outline.ClassOutline;
|
import com.sun.tools.internal.xjc.outline.ClassOutline;
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
|
||||||
import com.sun.tools.internal.xjc.outline.EnumOutline;
|
import com.sun.tools.internal.xjc.outline.EnumOutline;
|
||||||
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.tools.internal.xjc.reader.Const;
|
import com.sun.tools.internal.xjc.reader.Const;
|
||||||
|
import com.sun.xml.internal.bind.v2.schemagen.episode.Bindings;
|
||||||
|
import com.sun.xml.internal.bind.v2.schemagen.episode.SchemaBindings;
|
||||||
import com.sun.xml.internal.txw2.TXW;
|
import com.sun.xml.internal.txw2.TXW;
|
||||||
import com.sun.xml.internal.txw2.output.StreamSerializer;
|
import com.sun.xml.internal.txw2.output.StreamSerializer;
|
||||||
import com.sun.xml.internal.xsom.XSAnnotation;
|
import com.sun.xml.internal.xsom.XSAnnotation;
|
||||||
@ -65,13 +56,21 @@ import com.sun.xml.internal.xsom.XSSimpleType;
|
|||||||
import com.sun.xml.internal.xsom.XSWildcard;
|
import com.sun.xml.internal.xsom.XSWildcard;
|
||||||
import com.sun.xml.internal.xsom.XSXPath;
|
import com.sun.xml.internal.xsom.XSXPath;
|
||||||
import com.sun.xml.internal.xsom.visitor.XSFunction;
|
import com.sun.xml.internal.xsom.visitor.XSFunction;
|
||||||
import com.sun.xml.internal.bind.v2.schemagen.episode.Bindings;
|
|
||||||
import com.sun.xml.internal.bind.v2.schemagen.episode.SchemaBindings;
|
|
||||||
|
|
||||||
import org.xml.sax.ErrorHandler;
|
import org.xml.sax.ErrorHandler;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.SAXParseException;
|
import org.xml.sax.SAXParseException;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.OutputStream;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the episode file,
|
* Creates the episode file,
|
||||||
*
|
*
|
||||||
@ -106,7 +105,7 @@ public class PluginImpl extends Plugin {
|
|||||||
try {
|
try {
|
||||||
// reorganize qualifying components by their namespaces to
|
// reorganize qualifying components by their namespaces to
|
||||||
// generate the list nicely
|
// generate the list nicely
|
||||||
Map<XSSchema, PerSchemaOutlineAdaptors> perSchema = new HashMap<XSSchema,PerSchemaOutlineAdaptors>();
|
Map<XSSchema, PerSchemaOutlineAdaptors> perSchema = new LinkedHashMap<XSSchema, PerSchemaOutlineAdaptors>();
|
||||||
boolean hasComponentInNoNamespace = false;
|
boolean hasComponentInNoNamespace = false;
|
||||||
|
|
||||||
// Combine classes and enums into a single list
|
// Combine classes and enums into a single list
|
||||||
@ -172,10 +171,9 @@ public class PluginImpl extends Plugin {
|
|||||||
group.scd("x-schema::"+(tns.equals("")?"":"tns"));
|
group.scd("x-schema::"+(tns.equals("")?"":"tns"));
|
||||||
SchemaBindings schemaBindings = group.schemaBindings();
|
SchemaBindings schemaBindings = group.schemaBindings();
|
||||||
schemaBindings.map(false);
|
schemaBindings.map(false);
|
||||||
if (ps.packageNames.size() == 1)
|
if (ps.packageNames.size() == 1) {
|
||||||
{
|
final String packageName = ps.packageNames.iterator().next();
|
||||||
final String packageName = ps.packageNames.iterator().next();
|
if (packageName != null && packageName.length() > 0) {
|
||||||
if (packageName != null && packageName.length() > 0) {
|
|
||||||
schemaBindings._package().name(packageName);
|
schemaBindings._package().name(packageName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -285,7 +283,6 @@ public class PluginImpl extends Plugin {
|
|||||||
CLASS(new BindingsBuilder() {
|
CLASS(new BindingsBuilder() {
|
||||||
public void build(OutlineAdaptor adaptor, Bindings bindings) {
|
public void build(OutlineAdaptor adaptor, Bindings bindings) {
|
||||||
bindings.klass().ref(adaptor.implName);
|
bindings.klass().ref(adaptor.implName);
|
||||||
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
ENUM(new BindingsBuilder() {
|
ENUM(new BindingsBuilder() {
|
||||||
@ -304,7 +301,7 @@ public class PluginImpl extends Plugin {
|
|||||||
void build(OutlineAdaptor adaptor, Bindings bindings);
|
void build(OutlineAdaptor adaptor, Bindings bindings);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
private final XSComponent schemaComponent;
|
private final XSComponent schemaComponent;
|
||||||
private final OutlineType outlineType;
|
private final OutlineType outlineType;
|
||||||
@ -331,10 +328,9 @@ public class PluginImpl extends Plugin {
|
|||||||
|
|
||||||
private final Set<String> packageNames = new HashSet<String>();
|
private final Set<String> packageNames = new HashSet<String>();
|
||||||
|
|
||||||
private void add(OutlineAdaptor outlineAdaptor)
|
private void add(OutlineAdaptor outlineAdaptor) {
|
||||||
{
|
this.outlineAdaptors.add(outlineAdaptor);
|
||||||
this.outlineAdaptors.add(outlineAdaptor);
|
this.packageNames.add(outlineAdaptor.packageName);
|
||||||
this.packageNames.add(outlineAdaptor.packageName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -31,16 +31,12 @@ import javax.xml.namespace.QName;
|
|||||||
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
||||||
import com.sun.tools.internal.xjc.outline.ClassOutline;
|
import com.sun.tools.internal.xjc.outline.ClassOutline;
|
||||||
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
||||||
import com.sun.tools.internal.xjc.model.CElementInfo;
|
import com.sun.tools.internal.xjc.model.CElementInfo;
|
||||||
import com.sun.tools.internal.xjc.model.CReferencePropertyInfo;
|
import com.sun.tools.internal.xjc.model.CReferencePropertyInfo;
|
||||||
import com.sun.codemodel.internal.JType;
|
|
||||||
import com.sun.codemodel.internal.JExpression;
|
import com.sun.codemodel.internal.JExpression;
|
||||||
import com.sun.codemodel.internal.JBlock;
|
import com.sun.codemodel.internal.JBlock;
|
||||||
import com.sun.codemodel.internal.JVar;
|
|
||||||
import com.sun.codemodel.internal.JConditional;
|
|
||||||
import com.sun.codemodel.internal.JExpr;
|
import com.sun.codemodel.internal.JExpr;
|
||||||
import com.sun.codemodel.internal.JCodeModel;
|
import com.sun.codemodel.internal.JCodeModel;
|
||||||
import com.sun.codemodel.internal.JInvocation;
|
import com.sun.codemodel.internal.JInvocation;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -40,7 +40,7 @@ import com.sun.codemodel.internal.JForEach;
|
|||||||
import com.sun.codemodel.internal.JType;
|
import com.sun.codemodel.internal.JType;
|
||||||
import com.sun.codemodel.internal.JVar;
|
import com.sun.codemodel.internal.JVar;
|
||||||
import com.sun.tools.internal.xjc.model.CElementInfo;
|
import com.sun.tools.internal.xjc.model.CElementInfo;
|
||||||
import static com.sun.tools.internal.xjc.outline.Aspect.EXPOSED;
|
import static com.sun.tools.internal.xjc.model.Aspect.EXPOSED;
|
||||||
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
||||||
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -26,7 +26,6 @@
|
|||||||
package com.sun.tools.internal.xjc.api.impl.s2j;
|
package com.sun.tools.internal.xjc.api.impl.s2j;
|
||||||
|
|
||||||
import javax.xml.bind.JAXBElement;
|
import javax.xml.bind.JAXBElement;
|
||||||
import javax.xml.namespace.QName;
|
|
||||||
|
|
||||||
import com.sun.codemodel.internal.JType;
|
import com.sun.codemodel.internal.JType;
|
||||||
import com.sun.codemodel.internal.JBlock;
|
import com.sun.codemodel.internal.JBlock;
|
||||||
@ -34,9 +33,7 @@ import com.sun.codemodel.internal.JVar;
|
|||||||
import com.sun.codemodel.internal.JConditional;
|
import com.sun.codemodel.internal.JConditional;
|
||||||
import com.sun.codemodel.internal.JExpr;
|
import com.sun.codemodel.internal.JExpr;
|
||||||
import com.sun.codemodel.internal.JExpression;
|
import com.sun.codemodel.internal.JExpression;
|
||||||
import com.sun.codemodel.internal.JCodeModel;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.codemodel.internal.JInvocation;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
||||||
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
||||||
import com.sun.tools.internal.xjc.model.CElementInfo;
|
import com.sun.tools.internal.xjc.model.CElementInfo;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -36,7 +36,7 @@ import com.sun.tools.internal.xjc.generator.annotation.spec.XmlJavaTypeAdapterWr
|
|||||||
import com.sun.tools.internal.xjc.model.CAdapter;
|
import com.sun.tools.internal.xjc.model.CAdapter;
|
||||||
import com.sun.tools.internal.xjc.model.TypeUse;
|
import com.sun.tools.internal.xjc.model.TypeUse;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import static com.sun.tools.internal.xjc.outline.Aspect.EXPOSED;
|
import static com.sun.tools.internal.xjc.model.Aspect.EXPOSED;
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.xml.internal.bind.v2.runtime.SwaRefAdapterMarker;
|
import com.sun.xml.internal.bind.v2.runtime.SwaRefAdapterMarker;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package com.sun.tools.internal.xjc.generator.bean;
|
package com.sun.tools.internal.xjc.generator.bean;
|
||||||
|
|
||||||
import static com.sun.tools.internal.xjc.outline.Aspect.EXPOSED;
|
import static com.sun.tools.internal.xjc.model.Aspect.EXPOSED;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@ -90,7 +90,7 @@ import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
|||||||
import com.sun.tools.internal.xjc.model.CTypeRef;
|
import com.sun.tools.internal.xjc.model.CTypeRef;
|
||||||
import com.sun.tools.internal.xjc.model.Model;
|
import com.sun.tools.internal.xjc.model.Model;
|
||||||
import com.sun.tools.internal.xjc.model.CClassRef;
|
import com.sun.tools.internal.xjc.model.CClassRef;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.ClassOutline;
|
import com.sun.tools.internal.xjc.outline.ClassOutline;
|
||||||
import com.sun.tools.internal.xjc.outline.EnumConstantOutline;
|
import com.sun.tools.internal.xjc.outline.EnumConstantOutline;
|
||||||
import com.sun.tools.internal.xjc.outline.EnumOutline;
|
import com.sun.tools.internal.xjc.outline.EnumOutline;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -39,7 +39,7 @@ import com.sun.codemodel.internal.JMethod;
|
|||||||
import com.sun.codemodel.internal.JMod;
|
import com.sun.codemodel.internal.JMod;
|
||||||
import com.sun.codemodel.internal.JType;
|
import com.sun.codemodel.internal.JType;
|
||||||
import com.sun.tools.internal.xjc.model.CElementInfo;
|
import com.sun.tools.internal.xjc.model.CElementInfo;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.ElementOutline;
|
import com.sun.tools.internal.xjc.outline.ElementOutline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -42,7 +42,7 @@ import com.sun.codemodel.internal.JType;
|
|||||||
import com.sun.codemodel.internal.JVar;
|
import com.sun.codemodel.internal.JVar;
|
||||||
import com.sun.tools.internal.xjc.generator.annotation.spec.XmlAccessorTypeWriter;
|
import com.sun.tools.internal.xjc.generator.annotation.spec.XmlAccessorTypeWriter;
|
||||||
import com.sun.tools.internal.xjc.model.CClassInfo;
|
import com.sun.tools.internal.xjc.model.CClassInfo;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -26,7 +26,7 @@
|
|||||||
METHOD_COLLISION = \
|
METHOD_COLLISION = \
|
||||||
The "{0}" method is defined on both "{1}" and "{2}" and is causing a collision.
|
The "{0}" method is defined on both "{1}" and "{2}" and is causing a collision.
|
||||||
|
|
||||||
# {0} - enumeration constant value (but something that couldn<EFBFBD>t be translated to a valid java identifier e.g. starting special character, number, ..) e.g. Cannot derive a valid Java identifier from "5.6.0". Specify a customization to change the name.
|
# {0} - enumeration constant value (but something that couldn't be translated to a valid java identifier e.g. starting special character, number, ..) e.g. Cannot derive a valid Java identifier from "5.6.0". Specify a customization to change the name.
|
||||||
ERR_UNUSABLE_NAME = \
|
ERR_UNUSABLE_NAME = \
|
||||||
Cannot derive a valid Java identifier from "{0}". Specify a customization to change the name.
|
Cannot derive a valid Java identifier from "{0}". Specify a customization to change the name.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -51,7 +51,7 @@ import com.sun.tools.internal.xjc.model.CElementInfo;
|
|||||||
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
||||||
import com.sun.tools.internal.xjc.model.Constructor;
|
import com.sun.tools.internal.xjc.model.Constructor;
|
||||||
import com.sun.tools.internal.xjc.model.Model;
|
import com.sun.tools.internal.xjc.model.Model;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
||||||
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
||||||
import com.sun.xml.internal.bind.v2.TODO;
|
import com.sun.xml.internal.bind.v2.TODO;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -49,7 +49,7 @@ import com.sun.tools.internal.xjc.model.CTypeRef;
|
|||||||
import com.sun.tools.internal.xjc.model.CValuePropertyInfo;
|
import com.sun.tools.internal.xjc.model.CValuePropertyInfo;
|
||||||
import com.sun.tools.internal.xjc.model.Model;
|
import com.sun.tools.internal.xjc.model.Model;
|
||||||
import com.sun.tools.internal.xjc.outline.PackageOutline;
|
import com.sun.tools.internal.xjc.outline.PackageOutline;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link PackageOutline} enhanced with schema2java specific
|
* {@link PackageOutline} enhanced with schema2java specific
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -32,7 +32,7 @@ import com.sun.codemodel.internal.JPackage;
|
|||||||
import com.sun.codemodel.internal.fmt.JPropertyFile;
|
import com.sun.codemodel.internal.fmt.JPropertyFile;
|
||||||
import com.sun.tools.internal.xjc.model.CElementInfo;
|
import com.sun.tools.internal.xjc.model.CElementInfo;
|
||||||
import com.sun.tools.internal.xjc.model.Model;
|
import com.sun.tools.internal.xjc.model.Model;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.runtime.JAXBContextFactory;
|
import com.sun.tools.internal.xjc.runtime.JAXBContextFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -28,7 +28,7 @@ package com.sun.tools.internal.xjc.generator.bean;
|
|||||||
import com.sun.codemodel.internal.JPackage;
|
import com.sun.codemodel.internal.JPackage;
|
||||||
import com.sun.tools.internal.xjc.model.CElementInfo;
|
import com.sun.tools.internal.xjc.model.CElementInfo;
|
||||||
import com.sun.tools.internal.xjc.model.Model;
|
import com.sun.tools.internal.xjc.model.Model;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates public ObjectFactory.
|
* Generates public ObjectFactory.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -63,8 +63,8 @@ import com.sun.tools.internal.xjc.model.CTypeInfo;
|
|||||||
import com.sun.tools.internal.xjc.model.CTypeRef;
|
import com.sun.tools.internal.xjc.model.CTypeRef;
|
||||||
import com.sun.tools.internal.xjc.model.CValuePropertyInfo;
|
import com.sun.tools.internal.xjc.model.CValuePropertyInfo;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NClass;
|
import com.sun.tools.internal.xjc.model.nav.NClass;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import static com.sun.tools.internal.xjc.outline.Aspect.IMPLEMENTATION;
|
import static com.sun.tools.internal.xjc.model.Aspect.IMPLEMENTATION;
|
||||||
import com.sun.tools.internal.xjc.outline.ClassOutline;
|
import com.sun.tools.internal.xjc.outline.ClassOutline;
|
||||||
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
||||||
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
import com.sun.tools.internal.xjc.outline.FieldOutline;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -38,7 +38,7 @@ import com.sun.codemodel.internal.JVar;
|
|||||||
import com.sun.tools.internal.xjc.generator.bean.ClassOutlineImpl;
|
import com.sun.tools.internal.xjc.generator.bean.ClassOutlineImpl;
|
||||||
import com.sun.tools.internal.xjc.generator.bean.MethodWriter;
|
import com.sun.tools.internal.xjc.generator.bean.MethodWriter;
|
||||||
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.xml.internal.bind.api.impl.NameConverter;
|
import com.sun.xml.internal.bind.api.impl.NameConverter;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -40,7 +40,7 @@ import com.sun.tools.internal.xjc.generator.bean.MethodWriter;
|
|||||||
import com.sun.tools.internal.xjc.model.CElement;
|
import com.sun.tools.internal.xjc.model.CElement;
|
||||||
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
||||||
import com.sun.tools.internal.xjc.model.CReferencePropertyInfo;
|
import com.sun.tools.internal.xjc.model.CReferencePropertyInfo;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.xml.internal.bind.api.impl.NameConverter;
|
import com.sun.xml.internal.bind.api.impl.NameConverter;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -35,7 +35,7 @@ import com.sun.codemodel.internal.JVar;
|
|||||||
import com.sun.tools.internal.xjc.generator.bean.ClassOutlineImpl;
|
import com.sun.tools.internal.xjc.generator.bean.ClassOutlineImpl;
|
||||||
import com.sun.tools.internal.xjc.generator.bean.MethodWriter;
|
import com.sun.tools.internal.xjc.generator.bean.MethodWriter;
|
||||||
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
import com.sun.tools.internal.xjc.model.CPropertyInfo;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
import com.sun.tools.internal.xjc.outline.FieldAccessor;
|
||||||
import com.sun.xml.internal.bind.api.impl.NameConverter;
|
import com.sun.xml.internal.bind.api.impl.NameConverter;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -23,7 +23,7 @@
|
|||||||
* questions.
|
* questions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.sun.tools.internal.xjc.outline;
|
package com.sun.tools.internal.xjc.model;
|
||||||
|
|
||||||
import com.sun.tools.internal.xjc.generator.bean.ImplStructureStrategy;
|
import com.sun.tools.internal.xjc.generator.bean.ImplStructureStrategy;
|
||||||
|
|
||||||
@ -35,8 +35,6 @@ import com.sun.tools.internal.xjc.generator.bean.ImplStructureStrategy;
|
|||||||
* This is an enumeration of all possible aspects.
|
* This is an enumeration of all possible aspects.
|
||||||
*
|
*
|
||||||
* @author Kohsuke Kawaguchi
|
* @author Kohsuke Kawaguchi
|
||||||
*
|
|
||||||
* TODO: move this to the model package
|
|
||||||
*/
|
*/
|
||||||
public enum Aspect {
|
public enum Aspect {
|
||||||
/**
|
/**
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -34,7 +34,6 @@ import com.sun.tools.internal.xjc.model.nav.EagerNClass;
|
|||||||
import com.sun.tools.internal.xjc.model.nav.NClass;
|
import com.sun.tools.internal.xjc.model.nav.NClass;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl;
|
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.xml.internal.bind.v2.model.core.Adapter;
|
import com.sun.xml.internal.bind.v2.model.core.Adapter;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -31,7 +31,6 @@ import com.sun.codemodel.internal.JType;
|
|||||||
import com.sun.xml.internal.bind.v2.model.util.ArrayInfoUtil;
|
import com.sun.xml.internal.bind.v2.model.util.ArrayInfoUtil;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NClass;
|
import com.sun.tools.internal.xjc.model.nav.NClass;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.xml.internal.bind.v2.model.core.ArrayInfo;
|
import com.sun.xml.internal.bind.v2.model.core.ArrayInfo;
|
||||||
import com.sun.xml.internal.xsom.XSComponent;
|
import com.sun.xml.internal.xsom.XSComponent;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -85,6 +85,10 @@ public final class CAttributePropertyInfo extends CSingleTypePropertyInfo implem
|
|||||||
public <V> V accept(CPropertyVisitor<V> visitor) {
|
public <V> V accept(CPropertyVisitor<V> visitor) {
|
||||||
return visitor.onAttribute(this);
|
return visitor.onAttribute(this);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public <R, P> R accept(CPropertyVisitor2<R, P> visitor, P p) {
|
||||||
|
return visitor.visit(this, p);
|
||||||
|
}
|
||||||
|
|
||||||
public final PropertyKind kind() {
|
public final PropertyKind kind() {
|
||||||
return PropertyKind.ATTRIBUTE;
|
return PropertyKind.ATTRIBUTE;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -56,7 +56,6 @@ import com.sun.xml.internal.bind.v2.model.core.LeafInfo;
|
|||||||
import com.sun.xml.internal.bind.v2.runtime.Location;
|
import com.sun.xml.internal.bind.v2.runtime.Location;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl;
|
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.tools.internal.xjc.runtime.ZeroOneBooleanAdapter;
|
import com.sun.tools.internal.xjc.runtime.ZeroOneBooleanAdapter;
|
||||||
import com.sun.tools.internal.xjc.util.NamespaceContextAdapter;
|
import com.sun.tools.internal.xjc.util.NamespaceContextAdapter;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -45,7 +45,6 @@ import com.sun.istack.internal.Nullable;
|
|||||||
import com.sun.tools.internal.xjc.Language;
|
import com.sun.tools.internal.xjc.Language;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NClass;
|
import com.sun.tools.internal.xjc.model.nav.NClass;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.tools.internal.xjc.reader.Ring;
|
import com.sun.tools.internal.xjc.reader.Ring;
|
||||||
import com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder;
|
import com.sun.tools.internal.xjc.reader.xmlschema.BGMBuilder;
|
||||||
@ -57,7 +56,7 @@ import com.sun.xml.internal.xsom.XSComponent;
|
|||||||
import org.xml.sax.Locator;
|
import org.xml.sax.Locator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mutable {@link ClassInfo} represenatation.
|
* Mutable {@link ClassInfo} representation.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Schema parsers build these objects.
|
* Schema parsers build these objects.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -30,14 +30,13 @@ import javax.xml.namespace.QName;
|
|||||||
import com.sun.codemodel.internal.JClass;
|
import com.sun.codemodel.internal.JClass;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NClass;
|
import com.sun.tools.internal.xjc.model.nav.NClass;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIClass;
|
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIClass;
|
||||||
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIEnum;
|
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIEnum;
|
||||||
import com.sun.xml.internal.xsom.XSComponent;
|
import com.sun.xml.internal.xsom.XSComponent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Refernece to an existing class.
|
* Reference to an existing class.
|
||||||
*
|
*
|
||||||
* @author Kohsuke Kawaguchi
|
* @author Kohsuke Kawaguchi
|
||||||
*/
|
*/
|
||||||
@ -45,6 +44,11 @@ public final class CClassRef extends AbstractCElement implements NClass, CClass
|
|||||||
|
|
||||||
private final String fullyQualifiedClassName;
|
private final String fullyQualifiedClassName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cached for both performance and single identity.
|
||||||
|
*/
|
||||||
|
private JClass clazz;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param decl
|
* @param decl
|
||||||
@ -80,11 +84,6 @@ public final class CClassRef extends AbstractCElement implements NClass, CClass
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Cached for both performance and single identity.
|
|
||||||
*/
|
|
||||||
private JClass clazz;
|
|
||||||
|
|
||||||
public JClass toType(Outline o, Aspect aspect) {
|
public JClass toType(Outline o, Aspect aspect) {
|
||||||
if(clazz==null)
|
if(clazz==null)
|
||||||
clazz = o.getCodeModel().ref(fullyQualifiedClassName);
|
clazz = o.getCodeModel().ref(fullyQualifiedClassName);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -43,7 +43,6 @@ import static com.sun.tools.internal.xjc.model.CElementPropertyInfo.CollectionMo
|
|||||||
import com.sun.tools.internal.xjc.model.nav.NClass;
|
import com.sun.tools.internal.xjc.model.nav.NClass;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl;
|
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIInlineBinaryData;
|
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIInlineBinaryData;
|
||||||
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIFactoryMethod;
|
import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIFactoryMethod;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -169,6 +169,11 @@ public final class CElementPropertyInfo extends CPropertyInfo implements Element
|
|||||||
return visitor.onElement(this);
|
return visitor.onElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <R, P> R accept(CPropertyVisitor2<R, P> visitor, P p) {
|
||||||
|
return visitor.visit(this, p);
|
||||||
|
}
|
||||||
|
|
||||||
public CAdapter getAdapter() {
|
public CAdapter getAdapter() {
|
||||||
return adapter;
|
return adapter;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -34,7 +34,6 @@ import com.sun.codemodel.internal.JClass;
|
|||||||
import com.sun.codemodel.internal.JExpression;
|
import com.sun.codemodel.internal.JExpression;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NClass;
|
import com.sun.tools.internal.xjc.model.nav.NClass;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.xml.internal.bind.v2.model.annotation.Locatable;
|
import com.sun.xml.internal.bind.v2.model.annotation.Locatable;
|
||||||
import com.sun.xml.internal.bind.v2.model.core.EnumLeafInfo;
|
import com.sun.xml.internal.bind.v2.model.core.EnumLeafInfo;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -42,7 +42,6 @@ import com.sun.tools.internal.xjc.model.nav.NClass;
|
|||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.reader.Ring;
|
import com.sun.tools.internal.xjc.reader.Ring;
|
||||||
import com.sun.xml.internal.bind.api.impl.NameConverter;
|
import com.sun.xml.internal.bind.api.impl.NameConverter;
|
||||||
import com.sun.xml.internal.bind.v2.WellKnownNamespace;
|
|
||||||
import com.sun.xml.internal.bind.v2.model.core.PropertyInfo;
|
import com.sun.xml.internal.bind.v2.model.core.PropertyInfo;
|
||||||
import com.sun.xml.internal.bind.v2.runtime.RuntimeUtil;
|
import com.sun.xml.internal.bind.v2.runtime.RuntimeUtil;
|
||||||
import com.sun.xml.internal.xsom.XSComponent;
|
import com.sun.xml.internal.xsom.XSComponent;
|
||||||
@ -290,6 +289,8 @@ public abstract class CPropertyInfo implements PropertyInfo<NType,NClass>, CCust
|
|||||||
|
|
||||||
public abstract <V> V accept( CPropertyVisitor<V> visitor );
|
public abstract <V> V accept( CPropertyVisitor<V> visitor );
|
||||||
|
|
||||||
|
public abstract <R, P> R accept( CPropertyVisitor2<R, P> visitor, P p );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given {@link TypeUse} would need an explicit {@link XmlSchemaType}
|
* Checks if the given {@link TypeUse} would need an explicit {@link XmlSchemaType}
|
||||||
* annotation with the given type name.
|
* annotation with the given type name.
|
||||||
|
@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
|
*
|
||||||
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU General Public License version 2 only, as
|
||||||
|
* published by the Free Software Foundation. Oracle designates this
|
||||||
|
* particular file as subject to the "Classpath" exception as provided
|
||||||
|
* by Oracle in the LICENSE file that accompanied this code.
|
||||||
|
*
|
||||||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
* accompanied this code).
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License version
|
||||||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
*
|
||||||
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
|
* or visit www.oracle.com if you need additional information or have any
|
||||||
|
* questions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.sun.tools.internal.xjc.model;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Visitor for {@link CPropertyInfo}.
|
||||||
|
*
|
||||||
|
* The number 2 signals number of arguments.
|
||||||
|
*
|
||||||
|
* @param <R> the return type of this visitor's methods. Use {@link
|
||||||
|
* Void} for visitors that do not need to return results.
|
||||||
|
* @param <P> the type of the additional parameter to this visitor's
|
||||||
|
* methods. Use {@code Void} for visitors that do not need an
|
||||||
|
* additional parameter.
|
||||||
|
*
|
||||||
|
* @see CPropertyInfo#accept(CPropertyVisitor2, Object)
|
||||||
|
*
|
||||||
|
* @author Marcel Valovy
|
||||||
|
*/
|
||||||
|
public interface CPropertyVisitor2<R, P> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Visits a CElementPropertyInfo type.
|
||||||
|
* @param t the type to visit
|
||||||
|
* @param p a visitor-specified parameter
|
||||||
|
* @return a visitor-specified result
|
||||||
|
*/
|
||||||
|
R visit(CElementPropertyInfo t, P p);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Visits a CAttributePropertyInfo type.
|
||||||
|
* @param t the type to visit
|
||||||
|
* @param p a visitor-specified parameter
|
||||||
|
* @return a visitor-specified result
|
||||||
|
*/
|
||||||
|
R visit(CAttributePropertyInfo t, P p);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Visits a CValuePropertyInfo type.
|
||||||
|
* @param t the type to visit
|
||||||
|
* @param p a visitor-specified parameter
|
||||||
|
* @return a visitor-specified result
|
||||||
|
*/
|
||||||
|
R visit(CValuePropertyInfo t, P p);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Visits a CReferencePropertyInfo type.
|
||||||
|
* @param t the type to visit
|
||||||
|
* @param p a visitor-specified parameter
|
||||||
|
* @return a visitor-specified result
|
||||||
|
*/
|
||||||
|
R visit(CReferencePropertyInfo t, P p);
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -171,6 +171,11 @@ public final class CReferencePropertyInfo extends CPropertyInfo implements Refer
|
|||||||
return visitor.onReference(this);
|
return visitor.onReference(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <R, P> R accept(CPropertyVisitor2<R, P> visitor, P p) {
|
||||||
|
return visitor.visit(this, p);
|
||||||
|
}
|
||||||
|
|
||||||
public CAdapter getAdapter() {
|
public CAdapter getAdapter() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -29,7 +29,6 @@ import com.sun.codemodel.internal.JClass;
|
|||||||
import com.sun.codemodel.internal.JType;
|
import com.sun.codemodel.internal.JType;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NClass;
|
import com.sun.tools.internal.xjc.model.nav.NClass;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.xml.internal.bind.v2.model.core.TypeInfo;
|
import com.sun.xml.internal.bind.v2.model.core.TypeInfo;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -52,4 +52,9 @@ public final class CValuePropertyInfo extends CSingleTypePropertyInfo implements
|
|||||||
public <V> V accept(CPropertyVisitor<V> visitor) {
|
public <V> V accept(CPropertyVisitor<V> visitor) {
|
||||||
return visitor.onValue(this);
|
return visitor.onValue(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <R, P> R accept(CPropertyVisitor2<R, P> visitor, P p) {
|
||||||
|
return visitor.visit(this, p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -29,7 +29,6 @@ import com.sun.codemodel.internal.JType;
|
|||||||
import com.sun.tools.internal.xjc.model.nav.NClass;
|
import com.sun.tools.internal.xjc.model.nav.NClass;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NType;
|
import com.sun.tools.internal.xjc.model.nav.NType;
|
||||||
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl;
|
import com.sun.tools.internal.xjc.model.nav.NavigatorImpl;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
import com.sun.xml.internal.bind.v2.model.core.WildcardTypeInfo;
|
import com.sun.xml.internal.bind.v2.model.core.WildcardTypeInfo;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,20 +25,6 @@
|
|||||||
|
|
||||||
package com.sun.tools.internal.xjc.model;
|
package com.sun.tools.internal.xjc.model;
|
||||||
|
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
|
||||||
import javax.xml.bind.annotation.XmlNsForm;
|
|
||||||
import javax.xml.bind.annotation.XmlTransient;
|
|
||||||
import javax.xml.namespace.QName;
|
|
||||||
import javax.xml.transform.Result;
|
|
||||||
|
|
||||||
import com.sun.codemodel.internal.JClass;
|
import com.sun.codemodel.internal.JClass;
|
||||||
import com.sun.codemodel.internal.JCodeModel;
|
import com.sun.codemodel.internal.JCodeModel;
|
||||||
import com.sun.codemodel.internal.JPackage;
|
import com.sun.codemodel.internal.JPackage;
|
||||||
@ -61,11 +47,23 @@ import com.sun.xml.internal.bind.v2.model.nav.Navigator;
|
|||||||
import com.sun.xml.internal.bind.v2.util.FlattenIterator;
|
import com.sun.xml.internal.bind.v2.util.FlattenIterator;
|
||||||
import com.sun.xml.internal.xsom.XSComponent;
|
import com.sun.xml.internal.xsom.XSComponent;
|
||||||
import com.sun.xml.internal.xsom.XSSchemaSet;
|
import com.sun.xml.internal.xsom.XSSchemaSet;
|
||||||
|
|
||||||
import org.xml.sax.Locator;
|
import org.xml.sax.Locator;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.helpers.LocatorImpl;
|
import org.xml.sax.helpers.LocatorImpl;
|
||||||
|
|
||||||
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
import javax.xml.bind.annotation.XmlNsForm;
|
||||||
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
import javax.xml.namespace.QName;
|
||||||
|
import javax.xml.transform.Result;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Root of the object model that represents the code that needs to be generated.
|
* Root of the object model that represents the code that needs to be generated.
|
||||||
*
|
*
|
||||||
@ -92,7 +90,7 @@ public final class Model implements TypeInfoSet<NType,NClass,Void,Void>, CCustom
|
|||||||
* The element mappings.
|
* The element mappings.
|
||||||
*/
|
*/
|
||||||
private final Map<NClass/*scope*/,Map<QName,CElementInfo>> elementMappings =
|
private final Map<NClass/*scope*/,Map<QName,CElementInfo>> elementMappings =
|
||||||
new HashMap<NClass,Map<QName,CElementInfo>>();
|
new LinkedHashMap<NClass, Map<QName, CElementInfo>>();
|
||||||
|
|
||||||
private final Iterable<? extends CElementInfo> allElements =
|
private final Iterable<? extends CElementInfo> allElements =
|
||||||
new Iterable<CElementInfo>() {
|
new Iterable<CElementInfo>() {
|
||||||
@ -132,11 +130,11 @@ public final class Model implements TypeInfoSet<NType,NClass,Void,Void>, CCustom
|
|||||||
* stores the root object of the parse schema model.
|
* stores the root object of the parse schema model.
|
||||||
* Otherwise null.
|
* Otherwise null.
|
||||||
*
|
*
|
||||||
* @sine 2.1.1
|
* @since 2.1.1
|
||||||
*/
|
*/
|
||||||
public final XSSchemaSet schemaComponent;
|
public final XSSchemaSet schemaComponent;
|
||||||
|
|
||||||
private CCustomizations gloablCustomizations = new CCustomizations();
|
private CCustomizations globalCustomizations = new CCustomizations();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param nc
|
* @param nc
|
||||||
@ -152,13 +150,13 @@ public final class Model implements TypeInfoSet<NType,NClass,Void,Void>, CCustom
|
|||||||
this.defaultSymbolSpace = new SymbolSpace(codeModel);
|
this.defaultSymbolSpace = new SymbolSpace(codeModel);
|
||||||
defaultSymbolSpace.setType(codeModel.ref(Object.class));
|
defaultSymbolSpace.setType(codeModel.ref(Object.class));
|
||||||
|
|
||||||
elementMappings.put(null,new HashMap<QName,CElementInfo>());
|
elementMappings.put(null, new LinkedHashMap<QName, CElementInfo>());
|
||||||
|
|
||||||
if(opts.automaticNameConflictResolution)
|
if(opts.automaticNameConflictResolution)
|
||||||
allocator = new AutoClassNameAllocator(allocator);
|
allocator = new AutoClassNameAllocator(allocator);
|
||||||
this.allocator = new ClassNameAllocatorWrapper(allocator);
|
this.allocator = new ClassNameAllocatorWrapper(allocator);
|
||||||
this.schemaComponent = schemaComponent;
|
this.schemaComponent = schemaComponent;
|
||||||
this.gloablCustomizations.setParent(this,this);
|
this.globalCustomizations.setParent(this, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNameConverter(NameConverter nameConverter) {
|
public void setNameConverter(NameConverter nameConverter) {
|
||||||
@ -320,7 +318,7 @@ public final class Model implements TypeInfoSet<NType,NClass,Void,Void>, CCustom
|
|||||||
* global element declarations to its representation class.
|
* global element declarations to its representation class.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* For other schema languages, it should follow the appendicies in
|
* For other schema languages, it should follow the appendices in
|
||||||
* WSDL (but in practice no one would use WSDL with a schema language
|
* WSDL (but in practice no one would use WSDL with a schema language
|
||||||
* other than XML Schema, so it doesn't really matter.)
|
* other than XML Schema, so it doesn't really matter.)
|
||||||
*
|
*
|
||||||
@ -424,7 +422,7 @@ public final class Model implements TypeInfoSet<NType,NClass,Void,Void>, CCustom
|
|||||||
* Gets the global customizations.
|
* Gets the global customizations.
|
||||||
*/
|
*/
|
||||||
public CCustomizations getCustomizations() {
|
public CCustomizations getCustomizations() {
|
||||||
return gloablCustomizations;
|
return globalCustomizations;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -466,7 +464,7 @@ public final class Model implements TypeInfoSet<NType,NClass,Void,Void>, CCustom
|
|||||||
|
|
||||||
Map<QName,CElementInfo> m = elementMappings.get(clazz);
|
Map<QName,CElementInfo> m = elementMappings.get(clazz);
|
||||||
if(m==null)
|
if(m==null)
|
||||||
elementMappings.put(clazz,m=new HashMap<QName,CElementInfo>());
|
elementMappings.put(clazz, m = new LinkedHashMap<QName, CElementInfo>());
|
||||||
m.put(ei.getElementName(),ei);
|
m.put(ei.getElementName(),ei);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -30,7 +30,7 @@ import java.util.HashSet;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import com.sun.codemodel.internal.JClass;
|
import com.sun.codemodel.internal.JClass;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -28,7 +28,7 @@ package com.sun.tools.internal.xjc.model.nav;
|
|||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
|
|
||||||
import com.sun.codemodel.internal.JType;
|
import com.sun.codemodel.internal.JType;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -26,7 +26,7 @@
|
|||||||
package com.sun.tools.internal.xjc.model.nav;
|
package com.sun.tools.internal.xjc.model.nav;
|
||||||
|
|
||||||
import com.sun.codemodel.internal.JClass;
|
import com.sun.codemodel.internal.JClass;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -26,7 +26,7 @@
|
|||||||
package com.sun.tools.internal.xjc.model.nav;
|
package com.sun.tools.internal.xjc.model.nav;
|
||||||
|
|
||||||
import com.sun.codemodel.internal.JClass;
|
import com.sun.codemodel.internal.JClass;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -26,7 +26,7 @@
|
|||||||
package com.sun.tools.internal.xjc.model.nav;
|
package com.sun.tools.internal.xjc.model.nav;
|
||||||
|
|
||||||
import com.sun.codemodel.internal.JClass;
|
import com.sun.codemodel.internal.JClass;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -26,13 +26,13 @@
|
|||||||
package com.sun.tools.internal.xjc.model.nav;
|
package com.sun.tools.internal.xjc.model.nav;
|
||||||
|
|
||||||
import com.sun.codemodel.internal.JType;
|
import com.sun.codemodel.internal.JType;
|
||||||
import com.sun.tools.internal.xjc.outline.Aspect;
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.outline.Outline;
|
import com.sun.tools.internal.xjc.outline.Outline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A type.
|
* A type.
|
||||||
*
|
*
|
||||||
* See the package documentaion for details.
|
* See the package documentation for details.
|
||||||
*
|
*
|
||||||
* @author Kohsuke Kawaguchi
|
* @author Kohsuke Kawaguchi
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -33,6 +33,7 @@ import com.sun.codemodel.internal.JCodeModel;
|
|||||||
import com.sun.codemodel.internal.JPackage;
|
import com.sun.codemodel.internal.JPackage;
|
||||||
import com.sun.codemodel.internal.JType;
|
import com.sun.codemodel.internal.JType;
|
||||||
import com.sun.tools.internal.xjc.ErrorReceiver;
|
import com.sun.tools.internal.xjc.ErrorReceiver;
|
||||||
|
import com.sun.tools.internal.xjc.model.Aspect;
|
||||||
import com.sun.tools.internal.xjc.model.CClassInfo;
|
import com.sun.tools.internal.xjc.model.CClassInfo;
|
||||||
import com.sun.tools.internal.xjc.model.CClassInfoParent;
|
import com.sun.tools.internal.xjc.model.CClassInfoParent;
|
||||||
import com.sun.tools.internal.xjc.model.CElementInfo;
|
import com.sun.tools.internal.xjc.model.CElementInfo;
|
||||||
@ -46,13 +47,12 @@ import com.sun.tools.internal.xjc.util.CodeModelClassFactory;
|
|||||||
* Root of the outline. Captures which code is generated for which model component.
|
* Root of the outline. Captures which code is generated for which model component.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* This object also provides access to varioues utilities, such as
|
* This object also provides access to various utilities, such as
|
||||||
* error reporting etc, for the convenience of code that builds the outline.
|
* error reporting etc, for the convenience of code that builds the outline.
|
||||||
*
|
*
|
||||||
* @author Kohsuke Kawaguchi
|
* @author Kohsuke Kawaguchi
|
||||||
*/
|
*/
|
||||||
public interface Outline
|
public interface Outline {
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* This outline is for this model.
|
* This outline is for this model.
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -95,7 +95,7 @@ public final class DOMForest {
|
|||||||
* <p>
|
* <p>
|
||||||
* Set of system ids as strings.
|
* Set of system ids as strings.
|
||||||
*/
|
*/
|
||||||
private final Set<String> rootDocuments = new HashSet<String>();
|
private final Set<String> rootDocuments = new LinkedHashSet<String>();
|
||||||
|
|
||||||
/** Stores location information for all the trees in this forest. */
|
/** Stores location information for all the trees in this forest. */
|
||||||
public final LocatorTable locatorTable = new LocatorTable();
|
public final LocatorTable locatorTable = new LocatorTable();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -51,6 +51,7 @@ import java.util.Collection;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@ -125,7 +126,7 @@ public class SchemaImpl implements XSSchema
|
|||||||
return atts.values().iterator();
|
return atts.values().iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
private final Map<String,XSElementDecl> elems = new HashMap<String,XSElementDecl>();
|
private final Map<String, XSElementDecl> elems = new LinkedHashMap<String, XSElementDecl>();
|
||||||
private final Map<String,XSElementDecl> elemsView = Collections.unmodifiableMap(elems);
|
private final Map<String,XSElementDecl> elemsView = Collections.unmodifiableMap(elems);
|
||||||
public void addElementDecl(XSElementDecl newDecl) {
|
public void addElementDecl(XSElementDecl newDecl) {
|
||||||
elems.put(newDecl.getName(), newDecl);
|
elems.put(newDecl.getName(), newDecl);
|
||||||
@ -204,7 +205,7 @@ public class SchemaImpl implements XSSchema
|
|||||||
return idConstraints.get(localName);
|
return idConstraints.get(localName);
|
||||||
}
|
}
|
||||||
|
|
||||||
private final Map<String,XSType> allTypes = new HashMap<String,XSType>();
|
private final Map<String, XSType> allTypes = new LinkedHashMap<String, XSType>();
|
||||||
private final Map<String,XSType> allTypesView = Collections.unmodifiableMap(allTypes);
|
private final Map<String,XSType> allTypesView = Collections.unmodifiableMap(allTypes);
|
||||||
|
|
||||||
private final Map<String,XSSimpleType> simpleTypes = new HashMap<String,XSSimpleType>();
|
private final Map<String,XSSimpleType> simpleTypes = new HashMap<String,XSSimpleType>();
|
||||||
|
@ -41,7 +41,7 @@ import javax.xml.namespace.QName;
|
|||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ public class PseudoSchemaBuilder {
|
|||||||
}
|
}
|
||||||
//add w3c EPR binding
|
//add w3c EPR binding
|
||||||
if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){
|
if(!(options.noAddressingBbinding) && options.target.isLaterThan(Options.Target.V2_1)){
|
||||||
InputSource is = new InputSource(new ByteArrayInputStream(w3ceprSchemaBinding.getBytes(StandardCharsets.UTF_8)));
|
InputSource is = new InputSource(new ByteArrayInputStream(getUTF8Bytes(w3ceprSchemaBinding)));
|
||||||
is.setSystemId(sysId+(++i +1));
|
is.setSystemId(sysId+(++i +1));
|
||||||
b.schemas.add(is);
|
b.schemas.add(is);
|
||||||
}
|
}
|
||||||
@ -123,6 +123,15 @@ public class PseudoSchemaBuilder {
|
|||||||
return b.schemas;
|
return b.schemas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static byte[] getUTF8Bytes(String w3ceprSchemaBinding1) {
|
||||||
|
try {
|
||||||
|
return w3ceprSchemaBinding1.getBytes("UTF-8");
|
||||||
|
} catch (UnsupportedEncodingException unexpected) {
|
||||||
|
// should never happen
|
||||||
|
throw new IllegalStateException(unexpected);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private PseudoSchemaBuilder(WSDLDocument _wsdl) {
|
private PseudoSchemaBuilder(WSDLDocument _wsdl) {
|
||||||
this.wsdlDocument = _wsdl;
|
this.wsdlDocument = _wsdl;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -44,7 +44,7 @@ public final class ConfigurationMessages {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ignoring: binding file ""{0}". It is not a jaxws or a jaxb binding file.
|
* Ignoring: binding file "{0}". It is not a jaxws or a jaxb binding file.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static String CONFIGURATION_NOT_BINDING_FILE(Object arg0) {
|
public static String CONFIGURATION_NOT_BINDING_FILE(Object arg0) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -283,20 +283,6 @@ public final class WscompileMessages {
|
|||||||
return localizer.localize(localizableWSGEN_USAGE_EXTENSIONS());
|
return localizer.localize(localizableWSGEN_USAGE_EXTENSIONS());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Localizable localizablePLEASE() {
|
|
||||||
return messageFactory.getMessage("Please");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* specify "-extension" and "-wsdl:protocol XSoap1.2" switches. For example:
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public static String PLEASE() {
|
|
||||||
return localizer.localize(localizablePLEASE());
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Localizable localizableWSCOMPILE_EXISTING_OPTION(Object arg0) {
|
public static Localizable localizableWSCOMPILE_EXISTING_OPTION(Object arg0) {
|
||||||
return messageFactory.getMessage("wscompile.existingOption", arg0);
|
return messageFactory.getMessage("wscompile.existingOption", arg0);
|
||||||
}
|
}
|
||||||
@ -385,6 +371,19 @@ public final class WscompileMessages {
|
|||||||
return localizer.localize(localizableWSIMPORT_HELP(arg0));
|
return localizer.localize(localizableWSIMPORT_HELP(arg0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Localizable localizableWSCOMPILE_CANT_GET_COMPILER(Object arg0, Object arg1, Object arg2) {
|
||||||
|
return messageFactory.getMessage("wscompile.cant.get.compiler", arg0, arg1, arg2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No Java compiler found. Perhaps environment/JDK problem?
|
||||||
|
* Used JVM: {0}, {1}/{2}
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static String WSCOMPILE_CANT_GET_COMPILER(Object arg0, Object arg1, Object arg2) {
|
||||||
|
return localizer.localize(localizableWSCOMPILE_CANT_GET_COMPILER(arg0, arg1, arg2));
|
||||||
|
}
|
||||||
|
|
||||||
public static Localizable localizableWSCOMPILE_ERROR(Object arg0) {
|
public static Localizable localizableWSCOMPILE_ERROR(Object arg0) {
|
||||||
return messageFactory.getMessage("wscompile.error", arg0);
|
return messageFactory.getMessage("wscompile.error", arg0);
|
||||||
}
|
}
|
||||||
@ -557,18 +556,6 @@ public final class WscompileMessages {
|
|||||||
return localizer.localize(localizableWSIMPORT_GENERATING_CODE());
|
return localizer.localize(localizableWSIMPORT_GENERATING_CODE());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Localizable localizableWSGEN() {
|
|
||||||
return messageFactory.getMessage("wsgen");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* -wsdl:protocol XSoap1.2 -extenson {1}
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public static String WSGEN() {
|
|
||||||
return localizer.localize(localizableWSGEN());
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Localizable localizableWSIMPORT_NOT_A_FILE_NOR_URL(Object arg0) {
|
public static Localizable localizableWSIMPORT_NOT_A_FILE_NOR_URL(Object arg0) {
|
||||||
return messageFactory.getMessage("wsimport.NotAFileNorURL", arg0);
|
return messageFactory.getMessage("wsimport.NotAFileNorURL", arg0);
|
||||||
}
|
}
|
||||||
@ -658,7 +645,7 @@ public final class WscompileMessages {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* "Could not create file: "{0}"
|
* Could not create file: "{0}"
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static String WSGEN_COULD_NOT_CREATE_FILE(Object arg0) {
|
public static String WSGEN_COULD_NOT_CREATE_FILE(Object arg0) {
|
||||||
@ -848,7 +835,7 @@ public final class WscompileMessages {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Failed to read the WSDL document: {0}, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.
|
* Failed to read the WSDL document: {0}, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static String WSIMPORT_NO_WSDL(Object arg0) {
|
public static String WSIMPORT_NO_WSDL(Object arg0) {
|
||||||
@ -860,7 +847,7 @@ public final class WscompileMessages {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* "line {0} of {1}
|
* line {0} of {1}
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static String WSIMPORT_AUTH_INFO_LINENO(Object arg0, Object arg1) {
|
public static String WSIMPORT_AUTH_INFO_LINENO(Object arg0, Object arg1) {
|
||||||
@ -922,8 +909,7 @@ public final class WscompileMessages {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}.
|
* wsgen can not generate WSDL for SOAP 1.2 binding: {0} on class: {1}.Please specify "-extension" and "-wsdl:protocol XSoap1.2" switches. For example:wsgen -wsdl:protocol XSoap1.2 -extenson {1}
|
||||||
*
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static String WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(Object arg0, Object arg1) {
|
public static String WSGEN_CANNOT_GEN_WSDL_FOR_SOAP_12_BINDING(Object arg0, Object arg1) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,4 +25,4 @@
|
|||||||
|
|
||||||
# Usage not found. TODO Remove
|
# Usage not found. TODO Remove
|
||||||
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
#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.
|
configuration.notBindingFile=Ignoring: binding file \"{0}\". It is not a jaxws or a jaxb binding file.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,4 +25,4 @@
|
|||||||
|
|
||||||
# Usage not found. TODO Remove
|
# Usage not found. TODO Remove
|
||||||
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
||||||
configuration.notBindingFile=Non-prise en compte : fichier de binding "\"{0}\". Il ne s''agit pas d''un fichier de binding jaxws ou jaxb.
|
configuration.notBindingFile=Non-prise en compte : fichier de binding \"{0}\". Il ne s''agit pas d''un fichier de binding jaxws ou jaxb.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,4 +25,4 @@
|
|||||||
|
|
||||||
# Usage not found. TODO Remove
|
# Usage not found. TODO Remove
|
||||||
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
||||||
configuration.notBindingFile=Il file di associazione "\"{0}\" verr\u00E0 ignorato. Non si tratta di un file di associazione jaxws o jaxb.
|
configuration.notBindingFile=Il file di associazione \"{0}\" verr\u00E0 ignorato. Non si tratta di un file di associazione jaxws o jaxb.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,4 +25,4 @@
|
|||||||
|
|
||||||
# Usage not found. TODO Remove
|
# Usage not found. TODO Remove
|
||||||
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
||||||
configuration.notBindingFile=\u7121\u8996\u3057\u307E\u3059: \u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u30FB\u30D5\u30A1\u30A4\u30EB"\"{0}\"\u3002\u3053\u308C\u306FJAXWS\u307E\u305F\u306FJAXB\u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u30FB\u30D5\u30A1\u30A4\u30EB\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
configuration.notBindingFile=\u7121\u8996\u3057\u307E\u3059: \u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u30FB\u30D5\u30A1\u30A4\u30EB\"{0}\"\u3002\u3053\u308C\u306FJAXWS\u307E\u305F\u306FJAXB\u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u30FB\u30D5\u30A1\u30A4\u30EB\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,4 +25,4 @@
|
|||||||
|
|
||||||
# Usage not found. TODO Remove
|
# Usage not found. TODO Remove
|
||||||
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
||||||
configuration.notBindingFile=\uBC14\uC778\uB529 \uD30C\uC77C "\"{0}\"\uC744(\uB97C) \uBB34\uC2DC\uD558\uB294 \uC911\uC785\uB2C8\uB2E4. JAXWS \uB610\uB294 JAXB \uBC14\uC778\uB529 \uD30C\uC77C\uC774 \uC544\uB2D9\uB2C8\uB2E4.
|
configuration.notBindingFile=\uBC14\uC778\uB529 \uD30C\uC77C \"{0}\"\uC744(\uB97C) \uBB34\uC2DC\uD558\uB294 \uC911\uC785\uB2C8\uB2E4. JAXWS \uB610\uB294 JAXB \uBC14\uC778\uB529 \uD30C\uC77C\uC774 \uC544\uB2D9\uB2C8\uB2E4.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,4 +25,4 @@
|
|||||||
|
|
||||||
# Usage not found. TODO Remove
|
# Usage not found. TODO Remove
|
||||||
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
||||||
configuration.notBindingFile=Ignorando: arquivo de bind "\"{0}\". N\u00E3o \u00E9 um arquivo bind jaxws ou jaxb.
|
configuration.notBindingFile=Ignorando: arquivo de bind \"{0}\". N\u00E3o \u00E9 um arquivo bind jaxws ou jaxb.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -25,4 +25,4 @@
|
|||||||
|
|
||||||
# Usage not found. TODO Remove
|
# Usage not found. TODO Remove
|
||||||
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
#configuration.invalidElement=invalid element \"{2}\" in file \"{0}\" (line {1})
|
||||||
configuration.notBindingFile=\u5FFD\u7565: \u7ED1\u5B9A\u6587\u4EF6 "\"{0}\"\u3002\u8BE5\u6587\u4EF6\u4E0D\u662F jaxws \u6216 jaxb \u7ED1\u5B9A\u6587\u4EF6\u3002
|
configuration.notBindingFile=\u5FFD\u7565: \u7ED1\u5B9A\u6587\u4EF6 \"{0}\"\u3002\u8BE5\u6587\u4EF6\u4E0D\u662F jaxws \u6216 jaxb \u7ED1\u5B9A\u6587\u4EF6\u3002
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user