package net.sourceforge.fenixedu.domain.contacts; import pt.ist.fenixWebFramework.services.Service; import pt.utl.ist.fenix.tools.predicates.Predicate; public class PhysicalAddressValidation extends PhysicalAddressValidation_Base { public static final Predicate PREDICATE = new Predicate() { @Override public boolean eval(PartyContactValidation t) { return t instanceof PhysicalAddressValidation; } }; public static final Predicate PREDICATE_FILE = new Predicate() { @Override public boolean eval(PartyContactValidation t) { return PREDICATE.eval(t) && ((PhysicalAddressValidation) t).hasFile(); } }; public PhysicalAddressValidation(PhysicalAddress physicalAddress) { super(); setPartyContact(physicalAddress); } @Service public void setFile(String filename, String displayName, byte[] content) { new PhysicalAddressValidationFile(this, filename, displayName, content); } }