Class ContentTypeImpl

java.lang.Object
ddf.catalog.data.impl.ContentTypeImpl
All Implemented Interfaces:
ddf.catalog.data.ContentType

public class ContentTypeImpl extends Object implements 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 Details

    • name

      protected String name
      Name of the content type.
    • version

      protected String version
      Version of the content type.
    • namespace

      protected URI namespace
      Namespace of the content type.
  • Constructor Details

    • ContentTypeImpl

      public ContentTypeImpl()
    • ContentTypeImpl

      public ContentTypeImpl(String name, String version)
      Parameters:
      name - the name of the ContentType
      version - the version of the ContentType
    • ContentTypeImpl

      public ContentTypeImpl(String name, String version, URI targetNamespace)
      Parameters:
      name - the name of the ContentType
      version - the version of the ContentType
      targetNamespace - the namespace of the ContentType
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface ddf.catalog.data.ContentType
    • setName

      public void setName(String name)
      Sets the name of the content type.
      Parameters:
      name - the name of the content type
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface ddf.catalog.data.ContentType
    • setVersion

      public void setVersion(String version)
      Sets the version of the content type.
      Parameters:
      version - the version of the content type
    • getNamespace

      public URI getNamespace()
      Specified by:
      getNamespace in interface ddf.catalog.data.ContentType
    • setNamespace

      public void setNamespace(URI namespace)
      Sets the namespace of the content type.
      Parameters:
      namespace - the namespace of the content type
    • hashCode

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

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