Methods Summary |
---|
public final java.lang.String | getName()Getter for property name.
return this.name;
|
public static final oreilly.hcj.constants.ConstantObject | lookup(java.lang.Class dataType, java.lang.String name)Get the constant for the given class and id.
return (ConstantObject)((Map)CONSTANTS_MASTER_INDEX.get(dataType)).get(name);
|
public static final java.util.Map | lookup(java.lang.Class dataType)Get the constants index for the given class.
return Collections.unmodifiableMap((Map)CONSTANTS_MASTER_INDEX.get(dataType));
|
protected java.lang.Object | readResolve()Resolve a read in object.
Object result = lookup(getClass(), getName());
if (result == null) {
throw new RuntimeException("Constant not found for name: " + getName()); //$NON-NLS-1$
}
return result;
|
public java.lang.String | toString()
return this.getClass()
.getName() + "." + this.name;
|