001    package nl.tudelft.tbm.eeni.owl2java.model.jmodel;
002    
003    import nl.tudelft.tbm.eeni.owl2java.model.jmodel.utils.LogUtils;
004    import nl.tudelft.tbm.eeni.owl2java.utils.IReporting;
005    import org.apache.commons.logging.Log;
006    import org.apache.commons.logging.LogFactory;
007    
008    
009    public class JBaseRestriction implements IReporting {
010    
011        @SuppressWarnings("unused")
012        private static Log log = LogFactory.getLog(JBaseRestriction.class);
013    
014        JModel jModel;
015        JClass onClass;
016        JProperty onProperty;
017    
018        // true, if only a placeholder is there (no significant restrictions) apply
019        boolean isEmpty = true;
020    
021        public JBaseRestriction(JClass onClass, JProperty onProperty) {
022            this.jModel = onClass.getJModel();
023            this.onClass = onClass;
024            this.onProperty = onProperty;
025        }
026    
027        public String getJModelReport() {
028            return (LogUtils.toLogName(this) + ": Base restriction");
029        }
030    
031        public JProperty getOnProperty() {
032            return onProperty;
033        }
034    
035        public JClass getOnClass() {
036            return onClass;
037        }
038    
039    }