java.lang.Object
com.semanticcms.core.model.ElementRef
- All Implemented Interfaces:
Comparable<ElementRef>
An element reference contains a book, a path, and an element id.
Any path to a directory must end with a slash (/).
TODO: Support parameters to a page, child, link, ... Parameters provided in path/page?, param.* attributes, and nested tags - matching/extending AO taglib.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends the combination of the book, the path, and element anchor that refers to the element resource within the web application.intOrders by page then id.booleangetId()The id of the element within the page.The reference to the page this element is part of.Gets the combination of the book, the path, and element anchor that refers to the element resource within the web application.inthashCode()toString()
-
Constructor Details
-
ElementRef
-
-
Method Details
-
getPageRef
The reference to the page this element is part of. -
getId
The id of the element within the page. -
equals
-
hashCode
public int hashCode() -
compareTo
Orders by page then id.- Specified by:
compareToin interfaceComparable<ElementRef>- See Also:
-
getServletPath
Gets the combination of the book, the path, and element anchor that refers to the element resource within the web application.The element anchor is not URL-encoded - Unicode characters are verbatim.
- See Also:
-
appendServletPath
Appends the combination of the book, the path, and element anchor that refers to the element resource within the web application.The element anchor is not URL-encoded - Unicode characters are verbatim.
- Throws:
IOException- See Also:
-
toString
-
