KickJava   Java API By Example, From Geeks To Geeks.

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


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

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