Java Code Examples for com.oracle.webservices.internal.api.databinding.ExternalMetadataFeature#Builder
The following examples show how to use
com.oracle.webservices.internal.api.databinding.ExternalMetadataFeature#Builder .
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: DeploymentDescriptorParser.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected ExternalMetadataFeature configureExternalMetadataReader(XMLStreamReader reader) { ExternalMetadataFeature.Builder featureBuilder = null; while (QNAME_EXT_METADA.equals(reader.getName())) { if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { Attributes attrs = XMLStreamReaderUtil.getAttributes(reader); String file = getAttribute(attrs, ATTR_FILE); if (file != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addFiles(new File(file)); } String res = getAttribute(attrs, ATTR_RESOURCE); if (res != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addResources(res); } } XMLStreamReaderUtil.nextElementContent(reader); } return buildFeature(featureBuilder); }
Example 2
Source File: DeploymentDescriptorParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected ExternalMetadataFeature configureExternalMetadataReader(XMLStreamReader reader) { ExternalMetadataFeature.Builder featureBuilder = null; while (QNAME_EXT_METADA.equals(reader.getName())) { if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { Attributes attrs = XMLStreamReaderUtil.getAttributes(reader); String file = getAttribute(attrs, ATTR_FILE); if (file != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addFiles(new File(file)); } String res = getAttribute(attrs, ATTR_RESOURCE); if (res != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addResources(res); } } XMLStreamReaderUtil.nextElementContent(reader); } return buildFeature(featureBuilder); }
Example 3
Source File: DeploymentDescriptorParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected ExternalMetadataFeature configureExternalMetadataReader(XMLStreamReader reader) { ExternalMetadataFeature.Builder featureBuilder = null; while (QNAME_EXT_METADA.equals(reader.getName())) { if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { Attributes attrs = XMLStreamReaderUtil.getAttributes(reader); String file = getAttribute(attrs, ATTR_FILE); if (file != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addFiles(new File(file)); } String res = getAttribute(attrs, ATTR_RESOURCE); if (res != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addResources(res); } } XMLStreamReaderUtil.nextElementContent(reader); } return buildFeature(featureBuilder); }
Example 4
Source File: DeploymentDescriptorParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected ExternalMetadataFeature configureExternalMetadataReader(XMLStreamReader reader) { ExternalMetadataFeature.Builder featureBuilder = null; while (QNAME_EXT_METADA.equals(reader.getName())) { if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { Attributes attrs = XMLStreamReaderUtil.getAttributes(reader); String file = getAttribute(attrs, ATTR_FILE); if (file != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addFiles(new File(file)); } String res = getAttribute(attrs, ATTR_RESOURCE); if (res != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addResources(res); } } XMLStreamReaderUtil.nextElementContent(reader); } return buildFeature(featureBuilder); }
Example 5
Source File: DeploymentDescriptorParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected ExternalMetadataFeature configureExternalMetadataReader(XMLStreamReader reader) { ExternalMetadataFeature.Builder featureBuilder = null; while (QNAME_EXT_METADA.equals(reader.getName())) { if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { Attributes attrs = XMLStreamReaderUtil.getAttributes(reader); String file = getAttribute(attrs, ATTR_FILE); if (file != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addFiles(new File(file)); } String res = getAttribute(attrs, ATTR_RESOURCE); if (res != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addResources(res); } } XMLStreamReaderUtil.nextElementContent(reader); } return buildFeature(featureBuilder); }
Example 6
Source File: DeploymentDescriptorParser.java From hottub with GNU General Public License v2.0 | 5 votes |
protected ExternalMetadataFeature configureExternalMetadataReader(XMLStreamReader reader) { ExternalMetadataFeature.Builder featureBuilder = null; while (QNAME_EXT_METADA.equals(reader.getName())) { if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { Attributes attrs = XMLStreamReaderUtil.getAttributes(reader); String file = getAttribute(attrs, ATTR_FILE); if (file != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addFiles(new File(file)); } String res = getAttribute(attrs, ATTR_RESOURCE); if (res != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addResources(res); } } XMLStreamReaderUtil.nextElementContent(reader); } return buildFeature(featureBuilder); }
Example 7
Source File: DeploymentDescriptorParser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected ExternalMetadataFeature configureExternalMetadataReader(XMLStreamReader reader) { ExternalMetadataFeature.Builder featureBuilder = null; while (QNAME_EXT_METADA.equals(reader.getName())) { if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { Attributes attrs = XMLStreamReaderUtil.getAttributes(reader); String file = getAttribute(attrs, ATTR_FILE); if (file != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addFiles(new File(file)); } String res = getAttribute(attrs, ATTR_RESOURCE); if (res != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addResources(res); } } XMLStreamReaderUtil.nextElementContent(reader); } return buildFeature(featureBuilder); }
Example 8
Source File: DeploymentDescriptorParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected ExternalMetadataFeature configureExternalMetadataReader(XMLStreamReader reader) { ExternalMetadataFeature.Builder featureBuilder = null; while (QNAME_EXT_METADA.equals(reader.getName())) { if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) { Attributes attrs = XMLStreamReaderUtil.getAttributes(reader); String file = getAttribute(attrs, ATTR_FILE); if (file != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addFiles(new File(file)); } String res = getAttribute(attrs, ATTR_RESOURCE); if (res != null) { if (featureBuilder == null) { featureBuilder = ExternalMetadataFeature.builder(); } featureBuilder.addResources(res); } } XMLStreamReaderUtil.nextElementContent(reader); } return buildFeature(featureBuilder); }
Example 9
Source File: DeploymentDescriptorParser.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private ExternalMetadataFeature buildFeature(ExternalMetadataFeature.Builder builder) { return builder != null ? builder.build() : null; }
Example 10
Source File: DeploymentDescriptorParser.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private ExternalMetadataFeature buildFeature(ExternalMetadataFeature.Builder builder) { return builder != null ? builder.build() : null; }
Example 11
Source File: DeploymentDescriptorParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private ExternalMetadataFeature buildFeature(ExternalMetadataFeature.Builder builder) { return builder != null ? builder.build() : null; }
Example 12
Source File: DeploymentDescriptorParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private ExternalMetadataFeature buildFeature(ExternalMetadataFeature.Builder builder) { return builder != null ? builder.build() : null; }
Example 13
Source File: DeploymentDescriptorParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private ExternalMetadataFeature buildFeature(ExternalMetadataFeature.Builder builder) { return builder != null ? builder.build() : null; }
Example 14
Source File: DeploymentDescriptorParser.java From hottub with GNU General Public License v2.0 | 4 votes |
private ExternalMetadataFeature buildFeature(ExternalMetadataFeature.Builder builder) { return builder != null ? builder.build() : null; }
Example 15
Source File: DeploymentDescriptorParser.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private ExternalMetadataFeature buildFeature(ExternalMetadataFeature.Builder builder) { return builder != null ? builder.build() : null; }
Example 16
Source File: DeploymentDescriptorParser.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private ExternalMetadataFeature buildFeature(ExternalMetadataFeature.Builder builder) { return builder != null ? builder.build() : null; }