tags:

views:

16

answers:

2
A: 

Yes it is possible. Look at the Alias Tutorial and you want the Attribute Alias section.

willcodejavaforfood
+2  A: 

To convert them to attributes try the following:

xs.useAttributeFor(EnglishWord.class, "word");
xs.useAttributeFor(EnglishWord.class, "occurenceNumber");
xs.useAttributeFor(EnglishWord.class, "rating");
xs.useAttributeFor(EnglishWord.class, "isVerb");
dogbane