protected Object decodePrimitive () throws BeanCoderException { final Class primitiveClass = currentClass(); final String text = currentText(); return BeanCoderUtils.newPrimitive(primitiveClass, text); }
/** * Overriding decodeBean() to intercept decode request for * primitive encoded as beans (it occurs for certains map keys). */ protected Object decodeBean () throws BeanCoderException { if (this.currentNode().hasProperty(this.nsp + PN_PVALUE)) { return BeanCoderUtils.newPrimitive (currentClass(), this.currentNode().getProperty (this.nsp + PN_PVALUE).getString()); } return super.decodeBean(); }