public static boolean areEqual(CTTblCellMar margin1, CTTblCellMar margin2) { return (margin1 == margin2) || ((margin1 != null) && (margin2 != null) && areEqual(margin1.getBottom(), margin2.getBottom()) && areEqual(margin1.getLeft(), margin2.getLeft()) && areEqual(margin1.getRight(), margin2.getRight()) && areEqual(margin1.getTop(), margin2.getTop()) ); }
public static boolean isEmpty(CTTblCellMar margin) { return (margin == null) || (isEmpty(margin.getBottom()) && isEmpty(margin.getLeft()) && isEmpty(margin.getRight()) && isEmpty(margin.getTop()) ); }
public static CTTblCellMar apply(CTTblCellMar source, CTTblCellMar destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createCTTblCellMar(); destination.setBottom(apply(source.getBottom(), destination.getBottom())); destination.setLeft(apply(source.getLeft(), destination.getLeft())); destination.setRight(apply(source.getRight(), destination.getRight())); destination.setTop(apply(source.getTop(), destination.getTop())); } return destination; }
public static boolean areEqual(CTTblCellMar margin1, CTTblCellMar margin2) { return (margin1 == margin2) || ((margin1 != null) && (margin2 != null) && areEqual(margin1.getBottom(), margin2.getBottom()) && areEqual(margin1.getLeft(), margin2.getLeft()) && areEqual(margin1.getRight(), margin2.getRight()) && areEqual(margin1.getTop(), margin2.getTop()) ); }
public static boolean isEmpty(CTTblCellMar margin) { return (margin == null) || (isEmpty(margin.getBottom()) && isEmpty(margin.getLeft()) && isEmpty(margin.getRight()) && isEmpty(margin.getTop()) ); }
public static CTTblCellMar apply(CTTblCellMar source, CTTblCellMar destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createCTTblCellMar(); destination.setBottom(apply(source.getBottom(), destination.getBottom())); destination.setLeft(apply(source.getLeft(), destination.getLeft())); destination.setRight(apply(source.getRight(), destination.getRight())); destination.setTop(apply(source.getTop(), destination.getTop())); } return destination; }