com.sun.tools.internal.ws.resources.ModelMessages Java Examples
The following examples show how to use
com.sun.tools.internal.ws.resources.ModelMessages.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JavaMethod.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void addParameter(JavaParameter param) { // verify that this member does not already exist if (hasParameter(param.getName())) { if (options.isExtensionMode()) { param.setName(getUniqueName(param.getName())); } else { Parameter duplicParam = getParameter(param.getName()); if(param.getParameter().isEmbedded()){ errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), duplicParam.getEntityName())); } else { errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName())); } return; } } parameters.add(param); }
Example #2
Source File: JavaMethod.java From hottub with GNU General Public License v2.0 | 6 votes |
public void addParameter(JavaParameter param) { // verify that this member does not already exist if (hasParameter(param.getName())) { if (options.isExtensionMode()) { param.setName(getUniqueName(param.getName())); } else { Parameter duplicParam = getParameter(param.getName()); if(param.getParameter().isEmbedded()){ errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), duplicParam.getEntityName())); } else { errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName())); } return; } } parameters.add(param); }
Example #3
Source File: JavaMethod.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void addParameter(JavaParameter param) { // verify that this member does not already exist if (hasParameter(param.getName())) { if (options.isExtensionMode()) { param.setName(getUniqueName(param.getName())); } else { Parameter duplicParam = getParameter(param.getName()); if(param.getParameter().isEmbedded()){ errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), duplicParam.getEntityName())); } else { errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName())); } return; } } parameters.add(param); }
Example #4
Source File: JavaMethod.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void addParameter(JavaParameter param) { // verify that this member does not already exist if (hasParameter(param.getName())) { if (options.isExtensionMode()) { param.setName(getUniqueName(param.getName())); } else { Parameter duplicParam = getParameter(param.getName()); if(param.getParameter().isEmbedded()){ errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), duplicParam.getEntityName())); } else { errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName())); } return; } } parameters.add(param); }
Example #5
Source File: JavaMethod.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void addParameter(JavaParameter param) { // verify that this member does not already exist if (hasParameter(param.getName())) { if (options.isExtensionMode()) { param.setName(getUniqueName(param.getName())); } else { Parameter duplicParam = getParameter(param.getName()); if(param.getParameter().isEmbedded()){ errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), duplicParam.getEntityName())); } else { errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName())); } return; } } parameters.add(param); }
Example #6
Source File: JavaMethod.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void addParameter(JavaParameter param) { // verify that this member does not already exist if (hasParameter(param.getName())) { if (options.isExtensionMode()) { param.setName(getUniqueName(param.getName())); } else { Parameter duplicParam = getParameter(param.getName()); if(param.getParameter().isEmbedded()){ errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), duplicParam.getEntityName())); } else { errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName())); } return; } } parameters.add(param); }
Example #7
Source File: JavaMethod.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void addParameter(JavaParameter param) { // verify that this member does not already exist if (hasParameter(param.getName())) { if (options.isExtensionMode()) { param.setName(getUniqueName(param.getName())); } else { Parameter duplicParam = getParameter(param.getName()); if(param.getParameter().isEmbedded()){ errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), duplicParam.getEntityName())); } else { errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName())); } return; } } parameters.add(param); }
Example #8
Source File: JavaMethod.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void addParameter(JavaParameter param) { // verify that this member does not already exist if (hasParameter(param.getName())) { if (options.isExtensionMode()) { param.setName(getUniqueName(param.getName())); } else { Parameter duplicParam = getParameter(param.getName()); if(param.getParameter().isEmbedded()){ errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE_WRAPPER(param.getName(), duplicParam.getEntityName())); } else { errorReceiver.error(param.getParameter().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getParameter().getEntityName())); errorReceiver.error(duplicParam.getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), duplicParam.getEntityName())); } return; } } parameters.add(param); }
Example #9
Source File: Message.java From hottub with GNU General Public License v2.0 | 5 votes |
/** attachment block */ public void addAttachmentBlock(Block b) { if (_attachmentBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _attachmentBlocks.put(b.getName(), b); b.setLocation(Block.ATTACHMENT); }
Example #10
Source File: ErrorReceiver.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Returns the human readable string representation of the * {@link org.xml.sax.Locator} part of the specified * {@link SAXParseException}. * * @return non-null valid object. */ protected final String getLocationString( SAXParseException e ) { if(e.getLineNumber()!=-1 || e.getSystemId()!=null) { int line = e.getLineNumber(); return ModelMessages.CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(line==-1?"?":Integer.toString( line ), getShortName( e.getSystemId())); } else { return ""; //for unkown location just return empty string } }
Example #11
Source File: Message.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void addHeaderBlock(Block b) { if (_headerBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _headerBlocks.put(b.getName(), b); b.setLocation(Block.HEADER); }
Example #12
Source File: Message.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void addHeaderBlock(Block b) { if (_headerBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _headerBlocks.put(b.getName(), b); b.setLocation(Block.HEADER); }
Example #13
Source File: Message.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** attachment block */ public void addAttachmentBlock(Block b) { if (_attachmentBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _attachmentBlocks.put(b.getName(), b); b.setLocation(Block.ATTACHMENT); }
Example #14
Source File: ErrorReceiver.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Returns the human readable string representation of the * {@link org.xml.sax.Locator} part of the specified * {@link SAXParseException}. * * @return non-null valid object. */ protected final String getLocationString( SAXParseException e ) { if(e.getLineNumber()!=-1 || e.getSystemId()!=null) { int line = e.getLineNumber(); return ModelMessages.CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(line==-1?"?":Integer.toString( line ), getShortName( e.getSystemId())); } else { return ""; //for unkown location just return empty string } }
Example #15
Source File: Message.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void initializeParametersByName() { _parametersByName = new HashMap(); if (_parameters != null) { for (Iterator iter = _parameters.iterator(); iter.hasNext();) { Parameter param = (Parameter) iter.next(); if (param.getName() != null && _parametersByName.containsKey(param.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getName())); throw new AbortException(); } _parametersByName.put(param.getName(), param); } } }
Example #16
Source File: Message.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void addParameter(Parameter p) { if (_parametersByName.containsKey(p.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(p.getName(), p.getName())); throw new AbortException(); } _parameters.add(p); _parametersByName.put(p.getName(), p); }
Example #17
Source File: Message.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** attachment block */ public void addAttachmentBlock(Block b) { if (_attachmentBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _attachmentBlocks.put(b.getName(), b); b.setLocation(Block.ATTACHMENT); }
Example #18
Source File: Message.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void addParameter(Parameter p) { if (_parametersByName.containsKey(p.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(p.getName(), p.getName())); throw new AbortException(); } _parameters.add(p); _parametersByName.put(p.getName(), p); }
Example #19
Source File: Message.java From hottub with GNU General Public License v2.0 | 5 votes |
private void initializeParametersByName() { _parametersByName = new HashMap(); if (_parameters != null) { for (Iterator iter = _parameters.iterator(); iter.hasNext();) { Parameter param = (Parameter) iter.next(); if (param.getName() != null && _parametersByName.containsKey(param.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getName())); throw new AbortException(); } _parametersByName.put(param.getName(), param); } } }
Example #20
Source File: Message.java From hottub with GNU General Public License v2.0 | 5 votes |
public void addHeaderBlock(Block b) { if (_headerBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _headerBlocks.put(b.getName(), b); b.setLocation(Block.HEADER); }
Example #21
Source File: Message.java From hottub with GNU General Public License v2.0 | 5 votes |
public void addBodyBlock(Block b) { if (_bodyBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _bodyBlocks.put(b.getName(), b); b.setLocation(Block.BODY); }
Example #22
Source File: Message.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void initializeParametersByName() { _parametersByName = new HashMap(); if (_parameters != null) { for (Iterator iter = _parameters.iterator(); iter.hasNext();) { Parameter param = (Parameter) iter.next(); if (param.getName() != null && _parametersByName.containsKey(param.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getName())); throw new AbortException(); } _parametersByName.put(param.getName(), param); } } }
Example #23
Source File: ErrorReceiver.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Returns the human readable string representation of the * {@link org.xml.sax.Locator} part of the specified * {@link SAXParseException}. * * @return non-null valid object. */ protected final String getLocationString( SAXParseException e ) { if(e.getLineNumber()!=-1 || e.getSystemId()!=null) { int line = e.getLineNumber(); return ModelMessages.CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(line==-1?"?":Integer.toString( line ), getShortName( e.getSystemId())); } else { return ""; //for unkown location just return empty string } }
Example #24
Source File: ErrorReceiver.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Returns the human readable string representation of the * {@link org.xml.sax.Locator} part of the specified * {@link SAXParseException}. * * @return non-null valid object. */ protected final String getLocationString( SAXParseException e ) { if(e.getLineNumber()!=-1 || e.getSystemId()!=null) { int line = e.getLineNumber(); return ModelMessages.CONSOLE_ERROR_REPORTER_LINE_X_OF_Y(line==-1?"?":Integer.toString( line ), getShortName( e.getSystemId())); } else { return ""; //for unkown location just return empty string } }
Example #25
Source File: Message.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void initializeParametersByName() { _parametersByName = new HashMap(); if (_parameters != null) { for (Iterator iter = _parameters.iterator(); iter.hasNext();) { Parameter param = (Parameter) iter.next(); if (param.getName() != null && _parametersByName.containsKey(param.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(param.getName(), param.getName())); throw new AbortException(); } _parametersByName.put(param.getName(), param); } } }
Example #26
Source File: Message.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void addParameter(Parameter p) { if (_parametersByName.containsKey(p.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(p.getName(), p.getName())); throw new AbortException(); } _parameters.add(p); String name = p.getCustomName() != null ? p.getCustomName() : p.getName(); _parametersByName.put(name, p); }
Example #27
Source File: Message.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** attachment block */ public void addAttachmentBlock(Block b) { if (_attachmentBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _attachmentBlocks.put(b.getName(), b); b.setLocation(Block.ATTACHMENT); }
Example #28
Source File: Message.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void addHeaderBlock(Block b) { if (_headerBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _headerBlocks.put(b.getName(), b); b.setLocation(Block.HEADER); }
Example #29
Source File: Message.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void addBodyBlock(Block b) { if (_bodyBlocks.containsKey(b.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PART_NOT_UNIQUE(((com.sun.tools.internal.ws.wsdl.document.Message)getEntity()).getName(), b.getName())); throw new AbortException(); } _bodyBlocks.put(b.getName(), b); b.setLocation(Block.BODY); }
Example #30
Source File: Message.java From hottub with GNU General Public License v2.0 | 5 votes |
public void addParameter(Parameter p) { if (_parametersByName.containsKey(p.getName())) { errorReceiver.error(getEntity().getLocator(), ModelMessages.MODEL_PARAMETER_NOTUNIQUE(p.getName(), p.getName())); throw new AbortException(); } _parameters.add(p); String name = p.getCustomName() != null ? p.getCustomName() : p.getName(); _parametersByName.put(name, p); }