Interface FeatureSet
- All Known Implementing Classes:
FeatureSetPreV2
,FeatureSetV2
public interface FeatureSet
This interface represents a set of JPARS features. Each service version has it's
own implementation of this interface.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDynamicMetadataSource
(Session session, String packageName) Builds a dynamicMetadataSource
for given package.Gets a list ofMetadataSource
related to this version.getResponseBuilder
(FeatureSet.Feature feature) Returns an instance ofFeatureResponseBuilder
for given feature.getSessionEventListener
(Session session) ReturnsSessionEventListener
related to this version.boolean
isSupported
(FeatureSet.Feature feature) Returns true if given feature is supported.
-
Method Details
-
isSupported
Returns true if given feature is supported.- Parameters:
feature
- Feature to check.- Returns:
- true if feature is supported, false if not supported.
-
getResponseBuilder
Returns an instance ofFeatureResponseBuilder
for given feature.- Parameters:
feature
- feature to get response builder for.- Returns:
FeatureResponseBuilder
-
getMetadataSources
List<MetadataSource> getMetadataSources()Gets a list ofMetadataSource
related to this version. Called on JAXB context initialization.- Returns:
- a list of
MetadataSource
-
getDynamicMetadataSource
Builds a dynamicMetadataSource
for given package. Called on JAXB context initialization.- Parameters:
session
- the sessionpackageName
- package name to build meta data for.- Returns:
MetadataSource
-
getSessionEventListener
ReturnsSessionEventListener
related to this version.- Parameters:
session
- the session- Returns:
SessionEventListener
-