public Element store(){
  Element e=new Element(Xml.LOCATION);
  e.setAttribute(Xml.ID,getId());
  e.setAttribute(Xml.NAME,getName());
  e.setAttribute(Xml.LOCATION_ID,getNameId());
  e.setAttribute(Xml.SEQUENCE_ID,Integer.toString(getSequenceId()));
  e.setAttribute(Xml.TRAIN_DIRECTION,Integer.toString(getTrainDirection()));
  e.setAttribute(Xml.MAX_TRAIN_LENGTH,Integer.toString(getMaxTrainLength()));
  e.setAttribute(Xml.GRADE,Double.toString(getGrade()));
  e.setAttribute(Xml.MAX_CAR_MOVES,Integer.toString(getMaxCarMoves()));
  e.setAttribute(Xml.RANDOM_CONTROL,getRandomControl());
  e.setAttribute(Xml.PICKUPS,isPickUpAllowed() ? Xml.YES : Xml.NO);
  e.setAttribute(Xml.DROPS,isDropAllowed() ? Xml.YES : Xml.NO);
  e.setAttribute(Xml.WAIT,Integer.toString(getWait()));
  e.setAttribute(Xml.DEPART_TIME,getDepartureTime());
  e.setAttribute(Xml.TRAIN_ICON_X,Integer.toString(getTrainIconX()));
  e.setAttribute(Xml.TRAIN_ICON_Y,Integer.toString(getTrainIconY()));
  e.setAttribute(Xml.COMMENT,getComment());
  return e;
}

public Element store ( ) { Element e = new Element ( Xml . LOCATION ) ; e . setAttribute ( Xml . ID , getId ( ) ) ; e . setAttribute ( Xml . NAME , getName ( ) ) ; e . setAttribute ( Xml . LOCATION_ID , getNameId ( ) ) ; e . setAttribute ( Xml . SEQUENCE_ID , Integer . toString ( getSequenceId ( ) ) ) ; e . setAttribute ( Xml . TRAIN_DIRECTION , Integer . toString ( getTrainDirection ( ) ) ) ; e . setAttribute ( Xml . MAX_TRAIN_LENGTH , Integer . toString ( getMaxTrainLength ( ) ) ) ; e . setAttribute ( Xml . GRADE , Double . toString ( getGrade ( ) ) ) ; e . setAttribute ( Xml . MAX_CAR_MOVES , Integer . toString ( getMaxCarMoves ( ) ) ) ; e . setAttribute ( Xml . RANDOM_CONTROL , getRandomControl ( ) ) ; e . setAttribute ( Xml . PICKUPS , isPickUpAllowed ( ) ? Xml . YES : Xml . NO ) ; e . setAttribute ( Xml . DROPS , isDropAllowed ( ) ? Xml . YES : Xml . NO ) ; e . setAttribute ( Xml . WAIT , Integer . toString ( getWait ( ) ) ) ; e . setAttribute ( Xml . DEPART_TIME , getDepartureTime ( ) ) ; e . setAttribute ( Xml . TRAIN_ICON_X , Integer . toString ( getTrainIconX ( ) ) ) ; e . setAttribute ( Xml . TRAIN_ICON_Y , Integer . toString ( getTrainIconY ( ) ) ) ; e . setAttribute ( Xml . COMMENT , getComment ( ) ) ; return e ; }
create an xml element to represent this entry . this member has to remain synchronized with the detailed dtd in operations - config . xml .
