public class ContentTypeImpl extends Object implements ContentType
ContentType
interface.
It is used to return the list of ContentType
s 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 ContentType
version
- the version of the ContentType
public ContentTypeImpl(String name, String version, URI targetNamespace)
name
- the name of the ContentType
version
- the version of the ContentType
targetNamespace
- the namespace of the ContentType
public String getName()
ContentType
ContentType
.getName
in interface ContentType
ContentType
public void setName(String name)
name
- the name of the content typepublic String getVersion()
ContentType
ContentType
.getVersion
in interface ContentType
ContentType
public void setVersion(String version)
version
- the version of the content typepublic URI getNamespace()
ContentType
ContentType
.getNamespace
in interface ContentType
ContentType
public void setNamespace(URI namespace)
namespace
- the namespace of the content typeThis work is licensed under a Creative Commons Attribution 4.0 International License.