com.sun.xml.ws.binding
Class FeatureListUtil

java.lang.Object
  extended by com.sun.xml.ws.binding.FeatureListUtil

public class FeatureListUtil
extends Object

Experimental: Utility methods that operate on WebServiceFeatureLists.


Constructor Summary
FeatureListUtil()
           
 
Method Summary
static boolean isFeatureEnabled(Class<? extends WebServiceFeature> featureType, WebServiceFeatureList list1, WebServiceFeatureList list2)
           
static
<F extends WebServiceFeature>
F
mergeFeature(Class<F> featureType, WebServiceFeatureList list1, WebServiceFeatureList list2)
           
static WebServiceFeatureList mergeList(WebServiceFeatureList... lists)
          Merge all features into one list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureListUtil

public FeatureListUtil()
Method Detail

mergeList

@NotNull
public static WebServiceFeatureList mergeList(WebServiceFeatureList... lists)
Merge all features into one list. Returns an empty list if no lists were passed as parameter.

Parameters:
lists - The WebServiceFeatureLists.
Returns:
A new WebServiceFeatureList that contains all features.

mergeFeature

@Nullable
public static <F extends WebServiceFeature> F mergeFeature(@NotNull
                                                                    Class<F> featureType,
                                                                    @Nullable
                                                                    WebServiceFeatureList list1,
                                                                    @Nullable
                                                                    WebServiceFeatureList list2)
                                                throws WebServiceException
Throws:
WebServiceException

isFeatureEnabled

public static boolean isFeatureEnabled(@NotNull
                                       Class<? extends WebServiceFeature> featureType,
                                       @Nullable
                                       WebServiceFeatureList list1,
                                       @Nullable
                                       WebServiceFeatureList list2)
                                throws WebServiceException
Throws:
WebServiceException


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.