Java Code Examples for com.sun.xml.internal.ws.policy.sourcemodel.wspolicy.NamespaceVersion#values()
The following examples show how to use
com.sun.xml.internal.ws.policy.sourcemodel.wspolicy.NamespaceVersion#values() .
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: PolicyWSDLParserExtension.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Reads policy reference URIs from PolicyURIs attribute and returns them * as a String array returns null if there is no such attribute. This method * will attempt to check for the attribute in every supported policy namespace. * Resulting array of URIs is concatenation of URIs defined in all found * PolicyURIs attribute version. */ private String[] getPolicyURIsFromAttr(final XMLStreamReader reader) { final StringBuilder policyUriBuffer = new StringBuilder(); for (NamespaceVersion version : NamespaceVersion.values()) { final String value = reader.getAttributeValue(version.toString(), XmlToken.PolicyUris.toString()); if (value != null) { policyUriBuffer.append(value).append(" "); } } return (policyUriBuffer.length() > 0) ? policyUriBuffer.toString().split("[\\n ]+") : null; }
Example 2
Source File: PolicyWSDLParserExtension.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Reads policy reference URIs from PolicyURIs attribute and returns them * as a String array returns null if there is no such attribute. This method * will attempt to check for the attribute in every supported policy namespace. * Resulting array of URIs is concatenation of URIs defined in all found * PolicyURIs attribute version. */ private String[] getPolicyURIsFromAttr(final XMLStreamReader reader) { final StringBuilder policyUriBuffer = new StringBuilder(); for (NamespaceVersion version : NamespaceVersion.values()) { final String value = reader.getAttributeValue(version.toString(), XmlToken.PolicyUris.toString()); if (value != null) { policyUriBuffer.append(value).append(" "); } } return (policyUriBuffer.length() > 0) ? policyUriBuffer.toString().split("[\\n ]+") : null; }
Example 3
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Reads policy reference URIs from PolicyURIs attribute and returns them * as a String array returns null if there is no such attribute. This method * will attempt to check for the attribute in every supported policy namespace. * Resulting array of URIs is concatenation of URIs defined in all found * PolicyURIs attribute version. */ private String[] getPolicyURIsFromAttr(final XMLStreamReader reader) { final StringBuilder policyUriBuffer = new StringBuilder(); for (NamespaceVersion version : NamespaceVersion.values()) { final String value = reader.getAttributeValue(version.toString(), XmlToken.PolicyUris.toString()); if (value != null) { policyUriBuffer.append(value).append(" "); } } return (policyUriBuffer.length() > 0) ? policyUriBuffer.toString().split("[\\n ]+") : null; }
Example 4
Source File: PolicyWSDLParserExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Reads policy reference URIs from PolicyURIs attribute and returns them * as a String array returns null if there is no such attribute. This method * will attempt to check for the attribute in every supported policy namespace. * Resulting array of URIs is concatenation of URIs defined in all found * PolicyURIs attribute version. */ private String[] getPolicyURIsFromAttr(final XMLStreamReader reader) { final StringBuilder policyUriBuffer = new StringBuilder(); for (NamespaceVersion version : NamespaceVersion.values()) { final String value = reader.getAttributeValue(version.toString(), XmlToken.PolicyUris.toString()); if (value != null) { policyUriBuffer.append(value).append(" "); } } return (policyUriBuffer.length() > 0) ? policyUriBuffer.toString().split("[\\n ]+") : null; }
Example 5
Source File: PolicyWSDLParserExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Reads policy reference URIs from PolicyURIs attribute and returns them * as a String array returns null if there is no such attribute. This method * will attempt to check for the attribute in every supported policy namespace. * Resulting array of URIs is concatenation of URIs defined in all found * PolicyURIs attribute version. */ private String[] getPolicyURIsFromAttr(final XMLStreamReader reader) { final StringBuilder policyUriBuffer = new StringBuilder(); for (NamespaceVersion version : NamespaceVersion.values()) { final String value = reader.getAttributeValue(version.toString(), XmlToken.PolicyUris.toString()); if (value != null) { policyUriBuffer.append(value).append(" "); } } return (policyUriBuffer.length() > 0) ? policyUriBuffer.toString().split("[\\n ]+") : null; }
Example 6
Source File: PolicyWSDLParserExtension.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Reads policy reference URIs from PolicyURIs attribute and returns them * as a String array returns null if there is no such attribute. This method * will attempt to check for the attribute in every supported policy namespace. * Resulting array of URIs is concatenation of URIs defined in all found * PolicyURIs attribute version. */ private String[] getPolicyURIsFromAttr(final XMLStreamReader reader) { final StringBuilder policyUriBuffer = new StringBuilder(); for (NamespaceVersion version : NamespaceVersion.values()) { final String value = reader.getAttributeValue(version.toString(), XmlToken.PolicyUris.toString()); if (value != null) { policyUriBuffer.append(value).append(" "); } } return (policyUriBuffer.length() > 0) ? policyUriBuffer.toString().split("[\\n ]+") : null; }
Example 7
Source File: PolicyWSDLParserExtension.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Reads policy reference URIs from PolicyURIs attribute and returns them * as a String array returns null if there is no such attribute. This method * will attempt to check for the attribute in every supported policy namespace. * Resulting array of URIs is concatenation of URIs defined in all found * PolicyURIs attribute version. */ private String[] getPolicyURIsFromAttr(final XMLStreamReader reader) { final StringBuilder policyUriBuffer = new StringBuilder(); for (NamespaceVersion version : NamespaceVersion.values()) { final String value = reader.getAttributeValue(version.toString(), XmlToken.PolicyUris.toString()); if (value != null) { policyUriBuffer.append(value).append(" "); } } return (policyUriBuffer.length() > 0) ? policyUriBuffer.toString().split("[\\n ]+") : null; }
Example 8
Source File: PolicyWSDLParserExtension.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Reads policy reference URIs from PolicyURIs attribute and returns them * as a String array returns null if there is no such attribute. This method * will attempt to check for the attribute in every supported policy namespace. * Resulting array of URIs is concatenation of URIs defined in all found * PolicyURIs attribute version. */ private String[] getPolicyURIsFromAttr(final XMLStreamReader reader) { final StringBuilder policyUriBuffer = new StringBuilder(); for (NamespaceVersion version : NamespaceVersion.values()) { final String value = reader.getAttributeValue(version.toString(), XmlToken.PolicyUris.toString()); if (value != null) { policyUriBuffer.append(value).append(" "); } } return (policyUriBuffer.length() > 0) ? policyUriBuffer.toString().split("[\\n ]+") : null; }