/* 1189 */ marshalled = ((Boolean)value).booleanValue() ? "true" : "false";
/* */ }
/* */ }
/* */ else
/* */ {
/* 1194 */ StringList lexicalEnumeration = type.getLexicalEnumeration();
/* 1195 */ if ((lexicalEnumeration != null) && (lexicalEnumeration.getLength() > 0))
/* */ {
/* */ Method getValue;
/* */ try {
/* 1200 */ getValue = value.getClass().getMethod("value", null);
/* */ }
/* */ catch (NoSuchMethodException e)
/* */ {
/* */ try
/* */ {
/* 1206 */ getValue = value.getClass().getMethod("getValue", null);
/* */ }
/* */ catch (NoSuchMethodException e1)
/* */ {
/* 1210 */ List values = new ArrayList(lexicalEnumeration.getLength());
/* 1211 */ for (int i = 0; i < lexicalEnumeration.getLength(); i++)
/* */ {
/* 1213 */ values.add(lexicalEnumeration.item(i));
/* */ }
/* */
/* 1216 */ throw new JBossXBRuntimeException("Failed to find neither value() nor getValue() in " + value.getClass() + " which is bound to enumeration type (" + type.getNamespace() + ", " + type.getName() + "): " + values);
/* */ }
/* */