KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > content > ContentPageKey


1 package org.jahia.content;
2
3 /**
4  * Title: Jahia
5  * Description:
6  * Copyright: Copyright (c) 2002
7  * Company: Jahia Ltd
8  * @author Serge Huber
9  * @version 1.0
10  */

11
12 public class ContentPageKey extends ContentObjectKey {
13
14     public static final String JavaDoc PAGE_TYPE = "ContentPage";
15
16     static {
17         ObjectKey.registerType(PAGE_TYPE, ContentPageKey.class.getName());
18     }
19
20     public ContentPageKey(int pageID) {
21         super(PAGE_TYPE, Integer.toString(pageID));
22     }
23
24     public int getPageID() {
25         return getIdInType();
26     }
27
28     public static ObjectKey getChildInstance(String JavaDoc IDInType) {
29         return new ContentPageKey(Integer.parseInt(IDInType));
30     }
31
32 }
Popular Tags