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:
  • Constructor Details

  • Method Details

    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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:
      getID in interface ReloadableEntity<Integer>
      Returns:
      schema record key