/** * Sets the description of this page * * @param description * The description of the page */ @SuppressWarnings("unchecked") public final J setDescription(String description) { if (descriptionMeta == null) { descriptionMeta = new Meta(Meta.MetadataFields.Description, description); } else { descriptionMeta.addAttribute(MetaAttributes.Content, description); } return (J) this; }
/** * Returns the Application Name of the page * * @param dummyInt * Serves no function * * @return String The actual used compatibility mode */ @SuppressWarnings("unused") public final String getCompatibilityMode(int dummyInt) { return httpEquivMeta.getAttribute(MetaAttributes.Http_Equiv); }
@Override public boolean equals(Object o) { if (o instanceof Meta) { Meta m = (Meta) o; return getAttributes().entrySet() .equals(m.getAttributes() .entrySet()); } return false; }
addAttribute(MetaAttributes.Http_Equiv, MetadataFields.http_equiv.getDataNameField()); addAttribute(MetaAttributes.Http_Equiv, value); break; addAttribute(MetaAttributes.Content, value); addAttribute(MetaAttributes.Name, MetadataFields.Author.getDataNameField()); break; addAttribute(MetaAttributes.Content, value); addAttribute(MetaAttributes.Name, MetadataFields.Description.getDataNameField()); break; addAttribute(MetaAttributes.Content, value); addAttribute(MetaAttributes.Name, MetadataFields.Keywords.getDataNameField()); break; addAttribute(MetaAttributes.Http_Equiv, field.getDataNameField()); addAttribute(MetaAttributes.Name, field.getDataNameField()); addAttribute(MetaAttributes.Content, value); setTiny(true);
/** * Sets the author of this page * * @param author * The author of this page */ @SuppressWarnings("unchecked") public final J setAuthor(String author) { this.author = new Meta(Meta.MetadataFields.Author, author); return (J) this; }
/** * Creates a Meta tag of HTTP Equiv with the custom name * * @param httpEquivName */ public Meta(String httpEquivName) { super(ComponentTypes.Metadata); addAttribute(MetaAttributes.Http_Equiv, httpEquivName); }
/** * Differences Between HTML and XHTML * <p> * In HTML the base tag has no end tag. * <p> * In XHTML the base tag must be properly closed. */ @Override public void preConfigure() { try { if (getPage().getHtmlVersion() .name() .startsWith("X")) { setInlineClosingTag(true); } } catch (Exception e) { Meta.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } }
addAttribute(MetaAttributes.Http_Equiv, MetadataFields.http_equiv.getDataNameField()); addAttribute(MetaAttributes.Http_Equiv, value); break; addAttribute(MetaAttributes.Content, value); addAttribute(MetaAttributes.Name, MetadataFields.Author.getDataNameField()); break; addAttribute(MetaAttributes.Content, value); addAttribute(MetaAttributes.Name, MetadataFields.Description.getDataNameField()); break; addAttribute(MetaAttributes.Content, value); addAttribute(MetaAttributes.Name, MetadataFields.Keywords.getDataNameField()); break; addAttribute(MetaAttributes.Http_Equiv, field.getDataNameField()); addAttribute(MetaAttributes.Name, field.getDataNameField()); addAttribute(MetaAttributes.Content, value); setTiny(true);
/** * Sets the author of this page * * @param author * The author of this page */ @SuppressWarnings("unchecked") public final J setAuthor(String author) { this.author = new Meta(Meta.MetadataFields.Author, author); return (J) this; }
/** * Creates a Meta tag of HTTP Equiv with the custom name * * @param httpEquivName */ public Meta(String httpEquivName) { super(ComponentTypes.Metadata); addAttribute(MetaAttributes.Http_Equiv, httpEquivName); }
/** * Differences Between HTML and XHTML * <p> * In HTML the base tag has no end tag. * <p> * In XHTML the base tag must be properly closed. */ @Override public void preConfigure() { try { if (getPage().getHtmlVersion() .name() .startsWith("X")) { setInlineClosingTag(true); } } catch (Exception e) { Meta.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } }
/** * Sets the Keywords of this page * * @param Keywords * The Keywords of the page */ @SuppressWarnings("unchecked") public final J setKeywords(String Keywords) { if (keywordsMeta == null) { keywordsMeta = new Meta(Meta.MetadataFields.Keywords, Keywords); } else { keywordsMeta.addAttribute(MetaAttributes.Content, Keywords); } return (J) this; }
addAttribute(MetaAttributes.Http_Equiv, MetadataFields.http_equiv.getDataNameField()); addAttribute(MetaAttributes.Http_Equiv, value); break; addAttribute(MetaAttributes.Content, value); addAttribute(MetaAttributes.Name, MetadataFields.Author.getDataNameField()); break; addAttribute(MetaAttributes.Content, value); addAttribute(MetaAttributes.Name, MetadataFields.Description.getDataNameField()); break; addAttribute(MetaAttributes.Content, value); addAttribute(MetaAttributes.Name, MetadataFields.Keywords.getDataNameField()); break; addAttribute(MetaAttributes.Http_Equiv, field.getDataNameField()); addAttribute(MetaAttributes.Name, field.getDataNameField()); addAttribute(MetaAttributes.Content, value); setTiny(true);
/** * Sets the author of this page * * @param author * The author of this page */ @SuppressWarnings("unchecked") public final J setAuthor(String author) { this.author = new Meta(Meta.MetadataFields.Author, author); return (J) this; }
/** * Creates a Meta tag of HTTP Equiv with the custom name * * @param httpEquivName */ public Meta(String httpEquivName) { super(ComponentTypes.Metadata); addAttribute(MetaAttributes.Http_Equiv, httpEquivName); }
/** * Differences Between HTML and XHTML * <p> * In HTML the base tag has no end tag. * <p> * In XHTML the base tag must be properly closed. */ @Override public void preConfigure() { try { if (getPage().getHtmlVersion() .name() .startsWith("X")) { setInlineClosingTag(true); } } catch (Exception e) { Meta.log.log(Level.FINE, "Unable to determine whether XHTML or HTML. Will still render correctly, just not W3 Compliant.", e); } }
/** * Returns the Application Name of the page * * @param dummyInt * Serves no function * * @return String The actual used compatibility mode */ @SuppressWarnings("unused") public final String getCompatibilityMode(int dummyInt) { return httpEquivMeta.getAttribute(MetaAttributes.Http_Equiv); }
@Override public boolean equals(Object o) { if (o instanceof Meta) { Meta m = (Meta) o; return getAttributes().entrySet() .equals(m.getAttributes() .entrySet()); } return false; }
/** * Sets the Generator of this page * * @param Generator * The Generator of the page */ @SuppressWarnings("unchecked") public final J setGenerator(String Generator) { if (generatorMeta == null) { generatorMeta = new Meta(Meta.MetadataFields.Generator, Generator); } else { generatorMeta.addAttribute(MetaAttributes.Content, Generator); } return (J) this; }
/** * Returns the Application Name of the page * * @param dummyInt * Serves no function * * @return String The actual used compatibility mode */ @SuppressWarnings("unused") public final String getCompatibilityMode(int dummyInt) { return httpEquivMeta.getAttribute(MetaAttributes.Http_Equiv); }