Class InjectableAttributeImpl

java.lang.Object
ddf.catalog.data.impl.InjectableAttributeImpl
All Implemented Interfaces:
ddf.catalog.data.InjectableAttribute

public class InjectableAttributeImpl extends Object implements ddf.catalog.data.InjectableAttribute
  • Constructor Details

    • InjectableAttributeImpl

      public InjectableAttributeImpl(String attribute, @Nullable Collection<String> metacardTypes)
      Constructs an InjectableAttributeImpl with the given attribute name and metacard type names.

      If this attribute should be injected into all MetacardTypes, then metacardTypes should be null or empty.

      Parameters:
      attribute - the name of the attribute that this InjectableAttributeImpl represents, cannot be null
      metacardTypes - the names of the MetacardTypes into which the attribute named attribute should be injected, can be null
      Throws:
      IllegalArgumentException - if attribute is null
  • Method Details

    • attribute

      public String attribute()
      Specified by:
      attribute in interface ddf.catalog.data.InjectableAttribute
    • metacardTypes

      public Set<String> metacardTypes()
      Specified by:
      metacardTypes in interface ddf.catalog.data.InjectableAttribute