public class ContentTypeImpl extends Object implements ContentType
ContentType interface.
It is used to return the list of ContentTypes currently stored in a Source.
| Modifier and Type | Field and Description |
|---|---|
protected String |
name
Name of the content type.
|
protected URI |
namespace
Namespace of the content type.
|
protected String |
version
Version of the content type.
|
| Constructor and Description |
|---|
ContentTypeImpl() |
ContentTypeImpl(String name,
String version) |
ContentTypeImpl(String name,
String version,
URI targetNamespace) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Get the name of this
ContentType. |
URI |
getNamespace()
Get the namespace URI of this
ContentType. |
String |
getVersion()
Get the version of this
ContentType. |
int |
hashCode() |
void |
setName(String name)
Sets the name of the content type.
|
void |
setNamespace(URI namespace)
Sets the namespace of the content type.
|
void |
setVersion(String version)
Sets the version of the content type.
|
protected String name
protected String version
protected URI namespace
public ContentTypeImpl()
public ContentTypeImpl(String name, String version)
name - the name of the ContentTypeversion - the version of the ContentTypepublic ContentTypeImpl(String name, String version, URI targetNamespace)
name - the name of the ContentTypeversion - the version of the ContentTypetargetNamespace - the namespace of the ContentTypepublic String getName()
ContentTypeContentType.getName in interface ContentTypeContentTypepublic void setName(String name)
name - the name of the content typepublic String getVersion()
ContentTypeContentType.getVersion in interface ContentTypeContentTypepublic void setVersion(String version)
version - the version of the content typepublic URI getNamespace()
ContentTypeContentType.getNamespace in interface ContentTypeContentTypepublic void setNamespace(URI namespace)
namespace - the namespace of the content typeThis work is licensed under a Creative Commons Attribution 4.0 International License.