Package ddf.catalog.data.impl
Class MetacardTypeImpl
java.lang.Object
ddf.catalog.data.impl.MetacardTypeImpl
- All Implemented Interfaces:
ddf.catalog.data.MetacardType,Serializable
- Direct Known Subclasses:
QualifiedMetacardTypeImpl
Default implementation of the
MetacardType, used by MetacardImpl to create the
MetacardImpl.BASIC_METACARD.
This class is Serializable and care should be taken with compatibility if
changes are made.
For what constitutes a compatible change in serialization, see Sun's Guidelines.
- See Also:
-
Field Summary
FieldsFields inherited from interface ddf.catalog.data.MetacardType
DEFAULT_METACARD_TYPE_NAME, METACARD_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMetacardTypeImpl(String name, ddf.catalog.data.MetacardType metacardType, Set<ddf.catalog.data.AttributeDescriptor> additionalDescriptors) Creates aMetacardTypeImplwith the provided name,MetacardType, and set of additional AttributeDescriptors.MetacardTypeImpl(String name, List<ddf.catalog.data.MetacardType> metacardTypes) Creates aMetacardTypeImplwith the providednameandMetacardTypes.MetacardTypeImpl(String name, Set<ddf.catalog.data.AttributeDescriptor> descriptors) Creates aMetacardTypeImplwith the providednameandAttributeDescriptors. -
Method Summary
Modifier and TypeMethodDescriptionSet<ddf.catalog.data.AttributeDescriptor>add(ddf.catalog.data.AttributeDescriptor descriptor) Set<ddf.catalog.data.AttributeDescriptor>booleanddf.catalog.data.AttributeDescriptorgetAttributeDescriptor(String attributeName) Set<ddf.catalog.data.AttributeDescriptor>getName()inthashCode()
-
Field Details
-
name
The name of thisMetacardTypeImpl
-
-
Constructor Details
-
MetacardTypeImpl
Creates aMetacardTypeImplwith the providednameandAttributeDescriptors.- Parameters:
name- the name of thisMetacardTypeImpldescriptors- the set of descriptors for thisMetacardTypeImpl
-
MetacardTypeImpl
public MetacardTypeImpl(String name, ddf.catalog.data.MetacardType metacardType, Set<ddf.catalog.data.AttributeDescriptor> additionalDescriptors) Creates aMetacardTypeImplwith the provided name,MetacardType, and set of additional AttributeDescriptors.additionalDescriptorsand the descriptors inmetacardTypewill be combined to form the set of descriptors for thisMetacardTypeImpl.Essentially, this is a convenience constructor for creating a new
MetacardTypeImplthat extends an existingMetacardType.- Parameters:
name- the name of thisMetacardTypeImplmetacardType- the baseMetacardType, cannot be nulladditionalDescriptors- the descriptors to add to thisMetacardTypeImplin addition to the descriptors inmetacardType, cannot be null or empty- Throws:
IllegalArgumentException- ifmetacardTypeoradditionalDescriptorsis null, or ifadditionalDescriptorsis empty
-
MetacardTypeImpl
Creates aMetacardTypeImplwith the providednameandMetacardTypes.- Parameters:
name- the name of thisMetacardTypeImplmetacardTypes- the set ofMetacardTypes to compose thisMetacardTypeImpl
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceddf.catalog.data.MetacardType
-
getAttributeDescriptors
- Specified by:
getAttributeDescriptorsin interfaceddf.catalog.data.MetacardType
-
getAttributeDescriptor
- Specified by:
getAttributeDescriptorin interfaceddf.catalog.data.MetacardType
-
addAll
-
add
public Set<ddf.catalog.data.AttributeDescriptor> add(ddf.catalog.data.AttributeDescriptor descriptor) -
hashCode
public int hashCode() -
equals
-