public String toString() { return "Link -" + " href: " + getHref() + " hreflang: " + getHreflang() + " title: " + getTitle() + " rel: " + getRel() + " content: " + getContent() + " type: " + getType() + " length: " + getLength(); }
/** * Get the author URI. * * @return The URI. */ public String getUri() { if (uri == null) { return null; } return uri.getContent(); }
/** * Get the title. * * @return The title, or <code>null</code> if no title has been set. */ public String getTitle() { if (title == null) { return null; } return title.getContent(); }
/** * Get a string representation. */ public String toString() { return "Generator - content: " + getContent() + " version: " + getVersion() + " uri: " + getUri(); } }
public SwordValidationInfo unmarshall(Element entry, Properties validationProperties) throws UnmarshallException { SwordValidationInfo result = unmarshallWithoutValidate(entry, validationProperties); if (validationProperties != null) { result = validate(result, validationProperties); } return result; }
/** * Get a string representation. * * @return The string. */ public String toString() { return "Summary - content: " + getContent() + " type: " + getType(); } }
/** * @param prefix The prefix. * @param element element name. * @param namespaceUri The namespace URI. */ public Entry(String prefix, String element, String namespaceUri) { super(prefix, element, namespaceUri); initialise(); }
/** * Get the published date, expressed as a String. * * @return The date. */ public String getPublished() { if (published == null) { return null; } return published.getContent(); }
/** * Unmarshall the author details from the specified element. The element * is a XOM element. * * @param author The element to unmarshall. */ public void unmarshall(Element author) throws UnmarshallException { unmarshall(author, null); }
/** * Set the author URI. * * @param uri the URI. */ public void setUri(String uri) { this.uri = new Uri(uri); }
/** * Set the published date. The date should be in one of the * supported formats. This method will not check that the string * is in the correct format. * * @param published The string. */ public void setPublished(String published) { this.published = new Published(published); }
/** * Set the author name. * * @param name The name. */ public void setName(String name) { this.name = new Name(name); }
/** * Get the author email. * * @return The email. */ public String getEmail() { if (email == null) { return null; } return email.getContent(); }
/** * Create a new instance and set the prefix to * 'atom' and the local name to 'generator'. */ public Generator() { super(XML_NAME); initialise(); }
/** * Unmarshal the specified Generator element into the data in this object. * * @param generator The generator element. * @throws UnmarshallException If the specified element is not an atom:generator * element, or if there is an error accessing the data. */ public void unmarshall(Element generator) throws UnmarshallException { unmarshall(generator, null); }
/** * Get the ID for this Entry. * * @return The ID. */ public String getId() { if (id == null) { return null; } return id.getContent(); }
/** * Set the ID for this Entry. * * @param id The ID. */ public void setId(String id) { this.id = new Id(id); }
/** * Retrieve the author name. * * @return The name. */ public String getName() { if (name == null) { return null; } return name.getContent(); }
/** * Get the content of the Title element. * * @return The title. */ public final String getTitle() { if (title == null) { return null; } return title.getContent(); }