Package ddf.catalog.data.impl
Class AttributeDescriptorImpl
java.lang.Object
ddf.catalog.data.impl.AttributeDescriptorImpl
- All Implemented Interfaces:
ddf.catalog.data.AttributeDescriptor,Serializable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttributeDescriptorImpl(String name, boolean indexed, boolean stored, boolean tokenized, boolean multivalued, ddf.catalog.data.AttributeType<?> type) Constructor -
Method Summary
-
Field Details
-
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 thisAttributeDescriptorindexed- - whetherAttributevalues using thisAttributeDescriptorshould be indexedstored- - whetherAttributevalues using thisAttributeDescriptorshould be storedtokenized- - whetherAttributevalues using thisAttributeDescriptorshould be tokenizedmultivalued- whetherAttributevalues using thisAttributeDescriptorare multivaluedtype- - the type of thisAttributeDescriptor- See Also:
-
AttributeDescriptor.isIndexed()AttributeDescriptor.isStored()AttributeDescriptor.isTokenized()AttributeDescriptor.isMultiValued()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceddf.catalog.data.AttributeDescriptor
-
getType
public ddf.catalog.data.AttributeType<?> getType()- Specified by:
getTypein interfaceddf.catalog.data.AttributeDescriptor
-
isIndexed
public boolean isIndexed()- Specified by:
isIndexedin interfaceddf.catalog.data.AttributeDescriptor
-
isStored
public boolean isStored()- Specified by:
isStoredin interfaceddf.catalog.data.AttributeDescriptor
-
isTokenized
public boolean isTokenized()- Specified by:
isTokenizedin interfaceddf.catalog.data.AttributeDescriptor
-
isMultiValued
public boolean isMultiValued()- Specified by:
isMultiValuedin interfaceddf.catalog.data.AttributeDescriptor
-
hashCode
public int hashCode() -
equals
-
toString
-