Hi
 
I try to automatically generate a binding and XML schema from a complex 
configuration class hierarchy.
The class contains a reference to Color
 
import java.awt.Color;
public class Config {
 private Color color;
}

which raises the exception
Exception in thread "main" java.lang.IllegalStateException: No way to handle 
type java.awt.Color, referenced from Config
 
I tried to write a customization file, but without success. How should it look 
for a class like
 
class Color {
 private int value;
 
 public Color(int r, int g, int b) {
  value = ((r & 0xFF) << 16) | ((g & 0xFF) << 8) | ((b & 0xFF) << 0);
 }
 public int getRGB() {
  return value;
 }
 public int getRed() {
  return (getRGB() >> 16) & 0xFF;
 }
 public int getGreen() {
  return (getRGB() >> 8) & 0xFF;
 }
 public int getBlue() {
  return (getRGB() >> 0) & 0xFF;
 }
}

Any help appreciated.
 
Regards,
Thomas
 
-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to