/** * To get the value of a specific property. * * @param propertyName name of the Property * @return the value (Object) of the property */ public Object getProperty(final String propertyName) { return _internalContext.getProperty(propertyName); }
/** * To get the value of a specific property. * @param propertyName name of the Property * @return the value (Object) of the property */ public Object getProperty(final String propertyName) { return _internalContext.getProperty(propertyName); }
/** * Returns the value of the given Castor XML-specific property. * * @param name Qualified name of the CASTOR XML-specific property. * @return The current value of the given property. * @since 1.1.2 */ public String getProperty(final String name) { Object propertyValue = _internalContext.getProperty(name); if ((propertyValue != null) && !(propertyValue instanceof String)) { String message = "Requested property: " + name + " is not of type String, but: " + propertyValue.getClass() + " throwing IllegalStateException."; LOG.warn(message); throw new IllegalStateException(message); } return (String) propertyValue; }
/** * Returns the value of the given Castor XML-specific property. * * @param name * Qualified name of the CASTOR XML-specific property. * @return The current value of the given property. * @since 1.1.2 */ public String getProperty(final String name) { Object propertyValue = _internalContext.getProperty(name); if ((propertyValue != null) && !(propertyValue instanceof String)) { String message = "Requested property: " + name + " is not of type String, but: " + propertyValue.getClass() + " throwing IllegalStateException."; LOG.warn(message); throw new IllegalStateException(message); } return (String) propertyValue; }