Class AttributeDescriptorImpl

java.lang.Object
ddf.catalog.data.impl.AttributeDescriptorImpl
All Implemented Interfaces:
ddf.catalog.data.AttributeDescriptor, Serializable

public class AttributeDescriptorImpl extends Object implements ddf.catalog.data.AttributeDescriptor
Simple implementation of AttributeDescriptor

This class does not have a custom serialization implementation (like some other API classes such as AttributeImpl) because its physical representation is the same as its logical representation, which according to Joshua Bloch in Effective Java, Second Edition makes it a good candidate for the default Java serialization implementation.

For what constitutes a compatible change in serialization, see Sun's Guidelines.

See Also:
  • Field Details

    • name

      protected String name
    • indexed

      protected boolean indexed
    • stored

      protected boolean stored
    • tokenized

      protected boolean tokenized
    • multivalued

      protected boolean multivalued
    • type

      protected ddf.catalog.data.AttributeType<?> type
  • Constructor Details

    • AttributeDescriptorImpl

      public AttributeDescriptorImpl(String name, boolean indexed, boolean stored, boolean tokenized, boolean multivalued, ddf.catalog.data.AttributeType<?> type)
      Constructor
      Parameters:
      name - - the name of this AttributeDescriptor
      indexed - - whether Attribute values using this AttributeDescriptor should be indexed
      stored - - whether Attribute values using this AttributeDescriptor should be stored
      tokenized - - whether Attribute values using this AttributeDescriptor should be tokenized
      multivalued - whether Attribute values using this AttributeDescriptor are multivalued
      type - - the type of this AttributeDescriptor
      See Also:
      • AttributeDescriptor.isIndexed()
      • AttributeDescriptor.isStored()
      • AttributeDescriptor.isTokenized()
      • AttributeDescriptor.isMultiValued()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface ddf.catalog.data.AttributeDescriptor
    • getType

      public ddf.catalog.data.AttributeType<?> getType()
      Specified by:
      getType in interface ddf.catalog.data.AttributeDescriptor
    • isIndexed

      public boolean isIndexed()
      Specified by:
      isIndexed in interface ddf.catalog.data.AttributeDescriptor
    • isStored

      public boolean isStored()
      Specified by:
      isStored in interface ddf.catalog.data.AttributeDescriptor
    • isTokenized

      public boolean isTokenized()
      Specified by:
      isTokenized in interface ddf.catalog.data.AttributeDescriptor
    • isMultiValued

      public boolean isMultiValued()
      Specified by:
      isMultiValued in interface ddf.catalog.data.AttributeDescriptor
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object