Package ddf.catalog.data.impl
Class ContentTypeImpl
java.lang.Object
ddf.catalog.data.impl.ContentTypeImpl
- All Implemented Interfaces:
ddf.catalog.data.ContentType
This class is a common implementation of the
ContentType interface.
It is used to return the list of ContentTypes currently stored in a Source.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContentTypeImpl(String name, String version) ContentTypeImpl(String name, String version, URI targetNamespace) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()inthashCode()voidSets the name of the content type.voidsetNamespace(URI namespace) Sets the namespace of the content type.voidsetVersion(String version) Sets the version of the content type.
-
Field Details
-
name
Name of the content type. -
version
Version of the content type. -
namespace
Namespace of the content type.
-
-
Constructor Details
-
ContentTypeImpl
public ContentTypeImpl() -
ContentTypeImpl
- Parameters:
name- the name of theContentTypeversion- the version of theContentType
-
ContentTypeImpl
- Parameters:
name- the name of theContentTypeversion- the version of theContentTypetargetNamespace- the namespace of theContentType
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceddf.catalog.data.ContentType
-
setName
Sets the name of the content type.- Parameters:
name- the name of the content type
-
getVersion
- Specified by:
getVersionin interfaceddf.catalog.data.ContentType
-
setVersion
Sets the version of the content type.- Parameters:
version- the version of the content type
-
getNamespace
- Specified by:
getNamespacein interfaceddf.catalog.data.ContentType
-
setNamespace
Sets the namespace of the content type.- Parameters:
namespace- the namespace of the content type
-
hashCode
public int hashCode() -
equals
-