KickJava   Java API By Example, From Geeks To Geeks.

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


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 FieldDefinitionKey extends ContentDefinitionKey {
13
14     public static final String JavaDoc FIELD_TYPE = "FieldDefinition";
15
16     static {
17         ObjectKey.registerType(FIELD_TYPE, FieldDefinitionKey.class.getName());
18     }
19
20     public FieldDefinitionKey(int fieldDefID) {
21         super(FIELD_TYPE, Integer.toString(fieldDefID));
22     }
23
24     public int getFieldID() {
25         return getIdInType();
26     }
27
28     public static ObjectKey getChildInstance(String JavaDoc IDInType) {
29         return new FieldDefinitionKey(Integer.parseInt(IDInType));
30     }
31
32 }
33
Popular Tags