private static BusinessDataSessionBeanRemote BUSINESS_CONTACT_BEAN;
/**
- * Initialization of this converter
+ * Default constructor
*/
public PizzaBusinessContactConverter () {
}
@Override
public String getAsString (final FacesContext context, final UIComponent component, final Object value) {
// Is the object null?
- if ((null == value) || ((String.valueOf(value)).isEmpty())) {
+ if ((null == value) || (String.valueOf(value).isEmpty())) {
// Is null
return ""; //NOI18N
} else if (!(value instanceof Contact)) {
// Not same interface
- throw new IllegalArgumentException(MessageFormat.format("value {0} does not implement Contact.", value)); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("value[]={0} does not implement Contact.", value.getClass().getSimpleName())); //NOI18N
}
- // Return category id
+ // Return id number
return String.valueOf(((BusinessBasicData) value).getBusinessDataId());
}
private static ContactSessionBeanRemote CONTACT_BEAN;
/**
- * Initialization of this converter
+ * Default constructor
*/
public PizzaContactConverter () {
}
@Override
public String getAsString (final FacesContext context, final UIComponent component, final Object value) {
// Is the object null?
- if ((null == value) || ((String.valueOf(value)).isEmpty())) {
+ if ((null == value) || (String.valueOf(value).isEmpty())) {
// Is null
return ""; //NOI18N
} else if (!(value instanceof Contact)) {
// Not same interface
- throw new IllegalArgumentException(MessageFormat.format("value {0} does not implement Contact.", value)); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("value[]={0} does not implement Contact.", value.getClass().getSimpleName())); //NOI18N
}
- // Return category id
+ // Return id number
return String.valueOf(((Contact) value).getContactId());
}
private static CountrySingletonBeanRemote COUNTRY_BEAN;
/**
- * Initialization of this converter
+ * Default constructor
*/
public PizzaCountryConverter () {
}
@Override
public String getAsString (final FacesContext context, final UIComponent component, final Object value) {
// Is the object null?
- if ((null == value) || ((String.valueOf(value)).isEmpty())) {
+ if ((null == value) || (String.valueOf(value).isEmpty())) {
// Is null
return ""; //NOI18N
} else if (!(value instanceof Country)) {
// Not same interface
- throw new IllegalArgumentException(MessageFormat.format("value {0} does not implement Country.", value)); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("value[]={0} does not implement Country.", value.getClass().getSimpleName())); //NOI18N
}
- // Return category id
+ // Return id number
return String.valueOf(((Country) value).getCountryId());
}
private static PhoneSessionBeanRemote PHONE_BEAN;
/**
- * Initialization of this converter
+ * Default constructor
*/
public PizzaFaxNumberConverter () {
}
@Override
public String getAsString (final FacesContext context, final UIComponent component, final Object value) {
// Is the object null?
- if ((null == value) || ((String.valueOf(value)).isEmpty())) {
+ if ((null == value) || (String.valueOf(value).isEmpty())) {
// Is null
return ""; //NOI18N
} else if (!(value instanceof DialableNumber)) {
// Not same interface
- throw new IllegalArgumentException(MessageFormat.format("value {0} does not implement DialableNumber.", value)); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("value[]={0} does not implement DialableNumber.", value.getClass().getSimpleName())); //NOI18N
}
- // Return category id
+ // Return id number
return String.valueOf(((DialableNumber) value).getPhoneId());
}
private static PhoneSessionBeanRemote PHONE_BEAN;
/**
- * Initialization of this converter
+ * Default constructor
*/
public PizzaLandLineNumberConverter () {
}
@Override
public String getAsString (final FacesContext context, final UIComponent component, final Object value) {
// Is the object null?
- if ((null == value) || ((String.valueOf(value)).isEmpty())) {
+ if ((null == value) || (String.valueOf(value).isEmpty())) {
// Is null
return ""; //NOI18N
} else if (!(value instanceof DialableNumber)) {
// Not same interface
- throw new IllegalArgumentException(MessageFormat.format("value {0} does not implement DialableNumber.", value)); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("value[]={0} does not implement DialableNumber.", value.getClass().getSimpleName())); //NOI18N
}
- // Return category id
+ // Return id number
return String.valueOf(((DialableNumber) value).getPhoneId());
}
private static PhoneSessionBeanRemote PHONE_BEAN;
/**
- * Initialization of this converter
+ * Default constructor
*/
public PizzaMobileNumberConverter () {
}
@Override
public String getAsString (final FacesContext context, final UIComponent component, final Object value) {
// Is the object null?
- if ((null == value) || ((String.valueOf(value)).isEmpty())) {
+ if ((null == value) || (String.valueOf(value).isEmpty())) {
// Is null
return ""; //NOI18N
} else if (!(value instanceof DialableNumber)) {
// Not same interface
- throw new IllegalArgumentException(MessageFormat.format("value {0} does not implement DialableNumber.", value)); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("value[]={0} does not implement DialableNumber.", value.getClass().getSimpleName())); //NOI18N
}
- // Return category id
+ // Return id number
return String.valueOf(((DialableNumber) value).getPhoneId());
}
private static MobileProviderSingletonBeanRemote MOBILE_PROVIDER_BEAN;
/**
- * Initialization of this converter
+ * Default constructor
*/
public PizzaMobileProviderConverter () {
}
@Override
public String getAsString (final FacesContext context, final UIComponent component, final Object value) {
// Is the object null?
- if ((null == value) || ((String.valueOf(value)).isEmpty())) {
+ if ((null == value) || (String.valueOf(value).isEmpty())) {
// Is null
return ""; //NOI18N
} else if (!(value instanceof MobileProvider)) {
// Not same interface
- throw new IllegalArgumentException(MessageFormat.format("value {0} does not implement MobileProvider.", value)); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("value[]={0} does not implement MobileProvider.", value.getClass().getSimpleName())); //NOI18N
}
- // Return category id
+ // Return id number
return String.valueOf(((MobileProvider) value).getProviderId());
}
private static UserSessionBeanRemote USER_BEAN;
/**
- * Initialization of this converter
+ * Default constructor
*/
public PizzaUserConverter () {
}
@Override
public String getAsString (final FacesContext context, final UIComponent component, final Object value) {
// Is the object null?
- if ((null == value) || ((String.valueOf(value)).isEmpty())) {
+ if ((null == value) || (String.valueOf(value).isEmpty())) {
// Is null
return ""; //NOI18N
} else if (!(value instanceof User)) {
// Not same interface
- throw new IllegalArgumentException(MessageFormat.format("value {0} does not implement User.", value)); //NOI18N
+ throw new IllegalArgumentException(MessageFormat.format("value[]={0} does not implement User.", value.getClass().getSimpleName())); //NOI18N
}
- // Return category id
+ // Return id number
return String.valueOf(((User) value).getUserId());
}
private static final long serialVersionUID = 12_869_569_314_764_690L;
/**
- * Initialization of this converter
+ * Default constructor
*/
public PizzaUserIdValidator () {
}