Class FeatureWrapper
- Object
-
- FeatureWrapper
-
public abstract class FeatureWrapper extends Object
You can make feature wrappers for specific types by extending this class and annotating the descendant class's fields withXSDMappingto show what they correspond to in the XSD.
-
-
Constructor Summary
Constructors Constructor Description FeatureWrapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplexAttributegetUnderlyingComplexAttribute()Gets the underlying complex attribute.voidsetUnderlyingComplexAttribute(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.
-
-
-
Method Detail
-
getUnderlyingComplexAttribute
public ComplexAttribute 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
public void setUnderlyingComplexAttribute(ComplexAttribute underlyingComplexAttribute)
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
-
-