/** * Returns a string representation of the business object definition key. * * @param businessObjectDefinitionKey the business object definition key * @return the string representation of the business object definition key */ public String businessObjectDefinitionKeyToString( BusinessObjectDefinitionKey businessObjectDefinitionKey) { return String.format( "namespace: \"%s\", businessObjectDefinitionName: \"%s\"", businessObjectDefinitionKey.getNamespace(), businessObjectDefinitionKey.getBusinessObjectDefinitionName()); }
/** * Validates the business object definition key. This method also trims the key parameters. * * @param key the business object definition key * @throws IllegalArgumentException if any validation errors were found */ public void validateBusinessObjectDefinitionKey(BusinessObjectDefinitionKey key) throws IllegalArgumentException { // Validate. Assert.notNull(key, "A business object definition key must be specified."); key.setNamespace(alternateKeyHelper.validateStringParameter("namespace", key.getNamespace())); key.setBusinessObjectDefinitionName( alternateKeyHelper.validateStringParameter( "business object definition name", key.getBusinessObjectDefinitionName())); }