LiteralAttribute extends AbstractIndexableAttribute { @Override public int getValueSize() { return values.size(); } 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 testGetValueSize() { LiteralAttribute att = this.newWithTwoValues("concept:name", AttributeLevel.EVENT); Assert.assertEquals(att.getValueSize(), 2); LiteralAttribute att2 = this.newEmptyAttribute("concept:name", AttributeLevel.EVENT); Assert.assertEquals(att2.getValueSize(), 0); }