@Override public NonIndexStringAttribute next(String attrName) { return new NonIndexStringAttribute(attrName, nextShortPostcode()); }
public NonIndexStringAttribute convert(String name, IAttribute attribute) { return new NonIndexStringAttribute(name, ((StringValue) attribute).getValue() ); }
@Override public Attribute<?> getAttribute() { return new NonIndexStringAttribute( getName(), getValue() ); } }
public NonIndexStringAttribute next(String attrName) { return new NonIndexStringAttribute(attrName, getGen().nextFullPostcode()); }
public NonIndexStringAttribute next(String attrName) { return new NonIndexStringAttribute(attrName, getGen().nextShortPostcode()); }
public void convertInternalToRecord(RecordImpl record, StandaloneWWIndexData index) { record.setTitle(index.getDescription()); for (IAttribute attr : index.getAttributeMap()) { String name = getAttrDefs().getAttrName(attr.getAttrId()); if (name == null) { throw new IndexerException("Indexer Error. buildRecord " + attr.getAttrId() + " not Found"); } if (attr instanceof EnumValue){ EnumValue enumValue = (EnumValue) attr; EnumDefinition def = getAttrDefs().getEnumDef(enumValue.getEnumDefId()); record.getAttributes().put(name, ConversionFactory.getInstance().convert(name, def, enumValue)); } else { record.getAttributes().put(name, ConversionFactory.getInstance().convert(name, attr)); } } // now do non index attrs TIntObjectHashMap<String> map = index.getNonIndexAttrs(); TIntObjectIterator<String> iterator = map.iterator(); for (int i = map.size(); i-- > 0;) { iterator.advance(); String name = getAttrDefs().getAttrName(iterator.key()); NonIndexStringAttribute value = new NonIndexStringAttribute(name, iterator.value()); record.getAttributes().put(name, value ); // new NonIndexStringAttribute(name, iterator.value() ) ); } }