public static AT_Row createRule ( TableRowType type , TableRowStyle style ) { Validate . notNull ( type ) ; Validate . validState ( type != TableRowType . UNKNOWN ) ; Validate . validState ( type != TableRowType . CONTENT ) ; Validate . notNull ( style ) ; Validate . validState ( style != TableRowStyle . UNKNOWN ) ; return new AT_Row ( ) { @ Override public TableRowType getType ( ) { return type ; } @ Override public TableRowStyle getStyle ( ) { return style ; } } ; }
Creates a new row representing a rule .