package uk.org.sappho.kmymoney.data;

import uk.org.sappho.kmymoney.rawdata.DataNode;
import uk.org.sappho.kmymoney.rawdata.DataNodeException;

public abstract class AbstractItemWithIdAndName extends AbstractItemWithId {

    private final String name;

    protected AbstractItemWithIdAndName(DataNode node) throws DataNodeException {

        super(node);
        name = node.getAttribute("name").getValue();
        if (name.length() == 0)
            throw new DataNodeException("Payee " + getId() + " has a blank name");
    }

    public String getName() {
        return name;
    }
}

@@ -135,16 +135,61 @@
 ception;
+%0Aimport uk.org.sappho.kmymoney.rawdata.Value;
 %0A%0Apublic
@@ -278,22 +278,21 @@
 e final 
-String
+Value
  name;%0A%0A
@@ -433,134 +433,8 @@
 te(%22
-name%22).getValue();%0A        if (name.length() == 0)%0A            throw new DataNodeException(%22Payee %22 + getId() + %22 has a blank 
 name
@@ -474,16 +474,17 @@
 ame() %7B%0A
+%0A
         
@@ -494,16 +494,27 @@
 urn name
+.getValue()
 ;%0A    %7D%0A

Set up basics of kmymonet4j.