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 with XSDMapping to show what they correspond to in the XSD.
  • Constructor Details

    • FeatureWrapper

      public FeatureWrapper()
  • Method Details

    • 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