org.javers.core.metamodel.scanner.ClassScan Maven / Gradle / Ivy
package org.javers.core.metamodel.scanner;
import org.javers.core.metamodel.property.Property;
import java.util.List;
import java.util.Optional;
/**
* @author bartosz.walacik
*/
public class ClassScan {
private final PropertyScan propertyScan;
private final ClassAnnotationsScan classAnnotationsScan;
public ClassScan(PropertyScan propertyScan, ClassAnnotationsScan classAnnotationsScan) {
this.propertyScan = propertyScan;
this.classAnnotationsScan = classAnnotationsScan;
}
public List getProperties() {
return propertyScan.getProperties();
}
public boolean hasIdProperty() {
return propertyScan.hasId();
}
public boolean hasValueAnn() {
return classAnnotationsScan.isValue();
}
public boolean hasValueObjectAnn() {
return classAnnotationsScan.isValueObject();
}
public boolean hasEntityAnn() {
return classAnnotationsScan.isEntity();
}
public boolean hasShallowReferenceAnn() {
return classAnnotationsScan.isShallowReference();
}
public Optional typeName() {
return classAnnotationsScan.typeName();
}
public boolean hasIgnoredAnn() {
return classAnnotationsScan.isIgnored();
}
}