/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * Sets the Application Name of this page * * @param applicationName * The Application Name of the page */ @SuppressWarnings("unchecked") public final J setApplicationNameMeta(String applicationName) { if (applicationNameMeta == null) { applicationNameMeta = new Meta(Meta.MetadataFields.Application_Name, applicationName); } else { applicationNameMeta.addAttribute(MetaAttributes.Content, applicationName); } return (J) this; }
/** * 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; }
/** * Sets the Application Name of this page * * @param applicationName * The Application Name of the page */ @SuppressWarnings("unchecked") public final J setApplicationNameMeta(String applicationName) { if (applicationNameMeta == null) { applicationNameMeta = new Meta(Meta.MetadataFields.Application_Name, applicationName); } else { applicationNameMeta.addAttribute(MetaAttributes.Content, applicationName); } return (J) this; }
/** * Sets the Application Name of this page * * @param applicationName * The Application Name of the page */ @SuppressWarnings("unchecked") public final J setApplicationNameMeta(String applicationName) { if (applicationNameMeta == null) { applicationNameMeta = new Meta(Meta.MetadataFields.Application_Name, applicationName); } else { applicationNameMeta.addAttribute(MetaAttributes.Content, applicationName); } return (J) this; }
cacheControl = new Meta("cache-control"); cacheControl.addAttribute(MetaAttributes.Content, "public");
/** * Sets the Application Name of this page Null removes compatibility specification * * @param httpEquiv * The Application Name of the page */ @SuppressWarnings("unchecked") public final J setCompatibilityMode(InternetExplorerCompatibilityMode httpEquiv) { if (httpEquivMeta != null && httpEquiv != null) { httpEquivMeta.addAttribute(MetaAttributes.Content, httpEquiv.getValue()); } else if (httpEquiv != null) { httpEquivMeta = new Meta(Meta.MetadataFields.http_equiv, httpEquiv.getValue()); } else { httpEquivMeta = null; } return (J) this; }
/** * Sets the Application Name of this page Null removes compatibility specification * * @param httpEquiv * The Application Name of the page */ @SuppressWarnings("unchecked") public final J setCompatibilityMode(InternetExplorerCompatibilityMode httpEquiv) { if (httpEquivMeta != null && httpEquiv != null) { httpEquivMeta.addAttribute(MetaAttributes.Content, httpEquiv.getValue()); } else if (httpEquiv != null) { httpEquivMeta = new Meta(Meta.MetadataFields.http_equiv, httpEquiv.getValue()); } else { httpEquivMeta = null; } return (J) this; }
/** * Sets the Application Name of this page Null removes compatibility specification * * @param httpEquiv * The Application Name of the page */ @SuppressWarnings("unchecked") public final J setCompatibilityMode(InternetExplorerCompatibilityMode httpEquiv) { if (httpEquivMeta != null && httpEquiv != null) { httpEquivMeta.addAttribute(MetaAttributes.Content, httpEquiv.getValue()); } else if (httpEquiv != null) { httpEquivMeta = new Meta(Meta.MetadataFields.http_equiv, httpEquiv.getValue()); } else { httpEquivMeta = null; } return (J) this; }
Meta charMeta = new Meta(); charMeta.addAttribute(MetaAttributes.Charset, "utf-16"); Meta viewportMeta = new Meta(); viewportMeta.addAttribute(GlobalAttributes.Name, "viewport"); Meta compatMeta = new Meta(); compatMeta.addAttribute(MetaAttributes.Http_Equiv, "X-UA-Compatible"); compatMeta.addAttribute(MetaAttributes.Content, "IE=Edge");