KickJava   Java API By Example, From Geeks To Geeks.

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


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

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