void (String name, DimConstraint constraint) { myProperties.add(new PropertyBean(name, dimConstraintToString(constraint))); BoundSize size = constraint.getSize(); if (size != null) { addSubValue(name + ".size", boundSizeToString(size)); } UnitValue align = constraint.getAlign(); if (align != null) { addSubValue(name + ".align", unitValueToString(align)); } BoundSize gapBefore = constraint.getGapBefore(); if (gapBefore != null && !gapBefore.isUnset()) { addSubValue(name + ".gapBefore", boundSizeToString(gapBefore)); } BoundSize gapAfter = constraint.getGapAfter(); if (gapAfter != null && !gapAfter.isUnset()) { addSubValue(name + ".gapAfter", boundSizeToString(gapAfter)); } }