Class SaxEventHandlerUtils

java.lang.Object
org.codice.ddf.transformer.xml.streaming.lib.SaxEventHandlerUtils

public class SaxEventHandlerUtils extends Object
  • Constructor Details

    • SaxEventHandlerUtils

      public SaxEventHandlerUtils()
  • Method Details

    • getCombinedMultiValuedAttributes

      public List<ddf.catalog.data.Attribute> getCombinedMultiValuedAttributes(Set<ddf.catalog.data.AttributeDescriptor> descriptors, List<ddf.catalog.data.Attribute> attributes)
      This method iterates through the attribute list provided and combines the values of common attributes. The Attribute Descriptors are used to determine if the Attribute is permitted to have multiple values.
      Parameters:
      descriptors - A set of attribute descriptors. Used to determine if the attribute can have multiple values. If empty or null, a validation warning will be added to the attributes and the attribute will default to not allow multiple values.
      attributes - The list of attributes to combine.
      Returns:
      The list of attributes with multiple attribute values combined to a list on a single attribute. Returns null or an empty list if the attribute list provided was null or empty.
    • getMultiValuedNameMap

      public Map<String,Boolean> getMultiValuedNameMap(Set<ddf.catalog.data.AttributeDescriptor> descriptors)