org.chromattic.docs.technical.groovy.Page.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chromattic.docs.technical.examples Show documentation
Show all versions of chromattic.docs.technical.examples Show documentation
Chromattic Framework Technical Examples
package org.chromattic.docs.technical.groovy
import org.chromattic.api.annotations.Name
import org.chromattic.api.annotations.Property
import org.chromattic.api.annotations.PrimaryType
/**
* @author Alain Defrance
* @version $Revision$
*/
@PrimaryType(name = "gs:page")
class Page {
/**
* The page name.
*/
@Name def String name // <> The name property is mapped to the node name
/**
* The page title.
*/
@Property(name = "title") def String title // <> The title property is mapped to the title node property
/**
* The page content.
*/
@Property(name = "content") def String content // <> The content property is mapped to the content node property
}