Method Summary |
|
public Content | attribute(String name, boolean value) Sets a named content attribute that will be converted internally to a
String value. |
public Content | attribute(String name, char value) Sets a named content attribute that will be converted internally to a
String value. |
public Content | attribute(String name, byte value) Sets a named content attribute that will be converted internally to a
String value. |
public Content | attribute(String name, short value) Sets a named content attribute that will be converted internally to a
String value. |
public Content | attribute(String name, int value) Sets a named content attribute that will be converted internally to a
String value. |
public Content | attribute(String name, long value) Sets a named content attribute that will be converted internally to a
String value. |
public Content | attribute(String name, float value) Sets a named content attribute that will be converted internally to a
String value. |
public Content | attribute(String name, double value) Sets a named content attribute that will be converted internally to a
String value. |
public Content | attribute(String name, String value) Sets a named content attribute. |
public Content | attributes(Map<String, String> attributes) Replaces the map of named content attributes.
Note that attributes provide information about how to load, convert
and transform content into its stored data form. |
public Content | cachedLoadedData(Object data) Sets the cached loaded data.
This is internally used by content loaders to prevent having
to load and convert data to the specified mime type several times for
the same content. |
public Content | clone() |
public Content | fragment(boolean fragment) Sets whether the content data is a fragment. |
public String | getAttribute(String name) Retrieves the value of a named content attribute. |
public Map<String, String> | getAttributes() Retrieves the map of named content attributes. |
public Object | getCachedLoadedData() Retrieves the cached loaded content data. |
public Object | getData() Retrieves the data of the content. |
public MimeType | getMimeType() Retrieves the mime type of the content. |
public String | getName() Retrieves the name of the content. |
public Map<String, String> | getProperties() Retrieves the content properties. |
public String | getProperty(String name) Retrieves the value of a named content property. |
public boolean | hasAttribute(String name) Indicates whether a specific named content attribute is present. |
public boolean | hasAttributes() Indicates whether named content attributes are present. |
public boolean | hasCachedLoadedData() Indicates whether cached loaded content data is present. |
public boolean | hasName() Indicates whether the content data has a name. |
public boolean | hasProperties() |
public boolean | hasProperty(String name) Indicates whether a specific named content property is present. |
public boolean | isFragment() Indicates whether the content data is a fragment. |
public Content | name(String name) Sets the name of the content. |
public Content | properties(Map<String, String> properties) Replaces the content properties.
This is also internally used by content formatters to provide
additional information about the content that's stored after formatting
and transformation. |
public Content | property(String name, boolean value) Sets a named content property that will be converted internally to a
String value. |
public Content | property(String name, char value) Sets a named content property that will be converted internally to a
String value. |
public Content | property(String name, byte value) Sets a named content property that will be converted internally to a
String value. |
public Content | property(String name, short value) Sets a named content property that will be converted internally to a
String value. |
public Content | property(String name, int value) Sets a named content property that will be converted internally to a
String value. |
public Content | property(String name, long value) Sets a named content property that will be converted internally to a
String value. |
public Content | property(String name, float value) Sets a named content property that will be converted internally to a
String value. |
public Content | property(String name, double value) Sets a named content property that will be converted internally to a
String value. |
public Content | property(String name, String value) Sets a named content property. |
public void | setAttributes(Map<String, String> attributes) Replaces the map of named content attributes. |
public void | setCachedLoadedData(Object data) Sets the cached loaded data. |
public void | setData(Object data) Sets the data of the content. |
public void | setFragment(boolean fragment) Sets whether the content data is a fragment. |
public void | setName(String name) Sets the name of the content. |
public void | setProperties(Map<String, String> properties) Replaces the content properties. |