/** * Get the default value for the description. * * @return The description of this resource. */ public String getDescription() { return getDescription(null); }
/** * Get the default value for the title. * * @return The default title of this resource. */ public String getTitle() { return getTitle(null); }
/** * set default title * * @param value Value to set */ public void setTitle(String value) { setTitle(null, value); }
/** * Set the unique identifier of the resource * * @param text * Value to set */ public void setIdentifier(String text) { addProperty(createTextType(IDENTIFIER, text)); }
/** * Create and add a default Dublin Core schema to this metadata. * * This method return the created schema to enter information * * @return schema added in order to work on it */ public DublinCoreSchema createAndAddDublinCoreSchema() { DublinCoreSchema dc = new DublinCoreSchema(this); dc.setAboutAsSimple(""); addSchema(dc); return dc; }
if (dc != null) display("Title:", dc.getTitle()); display("Description:", dc.getDescription()); listString("Creators: ", dc.getCreators()); listCalendar("Dates:", dc.getDates()); listString("Subjects:", dc.getSubjects());
if (dc != null && dc.getTitleProperty() != null) String defaultTitle = dc.getTitle("x-default"); if (defaultTitle != null) Iterator<AbstractField> it = dc.getTitleProperty().getContainer().getAllProperties().iterator(); boolean empty = true; while (it.hasNext())
dublinCoreSchema.setTitle(title); dublinCoreSchema.addCreator(creator); dublinCoreSchema.setDescription(subject);
if (dc.getDescriptionProperty() != null) if (dc.getDescription("x-default") == null) if (!dc.getDescription("x-default").equals(subject))
if (dc != null) if (dc.getCreatorsProperty() != null) if (dc.getCreators().size() != 1) if (dc.getCreators().get(0) == null) if (!dc.getCreators().get(0).equals(author))
/** * set contributor(s) to the resource (other than the authors) * * @param properName * Value to set */ public void addContributor(String properName) { addQualifiedBagValue(CONTRIBUTOR, properName); }
/** * Set the unique identifier of the resource * * @param text * Property to set */ public void setIdentifierProperty(TextType text) { addProperty(text); }
/** * Set the default value for the description. * * @param value * The description of this resource. */ public void setDescription(String value) { addDescription(null, value); }
/** * Set date(s) that something interesting happened to the resource * * @param date * Value to add */ public void addDate(Calendar date) { addUnqualifiedSequenceDateValue(DATE, date); }
dc.addCreator(creator);
if (dc != null) display("Title:", dc.getTitle()); display("Description:", dc.getDescription()); listString("Creators: ", dc.getCreators()); listCalendar("Dates:", dc.getDates()); listString("Subjects:", dc.getSubjects());
if (dc.getTitle() != null) if (dc.getTitle("x-default") != null) if (!dc.getTitle("x-default").equals(title)) Iterator<AbstractField> it = dc.getTitleProperty().getContainer().getAllProperties().iterator(); if (it.hasNext())
dcSchema.setTitle( info.getTitle() ); dcSchema.addCreator( "PDFBox" ); dcSchema.setDescription( info.getSubject() );
/** * Set the unique identifer of the work from which this resource was derived * * @param text * Value to set */ public void setSource(String text) { addProperty(createTextType(SOURCE, text)); }
if (dc.getDescriptionProperty() != null) if (dc.getDescription("x-default") == null) if (!dc.getDescription("x-default").equals(subject))