2
* Copyright 2005-2012 Restlet S.A.S.
4
* The contents of this file are subject to the terms of one of the following
5
* open source licenses: Apache 2.0 or LGPL 3.0 or LGPL 2.1 or CDDL 1.0 or EPL
6
* 1.0 (the "Licenses"). You can select the license that you prefer but you may
7
* not use this file except in compliance with one of these Licenses.
9
* You can obtain a copy of the Apache 2.0 license at
10
* http://www.opensource.org/licenses/apache-2.0
12
* You can obtain a copy of the LGPL 3.0 license at
13
* http://www.opensource.org/licenses/lgpl-3.0
15
* You can obtain a copy of the LGPL 2.1 license at
16
* http://www.opensource.org/licenses/lgpl-2.1
18
* You can obtain a copy of the CDDL 1.0 license at
19
* http://www.opensource.org/licenses/cddl1
21
* You can obtain a copy of the EPL 1.0 license at
22
* http://www.opensource.org/licenses/eclipse-1.0
24
* See the Licenses for the specific language governing permissions and
25
* limitations under the Licenses.
27
* Alternatively, you can obtain a royalty free commercial license with less
28
* limitations, transferable or non-transferable, directly at
29
* http://www.restlet.com/products/restlet-framework
31
* Restlet is a registered trademark of Restlet S.A.S.
34
package ${packageName};
37
<#list type.importedJavaClasses?sort as clazz>
41
<#list type.importedTypes?sort as t>
42
import ${t.fullClassName};
49
* Generated by the generator tool for the OData extension for the Restlet framework.<br>
51
<#if metadata.metadataRef??> * @see <a href="${metadata.metadataRef}">Metadata of the target OData service</a></#if>
56
public <#if type.abstractType>abstract </#if>class ${className} {
58
<#list type.properties?sort_by("name") as property>
60
private ${property.type.className} ${property.propertyName}<#if property.defaultValue??> = property.defaultValue</#if>;
62
// private [error: no defined type] ${property.propertyName}<#if property.defaultValue??> = property.defaultValue</#if>;
65
<#list type.complexProperties?sort_by("name") as property>
66
<#if property.complexType??>
67
private ${property.complexType.className} ${property.propertyName};
69
// private [error: no defined type] ${property.propertyName};
74
* Constructor without parameter.
77
public ${className}() {
81
<#list type.properties?sort_by("name") as property>
84
* Returns the value of the "${property.propertyName}" attribute.
86
* @return The value of the "${property.propertyName}" attribute.
88
<#if property.getterAccess??>${property.getterAccess}<#else>public</#if> ${property.type.className} get${property.normalizedName?cap_first}() {
89
return ${property.propertyName};
94
<#list type.complexProperties?sort_by("name") as property>
95
<#if property.complexType??>
97
* Returns the value of the "${property.propertyName}" attribute.
99
* @return The value of the "${property.propertyName}" attribute.
101
<#if property.getterAccess??>${property.getterAccess}<#else>public</#if> ${property.complexType.className} get${property.normalizedName?cap_first}() {
102
return ${property.propertyName};
107
<#list type.properties?sort_by("name") as property>
108
<#if property.type??>
110
* Sets the value of the "${property.propertyName}" attribute.
112
* @param ${property.propertyName}
113
* The value of the "${property.normalizedName}" attribute.
115
<#if property.setterAccess??>${property.setterAccess}<#else>public</#if> void set${property.normalizedName?cap_first}(${property.type.className} ${property.propertyName}) {
116
this.${property.propertyName} = ${property.propertyName};
121
<#list type.complexProperties?sort_by("name") as property>
122
<#if property.complexType??>
124
* Sets the value of the "${property.normalizedName}" attribute.
126
* @param ${property.propertyName}
127
* The value of the "${property.normalizedName}" attribute.
129
<#if property.setterAccess??>${property.setterAccess}<#else>public</#if> void set${property.normalizedName?cap_first}(${property.complexType.className} ${property.propertyName}) {
130
this.${property.propertyName} = ${property.propertyName};
b'\\ No newline at end of file'