KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jahia.content;
2
3 public class ContentFieldKey extends ContentObjectKey {
4
5     public static final String JavaDoc FIELD_TYPE = "ContentField";
6
7     static {
8         ObjectKey.registerType(FIELD_TYPE, ContentFieldKey.class.getName());
9     }
10
11     public ContentFieldKey(int fieldID) {
12         super(FIELD_TYPE, Integer.toString(fieldID));
13     }
14
15     public int getFieldID() {
16         return getIdInType();
17     }
18
19     public static ObjectKey getChildInstance(String JavaDoc IDInType) {
20         return new ContentFieldKey(Integer.parseInt(IDInType));
21     }
22
23 }
24
Popular Tags