Package org.dspace.content
Class MetadataSchema
- java.lang.Object
-
- org.dspace.content.MetadataSchema
-
- All Implemented Interfaces:
ReloadableEntity<Integer>
@Entity public class MetadataSchema extends Object implements ReloadableEntity<Integer>
Class representing a schema in DSpace.The schema object exposes a name which can later be used to generate namespace prefixes in RDF or XML, e.g. the core DSpace Dublin Core schema would have a name of
'dc'.- Author:
- Martin Hald
- See Also:
MetadataValue,MetadataField
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMetadataSchema()Protected constructor, create object using:MetadataSchemaService.create(Context, String, String)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)IntegergetID()Get the schema record key number.StringgetName()Get the schema name.StringgetNamespace()Get the schema namespace.inthashCode()voidsetName(String name)Set the schema name.voidsetNamespace(String namespace)Set the schema namespace.
-
-
-
Constructor Detail
-
MetadataSchema
protected MetadataSchema()
Protected constructor, create object using:MetadataSchemaService.create(Context, String, String)
-
-
Method Detail
-
getNamespace
public String getNamespace()
Get the schema namespace.- Returns:
- namespace String
-
setNamespace
public void setNamespace(String namespace)
Set the schema namespace.- Parameters:
namespace- XML namespace URI
-
getName
public String getName()
Get the schema name.- Returns:
- name String
-
setName
public void setName(String name)
Set the schema name.- Parameters:
name- short name of schema
-
getID
public Integer getID()
Get the schema record key number.- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- schema record key
-
-