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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Appends the combination of the book, the path, and element anchor that refers to the element resource within the web application.int
Orders by page then id.boolean
getId()
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.int
hashCode()
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:
compareTo
in 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
-