Refactor smart-rs API into 2 modules
[smart-dao.git] / smart-exim / smart-exim-api / src / main / java / com / smartitengineering / exim / impl / EximResourceConfigImpl.java
blob2adb37ee233641e1e4dbdd8f2eaddda743629103
1 /*
2 * This is a common dao with basic CRUD operations and is not limited to any
3 * persistent layer implementation
4 *
5 * Copyright (C) 2008 Imran M Yousuf (imyousuf@smartitengineering.com)
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 3 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 package com.smartitengineering.exim.impl;
21 import com.smartitengineering.exim.AssociationConfig;
22 import com.smartitengineering.exim.EximResourceConfig;
23 import java.util.Map;
25 /**
26 * This implementation represents the configuration of a class. 2 configuration
27 * objects are considered to be equal if they represent the same class.
28 * @author imyousuf
29 * @since 0.4
31 public class EximResourceConfigImpl
32 implements EximResourceConfig {
34 private boolean associateExportPolicyAsUri;
35 private boolean accessByPropertyEnabled;
36 private boolean identityCustomizerImplemented;
37 private boolean exporterImplemented;
38 private boolean importerImplemented;
39 private Class domainClass;
40 private String pathToResource;
41 private String idPrefix;
42 private String idPropertyName;
43 private Map<String, AssociationConfig> associationConfigs;
45 public void setAccessByPropertyEnabled(boolean accessByPropertyEnabled) {
46 this.accessByPropertyEnabled = accessByPropertyEnabled;
49 public void setAssociateExportPolicyAsUri(boolean associateExportPolicyAsUri) {
50 this.associateExportPolicyAsUri = associateExportPolicyAsUri;
53 public void setAssociationConfigs(
54 Map<String, AssociationConfig> associationConfigs) {
55 this.associationConfigs = associationConfigs;
58 public void setDomainClass(Class domainClass) {
59 this.domainClass = domainClass;
62 public void setExporterImplemented(boolean exporterImplemented) {
63 this.exporterImplemented = exporterImplemented;
66 public void setIdPropertyName(String idPropertyName) {
67 this.idPropertyName = idPropertyName;
70 public void setIdPrefix(String idPrefix) {
71 this.idPrefix = idPrefix;
74 public void setIdentityCustomizerImplemented(
75 boolean identityCustomizerImplemented) {
76 this.identityCustomizerImplemented = identityCustomizerImplemented;
79 public void setImporterImplemented(boolean importerImplemented) {
80 this.importerImplemented = importerImplemented;
83 public void setPathToResource(String pathToResource) {
84 this.pathToResource = pathToResource;
87 public boolean isAccessByPropertyEnabled() {
88 return accessByPropertyEnabled;
91 public boolean isAssociateExportPolicyAsUri() {
92 return associateExportPolicyAsUri;
95 public Map<String, AssociationConfig> getAssociationConfigs() {
96 return associationConfigs;
99 public Class getDomainClass() {
100 return domainClass;
103 public boolean isExporterImplemented() {
104 return exporterImplemented;
107 public String getIdPropertyName() {
108 return idPropertyName;
111 public String getIdPrefix() {
112 return idPrefix;
115 public boolean isIdentityCustomizerImplemented() {
116 return identityCustomizerImplemented;
119 public boolean isImporterImplemented() {
120 return importerImplemented;
123 public String getPathToResource() {
124 return pathToResource;