X_AD_PrintFormatItem.java

Index Score
org.compiere.model
Compiere

View: Reasons, Metrics, Source Code

These are the metrics that contribute to the Enerjy Score for this file, ranked by impact. So the metrics listed at the top influence the score to a greater extent that the metrics listed at the bottom.

MetricDescription
DECL_COMMENTSComments in declarations
JAVA0034JAVA0034 Missing braces in if statement
RETURNSNumber of return points from functions
FUNCTIONSNumber of function declarations
CYCLOMATICCyclomatic complexity
INTERFACE_COMPLEXITYInterface complexity
DOC_COMMENTNumber of javadoc comment lines
JAVA0278JAVA0278 Unnecessary use of Boolean constructor
COMPARISONSNumber of comparison operators
SIZESize of the file in bytes
LOCLines of code
OPERATORSNumber of operators
COMMENTSComment lines
BLOCKSNumber of blocks
PROGRAM_LENGTHHalstead program length
LINESNumber of lines in the source file
LOGICAL_LINESNumber of statements
OPERANDSNumber of operands
UNIQUE_OPERANDSNumber of unique operands
JAVA0064JAVA0064 N variations of identifier name (maximum: M)
PARAMSNumber of formal parameter declarations
ELOCEffective lines of code
PROGRAM_VOCABHalstead program vocabulary
JAVA0144JAVA0144 Line exceeds maximum M characters
JAVA0233JAVA0233 Definition of serialVersionUID other than 'private static final long serialVersionUID'
JAVA0117JAVA0117 Missing javadoc: method 'method'
PROGRAM_VOLUMEHalstead program volume
JAVA0136JAVA0136 N methods defined in class (maximum: M)
EXEC_COMMENTSComments in executable code
JAVA0126JAVA0126 Method declares unchecked exception in throws
LINE_COMMENTNumber of line comments
JAVA0110JAVA0110 Incorrect javadoc: no @return tag
WHITESPACENumber of whitespace lines
LOOPSNumber of loops
JAVA0108JAVA0108 Incorrect javadoc: no @param tag for 'parameter'
JAVA0003JAVA0003 Minimize use of on-demand (.*) imports
JAVA0145JAVA0145 Tab character used in source file
/****************************************************************************** * Product: Compiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * * with this program, if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 3600 Bridge Parkway #102, Redwood City, CA 94065, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ package org.compiere.model; /** Generated Model - DO NOT CHANGE */ import java.sql.*; import java.math.*; import org.compiere.framework.*; import org.compiere.util.*; /** Generated Model for AD_PrintFormatItem * @author Jorg Janke (generated) * @version Release 3.1.0 - $Id$ */ public class X_AD_PrintFormatItem extends PO { /** Standard Constructor @param ctx context @param AD_PrintFormatItem_ID id @param trxName transaction */ public X_AD_PrintFormatItem (Ctx ctx, int AD_PrintFormatItem_ID, String trxName) { super (ctx, AD_PrintFormatItem_ID, trxName); /** if (AD_PrintFormatItem_ID == 0) { setAD_PrintFormatItem_ID (0); setAD_PrintFormat_ID (0); setFieldAlignmentType (null); // D setImageIsAttached (false); setIsAveraged (false); setIsCentrallyMaintained (false); setIsCounted (false); setIsDeviationCalc (false); setIsFilledRectangle (false); // N setIsFixedWidth (false); setIsGroupBy (false); setIsHeightOneLine (true); // Y setIsImageField (false); setIsMaxCalc (false); setIsMinCalc (false); setIsNextLine (true); // Y setIsNextPage (false); setIsOrderBy (false); setIsPageBreak (false); setIsPrinted (true); // Y setIsRelativePosition (true); // Y setIsRunningTotal (false); setIsSetNLPosition (false); setIsSummarized (false); setIsSuppressNull (false); setIsVarianceCalc (false); setLineAlignmentType (null); // X setMaxHeight (0); setMaxWidth (0); setName (null); setPrintAreaType (null); // C setPrintFormatType (null); // F setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_PrintFormatItem WHERE AD_PrintFormat_ID=@AD_PrintFormat_ID@ setSortNo (0); setXPosition (0); setXSpace (0); setYPosition (0); setYSpace (0); } */ } /** Load Constructor @param ctx context @param rs result set @param trxName transaction */ public X_AD_PrintFormatItem (Ctx ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } /** Serial Version No */ static final long serialVersionUID = 27496026621789L; /** Last Updated Timestamp 2008-06-19 11:48:25.0 */ public static final long updatedMS = 1213901305000L; /** AD_Table_ID=489 */ public static final int Table_ID=489; /** TableName=AD_PrintFormatItem */ public static final String Table_Name="AD_PrintFormatItem"; protected static KeyNamePair Model = new KeyNamePair(Table_ID,"AD_PrintFormatItem"); protected BigDecimal accessLevel = new BigDecimal(7); /** AccessLevel @return 7 - System - Client - Org */ protected int get_AccessLevel() { return accessLevel.intValue(); } /** Load Meta Data @param ctx context @return PO Info */ protected POInfo initPO (Ctx ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID); return poi; } /** Info @return info */ public String toString() { StringBuffer sb = new StringBuffer ("X_AD_PrintFormatItem[").append(get_ID()).append("]"); return sb.toString(); } /** Set Business View Field. @param AD_BView_Field_ID Business View Field */ public void setAD_BView_Field_ID (int AD_BView_Field_ID) { if (AD_BView_Field_ID <= 0) set_Value ("AD_BView_Field_ID", null); else set_Value ("AD_BView_Field_ID", new Integer(AD_BView_Field_ID)); } /** Get Business View Field. @return Business View Field */ public int getAD_BView_Field_ID() { Integer ii = (Integer)get_Value("AD_BView_Field_ID"); if (ii == null) return 0; return ii.intValue(); } /** Set Column. @param AD_Column_ID Column in the table */ public void setAD_Column_ID (int AD_Column_ID) { if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null); else set_Value ("AD_Column_ID", new Integer(AD_Column_ID)); } /** Get Column. @return Column in the table */ public int getAD_Column_ID() { Integer ii = (Integer)get_Value("AD_Column_ID"); if (ii == null) return 0; return ii.intValue(); } /** Set Print Color. @param AD_PrintColor_ID Color used for printing and display */ public void setAD_PrintColor_ID (int AD_PrintColor_ID) { if (AD_PrintColor_ID <= 0) set_Value ("AD_PrintColor_ID", null); else set_Value ("AD_PrintColor_ID", new Integer(AD_PrintColor_ID)); } /** Get Print Color. @return Color used for printing and display */ public int getAD_PrintColor_ID() { Integer ii = (Integer)get_Value("AD_PrintColor_ID"); if (ii == null) return 0; return ii.intValue(); } /** Set Print Font. @param AD_PrintFont_ID Maintain Print Font */ public void setAD_PrintFont_ID (int AD_PrintFont_ID) { if (AD_PrintFont_ID <= 0) set_Value ("AD_PrintFont_ID", null); else set_Value ("AD_PrintFont_ID", new Integer(AD_PrintFont_ID)); } /** Get Print Font. @return Maintain Print Font */ public int getAD_PrintFont_ID() { Integer ii = (Integer)get_Value("AD_PrintFont_ID"); if (ii == null) return 0; return ii.intValue(); } /** AD_PrintFormatChild_ID AD_Reference_ID=259 */ public static final int AD_PRINTFORMATCHILD_ID_AD_Reference_ID=259; /** Set Included Print Format. @param AD_PrintFormatChild_ID Print format that is included here. */ public void setAD_PrintFormatChild_ID (int AD_PrintFormatChild_ID) { if (AD_PrintFormatChild_ID <= 0) set_Value ("AD_PrintFormatChild_ID", null); else set_Value ("AD_PrintFormatChild_ID", new Integer(AD_PrintFormatChild_ID)); } /** Get Included Print Format. @return Print format that is included here. */ public int getAD_PrintFormatChild_ID() { Integer ii = (Integer)get_Value("AD_PrintFormatChild_ID"); if (ii == null) return 0; return ii.intValue(); } /** Set Print Format Item. @param AD_PrintFormatItem_ID Item/Column in the Print format */ public void setAD_PrintFormatItem_ID (int AD_PrintFormatItem_ID) { if (AD_PrintFormatItem_ID < 1) throw new IllegalArgumentException ("AD_PrintFormatItem_ID is mandatory."); set_ValueNoCheck ("AD_PrintFormatItem_ID", new Integer(AD_PrintFormatItem_ID)); } /** Get Print Format Item. @return Item/Column in the Print format */ public int getAD_PrintFormatItem_ID() { Integer ii = (Integer)get_Value("AD_PrintFormatItem_ID"); if (ii == null) return 0; return ii.intValue(); } /** Set Print Format. @param AD_PrintFormat_ID Data Print Format */ public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) { if (AD_PrintFormat_ID < 1) throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); set_ValueNoCheck ("AD_PrintFormat_ID", new Integer(AD_PrintFormat_ID)); } /** Get Print Format. @return Data Print Format */ public int getAD_PrintFormat_ID() { Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); if (ii == null) return 0; return ii.intValue(); } /** Set Graph. @param AD_PrintGraph_ID Graph included in Reports */ public void setAD_PrintGraph_ID (int AD_PrintGraph_ID) { if (AD_PrintGraph_ID <= 0) set_Value ("AD_PrintGraph_ID", null); else set_Value ("AD_PrintGraph_ID", new Integer(AD_PrintGraph_ID)); } /** Get Graph. @return Graph included in Reports */ public int getAD_PrintGraph_ID() { Integer ii = (Integer)get_Value("AD_PrintGraph_ID"); if (ii == null) return 0; return ii.intValue(); } /** Set Arc Diameter. @param ArcDiameter Arc Diameter for rounded Rectangles */ public void setArcDiameter (int ArcDiameter) { set_Value ("ArcDiameter", new Integer(ArcDiameter)); } /** Get Arc Diameter. @return Arc Diameter for rounded Rectangles */ public int getArcDiameter() { Integer ii = (Integer)get_Value("ArcDiameter"); if (ii == null) return 0; return ii.intValue(); } /** BarcodeType AD_Reference_ID=377 */ public static final int BARCODETYPE_AD_Reference_ID=377; /** Code 128 A character set = 28A */ public static final String BARCODETYPE_Code128ACharacterSet = "28A"; /** Code 128 B character set = 28B */ public static final String BARCODETYPE_Code128BCharacterSet = "28B"; /** Code 128 C character set = 28C */ public static final String BARCODETYPE_Code128CCharacterSet = "28C"; /** Codabar 2 of 7 linear = 2o9 */ public static final String BARCODETYPE_Codabar2Of7Linear = "2o9"; /** Code 39 3 of 9 linear with Checksum = 3O9 */ public static final String BARCODETYPE_Code393Of9LinearWithChecksum = "3O9"; /** Code 39 3 of 9 linear w/o Checksum = 3o9 */ public static final String BARCODETYPE_Code393Of9LinearWOChecksum = "3o9"; /** PDF417 two dimensional = 417 */ public static final String BARCODETYPE_PDF417TwoDimensional = "417"; /** SCC-14 shipping code UCC/EAN 128 = C14 */ public static final String BARCODETYPE_SCC_14ShippingCodeUCCEAN128 = "C14"; /** SSCC-18 number UCC/EAN 128 = C18 */ public static final String BARCODETYPE_SSCC_18NumberUCCEAN128 = "C18"; /** Code 128 dynamically switching = C28 */ public static final String BARCODETYPE_Code128DynamicallySwitching = "C28"; /** Code 39 linear with Checksum = C39 */ public static final String BARCODETYPE_Code39LinearWithChecksum = "C39"; /** Codeabar linear = COD */ public static final String BARCODETYPE_CodeabarLinear = "COD"; /** EAN 128 = E28 */ public static final String BARCODETYPE_EAN128 = "E28"; /** Global Trade Item No GTIN UCC/EAN 128 = GTN */ public static final String BARCODETYPE_GlobalTradeItemNoGTINUCCEAN128 = "GTN"; /** Codabar Monarch linear = MON */ public static final String BARCODETYPE_CodabarMonarchLinear = "MON"; /** Codabar NW-7 linear = NW7 */ public static final String BARCODETYPE_CodabarNW_7Linear = "NW7"; /** Shipment ID number UCC/EAN 128 = SID */ public static final String BARCODETYPE_ShipmentIDNumberUCCEAN128 = "SID"; /** UCC 128 = U28 */ public static final String BARCODETYPE_UCC128 = "U28"; /** Code 39 USD3 with Checksum = US3 */ public static final String BARCODETYPE_Code39USD3WithChecksum = "US3"; /** Codabar USD-4 linear = US4 */ public static final String BARCODETYPE_CodabarUSD_4Linear = "US4"; /** US Postal Service UCC/EAN 128 = USP */ public static final String BARCODETYPE_USPostalServiceUCCEAN128 = "USP"; /** Code 39 linear w/o Checksum = c39 */ public static final String BARCODETYPE_Code39LinearWOChecksum = "c39"; /** Code 39 USD3 w/o Checksum = us3 */ public static final String BARCODETYPE_Code39USD3WOChecksum = "us3"; /** Is test a valid value. @param test testvalue @return true if valid **/ public boolean isBarcodeTypeValid (String test) { return test == null || test.equals("28A") || test.equals("28B") || test.equals("28C") || test.equals("2o9") || test.equals("3O9") || test.equals("3o9") || test.equals("417") || test.equals("C14") || test.equals("C18") || test.equals("C28") || test.equals("C39") || test.equals("COD") || test.equals("E28") || test.equals("GTN") || test.equals("MON") || test.equals("NW7") || test.equals("SID") || test.equals("U28") || test.equals("US3") || test.equals("US4") || test.equals("USP") || test.equals("c39") || test.equals("us3"); } /** Set Barcode Type. @param BarcodeType Type of barcode */ public void setBarcodeType (String BarcodeType) { if (!isBarcodeTypeValid(BarcodeType)) throw new IllegalArgumentException ("BarcodeType Invalid value - " + BarcodeType + " - Reference_ID=377 - 28A - 28B - 28C - 2o9 - 3O9 - 3o9 - 417 - C14 - C18 - C28 - C39 - COD - E28 - GTN - MON - NW7 - SID - U28 - US3 - US4 - USP - c39 - us3"); int length = p_info.getFieldLength("BarcodeType"); if (BarcodeType != null && BarcodeType.length() > length) { log.warning("Length > " + length + " - truncated"); BarcodeType = BarcodeType.substring(0,length); } set_Value ("BarcodeType", BarcodeType); } /** Get Barcode Type. @return Type of barcode */ public String getBarcodeType() { return (String)get_Value("BarcodeType"); } /** Set Below Column. @param BelowColumn Print this column below the column index entered */ public void setBelowColumn (int BelowColumn) { set_Value ("BelowColumn", new Integer(BelowColumn)); } /** Get Below Column. @return Print this column below the column index entered */ public int getBelowColumn() { Integer ii = (Integer)get_Value("BelowColumn"); if (ii == null) return 0; return ii.intValue(); } /** FieldAlignmentType AD_Reference_ID=253 */ public static final int FIELDALIGNMENTTYPE_AD_Reference_ID=253; /** Block = B */ public static final String FIELDALIGNMENTTYPE_Block = "B"; /** Center = C */ public static final String FIELDALIGNMENTTYPE_Center = "C"; /** Default = D */ public static final String FIELDALIGNMENTTYPE_Default = "D"; /** Leading (left) = L */ public static final String FIELDALIGNMENTTYPE_LeadingLeft = "L"; /** Trailing (right) = T */ public static final String FIELDALIGNMENTTYPE_TrailingRight = "T"; /** Is test a valid value. @param test testvalue @return true if valid **/ public boolean isFieldAlignmentTypeValid (String test) { return test.equals("B") || test.equals("C") || test.equals("D") || test.equals("L") || test.equals("T"); } /** Set Field Alignment. @param FieldAlignmentType Field Text Alignment */ public void setFieldAlignmentType (String FieldAlignmentType) { if (FieldAlignmentType == null) throw new IllegalArgumentException ("FieldAlignmentType is mandatory"); if (!isFieldAlignmentTypeValid(FieldAlignmentType)) throw new IllegalArgumentException ("FieldAlignmentType Invalid value - " + FieldAlignmentType + " - Reference_ID=253 - B - C - D - L - T"); int length = p_info.getFieldLength("FieldAlignmentType"); if (FieldAlignmentType.length() > length) { log.warning("Length > " + length + " - truncated"); FieldAlignmentType = FieldAlignmentType.substring(0,length); } set_Value ("FieldAlignmentType", FieldAlignmentType); } /** Get Field Alignment. @return Field Text Alignment */ public String getFieldAlignmentType() { return (String)get_Value("FieldAlignmentType"); } /** Set Image attached. @param ImageIsAttached The image to be printed is attached to the record */ public void setImageIsAttached (boolean ImageIsAttached) { set_Value ("ImageIsAttached", new Boolean(ImageIsAttached)); } /** Get Image attached. @return The image to be printed is attached to the record */ public boolean isImageIsAttached() { Object oo = get_Value("ImageIsAttached"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Image URL. @param ImageURL URL of image */ public void setImageURL (String ImageURL) { int length = p_info.getFieldLength("ImageURL"); if (ImageURL != null && ImageURL.length() > length) { log.warning("Length > " + length + " - truncated"); ImageURL = ImageURL.substring(0,length); } set_Value ("ImageURL", ImageURL); } /** Get Image URL. @return URL of image */ public String getImageURL() { return (String)get_Value("ImageURL"); } /** Set Calculate Mean (?). @param IsAveraged Calculate Average of numeric content or length */ public void setIsAveraged (boolean IsAveraged) { set_Value ("IsAveraged", new Boolean(IsAveraged)); } /** Get Calculate Mean (?). @return Calculate Average of numeric content or length */ public boolean isAveraged() { Object oo = get_Value("IsAveraged"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Centrally maintained. @param IsCentrallyMaintained Information maintained in System Element table */ public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) { set_Value ("IsCentrallyMaintained", new Boolean(IsCentrallyMaintained)); } /** Get Centrally maintained. @return Information maintained in System Element table */ public boolean isCentrallyMaintained() { Object oo = get_Value("IsCentrallyMaintained"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Calculate Count (?). @param IsCounted Count number of not empty elements */ public void setIsCounted (boolean IsCounted) { set_Value ("IsCounted", new Boolean(IsCounted)); } /** Get Calculate Count (?). @return Count number of not empty elements */ public boolean isCounted() { Object oo = get_Value("IsCounted"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Calculate Deviation (?). @param IsDeviationCalc Calculate Standard Deviation */ public void setIsDeviationCalc (boolean IsDeviationCalc) { set_Value ("IsDeviationCalc", new Boolean(IsDeviationCalc)); } /** Get Calculate Deviation (?). @return Calculate Standard Deviation */ public boolean isDeviationCalc() { Object oo = get_Value("IsDeviationCalc"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Fill Shape. @param IsFilledRectangle Fill the shape with the color selected */ public void setIsFilledRectangle (boolean IsFilledRectangle) { set_Value ("IsFilledRectangle", new Boolean(IsFilledRectangle)); } /** Get Fill Shape. @return Fill the shape with the color selected */ public boolean isFilledRectangle() { Object oo = get_Value("IsFilledRectangle"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Fixed Width. @param IsFixedWidth Column has a fixed width */ public void setIsFixedWidth (boolean IsFixedWidth) { set_Value ("IsFixedWidth", new Boolean(IsFixedWidth)); } /** Get Fixed Width. @return Column has a fixed width */ public boolean isFixedWidth() { Object oo = get_Value("IsFixedWidth"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Group by. @param IsGroupBy After a group change, totals, etc. are printed */ public void setIsGroupBy (boolean IsGroupBy) { set_Value ("IsGroupBy", new Boolean(IsGroupBy)); } /** Get Group by. @return After a group change, totals, etc. are printed */ public boolean isGroupBy() { Object oo = get_Value("IsGroupBy"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set One Line Only. @param IsHeightOneLine If selected, only one line is printed */ public void setIsHeightOneLine (boolean IsHeightOneLine) { set_Value ("IsHeightOneLine", new Boolean(IsHeightOneLine)); } /** Get One Line Only. @return If selected, only one line is printed */ public boolean isHeightOneLine() { Object oo = get_Value("IsHeightOneLine"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Image Field. @param IsImageField The image is retrieved from the data column */ public void setIsImageField (boolean IsImageField) { set_Value ("IsImageField", new Boolean(IsImageField)); } /** Get Image Field. @return The image is retrieved from the data column */ public boolean isImageField() { Object oo = get_Value("IsImageField"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Calculate Maximum (?). @param IsMaxCalc Calculate the maximum amount */ public void setIsMaxCalc (boolean IsMaxCalc) { set_Value ("IsMaxCalc", new Boolean(IsMaxCalc)); } /** Get Calculate Maximum (?). @return Calculate the maximum amount */ public boolean isMaxCalc() { Object oo = get_Value("IsMaxCalc"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Calculate Minimum (?). @param IsMinCalc Calculate the minimum amount */ public void setIsMinCalc (boolean IsMinCalc) { set_Value ("IsMinCalc", new Boolean(IsMinCalc)); } /** Get Calculate Minimum (?). @return Calculate the minimum amount */ public boolean isMinCalc() { Object oo = get_Value("IsMinCalc"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Next Line. @param IsNextLine Print item on next line */ public void setIsNextLine (boolean IsNextLine) { set_Value ("IsNextLine", new Boolean(IsNextLine)); } /** Get Next Line. @return Print item on next line */ public boolean isNextLine() { Object oo = get_Value("IsNextLine"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Next Page. @param IsNextPage The column is printed on the next page */ public void setIsNextPage (boolean IsNextPage) { set_Value ("IsNextPage", new Boolean(IsNextPage)); } /** Get Next Page. @return The column is printed on the next page */ public boolean isNextPage() { Object oo = get_Value("IsNextPage"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Order by. @param IsOrderBy Include in sort order */ public void setIsOrderBy (boolean IsOrderBy) { set_Value ("IsOrderBy", new Boolean(IsOrderBy)); } /** Get Order by. @return Include in sort order */ public boolean isOrderBy() { Object oo = get_Value("IsOrderBy"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Page break. @param IsPageBreak Start with new page */ public void setIsPageBreak (boolean IsPageBreak) { set_Value ("IsPageBreak", new Boolean(IsPageBreak)); } /** Get Page break. @return Start with new page */ public boolean isPageBreak() { Object oo = get_Value("IsPageBreak"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Printed. @param IsPrinted Indicates if this document / line is printed */ public void setIsPrinted (boolean IsPrinted) { set_Value ("IsPrinted", new Boolean(IsPrinted)); } /** Get Printed. @return Indicates if this document / line is printed */ public boolean isPrinted() { Object oo = get_Value("IsPrinted"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Relative Position. @param IsRelativePosition The item is relative positioned (not absolute) */ public void setIsRelativePosition (boolean IsRelativePosition) { set_Value ("IsRelativePosition", new Boolean(IsRelativePosition)); } /** Get Relative Position. @return The item is relative positioned (not absolute) */ public boolean isRelativePosition() { Object oo = get_Value("IsRelativePosition"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Running Total. @param IsRunningTotal Create a running total (sum) */ public void setIsRunningTotal (boolean IsRunningTotal) { set_Value ("IsRunningTotal", new Boolean(IsRunningTotal)); } /** Get Running Total. @return Create a running total (sum) */ public boolean isRunningTotal() { Object oo = get_Value("IsRunningTotal"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Set NL Position. @param IsSetNLPosition Set New Line Position */ public void setIsSetNLPosition (boolean IsSetNLPosition) { set_Value ("IsSetNLPosition", new Boolean(IsSetNLPosition)); } /** Get Set NL Position. @return Set New Line Position */ public boolean isSetNLPosition() { Object oo = get_Value("IsSetNLPosition"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Calculate Sum (?). @param IsSummarized Calculate the Sum of numeric content or length */ public void setIsSummarized (boolean IsSummarized) { set_Value ("IsSummarized", new Boolean(IsSummarized)); } /** Get Calculate Sum (?). @return Calculate the Sum of numeric content or length */ public boolean isSummarized() { Object oo = get_Value("IsSummarized"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Suppress Null. @param IsSuppressNull Suppress columns or elements with NULL value */ public void setIsSuppressNull (boolean IsSuppressNull) { set_Value ("IsSuppressNull", new Boolean(IsSuppressNull)); } /** Get Suppress Null. @return Suppress columns or elements with NULL value */ public boolean isSuppressNull() { Object oo = get_Value("IsSuppressNull"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Calculate Variance (?≤). @param IsVarianceCalc Calculate Variance */ public void setIsVarianceCalc (boolean IsVarianceCalc) { set_Value ("IsVarianceCalc", new Boolean(IsVarianceCalc)); } /** Get Calculate Variance (?≤). @return Calculate Variance */ public boolean isVarianceCalc() { Object oo = get_Value("IsVarianceCalc"); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** LineAlignmentType AD_Reference_ID=254 */ public static final int LINEALIGNMENTTYPE_AD_Reference_ID=254; /** Center = C */ public static final String LINEALIGNMENTTYPE_Center = "C"; /** Leading (left) = L */ public static final String LINEALIGNMENTTYPE_LeadingLeft = "L"; /** Trailing (right) = T */ public static final String LINEALIGNMENTTYPE_TrailingRight = "T"; /** None = X */ public static final String LINEALIGNMENTTYPE_None = "X"; /** Is test a valid value. @param test testvalue @return true if valid **/ public boolean isLineAlignmentTypeValid (String test) { return test.equals("C") || test.equals("L") || test.equals("T") || test.equals("X"); } /** Set Line Alignment. @param LineAlignmentType Line Alignment */ public void setLineAlignmentType (String LineAlignmentType) { if (LineAlignmentType == null) throw new IllegalArgumentException ("LineAlignmentType is mandatory"); if (!isLineAlignmentTypeValid(LineAlignmentType)) throw new IllegalArgumentException ("LineAlignmentType Invalid value - " + LineAlignmentType + " - Reference_ID=254 - C - L - T - X"); int length = p_info.getFieldLength("LineAlignmentType"); if (LineAlignmentType.length() > length) { log.warning("Length > " + length + " - truncated"); LineAlignmentType = LineAlignmentType.substring(0,length); } set_Value ("LineAlignmentType", LineAlignmentType); } /** Get Line Alignment. @return Line Alignment */ public String getLineAlignmentType() { return (String)get_Value("LineAlignmentType"); } /** Set Line Width. @param LineWidth Width of the lines */ public void setLineWidth (int LineWidth) { set_Value ("LineWidth", new Integer(LineWidth)); } /** Get Line Width. @return Width of the lines */ public int getLineWidth() { Integer ii = (Integer)get_Value("LineWidth"); if (ii == null) return 0; return ii.intValue(); } /** Set Max Height. @param MaxHeight Maximum Height in 1/72 if an inch - 0 = no restriction */ public void setMaxHeight (int MaxHeight) { set_Value ("MaxHeight", new Integer(MaxHeight)); } /** Get Max Height. @return Maximum Height in 1/72 if an inch - 0 = no restriction */ public int getMaxHeight() { Integer ii = (Integer)get_Value("MaxHeight"); if (ii == null) return 0; return ii.intValue(); } /** Set Max Width. @param MaxWidth Maximum Width in 1/72 if an inch - 0 = no restriction */ public void setMaxWidth (int MaxWidth) { set_Value ("MaxWidth", new Integer(MaxWidth)); } /** Get Max Width. @return Maximum Width in 1/72 if an inch - 0 = no restriction */ public int getMaxWidth() { Integer ii = (Integer)get_Value("MaxWidth"); if (ii == null) return 0; return ii.intValue(); } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); int length = p_info.getFieldLength("Name"); if (Name.length() > length) { log.warning("Length > " + length + " - truncated"); Name = Name.substring(0,length); } set_Value ("Name", Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName() { return (String)get_Value("Name"); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** PrintAreaType AD_Reference_ID=256 */ public static final int PRINTAREATYPE_AD_Reference_ID=256; /** Content = C */ public static final String PRINTAREATYPE_Content = "C"; /** Footer = F */ public static final String PRINTAREATYPE_Footer = "F"; /** Header = H */ public static final String PRINTAREATYPE_Header = "H"; /** Is test a valid value. @param test testvalue @return true if valid **/ public boolean isPrintAreaTypeValid (String test) { return test.equals("C") || test.equals("F") || test.equals("H"); } /** Set Area. @param PrintAreaType Print Area */ public void setPrintAreaType (String PrintAreaType) { if (PrintAreaType == null) throw new IllegalArgumentException ("PrintAreaType is mandatory"); if (!isPrintAreaTypeValid(PrintAreaType)) throw new IllegalArgumentException ("PrintAreaType Invalid value - " + PrintAreaType + " - Reference_ID=256 - C - F - H"); int length = p_info.getFieldLength("PrintAreaType"); if (PrintAreaType.length() > length) { log.warning("Length > " + length + " - truncated"); PrintAreaType = PrintAreaType.substring(0,length); } set_Value ("PrintAreaType", PrintAreaType); } /** Get Area. @return Print Area */ public String getPrintAreaType() { return (String)get_Value("PrintAreaType"); } /** PrintFormatType AD_Reference_ID=255 */ public static final int PRINTFORMATTYPE_AD_Reference_ID=255; /** Field = F */ public static final String PRINTFORMATTYPE_Field = "F"; /** Image = I */ public static final String PRINTFORMATTYPE_Image = "I"; /** Line = L */ public static final String PRINTFORMATTYPE_Line = "L"; /** Print Format = P */ public static final String PRINTFORMATTYPE_PrintFormat = "P"; /** Rectangle = R */ public static final String PRINTFORMATTYPE_Rectangle = "R"; /** Text = T */ public static final String PRINTFORMATTYPE_Text = "T"; /** Is test a valid value. @param test testvalue @return true if valid **/ public boolean isPrintFormatTypeValid (String test) { return test.equals("F") || test.equals("I") || test.equals("L") || test.equals("P") || test.equals("R") || test.equals("T"); } /** Set Format Type. @param PrintFormatType Print Format Type */ public void setPrintFormatType (String PrintFormatType) { if (PrintFormatType == null) throw new IllegalArgumentException ("PrintFormatType is mandatory"); if (!isPrintFormatTypeValid(PrintFormatType)) throw new IllegalArgumentException ("PrintFormatType Invalid value - " + PrintFormatType + " - Reference_ID=255 - F - I - L - P - R - T"); int length = p_info.getFieldLength("PrintFormatType"); if (PrintFormatType.length() > length) { log.warning("Length > " + length + " - truncated"); PrintFormatType = PrintFormatType.substring(0,length); } set_Value ("PrintFormatType", PrintFormatType); } /** Get Format Type. @return Print Format Type */ public String getPrintFormatType() { return (String)get_Value("PrintFormatType"); } /** Set Print Text. @param PrintName The label text to be printed on a document or correspondence. */ public void setPrintName (String PrintName) { int length = p_info.getFieldLength("PrintName"); if (PrintName != null && PrintName.length() > length) { log.warning("Length > " + length + " - truncated"); PrintName = PrintName.substring(0,length); } set_Value ("PrintName", PrintName); } /** Get Print Text. @return The label text to be printed on a document or correspondence. */ public String getPrintName() { return (String)get_Value("PrintName"); } /** Set Print Label Suffix. @param PrintNameSuffix The label text to be printed on a document or correspondence after the field */ public void setPrintNameSuffix (String PrintNameSuffix) { int length = p_info.getFieldLength("PrintNameSuffix"); if (PrintNameSuffix != null && PrintNameSuffix.length() > length) { log.warning("Length > " + length + " - truncated"); PrintNameSuffix = PrintNameSuffix.substring(0,length); } set_Value ("PrintNameSuffix", PrintNameSuffix); } /** Get Print Label Suffix. @return The label text to be printed on a document or correspondence after the field */ public String getPrintNameSuffix() { return (String)get_Value("PrintNameSuffix"); } /** Set Running Total Lines. @param RunningTotalLines Create Running Total Lines (page break) every x lines */ public void setRunningTotalLines (int RunningTotalLines) { set_Value ("RunningTotalLines", new Integer(RunningTotalLines)); } /** Get Running Total Lines. @return Create Running Total Lines (page break) every x lines */ public int getRunningTotalLines() { Integer ii = (Integer)get_Value("RunningTotalLines"); if (ii == null) return 0; return ii.intValue(); } /** Set Sequence. @param SeqNo Method of ordering elements; lowest number comes first */ public void setSeqNo (int SeqNo) { set_Value ("SeqNo", new Integer(SeqNo)); } /** Get Sequence. @return Method of ordering elements; lowest number comes first */ public int getSeqNo() { Integer ii = (Integer)get_Value("SeqNo"); if (ii == null) return 0; return ii.intValue(); } /** ShapeType AD_Reference_ID=333 */ public static final int SHAPETYPE_AD_Reference_ID=333; /** 3D Rectangle = 3 */ public static final String SHAPETYPE_3DRectangle = "3"; /** Normal Rectangle = N */ public static final String SHAPETYPE_NormalRectangle = "N"; /** Oval = O */ public static final String SHAPETYPE_Oval = "O"; /** Round Rectangle = R */ public static final String SHAPETYPE_RoundRectangle = "R"; /** Is test a valid value. @param test testvalue @return true if valid **/ public boolean isShapeTypeValid (String test) { return test == null || test.equals("3") || test.equals("N") || test.equals("O") || test.equals("R"); } /** Set Shape Type. @param ShapeType Type of the shape to be painted */ public void setShapeType (String ShapeType) { if (!isShapeTypeValid(ShapeType)) throw new IllegalArgumentException ("ShapeType Invalid value - " + ShapeType + " - Reference_ID=333 - 3 - N - O - R"); int length = p_info.getFieldLength("ShapeType"); if (ShapeType != null && ShapeType.length() > length) { log.warning("Length > " + length + " - truncated"); ShapeType = ShapeType.substring(0,length); } set_Value ("ShapeType", ShapeType); } /** Get Shape Type. @return Type of the shape to be painted */ public String getShapeType() { return (String)get_Value("ShapeType"); } /** Set Record Sort No. @param SortNo Determines in what order the records are displayed */ public void setSortNo (int SortNo) { set_Value ("SortNo", new Integer(SortNo)); } /** Get Record Sort No. @return Determines in what order the records are displayed */ public int getSortNo() { Integer ii = (Integer)get_Value("SortNo"); if (ii == null) return 0; return ii.intValue(); } /** Set X Position. @param XPosition Absolute X (horizontal) position in 1/72 of an inch */ public void setXPosition (int XPosition) { set_Value ("XPosition", new Integer(XPosition)); } /** Get X Position. @return Absolute X (horizontal) position in 1/72 of an inch */ public int getXPosition() { Integer ii = (Integer)get_Value("XPosition"); if (ii == null) return 0; return ii.intValue(); } /** Set X Space. @param XSpace Relative X (horizontal) space in 1/72 of an inch */ public void setXSpace (int XSpace) { set_Value ("XSpace", new Integer(XSpace)); } /** Get X Space. @return Relative X (horizontal) space in 1/72 of an inch */ public int getXSpace() { Integer ii = (Integer)get_Value("XSpace"); if (ii == null) return 0; return ii.intValue(); } /** Set Y Position. @param YPosition Absolute Y (vertical) position in 1/72 of an inch */ public void setYPosition (int YPosition) { set_Value ("YPosition", new Integer(YPosition)); } /** Get Y Position. @return Absolute Y (vertical) position in 1/72 of an inch */ public int getYPosition() { Integer ii = (Integer)get_Value("YPosition"); if (ii == null) return 0; return ii.intValue(); } /** Set Y Space. @param YSpace Relative Y (vertical) space in 1/72 of an inch */ public void setYSpace (int YSpace) { set_Value ("YSpace", new Integer(YSpace)); } /** Get Y Space. @return Relative Y (vertical) space in 1/72 of an inch */ public int getYSpace() { Integer ii = (Integer)get_Value("YSpace"); if (ii == null) return 0; return ii.intValue(); } }

The table below shows all metrics for X_AD_PrintFormatItem.java.

MetricValueDescription
BLOCKS151.00Number of blocks
BLOCK_COMMENT 0.00Number of block comment lines
COMMENTS372.00Comment lines
COMMENT_DENSITY 0.74Comment density
COMPARISONS124.00Number of comparison operators
CYCLOMATIC249.00Cyclomatic complexity
DECL_COMMENTS177.00Comments in declarations
DOC_COMMENT372.00Number of javadoc comment lines
ELOC505.00Effective lines of code
EXEC_COMMENTS 1.00Comments in executable code
EXITS23.00Procedure exits
FUNCTIONS118.00Number of function declarations
HALSTEAD_DIFFICULTY64.51Halstead difficulty
HALSTEAD_EFFORT 0.00Halstead effort
INTERFACE_COMPLEXITY263.00Interface complexity
JAVA0001 0.00JAVA0001 Package name does not contain only lower case letters
JAVA0002 0.00JAVA0002 Package name does not begin with a top level domain name or country code
JAVA0003 1.00JAVA0003 Minimize use of on-demand (.*) imports
JAVA0004 0.00JAVA0004 Unnecessary import from java.lang
JAVA0005 1.00JAVA0005 Imports not in specified order
JAVA0006 0.00JAVA0006 Empty finally block
JAVA0007 0.00JAVA0007 Should not declare public field
JAVA0008 0.00JAVA0008 Empty catch block
JAVA0009 0.00JAVA0009 Protected member in final class
JAVA0010 0.00JAVA0010 Non-instantiable class does not contain a non-private static member
JAVA0011 0.00JAVA0011 Abstract class does not contain an abstract method
JAVA0012 0.00JAVA0012 Non-constructor method with same name as declaring class
JAVA0013 0.00JAVA0013 Non-blank final field is not static
JAVA0014 0.00JAVA0014 Class with only static members has non-private constructor
JAVA0015 0.00JAVA0015 Package class contains public nested type
JAVA0016 0.00JAVA0016 Abstract class contains public constructor
JAVA0017 0.00JAVA0017 Class name does not have required form
JAVA0018 0.00JAVA0018 Method name does not have required form
JAVA0019 0.00JAVA0019 Interface name does not have required form
JAVA0020 0.00JAVA0020 Field name does not have required form
JAVA0021 0.00JAVA0021 Interface method name does not have required form
JAVA0022 0.00JAVA0022 Static final field name does not have required form
JAVA0023 0.00JAVA0023 Empty finalize method
JAVA0024 0.00JAVA0024 Empty class
JAVA0025 0.00JAVA0025 Method override is empty
JAVA0026 0.00JAVA0026 Finalize method with parameters
JAVA0029 0.00JAVA0029 Private method not used
JAVA0030 0.00JAVA0030 Private field not used
JAVA0031 0.00JAVA0031 Case statement not properly closed
JAVA0032 0.00JAVA0032 Switch statement missing default
JAVA0033 0.00JAVA0033 default: not last case in switch statement
JAVA003468.00JAVA0034 Missing braces in if statement
JAVA0035 0.00JAVA0035 Missing braces in for statement
JAVA0036 0.00JAVA0036 Missing braces in while statement
JAVA0038 0.00JAVA0038 Non-case label in switch statement
JAVA0039 0.00JAVA0039 Break statement with label
JAVA0040 0.00JAVA0040 Switch statement contains N cases (maximum: M)
JAVA0041 0.00JAVA0041 Nested synchronized block
JAVA0042 0.00JAVA0042 Empty synchronized statement
JAVA0043 0.00JAVA0043 Inner class does not use outer class
JAVA0044 0.00JAVA0044 Serializable class with no instance variables
JAVA0045 0.00JAVA0045 Serializable class with only transient fields
JAVA0046 0.00JAVA0046 Name of class not derived from Exception ends with 'Exception'
JAVA0047 0.00JAVA0047 Serializable class derives from invalid base class
JAVA0048 0.00JAVA0048 Name of class derived from Exception does not end with 'Exception'
JAVA0049 0.00JAVA0049 Nested block at depth N (maximum: M)
JAVA0050 0.00JAVA0050 Class derives from java.lang.Error
JAVA0051 0.00JAVA0051 Class derives from java.lang.RuntimeException
JAVA0052 0.00JAVA0052 Class derives from java.lang.Throwable
JAVA0053 0.00JAVA0053 Unused label
JAVA0054 0.00JAVA0054 Inheritance depth N exceeds maximum M
JAVA0055 0.00JAVA0055 Class should be interface
JAVA0056 0.00JAVA0056 Unnecessary abstract modifier for interface or annotation
JAVA0057 0.00JAVA0057 Unnecessary default constructor
JAVA0058 0.00JAVA0058 Constructor calls super()
JAVA0059 0.00JAVA0059 Method override only calls super()
JAVA0061 0.00JAVA0061 Inaccessible member in anonymous class
JAVA0062 0.00JAVA0062 Public class missing public member or protected constructor
JAVA0063 0.00JAVA0063 Identifier name should not contain '$'
JAVA006422.00JAVA0064 N variations of identifier name (maximum: M)
JAVA0065 0.00JAVA0065 Unnecessary final modifier for method in final class
JAVA0066 0.00JAVA0066 Unnecessary modifier for interface nested type
JAVA0067 0.00JAVA0067 Array descriptor on identifier name
JAVA0068 0.00JAVA0068 Modifiers not declared in recommended order
JAVA0071 0.00JAVA0071 Strings compared with ==
JAVA0073 0.00JAVA0073 Integer division in floating-point context
JAVA0074 0.00JAVA0074 Use of Object.notify()
JAVA0075 0.00JAVA0075 Method parameter hides field
JAVA0076 0.00JAVA0076 Use of magic number
JAVA0077 0.00JAVA0077 Private field not used in declaring class
JAVA0078 0.00JAVA0078 Floating point values compared with ==
JAVA0079 0.00JAVA0079 Use of instance to reference static member
JAVA0080 0.00JAVA0080 Import declaration not used
JAVA0081 0.00JAVA0081 Boolean literal in comparison
JAVA0082 0.00JAVA0082 Unnecessary widening cast
JAVA0083 0.00JAVA0083 Unnecessary instanceof test
JAVA0084 0.00JAVA0084 Should use compound assignment operator
JAVA0085 0.00JAVA0085 Use of sun.* class
JAVA0087 0.00JAVA0087 Use of Thread.sleep()
JAVA0089 0.00JAVA0089 Use of restricted package
JAVA0092 0.00JAVA0092 Use of restricted type
JAVA0093 0.00JAVA0093 Redundant assignment
JAVA0094 0.00JAVA0094 Field hides a superclass field
JAVA0095 0.00JAVA0095 Uninitialized private field
JAVA0096 0.00JAVA0096 Field in nested class hides outer field
JAVA0098 0.00JAVA0098 Minimize use of implicit field initializers
JAVA0100 0.00JAVA0100 Class contains N non-final fields (maximum: M)
JAVA0101 0.00JAVA0101 Unnecessary modifier for field in interface
JAVA0102 0.00JAVA0102 Last statement in finalize() not super.finalize()
JAVA0103 0.00JAVA0103 Explicit call to finalize()
JAVA0104 0.00JAVA0104 finalize() only calls super.finalize()
JAVA0105 0.00JAVA0105 Duplicate import declaration
JAVA0106 0.00JAVA0106 Unnecessary import from current package
JAVA0108 0.00JAVA0108 Incorrect javadoc: no @param tag for 'parameter'
JAVA0109 0.00JAVA0109 Incorrect javadoc: no parameter 'parameter'
JAVA0110 0.00JAVA0110 Incorrect javadoc: no @return tag
JAVA0111 0.00JAVA0111 Incorrect javadoc: @return tag for void method
JAVA0112 0.00JAVA0112 Incorrect javadoc: no exception 'exception' in throws
JAVA0113 0.00JAVA0113 Incorrect javadoc: no @author tag
JAVA0114 0.00JAVA0114 Incorrect javadoc: no @version tag
JAVA0115 0.00JAVA0115 Incorrect javadoc: no @throws or @exception tag for 'exception'
JAVA0116 0.00JAVA0116 Missing javadoc: field 'field'
JAVA0117 0.00JAVA0117 Missing javadoc: method 'method'
JAVA0118 0.00JAVA0118 Missing javadoc: type 'type'
JAVA0119 0.00JAVA0119 Control variable changed within body of for loop
JAVA0123 0.00JAVA0123 Use all three components of for loop
JAVA0125 0.00JAVA0125 Continue statement with label
JAVA0126 0.00JAVA0126 Method declares unchecked exception in throws
JAVA0128 0.00JAVA0128 Public constructor in non-public class
JAVA0130 0.00JAVA0130 Non-static method does not use instance fields
JAVA0131 0.00JAVA0131 Compatible method does not override base
JAVA0132 0.00JAVA0132 Method overload with compatible signature
JAVA0133 0.00JAVA0133 Non-synchronized method overrides synchronized method
JAVA0135 0.00JAVA0135 Only one of Object.equals and Object.hashCode defined: missing 'method'
JAVA0136 1.00JAVA0136 N methods defined in class (maximum: M)
JAVA0137 0.00JAVA0137 Non-abstract class missing constructor
JAVA0138 0.00JAVA0138 N parameters defined for method (maximum: M)
JAVA0139 0.00JAVA0139 Definition of main other than public static void main(java.lang.String[])
JAVA0141 0.00JAVA0141 Unnecessary modifier for method in interface
JAVA0143 0.00JAVA0143 Synchronized method
JAVA0144 6.00JAVA0144 Line exceeds maximum M characters
JAVA014510.00JAVA0145 Tab character used in source file
JAVA0150 0.00JAVA0150 java.lang.Error (or subclass) thrown
JAVA0153 0.00JAVA0153 Inefficient conversion of integer to string
JAVA0159 0.00JAVA0159 Inefficient conversion of string to integer
JAVA0160 0.00JAVA0160 Method does not throw specified exception
JAVA0161 0.00JAVA0161 Conditional wait() not in loop
JAVA0163 0.00JAVA0163 Empty statement
JAVA0165 0.00JAVA0165 Conflicting return statement in finally block
JAVA0166 0.00JAVA0166 Generic exception caught
JAVA0167 0.00JAVA0167 ThreadDeath not rethrown
JAVA0169 0.00JAVA0169 Unnecessary catch block: exception 'exception'
JAVA0170 0.00JAVA0170 Caught exception not derived from java.lang.Exception
JAVA0171 0.00JAVA0171 Unused local variable
JAVA0173 0.00JAVA0173 Unused method parameter
JAVA0174 0.00JAVA0174 Assigned local variable never used
JAVA0175 0.00JAVA0175 Successive assignment to variable
JAVA0176 0.00JAVA0176 Local variable name does not have required form
JAVA0177 0.00JAVA0177 Variable declaration missing initializer
JAVA0179 0.00JAVA0179 Local variable hides visible field
JAVA0233 1.00JAVA0233 Definition of serialVersionUID other than 'private static final long serialVersionUID'
JAVA0234 0.00JAVA0234 Class is Serializable but does not define serialVersionUID
JAVA0235 0.00JAVA0235 Class defines serialVersionUID but does not implement Serializable
JAVA0236 0.00JAVA0236 Attempt to clone an object which does not implement Cloneable
JAVA0237 1.00JAVA0237 Class implements Cloneable but does not have public clone method
JAVA0238 0.00JAVA0238 Clone method does not call super.clone()
JAVA0239 0.00JAVA0239 Class declares 'readObject' or 'writeObject' but does not implement Serializable
JAVA0240 0.00JAVA0240 Serializable class which declares readObject or writeObject but not both
JAVA0241 0.00JAVA0241 'readObject' or 'writeObject' should be declared private in Serializable class
JAVA0242 0.00JAVA0242 Transient field in non-Serializable class
JAVA0243 0.00JAVA0243 'readResolve' or 'writeReplace' should be declared private or protected
JAVA0244 0.00JAVA0244 Field or method name in subclass differs only by case from inherited field or method
JAVA0245 0.00JAVA0245 JUnit TestCase with non-trivial constructor
JAVA0246 0.00JAVA0246 JUnit assertXXX statement missing message parameter
JAVA0247 0.00JAVA0247 JUnit 'setUp()' and 'tearDown()' should call super method
JAVA0248 0.00JAVA0248 JUnit method 'setUp' or 'tearDown' with incorrect signature
JAVA0249 0.00JAVA0249 JUnit TestCase 'suite()' should be declared static
JAVA0250 0.00JAVA0250 JUnit TestCase declares testXXX method with incorrect signature
JAVA0251 0.00JAVA0251 Use '%n' for line breaks in printf/format for platform independence
JAVA0252 0.00JAVA0252 'enum' is a Java 1.5 reserved word
JAVA0253 0.00JAVA0253 Not all enum constants consumed in switch statement
JAVA0254 0.00JAVA0254 Use enhanced for loop construct instead of Iterator
JAVA0255 0.00JAVA0255 Result of method invocation not used
JAVA0256 0.00JAVA0256 Assignment of external collection/array to field
JAVA0257 0.00JAVA0257 Use of 'Constant Interface' anti-pattern
JAVA0258 0.00JAVA0258 Implement Iterable for foreach compatibility
JAVA0259 0.00JAVA0259 Return of collection/array field
JAVA0260 0.00JAVA0260 Use 'enum' instead of Enumerated Type pattern
JAVA0261 0.00JAVA0261 Use specialized Enum collection types
JAVA0262 0.00JAVA0262 Use of char in integer context
JAVA0263 0.00JAVA0263 Long literal ends with 'l' instead of 'L'
JAVA0264 0.00JAVA0264 Integer math in long context - check for overflow
JAVA0265 0.00JAVA0265 Use of Throwable.printStackTrace()
JAVA0266 0.00JAVA0266 Use of System.out
JAVA0267 0.00JAVA0267 Use of System.err
JAVA0269 0.00JAVA0269 Contents of StringBuffer never used
JAVA0270 0.00JAVA0270 Use Java 5.0 enhanced for loop construct to iterate over all elements in an array
JAVA0271 0.00JAVA0271 Minimize use of on-demand (.*) static imports
JAVA0272 0.00JAVA0272 Thread.run() called
JAVA0273 0.00JAVA0273 Non-final derivative of Thread calls start() in constructor
JAVA0274 0.00JAVA0274 Serializable class has a synchronized readObject()
JAVA0275 0.00JAVA0275 Serializable class has a synchronized writeObject() and no other synchronized methods
JAVA0276 0.00JAVA0276 Unnecessary use of String constructor
JAVA0277 0.00JAVA0277 Iterator.next() implementation does not throw NoSuchElementException
JAVA027823.00JAVA0278 Unnecessary use of Boolean constructor
JAVA0279 0.00JAVA0279 Serialization method readObject or readObjectNoData calls an overridable method
JAVA0280 0.00JAVA0280 IllegalMonitorStateException caught
JAVA0281 0.00JAVA0281 Iterator.next() not called in loop
JAVA0282 0.00JAVA0282 Call to Iterator.next() in loop which does not test Iterator.hasNext()
JAVA0283 0.00JAVA0283 Control variable not updated in loop body
JAVA0284 0.00JAVA0284 Explicit garbage collection
JAVA0285 0.00JAVA0285 Dereference of potentially null variable
JAVA0286 0.00JAVA0286 Dereference of null variable
JAVA0287 0.00JAVA0287 Unnecessary null check
JAVA0288 0.00JAVA0288 Inconsistent null check
LINES1192.00Number of lines in the source file
LINE_COMMENT 0.00Number of line comments
LOC809.00Lines of code
LOGICAL_LINES341.00Number of statements
LOOPS 0.00Number of loops
NEST_DEPTH 2.00Maximum nesting depth
OPERANDS1535.00Number of operands
OPERATORS3308.00Number of operators
PARAMS66.00Number of formal parameter declarations
PROGRAM_LENGTH4843.00Halstead program length
PROGRAM_VOCAB503.00Halstead program vocabulary
PROGRAM_VOLUME 0.00Halstead program volume
RETURNS197.00Number of return points from functions
SIZE37822.00Size of the file in bytes
UNIQUE_OPERANDS464.00Number of unique operands
UNIQUE_OPERATORS39.00Number of unique operators
WHITESPACE11.00Number of whitespace lines