protected MIMEXml parseMIMEXml(TWSDLParserContext context, Element e) { context.push(); context.registerNamespaces(e); MIMEXml mimeXml = new MIMEXml(context.getLocation(e)); String part = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PART); if (part != null) { mimeXml.setPart(part); } context.pop(); // context.fireDoneParsingEntity(MIMEConstants.QNAME_MIME_XML, mimeXml); return mimeXml; } }
@Override public boolean handleOutputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (extensionModeOn) { warn(context.getLocation(e)); String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent, context.getLocation(e)); } ((Output) parent).setAction(actionValue); return true; } else { return fail(context.getLocation(e)); } }
@Override public boolean handleOutputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (extensionModeOn) { warn(context.getLocation(e)); String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent, context.getLocation(e)); } ((Output) parent).setAction(actionValue); return true; } else { return fail(context.getLocation(e)); } }
protected MIMEXml parseMIMEXml(TWSDLParserContext context, Element e) { context.push(); context.registerNamespaces(e); MIMEXml mimeXml = new MIMEXml(context.getLocation(e)); String part = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PART); if (part != null) { mimeXml.setPart(part); } context.pop(); // context.fireDoneParsingEntity(MIMEConstants.QNAME_MIME_XML, mimeXml); return mimeXml; } }
@Override public boolean handleInputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (extensionModeOn) { warn(context.getLocation(e)); String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent, context.getLocation(e)); } ((Input) parent).setAction(actionValue); return true; } else { return fail(context.getLocation(e)); } }
protected MIMEXml parseMIMEXml(TWSDLParserContext context, Element e) { context.push(); context.registerNamespaces(e); MIMEXml mimeXml = new MIMEXml(context.getLocation(e)); String part = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PART); if (part != null) { mimeXml.setPart(part); } context.pop(); // context.fireDoneParsingEntity(MIMEConstants.QNAME_MIME_XML, mimeXml); return mimeXml; } }
@Override public boolean handleInputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (extensionModeOn) { warn(context.getLocation(e)); String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent, context.getLocation(e)); } ((Input) parent).setAction(actionValue); return true; } else { return fail(context.getLocation(e)); } }
protected MIMEXml parseMIMEXml(TWSDLParserContext context, Element e) { context.push(); context.registerNamespaces(e); MIMEXml mimeXml = new MIMEXml(context.getLocation(e)); String part = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PART); if (part != null) { mimeXml.setPart(part); } context.pop(); // context.fireDoneParsingEntity(MIMEConstants.QNAME_MIME_XML, mimeXml); return mimeXml; } }
@Override public boolean handleInputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (extensionModeOn) { warn(context.getLocation(e)); String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent, context.getLocation(e)); } ((Input) parent).setAction(actionValue); return true; } else { return fail(context.getLocation(e)); } }
protected MIMEContent parseMIMEContent(TWSDLParserContext context, Element e) { context.push(); context.registerNamespaces(e); MIMEContent content = new MIMEContent(context.getLocation(e)); String part = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PART); if (part != null) { content.setPart(part); } String type = XmlUtil.getAttributeOrNull(e, Constants.ATTR_TYPE); if (type != null) { content.setType(type); } context.pop(); // context.fireDoneParsingEntity(MIMEConstants.QNAME_CONTENT, content); return content; }
@Override public boolean handleInputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (extensionModeOn) { warn(context.getLocation(e)); String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent, context.getLocation(e)); } ((Input) parent).setAction(actionValue); return true; } else { return fail(context.getLocation(e)); } }
protected MIMEContent parseMIMEContent(TWSDLParserContext context, Element e) { context.push(); context.registerNamespaces(e); MIMEContent content = new MIMEContent(context.getLocation(e)); String part = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PART); if (part != null) { content.setPart(part); } String type = XmlUtil.getAttributeOrNull(e, Constants.ATTR_TYPE); if (type != null) { content.setType(type); } context.pop(); // context.fireDoneParsingEntity(MIMEConstants.QNAME_CONTENT, content); return content; }
@Override public boolean handleOutputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (extensionModeOn) { warn(context.getLocation(e)); String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent, context.getLocation(e)); } ((Output) parent).setAction(actionValue); return true; } else { return fail(context.getLocation(e)); } }
protected MIMEContent parseMIMEContent(TWSDLParserContext context, Element e) { context.push(); context.registerNamespaces(e); MIMEContent content = new MIMEContent(context.getLocation(e)); String part = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PART); if (part != null) { content.setPart(part); } String type = XmlUtil.getAttributeOrNull(e, Constants.ATTR_TYPE); if (type != null) { content.setType(type); } context.pop(); // context.fireDoneParsingEntity(MIMEConstants.QNAME_CONTENT, content); return content; }
@Override public boolean handleOutputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (extensionModeOn) { warn(context.getLocation(e)); String actionValue = XmlUtil.getAttributeNSOrNull(e, WSA_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent, context.getLocation(e)); } ((Output) parent).setAction(actionValue); return true; } else { return fail(context.getLocation(e)); } }
protected MIMEContent parseMIMEContent(TWSDLParserContext context, Element e) { context.push(); context.registerNamespaces(e); MIMEContent content = new MIMEContent(context.getLocation(e)); String part = XmlUtil.getAttributeOrNull(e, Constants.ATTR_PART); if (part != null) { content.setPart(part); } String type = XmlUtil.getAttributeOrNull(e, Constants.ATTR_TYPE); if (type != null) { content.setType(type); } context.pop(); // context.fireDoneParsingEntity(MIMEConstants.QNAME_CONTENT, content); return content; }
@Override public boolean handleInputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent, context.getLocation(e)); } ((Input)parent).setAction(actionValue); return true; }
public boolean handleBindingExtension( TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (XmlUtil.matchesTagNS(e, HTTPConstants.QNAME_BINDING)) { context.push(); context.registerNamespaces(e); HTTPBinding binding = new HTTPBinding(context.getLocation(e)); String verb = Util.getRequiredAttribute(e, Constants.ATTR_VERB); binding.setVerb(verb); parent.addExtension(binding); context.pop(); // context.fireDoneParsingEntity(HTTPConstants.QNAME_BINDING, binding); return true; } else { Util.fail( "parsing.invalidExtensionElement", e.getTagName(), e.getNamespaceURI()); return false; } }
@Override public boolean handleOutputExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { return warnEmptyAction(parent,context.getLocation(e)); } ((Output)parent).setAction(actionValue); return true; }
public boolean handleBindingExtension( TWSDLParserContext context, TWSDLExtensible parent, Element e) { if (XmlUtil.matchesTagNS(e, HTTPConstants.QNAME_BINDING)) { context.push(); context.registerNamespaces(e); HTTPBinding binding = new HTTPBinding(context.getLocation(e)); String verb = Util.getRequiredAttribute(e, Constants.ATTR_VERB); binding.setVerb(verb); parent.addExtension(binding); context.pop(); // context.fireDoneParsingEntity(HTTPConstants.QNAME_BINDING, binding); return true; } else { Util.fail( "parsing.invalidExtensionElement", e.getTagName(), e.getNamespaceURI()); return false; } }