Class FeatureWrapper
Object
FeatureWrapper
You can make feature wrappers for specific types by extending this class and annotating the descendant class's fields
with
XSDMapping
to show what they correspond to in the XSD.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the underlying complex attribute.void
setUnderlyingComplexAttribute
(ComplexAttribute underlyingComplexAttribute) Sets the underlying complex attribute.static <T extends FeatureWrapper>
Twrap
(ComplexAttribute complexAttribute, Class<T> clazz) Attempt to wrap the feature in a FeatureWrapper class.
-
Constructor Details
-
FeatureWrapper
public FeatureWrapper()
-
-
Method Details
-
getUnderlyingComplexAttribute
Gets the underlying complex attribute. That is, the complex attribute that was wrapped. NB: This could be a Feature.- Returns:
- the underlying complex attribute.
-
setUnderlyingComplexAttribute
Sets the underlying complex attribute. That is, the complex attribute that was wrapped. NB: This could be a Feature. -
wrap
public static <T extends FeatureWrapper> T wrap(ComplexAttribute complexAttribute, Class<T> clazz) throws InvalidClassException Attempt to wrap the feature in a FeatureWrapper class.- Parameters:
complexAttribute
- The feature to wrap.clazz
- The class you want the feature to be wrapped as. (This will be the type that is returned).- Returns:
- An object of T which is the wrapped feature.
- Throws:
InvalidClassException
-