LiteralAttribute extends AbstractIndexableAttribute { @Override public ImmutableList<Object> getValues() { return Lists.immutable.of(values.toArray()); } LiteralAttribute(String key, AttributeLevel level); @Override int registerXAttribute(XAttribute attr); @Override ImmutableList<Object> getValues(); @Override int getValueIndex(Object value); @Override Object getValue(int index); @Override int getValueSize();  }
@Test public void testGetValues() { LiteralAttribute att = this.newWithOneValue("concept:name", AttributeLevel.EVENT); Assert.assertEquals(att.getValue(0), "test"); LiteralAttribute att2 = this.newWithTwoValues("concept:name", AttributeLevel.EVENT); Assert.assertEquals(att2.getValue(0), "test1"); Assert.assertEquals(att2.getValue(1), "test2"); }