Package org.primefaces.seo
Class JsonLD
java.lang.Object
org.primefaces.seo.JsonLD
Create a script of type `ld+json` for Advanced SEO using JSON for Linking Data.
Data is messy and disconnected. JSON-LD organizes and connects it, creating a better Web.
- Since:
- 12.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
encode
(javax.faces.context.FacesContext context, JsonLDModel model, String id) static void
encodeItem
(FastStringWriter writer, JsonLDItem item) static void
encodeItems
(FastStringWriter writer, String optionName, List<JsonLDItem> items, boolean hasComma) static void
encodeModel
(javax.faces.context.FacesContext context, JsonLDModel model) static void
writeOption
(FastStringWriter writer, String name, Object value, boolean hasComma)
-
Method Details
-
encode
public static void encode(javax.faces.context.FacesContext context, JsonLDModel model, String id) throws IOException - Throws:
IOException
-
encodeModel
public static void encodeModel(javax.faces.context.FacesContext context, JsonLDModel model) throws IOException - Throws:
IOException
-
encodeItems
public static void encodeItems(FastStringWriter writer, String optionName, List<JsonLDItem> items, boolean hasComma) throws IOException - Throws:
IOException
-
encodeItem
- Throws:
IOException
-
writeOption
public static void writeOption(FastStringWriter writer, String name, Object value, boolean hasComma) throws IOException - Throws:
IOException
-