Class WebXAttributes
java.lang.Object
webx.WebXAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute(String key, String value) Adds a new attribute to the list by constructing it from the key and valueaddAttribute(WebXAttribute attribute) Adds a new attribute to the list, expecting it to already be constructedgetFirst()getLast()getSlice(int end) getSlice(int start, int end) render()Combines all attributes to a single value separated by a space
-
Constructor Details
-
WebXAttributes
public WebXAttributes()
-
-
Method Details
-
addAttribute
Adds a new attribute to the list by constructing it from the key and value- Parameters:
key- The key of the attributevalue- The value of the attribute- Returns:
- A modified list of attributes
-
addAttribute
Adds a new attribute to the list, expecting it to already be constructed- Parameters:
attribute-- Returns:
-
render
Combines all attributes to a single value separated by a space- Returns:
- A String representation of the attributes list
-
getFirst
-
getLast
-
getSlice
-
getSlice
-