001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 2.3.0, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.codehaus.modello.test.features; 007 008 //---------------------------------/ 009 //- Imported classes and packages -/ 010//---------------------------------/ 011 012import org.codehaus.modello.test.features.other.PackageNameFeature; 013import org.codehaus.modello.test.features.other.SubInterfaceInPackage; 014 015/** 016 * <code><field xml.content="true"></code> with 017 * <code>long</code> type and some attributes. 018 * 019 * 020 * @version $Revision$ $Date$ 021 */ 022@SuppressWarnings( "all" ) 023public class XmlContentLongWithAttributes 024 implements java.io.Serializable 025{ 026 027 //--------------------------/ 028 //- Class/Member Variables -/ 029 //--------------------------/ 030 031 /** 032 * <code>long</code> primitive. 033 */ 034 private long content = 12121212L; 035 036 /** 037 * An XML attribute. 038 */ 039 private String attr; 040 041 /** 042 * A 2nd XML attribute. 043 */ 044 private int attr2 = 0; 045 046 047 //-----------/ 048 //- Methods -/ 049 //-----------/ 050 051 /** 052 * Get an XML attribute. 053 * 054 * @return String 055 */ 056 public String getAttr() 057 { 058 return this.attr; 059 } //-- String getAttr() 060 061 /** 062 * Get a 2nd XML attribute. 063 * 064 * @return int 065 */ 066 public int getAttr2() 067 { 068 return this.attr2; 069 } //-- int getAttr2() 070 071 /** 072 * Get <code>long</code> primitive. 073 * 074 * @return long 075 */ 076 public long getContent() 077 { 078 return this.content; 079 } //-- long getContent() 080 081 /** 082 * Set an XML attribute. 083 * 084 * @param attr a attr object. 085 */ 086 public void setAttr( String attr ) 087 { 088 this.attr = attr; 089 } //-- void setAttr( String ) 090 091 /** 092 * Set a 2nd XML attribute. 093 * 094 * @param attr2 a attr2 object. 095 */ 096 public void setAttr2( int attr2 ) 097 { 098 this.attr2 = attr2; 099 } //-- void setAttr2( int ) 100 101 /** 102 * Set <code>long</code> primitive. 103 * 104 * @param content a content object. 105 */ 106 public void setContent( long content ) 107 { 108 this.content = content; 109 } //-- void setContent( long ) 110 111}