Package org.dspace.content
Class MetadataSchema
java.lang.Object
org.dspace.content.MetadataSchema
- All Implemented Interfaces:
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:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor, create object using:MetadataSchemaService.create(Context, String, String) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetID()Get the schema record key number.getName()Get the schema name.Get the schema namespace.inthashCode()voidSet the schema name.voidsetNamespace(String namespace) Set the schema namespace.
-
Constructor Details
-
MetadataSchema
protected MetadataSchema()Protected constructor, create object using:MetadataSchemaService.create(Context, String, String)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getNamespace
Get the schema namespace.- Returns:
- namespace String
-
setNamespace
Set the schema namespace.- Parameters:
namespace- XML namespace URI
-
getName
Get the schema name.- Returns:
- name String
-
setName
Set the schema name.- Parameters:
name- short name of schema
-
getID
Get the schema record key number.- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- schema record key
-