KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > lp > order > LPOrderPart


1 /*****************************************************************************
2 ' Copyright 2003 LinkPoint International, Inc. All Rights Reserved.
3 '
4 ' This software is the proprietary information of LinkPoint International, Inc.
5 ' Use is subject to license terms.
6 '
7 '******************************************************************************/

8 package lp.order;
9
10 public interface LPOrderPart
11 {
12         // interface to set/get part name, e.a. "billing"
13
String JavaDoc getPartName();
14         void setPartName(String JavaDoc name);
15
16         // Interface to handle key/value pairs
17
void put(String JavaDoc key, String JavaDoc val);
18         String JavaDoc get( String JavaDoc key);
19         void remove(String JavaDoc key);
20         void removeAll();
21
22         // Interface to handle nested parts
23
void addPart(String JavaDoc key, LPOrderPart val);
24         void addPart(String JavaDoc key, LPOrderPart val, int idx);
25         LPOrderPart getPart(String JavaDoc key);
26         LPOrderPart getPart(String JavaDoc key, int idx);
27         void removePart(String JavaDoc key);
28         void removePart(String JavaDoc key, int idx);
29         void removeAllParts();
30
31         // dumps content into XML format
32
String JavaDoc toXML();
33
34         // clears all content
35
void clear();
36
37 }
38
Popular Tags