001 package org.kuali.common.util.metainf.model; 002 003 import java.util.Properties; 004 005 import org.kuali.common.util.Assert; 006 import org.kuali.common.util.PropertyUtils; 007 008 public class WriteProperties { 009 010 private final WriteRequest request; 011 private final Properties properties; 012 013 public WriteProperties(WriteRequest request, Properties properties) { 014 Assert.noNulls(request, properties); 015 this.request = request; 016 this.properties = PropertyUtils.toImmutable(properties); 017 } 018 019 public Properties getProperties() { 020 return properties; 021 } 022 023 public WriteRequest getRequest() { 024 return request; 025 } 026 027 }