Class NestingBase

Direct Known Subclasses:
ClassCustom, GlobalCustom, PackageCustom

public abstract class NestingBase extends SharedNestingBase
Base class for all standard binding customizations that can contain other customizations.
Author:
Dennis M. Sosnoski
  • Field Details

    • s_allowedAttributes

      public static final StringArray s_allowedAttributes
      Enumeration of allowed attribute names
    • ATTRIBUTE_VALUE_STYLE

      public static final int ATTRIBUTE_VALUE_STYLE
      See Also:
    • ELEMENT_VALUE_STYLE

      public static final int ELEMENT_VALUE_STYLE
      See Also:
    • ATTRIBUTE_STYLE_INTEGER

      public static final Integer ATTRIBUTE_STYLE_INTEGER
    • ELEMENT_STYLE_INTEGER

      public static final Integer ELEMENT_STYLE_INTEGER
    • s_valueStyleEnum

      public static final EnumSet s_valueStyleEnum
    • m_valueStyle

      private Integer m_valueStyle
    • m_propertyAccess

      private Boolean m_propertyAccess
    • m_stripPrefixes

      private String[] m_stripPrefixes
    • m_stripSuffixes

      private String[] m_stripSuffixes
    • m_mapAbstract

      private Boolean m_mapAbstract
    • m_wrapCollections

      private Boolean m_wrapCollections
    • m_forceMapping

      private Boolean m_forceMapping
    • m_forceNames

      private Boolean m_forceNames
  • Constructor Details

    • NestingBase

      public NestingBase(SharedNestingBase parent)
      Constructor.
      Parameters:
      parent -
  • Method Details

    • isMapAbstract

      public boolean isMapAbstract()
      Check abstract mapping flag. If not set at any nesting level, the default is true.
      Returns:
      abstract mapping flag
    • setMapAbstract

      public void setMapAbstract(Boolean abs)
      Set abstract mapping flag.
      Parameters:
      abs -
    • isForceMapping

      public boolean isForceMapping()
      Check force mapping flag. If not set at any nesting level, the default is false.
      Returns:
      force mapping flag
    • isForceStructureNames

      public boolean isForceStructureNames()
      Check force structure names flag. If not set at any nesting level, the default is true.
      Returns:
      force names flag
    • isWrapCollections

      public boolean isWrapCollections()
      Check wrap collections flag. If not set at any nesting level, the default is false.
      Returns:
      wrap collections flag
    • isPropertyAccess

      public boolean isPropertyAccess()
      Check property access mode flag. If not set at any nesting level, the default is false.
      Returns:
      true if bean-style get/set methods to be used, false if fields to be used directly
    • getStripPrefixes

      public String[] getStripPrefixes()
      Get prefixes to be stripped from field names.
      Returns:
      strip prefixes (null if none)
    • getStripSuffixes

      public String[] getStripSuffixes()
      Get suffixes to be stripped from field names.
      Returns:
      strip suffix (null if none)
    • getValueStyle

      public int getValueStyle(String type)
      Get value style code.
      Parameters:
      type - value type name
      Returns:
      value from s_valueStyleEnum enumeration
    • setValueStyle

      public void setValueStyle(Integer style)
      Set value style.
      Parameters:
      style - (null if none at this level)
    • setValueStyleText

      private void setValueStyleText(String text, IUnmarshallingContext ictx)
      Value style set text method. This is intended for use during unmarshalling. TODO: add validation
      Parameters:
      text -
      ictx -
    • getValueStyleText

      private String getValueStyleText()
      Value style get text method. This is intended for use during marshalling.
      Returns:
      text