return Namespace.getNamespace(DCModule.URI);
}
public Module parse(Element dcRoot) {
boolean foundSomething = false;
DCModule dcm = new DCModuleImpl();
Element e = dcRoot.getChild("title",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setTitle(e.getText());
}
e = dcRoot.getChild("creator",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setCreator(e.getText());
}
List eList = dcRoot.getChildren("subject",getDCNamespace());
if (eList.size()>0) {
foundSomething = true;
dcm.setSubjects(parseSubjects(eList));
}
e = dcRoot.getChild("description",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setDescription(e.getText());
}
e = dcRoot.getChild("publisher",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setPublisher(e.getText());
}
eList = dcRoot.getChildren("contributor",getDCNamespace());
if (eList.size()>0) {
foundSomething = true;
dcm.setContributors(parseContributors(eList));
}
e = dcRoot.getChild("date",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setDate(DateParser.parseW3CDateTime(e.getText()));
}
e = dcRoot.getChild("type",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setType(e.getText());
}
e = dcRoot.getChild("format",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setFormat(e.getText());
}
e = dcRoot.getChild("identifier",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setIdentifier(e.getText());
}
e = dcRoot.getChild("source",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setSource(e.getText());
}
e = dcRoot.getChild("language",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setLanguage(e.getText());
}
e = dcRoot.getChild("relation",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setRelation(e.getText());
}
e = dcRoot.getChild("coverage",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setCoverage(e.getText());
}
e = dcRoot.getChild("rights",getDCNamespace());
if (e!=null) {
foundSomething = true;
dcm.setRights(e.getText());
}
return (foundSomething) ? dcm : null;
}