My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Copyright 2012 stanislawbartkowski@gmail.com
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gwtmodel.mapxml;

/**
* @author hotel Factory interface providing user specific data
*/
public interface IXMLTypeFactory {

/** Common types. */
String DATE = "date";
String DECIMAL = "decimal";
String INT = "int";
String INTEGER = "integer";
String LONG = "long";

/** Name of type attribute. */
String TYPE = "type";

/** Returns name of 'lines' element. */
String getLinesTag();

/** Returns name of single line in 'lines' section. */
String getLineTag();

/**
* Creates object from string (element text). Object will be inserted into
* IDataContainer map.
*
* @param xType
* Type string (or null). Values is taken from 'type' attribute
* @param s
* String value
* @return Object
*/
Object contruct(String xType, String s);

/**
* Opposite to construct. Transforms object to string
*
* @param xType
* Type string (or null).
* @param o
* Object taken from IDataContainer map
* @return String to be inserted into XML string
*/
String toS(String xType, Object o);

}

Change log

r526 by stanislawbartkowski on Jan 1, 2012   Diff
[No log message]
Go to: 
Project members, sign in to write a code review

Older revisions

r513 by stanislawbartkowski on Dec 26, 2011   Diff
[No log message]
r508 by stanislawbartkowski on Dec 26, 2011   Diff
Changes related to invoice making
r501 by stanislawbartkowski on Dec 11, 2011   Diff
XML server - client data
All revisions of this file

File info

Size: 1785 bytes, 59 lines

File properties

svn:mime-type
text/plain
Powered by Google Project Hosting