-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eeaf6ae
commit d928e23
Showing
8 changed files
with
109 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
elements/src/main/java/com/manydesigns/elements/fields/helpers/ObjectFieldHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright (C) 2005-2020 ManyDesigns srl. All rights reserved. | ||
* http://www.manydesigns.com/ | ||
* | ||
* This is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU Lesser General Public License as | ||
* published by the Free Software Foundation; either version 3 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* This software is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this software; if not, write to the Free | ||
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
* 02110-1301 USA, or see the FSF site: http://www.fsf.org. | ||
*/ | ||
|
||
package com.manydesigns.elements.fields.helpers; | ||
|
||
import com.manydesigns.elements.Mode; | ||
import com.manydesigns.elements.fields.BooleanField; | ||
import com.manydesigns.elements.fields.ObjectField; | ||
import com.manydesigns.elements.fields.search.BooleanSearchField; | ||
import com.manydesigns.elements.fields.search.SearchField; | ||
import com.manydesigns.elements.reflection.ClassAccessor; | ||
import com.manydesigns.elements.reflection.PropertyAccessor; | ||
|
||
/* | ||
* @author Paolo Predonzani - paolo.predonzani@manydesigns.com | ||
* @author Angelo Lupo - angelo.lupo@manydesigns.com | ||
* @author Giampiero Granatella - giampiero.granatella@manydesigns.com | ||
* @author Alessio Stalla - alessio.stalla@manydesigns.com | ||
*/ | ||
public class ObjectFieldHelper implements FieldHelper { | ||
public static final String copyright = | ||
"Copyright (C) 2005-2023 ManyDesigns srl"; | ||
|
||
public ObjectField tryToInstantiateField(ClassAccessor classAccessor, | ||
PropertyAccessor propertyAccessor, | ||
Mode mode, | ||
String prefix) { | ||
return new ObjectField(propertyAccessor, mode, prefix); | ||
} | ||
|
||
public SearchField tryToInstantiateSearchField(ClassAccessor classAccessor, | ||
PropertyAccessor propertyAccessor, | ||
String prefix) { | ||
return null; // TODO | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters