public boolean isDatasetUseable(InvDataset ds, StringBuilder sbuff) { boolean ok = true; sbuff.append("Dataset "+ ds.getName()+ " id = "+ds.getID()+": "); if (ds.getName() == null) { ok = false; sbuff.append(" missing Name field\n"); } if (ds.getUniqueID() == null) { ok = false; sbuff.append(" missing ID field\n"); } List list = ds.getPublishers(); if ((list == null) || (list.size() == 0)) { ok = false; sbuff.append(" must have publisher element that defines the data center\n"); } String summary = ds.getDocumentation("summary"); if (summary == null) { ok = false; sbuff.append(" must have documentation element of type summary\n"); } String rights = ds.getDocumentation("rights"); if (rights == null) { ok = false; sbuff.append(" must have documentation element of type rights\n"); } sbuff.append(" useable= "+ok+"\n"); return ok; }
public boolean isDatasetUseable(InvDataset ds, StringBuffer sbuff) { boolean ok = true; sbuff.append("Dataset "+ ds.getName()+ " id = "+ds.getID()+": "); if (ds.getName() == null) { ok = false; sbuff.append(" missing Name field\n"); } if (ds.getUniqueID() == null) { ok = false; sbuff.append(" missing ID field\n"); } List list = ds.getPublishers(); if ((list == null) || (list.size() == 0)) { ok = false; sbuff.append(" must have publisher element that defines the data center\n"); } String summary = ds.getDocumentation("summary"); if (summary == null) { ok = false; sbuff.append(" must have documentation element of type summary\n"); } String rights = ds.getDocumentation("rights"); if (rights == null) { ok = false; sbuff.append(" must have documentation element of type rights\n"); } sbuff.append(" useable= "+ok+"\n"); return ok; }
public boolean isDatasetUseable(InvDataset ds, StringBuilder sbuff) { boolean ok = true; sbuff.append("Dataset "+ ds.getName()+ " id = "+ds.getID()+": "); if (ds.getName() == null) { ok = false; sbuff.append(" missing Name field\n"); } if (ds.getUniqueID() == null) { ok = false; sbuff.append(" missing ID field\n"); } List list = ds.getPublishers(); if ((list == null) || (list.size() == 0)) { ok = false; sbuff.append(" must have publisher element that defines the data center\n"); } String summary = ds.getDocumentation("summary"); if (summary == null) { ok = false; sbuff.append(" must have documentation element of type summary\n"); } String rights = ds.getDocumentation("rights"); if (rights == null) { ok = false; sbuff.append(" must have documentation element of type rights\n"); } sbuff.append(" useable= "+ok+"\n"); return ok; }
if (ds.getUniqueID() == null) { ok = false; sbuff.append(" missing ID field\n");
if (ds.getUniqueID() == null) { ok = false; sbuff.append(" missing ID field\n");
if (ds.getUniqueID() == null) { ok = false; sbuff.append(" missing ID field\n");
private void writeDataset(InvDataset ds, Element rootElem, StringBuffer mess) { String entryId = StringUtil2.allow(ds.getUniqueID(), "_-.", '-'); rootElem.addContent( new Element("Entry_ID", defNS).addContent(entryId)); rootElem.addContent( new Element("Entry_Title", defNS).addContent(ds.getFullName()));
rootElem.addContent( new Element("Entry_ID", defNS).addContent(ds.getUniqueID()));
private void writeDataset(InvDataset ds, Element rootElem, StringBuilder mess) { String entryId = StringUtil2.allow(ds.getUniqueID(), "_-.", '-'); rootElem.addContent( new Element("Entry_ID", defNS).addContent(entryId)); rootElem.addContent( new Element("Entry_Title", defNS).addContent(ds.getFullName()));
private void writeDataset(InvDataset ds, Element rootElem, StringBuilder mess) { String entryId = StringUtil2.allow(ds.getUniqueID(), "_-.", '-'); rootElem.addContent( new Element("Entry_ID", defNS).addContent(entryId)); rootElem.addContent( new Element("Entry_Title", defNS).addContent(ds.getFullName()));
rootElem.addContent( new Element("Entry_ID", defNS).addContent(ds.getUniqueID()));
rootElem.addContent( new Element("Entry_ID", defNS).addContent(ds.getUniqueID()));
String id = StringUtil2.allow(ds.getUniqueID(), ".", '-'); entry.setAttribute("entry", id); entry.addContent("THREDDS");
String id = StringUtil2.allow(ds.getUniqueID(), ".", '-'); entry.setAttribute("entry", id); entry.addContent("THREDDS");
String id = StringUtil2.allow(ds.getUniqueID(), ".", '-'); entry.setAttribute("entry", id); entry.addContent("THREDDS");