repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
apache/fluo-recipes
modules/core/src/main/java/org/apache/fluo/recipes/core/transaction/RecordingTransaction.java
RecordingTransaction.wrap
public static RecordingTransaction wrap(Transaction tx, Predicate<LogEntry> filter) { return new RecordingTransaction(tx, filter); }
java
public static RecordingTransaction wrap(Transaction tx, Predicate<LogEntry> filter) { return new RecordingTransaction(tx, filter); }
[ "public", "static", "RecordingTransaction", "wrap", "(", "Transaction", "tx", ",", "Predicate", "<", "LogEntry", ">", "filter", ")", "{", "return", "new", "RecordingTransaction", "(", "tx", ",", "filter", ")", ";", "}" ]
Creates a RecordingTransaction using the provided LogEntry filter and existing Transaction
[ "Creates", "a", "RecordingTransaction", "using", "the", "provided", "LogEntry", "filter", "and", "existing", "Transaction" ]
24c11234c9654b16d999437ff49ddc3db86665f8
https://github.com/apache/fluo-recipes/blob/24c11234c9654b16d999437ff49ddc3db86665f8/modules/core/src/main/java/org/apache/fluo/recipes/core/transaction/RecordingTransaction.java#L63-L65
train
seam/faces
api/src/main/java/org/jboss/seam/faces/component/UIInputContainer.java
UIInputContainer.scan
protected InputContainerElements scan(final UIComponent component, InputContainerElements elements, final FacesContext context) { if (elements == null) { elements = new InputContainerElements(); } // NOTE we need to walk the tree ignoring rendered attribute because it's ...
java
protected InputContainerElements scan(final UIComponent component, InputContainerElements elements, final FacesContext context) { if (elements == null) { elements = new InputContainerElements(); } // NOTE we need to walk the tree ignoring rendered attribute because it's ...
[ "protected", "InputContainerElements", "scan", "(", "final", "UIComponent", "component", ",", "InputContainerElements", "elements", ",", "final", "FacesContext", "context", ")", "{", "if", "(", "elements", "==", "null", ")", "{", "elements", "=", "new", "InputCont...
Walk the component tree branch built by the composite component and locate the input container elements. @return a composite object of the input container elements
[ "Walk", "the", "component", "tree", "branch", "built", "by", "the", "composite", "component", "and", "locate", "the", "input", "container", "elements", "." ]
2fdedbc7070318c2c58bfffb8a26f1ea1d0ee1e3
https://github.com/seam/faces/blob/2fdedbc7070318c2c58bfffb8a26f1ea1d0ee1e3/api/src/main/java/org/jboss/seam/faces/component/UIInputContainer.java#L250-L271
train
seam/faces
api/src/main/java/org/jboss/seam/faces/component/UIInputContainer.java
UIInputContainer.assignIds
public void assignIds(final InputContainerElements elements, final FacesContext context) { boolean refreshIds = false; if (getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX)) { setId(elements.getPropertyName(context)); refreshIds = true; } UIComponent label = element...
java
public void assignIds(final InputContainerElements elements, final FacesContext context) { boolean refreshIds = false; if (getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX)) { setId(elements.getPropertyName(context)); refreshIds = true; } UIComponent label = element...
[ "public", "void", "assignIds", "(", "final", "InputContainerElements", "elements", ",", "final", "FacesContext", "context", ")", "{", "boolean", "refreshIds", "=", "false", ";", "if", "(", "getId", "(", ")", ".", "startsWith", "(", "UIViewRoot", ".", "UNIQUE_I...
assigning ids seems to break form submissions, but I don't know why
[ "assigning", "ids", "seems", "to", "break", "form", "submissions", "but", "I", "don", "t", "know", "why" ]
2fdedbc7070318c2c58bfffb8a26f1ea1d0ee1e3
https://github.com/seam/faces/blob/2fdedbc7070318c2c58bfffb8a26f1ea1d0ee1e3/api/src/main/java/org/jboss/seam/faces/component/UIInputContainer.java#L274-L304
train
seam/faces
api/src/main/java/org/jboss/seam/faces/component/UIInputContainer.java
UIInputContainer.getDefaultValidator
private Validator getDefaultValidator(final FacesContext context) throws FacesException { if (!beanValidationPresent) { return null; } ValidatorFactory validatorFactory; Object cachedObject = context.getExternalContext().getApplicationMap().get(BeanValidator.VALIDATOR_FACTOR...
java
private Validator getDefaultValidator(final FacesContext context) throws FacesException { if (!beanValidationPresent) { return null; } ValidatorFactory validatorFactory; Object cachedObject = context.getExternalContext().getApplicationMap().get(BeanValidator.VALIDATOR_FACTOR...
[ "private", "Validator", "getDefaultValidator", "(", "final", "FacesContext", "context", ")", "throws", "FacesException", "{", "if", "(", "!", "beanValidationPresent", ")", "{", "return", "null", ";", "}", "ValidatorFactory", "validatorFactory", ";", "Object", "cache...
Get the default Bean Validation Validator to read the contraints for a property.
[ "Get", "the", "default", "Bean", "Validation", "Validator", "to", "read", "the", "contraints", "for", "a", "property", "." ]
2fdedbc7070318c2c58bfffb8a26f1ea1d0ee1e3
https://github.com/seam/faces/blob/2fdedbc7070318c2c58bfffb8a26f1ea1d0ee1e3/api/src/main/java/org/jboss/seam/faces/component/UIInputContainer.java#L316-L334
train
olivergondza/dumpling
core/src/main/java/com/github/olivergondza/dumpling/model/ProcessThread.java
ProcessThread.getBlockedThreads
public @Nonnull SetType getBlockedThreads() { Set<ThreadType> blocked = new LinkedHashSet<ThreadType>(); for (ThreadType thread: runtime.getThreads()) { if (thread == this) continue; if (getAcquiredLocks().contains(thread.getWaitingToLock())) { blocked.add(thread)...
java
public @Nonnull SetType getBlockedThreads() { Set<ThreadType> blocked = new LinkedHashSet<ThreadType>(); for (ThreadType thread: runtime.getThreads()) { if (thread == this) continue; if (getAcquiredLocks().contains(thread.getWaitingToLock())) { blocked.add(thread)...
[ "public", "@", "Nonnull", "SetType", "getBlockedThreads", "(", ")", "{", "Set", "<", "ThreadType", ">", "blocked", "=", "new", "LinkedHashSet", "<", "ThreadType", ">", "(", ")", ";", "for", "(", "ThreadType", "thread", ":", "runtime", ".", "getThreads", "(...
Get threads that are waiting for lock held by this thread.
[ "Get", "threads", "that", "are", "waiting", "for", "lock", "held", "by", "this", "thread", "." ]
ac698735fcc7c023db0c1637cc1f522cb3576c7f
https://github.com/olivergondza/dumpling/blob/ac698735fcc7c023db0c1637cc1f522cb3576c7f/core/src/main/java/com/github/olivergondza/dumpling/model/ProcessThread.java#L180-L189
train
olivergondza/dumpling
core/src/main/java/com/github/olivergondza/dumpling/model/ProcessThread.java
ProcessThread.getBlockingThreads
public @Nonnull SetType getBlockingThreads() { final ThreadType blocking = getBlockingThread(); if (blocking == null) return runtime.getEmptyThreadSet(); return runtime.getThreadSet(Collections.singleton(blocking)); }
java
public @Nonnull SetType getBlockingThreads() { final ThreadType blocking = getBlockingThread(); if (blocking == null) return runtime.getEmptyThreadSet(); return runtime.getThreadSet(Collections.singleton(blocking)); }
[ "public", "@", "Nonnull", "SetType", "getBlockingThreads", "(", ")", "{", "final", "ThreadType", "blocking", "=", "getBlockingThread", "(", ")", ";", "if", "(", "blocking", "==", "null", ")", "return", "runtime", ".", "getEmptyThreadSet", "(", ")", ";", "ret...
Get threads holding lock this thread is trying to acquire. @return {@link ThreadSet} that contains blocked thread or empty set if this thread does not hold any lock.
[ "Get", "threads", "holding", "lock", "this", "thread", "is", "trying", "to", "acquire", "." ]
ac698735fcc7c023db0c1637cc1f522cb3576c7f
https://github.com/olivergondza/dumpling/blob/ac698735fcc7c023db0c1637cc1f522cb3576c7f/core/src/main/java/com/github/olivergondza/dumpling/model/ProcessThread.java#L196-L201
train
olivergondza/dumpling
core/src/main/java/com/github/olivergondza/dumpling/model/ProcessThread.java
ProcessThread.getBlockingThread
public @CheckForNull ThreadType getBlockingThread() { if (state.waitingToLock == null && state.waitingOnLock == null) { return null; } for (ThreadType thread: runtime.getThreads()) { if (thread == this) continue; Set<ThreadLock> acquired = thread.getAcquiredL...
java
public @CheckForNull ThreadType getBlockingThread() { if (state.waitingToLock == null && state.waitingOnLock == null) { return null; } for (ThreadType thread: runtime.getThreads()) { if (thread == this) continue; Set<ThreadLock> acquired = thread.getAcquiredL...
[ "public", "@", "CheckForNull", "ThreadType", "getBlockingThread", "(", ")", "{", "if", "(", "state", ".", "waitingToLock", "==", "null", "&&", "state", ".", "waitingOnLock", "==", "null", ")", "{", "return", "null", ";", "}", "for", "(", "ThreadType", "thr...
Get thread blocking this threads execution. @return Blocking thread or null if not block by a thread.
[ "Get", "thread", "blocking", "this", "threads", "execution", "." ]
ac698735fcc7c023db0c1637cc1f522cb3576c7f
https://github.com/olivergondza/dumpling/blob/ac698735fcc7c023db0c1637cc1f522cb3576c7f/core/src/main/java/com/github/olivergondza/dumpling/model/ProcessThread.java#L207-L222
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java
RelationalJMapper.init
private void init(String xmlPath) throws MalformedURLException, IOException{ XML xml = new XML(true, xmlPath); if(!xml.isInheritedMapped(configuredClass)) Error.classNotMapped(configuredClass); for (Class<?> classe :getClasses(xml)){ relationalManyToOneMapper.put(classe.getName(), new JMapper(c...
java
private void init(String xmlPath) throws MalformedURLException, IOException{ XML xml = new XML(true, xmlPath); if(!xml.isInheritedMapped(configuredClass)) Error.classNotMapped(configuredClass); for (Class<?> classe :getClasses(xml)){ relationalManyToOneMapper.put(classe.getName(), new JMapper(c...
[ "private", "void", "init", "(", "String", "xmlPath", ")", "throws", "MalformedURLException", ",", "IOException", "{", "XML", "xml", "=", "new", "XML", "(", "true", ",", "xmlPath", ")", ";", "if", "(", "!", "xml", ".", "isInheritedMapped", "(", "configuredC...
This method initializes relational maps starting from XML. @param xmlPath xml path @throws MalformedURLException @throws IOException
[ "This", "method", "initializes", "relational", "maps", "starting", "from", "XML", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java#L163-L173
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java
RelationalJMapper.getClasses
private Set<Class<?>> getClasses(XML xml){ HashSet<Class<?>> result = new HashSet<Class<?>>(); // in case of override only the last global configuration must be analyzed Global global = null; for (Class<?> clazz : getAllsuperClasses(configuredClass)) { // only if global configuration is null wil...
java
private Set<Class<?>> getClasses(XML xml){ HashSet<Class<?>> result = new HashSet<Class<?>>(); // in case of override only the last global configuration must be analyzed Global global = null; for (Class<?> clazz : getAllsuperClasses(configuredClass)) { // only if global configuration is null wil...
[ "private", "Set", "<", "Class", "<", "?", ">", ">", "getClasses", "(", "XML", "xml", ")", "{", "HashSet", "<", "Class", "<", "?", ">", ">", "result", "=", "new", "HashSet", "<", "Class", "<", "?", ">", ">", "(", ")", ";", "// in case of override on...
Returns all Target Classes contained in the XML. @param xml xml to analyze @return target classes
[ "Returns", "all", "Target", "Classes", "contained", "in", "the", "XML", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java#L180-L215
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java
RelationalJMapper.init
private void init(){ if(!Annotation.isInheritedMapped(configuredClass)) Error.classNotMapped(configuredClass); for (Class<?> classe :getClasses()){ relationalManyToOneMapper.put(classe.getName(), new JMapper(configuredClass, classe,ChooseConfig.DESTINATION)); relationalOneToManyMapper.put(class...
java
private void init(){ if(!Annotation.isInheritedMapped(configuredClass)) Error.classNotMapped(configuredClass); for (Class<?> classe :getClasses()){ relationalManyToOneMapper.put(classe.getName(), new JMapper(configuredClass, classe,ChooseConfig.DESTINATION)); relationalOneToManyMapper.put(class...
[ "private", "void", "init", "(", ")", "{", "if", "(", "!", "Annotation", ".", "isInheritedMapped", "(", "configuredClass", ")", ")", "Error", ".", "classNotMapped", "(", "configuredClass", ")", ";", "for", "(", "Class", "<", "?", ">", "classe", ":", "getC...
This method initializes relational maps
[ "This", "method", "initializes", "relational", "maps" ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java#L220-L229
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java
RelationalJMapper.getClasses
private Set<Class<?>> getClasses() { HashSet<Class<?>> result = new HashSet<Class<?>>(); // in case of override only the last global configuration must be analyzed JGlobalMap jGlobalMap = null; for (Class<?> clazz : getAllsuperClasses(configuredClass)) { // only if global configuration is n...
java
private Set<Class<?>> getClasses() { HashSet<Class<?>> result = new HashSet<Class<?>>(); // in case of override only the last global configuration must be analyzed JGlobalMap jGlobalMap = null; for (Class<?> clazz : getAllsuperClasses(configuredClass)) { // only if global configuration is n...
[ "private", "Set", "<", "Class", "<", "?", ">", ">", "getClasses", "(", ")", "{", "HashSet", "<", "Class", "<", "?", ">", ">", "result", "=", "new", "HashSet", "<", "Class", "<", "?", ">", ">", "(", ")", ";", "// in case of override only the last global...
Returns all Target Classes @return a List of Target Classes
[ "Returns", "all", "Target", "Classes" ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java#L235-L270
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java
RelationalJMapper.destinationClassControl
private <I> I destinationClassControl(Exception exception, Class<I> clazz){ try{ if(clazz == null)throw new IllegalArgumentException("it's mandatory define the destination class"); }catch (Exception e) {JmapperLog.error(e);return null;} return logAndReturnNull(exception); }
java
private <I> I destinationClassControl(Exception exception, Class<I> clazz){ try{ if(clazz == null)throw new IllegalArgumentException("it's mandatory define the destination class"); }catch (Exception e) {JmapperLog.error(e);return null;} return logAndReturnNull(exception); }
[ "private", "<", "I", ">", "I", "destinationClassControl", "(", "Exception", "exception", ",", "Class", "<", "I", ">", "clazz", ")", "{", "try", "{", "if", "(", "clazz", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", "\"it's mandatory def...
This method verifies that the destinationClass exists. @param exception exception to handle @param clazz class to check @return a new instance of Class given as input
[ "This", "method", "verifies", "that", "the", "destinationClass", "exists", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java#L315-L320
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java
RelationalJMapper.getJMapper
private <D,S> JMapper<D,S> getJMapper(HashMap<String,JMapper> map,Object source){ Class<?> sourceClass = source instanceof Class?((Class<?>)source):source.getClass(); JMapper<D,S> jMapper = map.get(sourceClass.getName()); if(jMapper == null) Error.classNotMapped(source, configuredClass); return jMapper; }
java
private <D,S> JMapper<D,S> getJMapper(HashMap<String,JMapper> map,Object source){ Class<?> sourceClass = source instanceof Class?((Class<?>)source):source.getClass(); JMapper<D,S> jMapper = map.get(sourceClass.getName()); if(jMapper == null) Error.classNotMapped(source, configuredClass); return jMapper; }
[ "private", "<", "D", ",", "S", ">", "JMapper", "<", "D", ",", "S", ">", "getJMapper", "(", "HashMap", "<", "String", ",", "JMapper", ">", "map", ",", "Object", "source", ")", "{", "Class", "<", "?", ">", "sourceClass", "=", "source", "instanceof", ...
Returns the desired JMapper instance. @param map the map of relationships @param source key of the map @return the instance of JMapper
[ "Returns", "the", "desired", "JMapper", "instance", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/RelationalJMapper.java#L327-L332
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/api/Global.java
Global.excludedAttributes
public Global excludedAttributes(String... attributes){ for (String attribute : attributes) global.excluded.add(new XmlExcludedAttribute(attribute)); return this; }
java
public Global excludedAttributes(String... attributes){ for (String attribute : attributes) global.excluded.add(new XmlExcludedAttribute(attribute)); return this; }
[ "public", "Global", "excludedAttributes", "(", "String", "...", "attributes", ")", "{", "for", "(", "String", "attribute", ":", "attributes", ")", "global", ".", "excluded", ".", "(", "new", "XmlExcludedAttribute", "(", "attribute", ")", ")", ";", "return", ...
Attributes to exclude from mapping. @param attributes excluded attributes @return this instance of JMapperGlobal
[ "Attributes", "to", "exclude", "from", "mapping", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/api/Global.java#L86-L92
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/api/Global.java
Global.targetClasses
public Global targetClasses(Class<?>... classes){ for (Class<?> targetClass : classes) global.classes.add(new TargetClass(targetClass).toXStream()); return this; }
java
public Global targetClasses(Class<?>... classes){ for (Class<?> targetClass : classes) global.classes.add(new TargetClass(targetClass).toXStream()); return this; }
[ "public", "Global", "targetClasses", "(", "Class", "<", "?", ">", "...", "classes", ")", "{", "for", "(", "Class", "<", "?", ">", "targetClass", ":", "classes", ")", "global", ".", "classes", ".", "(", "new", "TargetClass", "(", "targetClass", ")", "."...
Target classes. @param classes target classes @return this instance of JMapperGlobal
[ "Target", "classes", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/api/Global.java#L99-L105
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/operations/OperationAnalyzer.java
OperationAnalyzer.isUndefined
public boolean isUndefined(final Field destination,final Field source) { info = null; for (IOperationAnalyzer analyzer : analyzers) if(analyzer.verifyConditions(destination,source)) info = analyzer.getInfoOperation(destination, source); // if the operation has not been identified if(is...
java
public boolean isUndefined(final Field destination,final Field source) { info = null; for (IOperationAnalyzer analyzer : analyzers) if(analyzer.verifyConditions(destination,source)) info = analyzer.getInfoOperation(destination, source); // if the operation has not been identified if(is...
[ "public", "boolean", "isUndefined", "(", "final", "Field", "destination", ",", "final", "Field", "source", ")", "{", "info", "=", "null", ";", "for", "(", "IOperationAnalyzer", "analyzer", ":", "analyzers", ")", "if", "(", "analyzer", ".", "verifyConditions", ...
This method analyzes the fields, calculates the info and returns true if operation is undefined. @param destination destination field @param source source field @return returns true if an operation between fields exists @see InfoOperation
[ "This", "method", "analyzes", "the", "fields", "calculates", "the", "info", "and", "returns", "true", "if", "operation", "is", "undefined", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/operations/OperationAnalyzer.java#L75-L97
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/ConfigReader.java
ConfigReader.getValue
private String getValue(final String value, final String mappedFieldName) { if (isNull(value)) return null; return value.equals(DEFAULT_FIELD_VALUE)?mappedFieldName:value; }
java
private String getValue(final String value, final String mappedFieldName) { if (isNull(value)) return null; return value.equals(DEFAULT_FIELD_VALUE)?mappedFieldName:value; }
[ "private", "String", "getValue", "(", "final", "String", "value", ",", "final", "String", "mappedFieldName", ")", "{", "if", "(", "isNull", "(", "value", ")", ")", "return", "null", ";", "return", "value", ".", "equals", "(", "DEFAULT_FIELD_VALUE", ")", "?...
This method compare the name of the target field with the DEFAULT_FIELD_VALUE and returns the final value. @param value configuration parameter @param mappedFieldName name of the configured field @return the name of target field @see Constants#DEFAULT_FIELD_VALUE
[ "This", "method", "compare", "the", "name", "of", "the", "target", "field", "with", "the", "DEFAULT_FIELD_VALUE", "and", "returns", "the", "final", "value", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/ConfigReader.java#L70-L75
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/ConfigReader.java
ConfigReader.getValue
private String getValue(final List<String> attributes,final List<Class<?>> classes,String value,final String mappedFieldName,final Class<?> configuredClass,final Class<?> targetClass){ String regex = getValue(value,mappedFieldName); String mappedClassName = configuredClass.getSimpleName(); String targetCla...
java
private String getValue(final List<String> attributes,final List<Class<?>> classes,String value,final String mappedFieldName,final Class<?> configuredClass,final Class<?> targetClass){ String regex = getValue(value,mappedFieldName); String mappedClassName = configuredClass.getSimpleName(); String targetCla...
[ "private", "String", "getValue", "(", "final", "List", "<", "String", ">", "attributes", ",", "final", "List", "<", "Class", "<", "?", ">", ">", "classes", ",", "String", "value", ",", "final", "String", "mappedFieldName", ",", "final", "Class", "<", "?"...
This method finds the target field name from mapped parameters. @param attributes target list of field names @param classes list of target classes @param value name of target attribute @param mappedFieldName name of mapped attribute @param configuredClass configured Class @param targetClass target Class @return the nam...
[ "This", "method", "finds", "the", "target", "field", "name", "from", "mapped", "parameters", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/ConfigReader.java#L87-L145
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/ConfigReader.java
ConfigReader.loadAccessors
public void loadAccessors(Class<?> targetClass, MappedField configuredField, MappedField targetField) { // First checks xml configuration xml.fillMappedField(configuredClass, configuredField) .fillMappedField(targetClass, targetField) // fill target field with custom methods defined in the configured...
java
public void loadAccessors(Class<?> targetClass, MappedField configuredField, MappedField targetField) { // First checks xml configuration xml.fillMappedField(configuredClass, configuredField) .fillMappedField(targetClass, targetField) // fill target field with custom methods defined in the configured...
[ "public", "void", "loadAccessors", "(", "Class", "<", "?", ">", "targetClass", ",", "MappedField", "configuredField", ",", "MappedField", "targetField", ")", "{", "// First checks xml configuration\r", "xml", ".", "fillMappedField", "(", "configuredClass", ",", "confi...
Fill fields with they custom methods. @param targetClass class of the target field @param configuredField configured field @param targetField target field
[ "Fill", "fields", "with", "they", "custom", "methods", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/ConfigReader.java#L301-L315
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.getConversionMethods
public List<ConversionMethod> getConversionMethods (Class<?> clazz){ List<ConversionMethod> conversions = new ArrayList<ConversionMethod>(); Map<String, List<ConversionMethod>> conversionsMap = this.conversionsLoad(); for (Class<?> classToCheck : getAllsuperClasses(clazz)){ List<ConversionMethod> methods =...
java
public List<ConversionMethod> getConversionMethods (Class<?> clazz){ List<ConversionMethod> conversions = new ArrayList<ConversionMethod>(); Map<String, List<ConversionMethod>> conversionsMap = this.conversionsLoad(); for (Class<?> classToCheck : getAllsuperClasses(clazz)){ List<ConversionMethod> methods =...
[ "public", "List", "<", "ConversionMethod", ">", "getConversionMethods", "(", "Class", "<", "?", ">", "clazz", ")", "{", "List", "<", "ConversionMethod", ">", "conversions", "=", "new", "ArrayList", "<", "ConversionMethod", ">", "(", ")", ";", "Map", "<", "...
Returns the conversions method belonging to clazz. @param clazz class to check @return the conversion method list
[ "Returns", "the", "conversions", "method", "belonging", "to", "clazz", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L188-L196
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.getClasses
public List<String> getClasses(){ List<String> classes = new ArrayList<String>(); for (XmlClass xmlClass : xmlJmapper.classes) classes.add(xmlClass.name); return classes; }
java
public List<String> getClasses(){ List<String> classes = new ArrayList<String>(); for (XmlClass xmlClass : xmlJmapper.classes) classes.add(xmlClass.name); return classes; }
[ "public", "List", "<", "String", ">", "getClasses", "(", ")", "{", "List", "<", "String", ">", "classes", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "for", "(", "XmlClass", "xmlClass", ":", "xmlJmapper", ".", "classes", ")", "classes",...
Returns a list with the classes names presents in xml mapping file. @return a list with the classes names presents in xml mapping file
[ "Returns", "a", "list", "with", "the", "classes", "names", "presents", "in", "xml", "mapping", "file", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L202-L207
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.write
public XML write(){ try { FilesManager.write(xmlJmapper, xmlPath); } catch (IOException e) {JmapperLog.error(e);} return this; }
java
public XML write(){ try { FilesManager.write(xmlJmapper, xmlPath); } catch (IOException e) {JmapperLog.error(e);} return this; }
[ "public", "XML", "write", "(", ")", "{", "try", "{", "FilesManager", ".", "write", "(", "xmlJmapper", ",", "xmlPath", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "JmapperLog", ".", "error", "(", "e", ")", ";", "}", "return", "this", ...
Writes the xml mapping file starting from xmlJmapper object. @return this instance of XML
[ "Writes", "the", "xml", "mapping", "file", "starting", "from", "xmlJmapper", "object", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L213-L217
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.deleteClass
public XML deleteClass(Class<?> aClass){ boolean isRemoved = xmlJmapper.classes.remove(new XmlClass(aClass.getName())); if(!isRemoved)Error.xmlClassInexistent(this.xmlPath,aClass); return this; }
java
public XML deleteClass(Class<?> aClass){ boolean isRemoved = xmlJmapper.classes.remove(new XmlClass(aClass.getName())); if(!isRemoved)Error.xmlClassInexistent(this.xmlPath,aClass); return this; }
[ "public", "XML", "deleteClass", "(", "Class", "<", "?", ">", "aClass", ")", "{", "boolean", "isRemoved", "=", "xmlJmapper", ".", "classes", ".", "remove", "(", "new", "XmlClass", "(", "aClass", ".", "getName", "(", ")", ")", ")", ";", "if", "(", "!",...
This method remove a specific Class from Xml Configuration File @param aClass class to delete @return this instance of XML
[ "This", "method", "remove", "a", "specific", "Class", "from", "Xml", "Configuration", "File" ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L295-L299
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.addGlobal
public XML addGlobal(Class<?> aClass,Global global){ checksGlobalAbsence(aClass); findXmlClass(aClass).global = Converter.toXmlGlobal(global); return this; }
java
public XML addGlobal(Class<?> aClass,Global global){ checksGlobalAbsence(aClass); findXmlClass(aClass).global = Converter.toXmlGlobal(global); return this; }
[ "public", "XML", "addGlobal", "(", "Class", "<", "?", ">", "aClass", ",", "Global", "global", ")", "{", "checksGlobalAbsence", "(", "aClass", ")", ";", "findXmlClass", "(", "aClass", ")", ".", "global", "=", "Converter", ".", "toXmlGlobal", "(", "global", ...
This method adds the global to an existing Class. @param aClass class to edit @param global global to add @return this instance of XML
[ "This", "method", "adds", "the", "global", "to", "an", "existing", "Class", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L307-L311
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.deleteGlobal
public XML deleteGlobal(Class<?> aClass){ checksGlobalExistence(aClass); XmlClass xmlClass = findXmlClass(aClass); if(isEmpty(xmlClass.attributes)) deleteClass(aClass); else xmlClass.global = null; return this; }
java
public XML deleteGlobal(Class<?> aClass){ checksGlobalExistence(aClass); XmlClass xmlClass = findXmlClass(aClass); if(isEmpty(xmlClass.attributes)) deleteClass(aClass); else xmlClass.global = null; return this; }
[ "public", "XML", "deleteGlobal", "(", "Class", "<", "?", ">", "aClass", ")", "{", "checksGlobalExistence", "(", "aClass", ")", ";", "XmlClass", "xmlClass", "=", "findXmlClass", "(", "aClass", ")", ";", "if", "(", "isEmpty", "(", "xmlClass", ".", "attribute...
This method deletes the global to an existing Class. @param aClass class to delete @return this instance of XML
[ "This", "method", "deletes", "the", "global", "to", "an", "existing", "Class", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L318-L325
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.addAttributes
public XML addAttributes(Class<?> aClass,Attribute[] attributes){ checksAttributesExistence(aClass,attributes); for (Attribute attribute : attributes) { if(attributeExists(aClass,attribute)) Error.xmlAttributeExistent(this.xmlPath,attribute, aClass); findXmlClass(aClass).attributes.add(Converter.toXml...
java
public XML addAttributes(Class<?> aClass,Attribute[] attributes){ checksAttributesExistence(aClass,attributes); for (Attribute attribute : attributes) { if(attributeExists(aClass,attribute)) Error.xmlAttributeExistent(this.xmlPath,attribute, aClass); findXmlClass(aClass).attributes.add(Converter.toXml...
[ "public", "XML", "addAttributes", "(", "Class", "<", "?", ">", "aClass", ",", "Attribute", "[", "]", "attributes", ")", "{", "checksAttributesExistence", "(", "aClass", ",", "attributes", ")", ";", "for", "(", "Attribute", "attribute", ":", "attributes", ")"...
This method adds the attributes to an existing Class. @param aClass class to which add attributes @param attributes attributes to add @return this instance of XML
[ "This", "method", "adds", "the", "attributes", "to", "an", "existing", "Class", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L333-L341
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.deleteAttributes
public XML deleteAttributes(Class<?> aClass,String[] attributes){ checksAttributesExistence(aClass,attributes); if(isEmpty(findXmlClass(aClass).attributes) || findXmlClass(aClass).attributes.size()<=1) Error.xmlWrongMethod(aClass); for (String attributeName : attributes) { XmlAttribute attribut...
java
public XML deleteAttributes(Class<?> aClass,String[] attributes){ checksAttributesExistence(aClass,attributes); if(isEmpty(findXmlClass(aClass).attributes) || findXmlClass(aClass).attributes.size()<=1) Error.xmlWrongMethod(aClass); for (String attributeName : attributes) { XmlAttribute attribut...
[ "public", "XML", "deleteAttributes", "(", "Class", "<", "?", ">", "aClass", ",", "String", "[", "]", "attributes", ")", "{", "checksAttributesExistence", "(", "aClass", ",", "attributes", ")", ";", "if", "(", "isEmpty", "(", "findXmlClass", "(", "aClass", ...
This method deletes the attributes to an existing Class. @param aClass class to which delete the attributes @param attributes attributes to delete @return this instance of XML
[ "This", "method", "deletes", "the", "attributes", "to", "an", "existing", "Class", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L349-L366
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.addClass
private XML addClass(Class<?> aClass){ xmlJmapper.classes.add(Converter.toXmlClass(aClass)); return this; }
java
private XML addClass(Class<?> aClass){ xmlJmapper.classes.add(Converter.toXmlClass(aClass)); return this; }
[ "private", "XML", "addClass", "(", "Class", "<", "?", ">", "aClass", ")", "{", "xmlJmapper", ".", "classes", ".", "add", "(", "Converter", ".", "toXmlClass", "(", "aClass", ")", ")", ";", "return", "this", ";", "}" ]
Adds an annotated Class to xmlJmapper structure. @param aClass Class to convert to XmlClass @return this instance of XML
[ "Adds", "an", "annotated", "Class", "to", "xmlJmapper", "structure", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L372-L375
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.checksClassAbsence
private XML checksClassAbsence(Class<?> aClass){ if(classExists(aClass))Error.xmlClassExistent(this.xmlPath,aClass); return this; }
java
private XML checksClassAbsence(Class<?> aClass){ if(classExists(aClass))Error.xmlClassExistent(this.xmlPath,aClass); return this; }
[ "private", "XML", "checksClassAbsence", "(", "Class", "<", "?", ">", "aClass", ")", "{", "if", "(", "classExists", "(", "aClass", ")", ")", "Error", ".", "xmlClassExistent", "(", "this", ".", "xmlPath", ",", "aClass", ")", ";", "return", "this", ";", "...
Throws an exception if the class exist. @param aClass a Class to check @return this instance of XML
[ "Throws", "an", "exception", "if", "the", "class", "exist", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L433-L436
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.classExists
private boolean classExists(Class<?> aClass) { if(xmlJmapper.classes == null)return false; return findXmlClass(aClass) !=null?true:false; }
java
private boolean classExists(Class<?> aClass) { if(xmlJmapper.classes == null)return false; return findXmlClass(aClass) !=null?true:false; }
[ "private", "boolean", "classExists", "(", "Class", "<", "?", ">", "aClass", ")", "{", "if", "(", "xmlJmapper", ".", "classes", "==", "null", ")", "return", "false", ";", "return", "findXmlClass", "(", "aClass", ")", "!=", "null", "?", "true", ":", "fal...
verifies that this class exist in Xml Configuration File. @param aClass Class to verify @return this instance
[ "verifies", "that", "this", "class", "exist", "in", "Xml", "Configuration", "File", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L443-L446
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.attributeExists
private boolean attributeExists(Class<?> aClass,Attribute attribute){ if(!classExists(aClass))return false; for (XmlAttribute xmlAttribute : findXmlClass(aClass).attributes) if(xmlAttribute.name.equals(attribute.getName()))return true; return false; }
java
private boolean attributeExists(Class<?> aClass,Attribute attribute){ if(!classExists(aClass))return false; for (XmlAttribute xmlAttribute : findXmlClass(aClass).attributes) if(xmlAttribute.name.equals(attribute.getName()))return true; return false; }
[ "private", "boolean", "attributeExists", "(", "Class", "<", "?", ">", "aClass", ",", "Attribute", "attribute", ")", "{", "if", "(", "!", "classExists", "(", "aClass", ")", ")", "return", "false", ";", "for", "(", "XmlAttribute", "xmlAttribute", ":", "findX...
This method returns true if the attribute exist in the Class given in input, returns false otherwise. @param aClass Class of the Attribute @param attribute Attribute to check @return true if attribute exist, false otherwise
[ "This", "method", "returns", "true", "if", "the", "attribute", "exist", "in", "the", "Class", "given", "in", "input", "returns", "false", "otherwise", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L454-L460
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.findXmlClass
private XmlClass findXmlClass(Class<?> aClass){ for (XmlClass xmlClass : xmlJmapper.classes) if(xmlClass.name.equals(aClass.getName())) return xmlClass; return null; }
java
private XmlClass findXmlClass(Class<?> aClass){ for (XmlClass xmlClass : xmlJmapper.classes) if(xmlClass.name.equals(aClass.getName())) return xmlClass; return null; }
[ "private", "XmlClass", "findXmlClass", "(", "Class", "<", "?", ">", "aClass", ")", "{", "for", "(", "XmlClass", "xmlClass", ":", "xmlJmapper", ".", "classes", ")", "if", "(", "xmlClass", ".", "name", ".", "equals", "(", "aClass", ".", "getName", "(", "...
Finds the Class, given in input, in the xml mapping file and returns a XmlClass instance if exist, null otherwise. @param aClass Class to finds @return a XmlClass if aClass exist in xml mapping file, null otherwise
[ "Finds", "the", "Class", "given", "in", "input", "in", "the", "xml", "mapping", "file", "and", "returns", "a", "XmlClass", "instance", "if", "exist", "null", "otherwise", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L467-L471
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.isMapped
public boolean isMapped(Class<?> classToCheck){ return !isNull(loadGlobals().get(classToCheck.getName())) || !isEmpty(loadAttributes().get(classToCheck.getName())); }
java
public boolean isMapped(Class<?> classToCheck){ return !isNull(loadGlobals().get(classToCheck.getName())) || !isEmpty(loadAttributes().get(classToCheck.getName())); }
[ "public", "boolean", "isMapped", "(", "Class", "<", "?", ">", "classToCheck", ")", "{", "return", "!", "isNull", "(", "loadGlobals", "(", ")", ".", "get", "(", "classToCheck", ".", "getName", "(", ")", ")", ")", "||", "!", "isEmpty", "(", "loadAttribut...
Returns true if the class is configured in xml, false otherwise. @param classToCheck class to check @return true if the class is configured in xml, false otherwise
[ "Returns", "true", "if", "the", "class", "is", "configured", "in", "xml", "false", "otherwise", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L491-L494
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.fillMappedField
public XML fillMappedField(Class<?> configuredClass, MappedField configuredField) { Attribute attribute = getGlobalAttribute(configuredField, configuredClass); if(isNull(attribute)) attribute = getAttribute(configuredField, configuredClass); if(!isNull(attribute)){ if(isEmpty(configuredFiel...
java
public XML fillMappedField(Class<?> configuredClass, MappedField configuredField) { Attribute attribute = getGlobalAttribute(configuredField, configuredClass); if(isNull(attribute)) attribute = getAttribute(configuredField, configuredClass); if(!isNull(attribute)){ if(isEmpty(configuredFiel...
[ "public", "XML", "fillMappedField", "(", "Class", "<", "?", ">", "configuredClass", ",", "MappedField", "configuredField", ")", "{", "Attribute", "attribute", "=", "getGlobalAttribute", "(", "configuredField", ",", "configuredClass", ")", ";", "if", "(", "isNull",...
Enrich configuredField with get and set define in xml configuration. @param configuredClass class of field @param configuredField configured field @return this
[ "Enrich", "configuredField", "with", "get", "and", "set", "define", "in", "xml", "configuration", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L557-L571
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java
XML.fillOppositeField
public XML fillOppositeField(Class<?> configuredClass, MappedField configuredField, MappedField targetField) { Attribute attribute = null; Global global = loadGlobals().get(configuredClass.getName()); if(!isNull(global)){ String value = global.getValue(); if(!isEmpty(value) && value.equals(targetF...
java
public XML fillOppositeField(Class<?> configuredClass, MappedField configuredField, MappedField targetField) { Attribute attribute = null; Global global = loadGlobals().get(configuredClass.getName()); if(!isNull(global)){ String value = global.getValue(); if(!isEmpty(value) && value.equals(targetF...
[ "public", "XML", "fillOppositeField", "(", "Class", "<", "?", ">", "configuredClass", ",", "MappedField", "configuredField", ",", "MappedField", "targetField", ")", "{", "Attribute", "attribute", "=", "null", ";", "Global", "global", "=", "loadGlobals", "(", ")"...
Enrich targetField with get and set define in xml configuration. @param configuredClass class of field @param configuredField configured field @param targetField the opposite field to enrich @return this
[ "Enrich", "targetField", "with", "get", "and", "set", "define", "in", "xml", "configuration", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/xml/XML.java#L580-L623
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/operations/NestedMappingHandler.java
NestedMappingHandler.safeNavigationOperatorDefined
public static boolean safeNavigationOperatorDefined(String nestedFieldName){ if(nestedFieldName.contains(SAFE_NAVIGATION_OPERATOR)) if(!nestedFieldName.startsWith(SAFE_NAVIGATION_OPERATOR)) //TODO standardizzare exception throw new MappingException("Safe navigation operator must be the first symbol aft...
java
public static boolean safeNavigationOperatorDefined(String nestedFieldName){ if(nestedFieldName.contains(SAFE_NAVIGATION_OPERATOR)) if(!nestedFieldName.startsWith(SAFE_NAVIGATION_OPERATOR)) //TODO standardizzare exception throw new MappingException("Safe navigation operator must be the first symbol aft...
[ "public", "static", "boolean", "safeNavigationOperatorDefined", "(", "String", "nestedFieldName", ")", "{", "if", "(", "nestedFieldName", ".", "contains", "(", "SAFE_NAVIGATION_OPERATOR", ")", ")", "if", "(", "!", "nestedFieldName", ".", "startsWith", "(", "SAFE_NAV...
It checks the presence of the elvis operator and how it is used. @param nestedFieldName field name to check @return true if is used an elvis operator, false otherwise, for all other cases a MappingException will be thrown
[ "It", "checks", "the", "presence", "of", "the", "elvis", "operator", "and", "how", "it", "is", "used", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/operations/NestedMappingHandler.java#L70-L79
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/operations/NestedMappingHandler.java
NestedMappingHandler.checkGetAccessor
private static MappedField checkGetAccessor(XML xml, Class<?> aClass, Field nestedField){ MappedField field = new MappedField(nestedField); xml.fillMappedField(aClass, field); Annotation.fillMappedField(aClass,field); verifyGetterMethods(aClass,field); return field; }
java
private static MappedField checkGetAccessor(XML xml, Class<?> aClass, Field nestedField){ MappedField field = new MappedField(nestedField); xml.fillMappedField(aClass, field); Annotation.fillMappedField(aClass,field); verifyGetterMethods(aClass,field); return field; }
[ "private", "static", "MappedField", "checkGetAccessor", "(", "XML", "xml", ",", "Class", "<", "?", ">", "aClass", ",", "Field", "nestedField", ")", "{", "MappedField", "field", "=", "new", "MappedField", "(", "nestedField", ")", ";", "xml", ".", "fillMappedF...
Checks only get accessor of this field. @param xml used to check xml configuration @param aClass class where is the field with the nested mapping @param nestedField field with nested mapping
[ "Checks", "only", "get", "accessor", "of", "this", "field", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/operations/NestedMappingHandler.java#L95-L102
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/operations/NestedMappingHandler.java
NestedMappingHandler.checkAccessors
private static MappedField checkAccessors(XML xml, Class<?> aClass, Field nestedField){ MappedField field = checkGetAccessor(xml, aClass, nestedField); verifySetterMethods(aClass,field); return field; }
java
private static MappedField checkAccessors(XML xml, Class<?> aClass, Field nestedField){ MappedField field = checkGetAccessor(xml, aClass, nestedField); verifySetterMethods(aClass,field); return field; }
[ "private", "static", "MappedField", "checkAccessors", "(", "XML", "xml", ",", "Class", "<", "?", ">", "aClass", ",", "Field", "nestedField", ")", "{", "MappedField", "field", "=", "checkGetAccessor", "(", "xml", ",", "aClass", ",", "nestedField", ")", ";", ...
Checks get and set accessors of this field. @param xml used to check xml configuration @param aClass class where is the field with the nested mapping @param nestedField field with nested mapping @return mapped field
[ "Checks", "get", "and", "set", "accessors", "of", "this", "field", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/operations/NestedMappingHandler.java#L111-L116
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/operations/NestedMappingHandler.java
NestedMappingHandler.loadNestedMappingInformation
public static NestedMappingInfo loadNestedMappingInformation(XML xml, Class<?> targetClass,String nestedMappingPath, Class<?> sourceClass, Class<?> destinationClass, Field configuredField){ boolean isSourceClass = targetClass == sourceClass; NestedMappingInfo info = new NestedMappingInfo(isSourceClass); ...
java
public static NestedMappingInfo loadNestedMappingInformation(XML xml, Class<?> targetClass,String nestedMappingPath, Class<?> sourceClass, Class<?> destinationClass, Field configuredField){ boolean isSourceClass = targetClass == sourceClass; NestedMappingInfo info = new NestedMappingInfo(isSourceClass); ...
[ "public", "static", "NestedMappingInfo", "loadNestedMappingInformation", "(", "XML", "xml", ",", "Class", "<", "?", ">", "targetClass", ",", "String", "nestedMappingPath", ",", "Class", "<", "?", ">", "sourceClass", ",", "Class", "<", "?", ">", "destinationClass...
This method returns a bean with nested mapping information. @param xml xml configuration @param targetClass class to check @param nestedMappingPath path that define nested mapping @param sourceClass sourceClass used to indentify nested mapping @param destinationClass destinationClass used to indentify nested mapping @p...
[ "This", "method", "returns", "a", "bean", "with", "nested", "mapping", "information", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/operations/NestedMappingHandler.java#L128-L183
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/operations/OperationFactory.java
OperationFactory.getOperation
public static AGeneralOperation getOperation(OperationType operationType){ switch(operationType){ case BASIC_INSTRUCTION: return new BasicOperation(); case BASIC_CONVERSION: return new BasicConversion(); case OBJECT: return new ObjectOperation(); case ARRAY: r...
java
public static AGeneralOperation getOperation(OperationType operationType){ switch(operationType){ case BASIC_INSTRUCTION: return new BasicOperation(); case BASIC_CONVERSION: return new BasicConversion(); case OBJECT: return new ObjectOperation(); case ARRAY: r...
[ "public", "static", "AGeneralOperation", "getOperation", "(", "OperationType", "operationType", ")", "{", "switch", "(", "operationType", ")", "{", "case", "BASIC_INSTRUCTION", ":", "return", "new", "BasicOperation", "(", ")", ";", "case", "BASIC_CONVERSION", ":", ...
Operation factory. @param operationType operation type @return the operation instance relative to this operationType
[ "Operation", "factory", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/operations/OperationFactory.java#L55-L83
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/ResourceLoader.java
ResourceLoader.loadResource
public static InputStream loadResource(String resource) throws MalformedURLException, IOException{ String content = resource.trim(); // if resource is a content and not a path if(!isPath(content)) return new ByteArrayInputStream(content.getBytes("UTF-8")); URL url = Thread.currentThread()....
java
public static InputStream loadResource(String resource) throws MalformedURLException, IOException{ String content = resource.trim(); // if resource is a content and not a path if(!isPath(content)) return new ByteArrayInputStream(content.getBytes("UTF-8")); URL url = Thread.currentThread()....
[ "public", "static", "InputStream", "loadResource", "(", "String", "resource", ")", "throws", "MalformedURLException", ",", "IOException", "{", "String", "content", "=", "resource", ".", "trim", "(", ")", ";", "// if resource is a content and not a path\r", "if", "(", ...
Returns an instance of inputStream if resource exists, null otherwise. @param resource resource to load @return an inputStream of resource if exists, null otherwise @throws MalformedURLException if url is malformed @throws IOException if is impossible to open the stream
[ "Returns", "an", "instance", "of", "inputStream", "if", "resource", "exists", "null", "otherwise", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/ResourceLoader.java#L41-L70
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionAnalyzer.java
ConversionAnalyzer.fieldsToCheck
public boolean fieldsToCheck(Field destination, Field source){ destinationName = destination.getName(); sourceName = source.getName(); if(!xml.conversionsLoad().isEmpty()){ configurationType = XML; if(config == DESTINATION){ if(existsXmlConversion(destinationClass)) { membership = Membership.DESTI...
java
public boolean fieldsToCheck(Field destination, Field source){ destinationName = destination.getName(); sourceName = source.getName(); if(!xml.conversionsLoad().isEmpty()){ configurationType = XML; if(config == DESTINATION){ if(existsXmlConversion(destinationClass)) { membership = Membership.DESTI...
[ "public", "boolean", "fieldsToCheck", "(", "Field", "destination", ",", "Field", "source", ")", "{", "destinationName", "=", "destination", ".", "getName", "(", ")", ";", "sourceName", "=", "source", ".", "getName", "(", ")", ";", "if", "(", "!", "xml", ...
Checks for the existence of a conversion method. @param destination destination field @param source source field @return true if the conversion method exists, false otherwise
[ "Checks", "for", "the", "existence", "of", "a", "conversion", "method", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionAnalyzer.java#L78-L98
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionAnalyzer.java
ConversionAnalyzer.exists
private boolean exists(List<ConversionMethod> conversions){ if(conversions.isEmpty()) return false; return (method = verifyConversionExistence(conversions))!= null; }
java
private boolean exists(List<ConversionMethod> conversions){ if(conversions.isEmpty()) return false; return (method = verifyConversionExistence(conversions))!= null; }
[ "private", "boolean", "exists", "(", "List", "<", "ConversionMethod", ">", "conversions", ")", "{", "if", "(", "conversions", ".", "isEmpty", "(", ")", ")", "return", "false", ";", "return", "(", "method", "=", "verifyConversionExistence", "(", "conversions", ...
Verifies the conversion method existence, returns true if exists, false otherwise. @param conversions conversion methods @return true if conversion method exists, false otherwise
[ "Verifies", "the", "conversion", "method", "existence", "returns", "true", "if", "exists", "false", "otherwise", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionAnalyzer.java#L132-L135
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionAnalyzer.java
ConversionAnalyzer.verifyConversionExistence
private ConversionMethod verifyConversionExistence(List<ConversionMethod> conversions){ for (ConversionMethod method : conversions) if(isPresentIn(method.getFrom(),sourceName) && isPresentIn(method.getTo() ,destinationName)) return method; return null; }
java
private ConversionMethod verifyConversionExistence(List<ConversionMethod> conversions){ for (ConversionMethod method : conversions) if(isPresentIn(method.getFrom(),sourceName) && isPresentIn(method.getTo() ,destinationName)) return method; return null; }
[ "private", "ConversionMethod", "verifyConversionExistence", "(", "List", "<", "ConversionMethod", ">", "conversions", ")", "{", "for", "(", "ConversionMethod", "method", ":", "conversions", ")", "if", "(", "isPresentIn", "(", "method", ".", "getFrom", "(", ")", ...
This method finds the conversion method between those loaded. @param conversions conversion methods list @return the conversion method if found, null otherwise
[ "This", "method", "finds", "the", "conversion", "method", "between", "those", "loaded", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionAnalyzer.java#L142-L149
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionAnalyzer.java
ConversionAnalyzer.isPresentIn
private boolean isPresentIn(String[] values, String field){ for (String value : values) if(value.equalsIgnoreCase(JMapConversion.ALL) || value.equals(field)) return true; return false; }
java
private boolean isPresentIn(String[] values, String field){ for (String value : values) if(value.equalsIgnoreCase(JMapConversion.ALL) || value.equals(field)) return true; return false; }
[ "private", "boolean", "isPresentIn", "(", "String", "[", "]", "values", ",", "String", "field", ")", "{", "for", "(", "String", "value", ":", "values", ")", "if", "(", "value", ".", "equalsIgnoreCase", "(", "JMapConversion", ".", "ALL", ")", "||", "value...
Returns true if the field name is contained in the values array, false otherwise. @param values array of values @param field field name to check @return true if the field name is contained in the values array, false otherwise
[ "Returns", "true", "if", "the", "field", "name", "is", "contained", "in", "the", "values", "array", "false", "otherwise", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionAnalyzer.java#L157-L163
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.nestedBeanNull
public static void nestedBeanNull(String currentField, String destinationClass, String destinationField, String sourceClass, String sourceField, boolean safeNavigationOperator){ throw new NestedBeanNullException(MSG.INSTANCE.message(nestedBeanNullException,currentField,destinationClass,destinationField,sourceClass,s...
java
public static void nestedBeanNull(String currentField, String destinationClass, String destinationField, String sourceClass, String sourceField, boolean safeNavigationOperator){ throw new NestedBeanNullException(MSG.INSTANCE.message(nestedBeanNullException,currentField,destinationClass,destinationField,sourceClass,s...
[ "public", "static", "void", "nestedBeanNull", "(", "String", "currentField", ",", "String", "destinationClass", ",", "String", "destinationField", ",", "String", "sourceClass", ",", "String", "sourceField", ",", "boolean", "safeNavigationOperator", ")", "{", "throw", ...
Thrown when the source field is null in a mapping of nested type. @param currentField current field @param destinationClass destination class @param destinationField destination field @param sourceClass source class @param sourceField source field
[ "Thrown", "when", "the", "source", "field", "is", "null", "in", "a", "mapping", "of", "nested", "type", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L126-L128
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.bodyContainsIllegalCode
public static void bodyContainsIllegalCode(Method method, Exception additionalInformation){ Class<?> clazz = method.getClazz(); if(isNull(clazz)) clazz = JMapper.class; String originalName = method.getOriginalName(); if(isNull(originalName)) originalName = method.getName(); String message = clazz...
java
public static void bodyContainsIllegalCode(Method method, Exception additionalInformation){ Class<?> clazz = method.getClazz(); if(isNull(clazz)) clazz = JMapper.class; String originalName = method.getOriginalName(); if(isNull(originalName)) originalName = method.getName(); String message = clazz...
[ "public", "static", "void", "bodyContainsIllegalCode", "(", "Method", "method", ",", "Exception", "additionalInformation", ")", "{", "Class", "<", "?", ">", "clazz", "=", "method", ".", "getClazz", "(", ")", ";", "if", "(", "isNull", "(", "clazz", ")", ")"...
Thrown when the code contained in the body method is illegal. @param method method to adjust @param additionalInformation additional information relative to the byteCode library exception
[ "Thrown", "when", "the", "code", "contained", "in", "the", "body", "method", "is", "illegal", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L176-L187
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.incorrectMethodDefinition
public static void incorrectMethodDefinition(String methodName, String className){ throw new DynamicConversionMethodException(MSG.INSTANCE.message(dynamicConversionMethodException,methodName,className)); }
java
public static void incorrectMethodDefinition(String methodName, String className){ throw new DynamicConversionMethodException(MSG.INSTANCE.message(dynamicConversionMethodException,methodName,className)); }
[ "public", "static", "void", "incorrectMethodDefinition", "(", "String", "methodName", ",", "String", "className", ")", "{", "throw", "new", "DynamicConversionMethodException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "dynamicConversionMethodException", ",", "...
Thrown when the method don't respects the convetions beloging to the dynamic conversion implementation. @param methodName method name @param className class name
[ "Thrown", "when", "the", "method", "don", "t", "respects", "the", "convetions", "beloging", "to", "the", "dynamic", "conversion", "implementation", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L222-L224
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.incorrectBodyDefinition
public static void incorrectBodyDefinition(String methodName,String className){ throw new DynamicConversionBodyException(MSG.INSTANCE.message(dynamicConversionBodyException,methodName,className)); }
java
public static void incorrectBodyDefinition(String methodName,String className){ throw new DynamicConversionBodyException(MSG.INSTANCE.message(dynamicConversionBodyException,methodName,className)); }
[ "public", "static", "void", "incorrectBodyDefinition", "(", "String", "methodName", ",", "String", "className", ")", "{", "throw", "new", "DynamicConversionBodyException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "dynamicConversionBodyException", ",", "method...
Thrown when the body method don't respects the convetions beloging to the dynamic conversion implementation. @param methodName method name @param className class name
[ "Thrown", "when", "the", "body", "method", "don", "t", "respects", "the", "convetions", "beloging", "to", "the", "dynamic", "conversion", "implementation", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L230-L232
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.attributeInexistent
public static void attributeInexistent(String attributeName, Class<?> aClass){ throw new IllegalArgumentException(MSG.INSTANCE.message(malformedBeanException2,attributeName,aClass.getSimpleName())); }
java
public static void attributeInexistent(String attributeName, Class<?> aClass){ throw new IllegalArgumentException(MSG.INSTANCE.message(malformedBeanException2,attributeName,aClass.getSimpleName())); }
[ "public", "static", "void", "attributeInexistent", "(", "String", "attributeName", ",", "Class", "<", "?", ">", "aClass", ")", "{", "throw", "new", "IllegalArgumentException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "malformedBeanException2", ",", "att...
Thrown if attributes isn't present in the xml file. @param attributeName attribute name @param aClass class analyzed
[ "Thrown", "if", "attributes", "isn", "t", "present", "in", "the", "xml", "file", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L278-L280
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.xmlWrongMethod
public static void xmlWrongMethod(Class<?> aClass){ throw new WrongMethodException (MSG.INSTANCE.message(wrongMethodException1,aClass.getSimpleName())); }
java
public static void xmlWrongMethod(Class<?> aClass){ throw new WrongMethodException (MSG.INSTANCE.message(wrongMethodException1,aClass.getSimpleName())); }
[ "public", "static", "void", "xmlWrongMethod", "(", "Class", "<", "?", ">", "aClass", ")", "{", "throw", "new", "WrongMethodException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "wrongMethodException1", ",", "aClass", ".", "getSimpleName", "(", ")", "...
Thrown when the class has only one attribute. @param aClass class analyzed
[ "Thrown", "when", "the", "class", "has", "only", "one", "attribute", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L285-L287
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.xmlClassInexistent
public static void xmlClassInexistent(String path, Class<?> aClass){ throw new XmlMappingClassDoesNotExistException (MSG.INSTANCE.message(xmlMappingClassDoesNotExistException1,path,aClass.getSimpleName())); }
java
public static void xmlClassInexistent(String path, Class<?> aClass){ throw new XmlMappingClassDoesNotExistException (MSG.INSTANCE.message(xmlMappingClassDoesNotExistException1,path,aClass.getSimpleName())); }
[ "public", "static", "void", "xmlClassInexistent", "(", "String", "path", ",", "Class", "<", "?", ">", "aClass", ")", "{", "throw", "new", "XmlMappingClassDoesNotExistException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "xmlMappingClassDoesNotExistException1...
Thrown if class isn't present in xml file. @param path xml path @param aClass Class analyzed
[ "Thrown", "if", "class", "isn", "t", "present", "in", "xml", "file", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L311-L313
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.xmlClassExistent
public static void xmlClassExistent(String path, Class<?> aClass){ throw new XmlMappingClassExistException (MSG.INSTANCE.message(xmlMappingClassExistException1,aClass.getSimpleName(),path)); }
java
public static void xmlClassExistent(String path, Class<?> aClass){ throw new XmlMappingClassExistException (MSG.INSTANCE.message(xmlMappingClassExistException1,aClass.getSimpleName(),path)); }
[ "public", "static", "void", "xmlClassExistent", "(", "String", "path", ",", "Class", "<", "?", ">", "aClass", ")", "{", "throw", "new", "XmlMappingClassExistException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "xmlMappingClassExistException1", ",", "aCl...
Thrown if class is present in xml file. @param path xml path @param aClass Class analyzed
[ "Thrown", "if", "class", "is", "present", "in", "xml", "file", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L319-L321
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.xmlConversionNameUndefined
public static void xmlConversionNameUndefined(String xmlPath, String className) { throw new XmlConversionNameException(MSG.INSTANCE.message(xmlConversionNameException,xmlPath,className)); }
java
public static void xmlConversionNameUndefined(String xmlPath, String className) { throw new XmlConversionNameException(MSG.INSTANCE.message(xmlConversionNameException,xmlPath,className)); }
[ "public", "static", "void", "xmlConversionNameUndefined", "(", "String", "xmlPath", ",", "String", "className", ")", "{", "throw", "new", "XmlConversionNameException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "xmlConversionNameException", ",", "xmlPath", ",...
Thrown when the conversion name is undefined. @param xmlPath xml path @param className class name
[ "Thrown", "when", "the", "conversion", "name", "is", "undefined", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L328-L330
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.xmlConversionTypeIncorrect
public static void xmlConversionTypeIncorrect(String conversionName,String xmlPath,String className,String type){ throw new XmlConversionTypeException(MSG.INSTANCE.message(xmlConversionTypeException,conversionName,xmlPath,className,type)); }
java
public static void xmlConversionTypeIncorrect(String conversionName,String xmlPath,String className,String type){ throw new XmlConversionTypeException(MSG.INSTANCE.message(xmlConversionTypeException,conversionName,xmlPath,className,type)); }
[ "public", "static", "void", "xmlConversionTypeIncorrect", "(", "String", "conversionName", ",", "String", "xmlPath", ",", "String", "className", ",", "String", "type", ")", "{", "throw", "new", "XmlConversionTypeException", "(", "MSG", ".", "INSTANCE", ".", "messa...
Thrown if conversion type is wrong. @param conversionName conversion name @param xmlPath xml path @param className class name @param type type
[ "Thrown", "if", "conversion", "type", "is", "wrong", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L338-L340
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.improperUseOfTheParameter
public static void improperUseOfTheParameter(String conversionName,String xmlPath,String className){ throw new XmlConversionParameterException(MSG.INSTANCE.message(xmlConversionParameterException,conversionName,xmlPath,className)); }
java
public static void improperUseOfTheParameter(String conversionName,String xmlPath,String className){ throw new XmlConversionParameterException(MSG.INSTANCE.message(xmlConversionParameterException,conversionName,xmlPath,className)); }
[ "public", "static", "void", "improperUseOfTheParameter", "(", "String", "conversionName", ",", "String", "xmlPath", ",", "String", "className", ")", "{", "throw", "new", "XmlConversionParameterException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "xmlConvers...
Thrown if the use of the parameters is incorrect. @param conversionName conversion name @param xmlPath xml path @param className class name
[ "Thrown", "if", "the", "use", "of", "the", "parameters", "is", "incorrect", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L347-L349
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.undefinedMapping
public static void undefinedMapping(Field destinationField, Class<?> destinationClass, Field sourceField, Class<?> sourceClass){ throw new UndefinedMappingException(MSG.INSTANCE.message(undefinedMappingException,destinationField.getName(),destinationClass.getSimpleName(),sourceField.getName(),sourceClass.getSimpleNa...
java
public static void undefinedMapping(Field destinationField, Class<?> destinationClass, Field sourceField, Class<?> sourceClass){ throw new UndefinedMappingException(MSG.INSTANCE.message(undefinedMappingException,destinationField.getName(),destinationClass.getSimpleName(),sourceField.getName(),sourceClass.getSimpleNa...
[ "public", "static", "void", "undefinedMapping", "(", "Field", "destinationField", ",", "Class", "<", "?", ">", "destinationClass", ",", "Field", "sourceField", ",", "Class", "<", "?", ">", "sourceClass", ")", "{", "throw", "new", "UndefinedMappingException", "("...
Thrown when the instruction isn't defined. @param destinationField destination field @param destinationClass destination class @param sourceField source field @param sourceClass source class
[ "Thrown", "when", "the", "instruction", "isn", "t", "defined", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L396-L398
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.badConversion
public static void badConversion(Field destinationField, Class<?> destinationClass, Field sourceField, Class<?> sourceClass,String plus){ throw new UndefinedMappingException(MSG.INSTANCE.message(undefinedMappingException,destinationField.getName(),destinationClass.getSimpleName(),sourceField.getName(),sourceClass.ge...
java
public static void badConversion(Field destinationField, Class<?> destinationClass, Field sourceField, Class<?> sourceClass,String plus){ throw new UndefinedMappingException(MSG.INSTANCE.message(undefinedMappingException,destinationField.getName(),destinationClass.getSimpleName(),sourceField.getName(),sourceClass.ge...
[ "public", "static", "void", "badConversion", "(", "Field", "destinationField", ",", "Class", "<", "?", ">", "destinationClass", ",", "Field", "sourceField", ",", "Class", "<", "?", ">", "sourceClass", ",", "String", "plus", ")", "{", "throw", "new", "Undefin...
Thrown when conversions are badly written. @param destinationField destination field @param destinationClass destination class @param sourceField source field @param sourceClass source class @param plus added messages of internal exceptions thrown
[ "Thrown", "when", "conversions", "are", "badly", "written", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L408-L410
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.mapping
public static void mapping(String mappedFieldName,Class<?> mappedClass, Class<?> targetClass){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorException2,mappedFieldName,mappedClass.getSimpleName(),targetClass.getSimpleName())); }
java
public static void mapping(String mappedFieldName,Class<?> mappedClass, Class<?> targetClass){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorException2,mappedFieldName,mappedClass.getSimpleName(),targetClass.getSimpleName())); }
[ "public", "static", "void", "mapping", "(", "String", "mappedFieldName", ",", "Class", "<", "?", ">", "mappedClass", ",", "Class", "<", "?", ">", "targetClass", ")", "{", "throw", "new", "MappingErrorException", "(", "MSG", ".", "INSTANCE", ".", "message", ...
Thrown when there is an error in the configuration. @param mappedFieldName name of the mapped field @param mappedClass mapped field's class @param targetClass target field's class
[ "Thrown", "when", "there", "is", "an", "error", "in", "the", "configuration", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L455-L457
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.mapping
public static void mapping(String mappedFieldName, String mappedClassName){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorException2length,mappedFieldName,mappedClassName)); }
java
public static void mapping(String mappedFieldName, String mappedClassName){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorException2length,mappedFieldName,mappedClassName)); }
[ "public", "static", "void", "mapping", "(", "String", "mappedFieldName", ",", "String", "mappedClassName", ")", "{", "throw", "new", "MappingErrorException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "mappingErrorException2length", ",", "mappedFieldName", ",...
Thrown when the length of classes and attribute parameter isn't the same. @param mappedFieldName name of the mapped field @param mappedClassName name of the mapped field's class
[ "Thrown", "when", "the", "length", "of", "classes", "and", "attribute", "parameter", "isn", "t", "the", "same", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L463-L465
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.mapping
public static void mapping(String mappedFieldName, String mappedClassName, String targetClassName){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorException3,mappedFieldName,mappedClassName,targetClassName)); }
java
public static void mapping(String mappedFieldName, String mappedClassName, String targetClassName){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorException3,mappedFieldName,mappedClassName,targetClassName)); }
[ "public", "static", "void", "mapping", "(", "String", "mappedFieldName", ",", "String", "mappedClassName", ",", "String", "targetClassName", ")", "{", "throw", "new", "MappingErrorException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "mappingErrorException3"...
Thrown when the target class doesn't exist in classes parameter. @param mappedFieldName name of the mapped field @param mappedClassName name of the mapped field's class @param targetClassName name of the target field's class
[ "Thrown", "when", "the", "target", "class", "doesn", "t", "exist", "in", "classes", "parameter", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L472-L474
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.attributeAbsent
public static void attributeAbsent(Class<?> aClass,Attribute aField){ throw new XmlMappingAttributeDoesNotExistException(MSG.INSTANCE.message(xmlMappingAttributeDoesNotExistException2,aField.getName(),aClass.getSimpleName(),"API")); }
java
public static void attributeAbsent(Class<?> aClass,Attribute aField){ throw new XmlMappingAttributeDoesNotExistException(MSG.INSTANCE.message(xmlMappingAttributeDoesNotExistException2,aField.getName(),aClass.getSimpleName(),"API")); }
[ "public", "static", "void", "attributeAbsent", "(", "Class", "<", "?", ">", "aClass", ",", "Attribute", "aField", ")", "{", "throw", "new", "XmlMappingAttributeDoesNotExistException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "xmlMappingAttributeDoesNotExist...
Thrown if the attribute doesn't exist in aClass. @param aClass class that not contains aField @param aField the missing field
[ "Thrown", "if", "the", "attribute", "doesn", "t", "exist", "in", "aClass", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L499-L501
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.configNotPresent
public static void configNotPresent(Class<?> destination,Class<?> source,XML xml){ throw new MappingNotFoundException(MSG.INSTANCE.message(Constants.mappingNotFoundException2path,destination.getSimpleName(), source.getSimpleName(),xml.getXmlPath())); }
java
public static void configNotPresent(Class<?> destination,Class<?> source,XML xml){ throw new MappingNotFoundException(MSG.INSTANCE.message(Constants.mappingNotFoundException2path,destination.getSimpleName(), source.getSimpleName(),xml.getXmlPath())); }
[ "public", "static", "void", "configNotPresent", "(", "Class", "<", "?", ">", "destination", ",", "Class", "<", "?", ">", "source", ",", "XML", "xml", ")", "{", "throw", "new", "MappingNotFoundException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", ...
Thrown when the xml configuration doesn't contains the classes configuration. @param destination destination class name @param source source class name @param xml xml path
[ "Thrown", "when", "the", "xml", "configuration", "doesn", "t", "contains", "the", "classes", "configuration", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L514-L516
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.configNotPresent
public static void configNotPresent(Class<?> clazz,XML xml){ throw new MappingNotFoundException(MSG.INSTANCE.message(Constants.mappingNotFoundException1path, clazz.getSimpleName(),xml.getXmlPath())); }
java
public static void configNotPresent(Class<?> clazz,XML xml){ throw new MappingNotFoundException(MSG.INSTANCE.message(Constants.mappingNotFoundException1path, clazz.getSimpleName(),xml.getXmlPath())); }
[ "public", "static", "void", "configNotPresent", "(", "Class", "<", "?", ">", "clazz", ",", "XML", "xml", ")", "{", "throw", "new", "MappingNotFoundException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "Constants", ".", "mappingNotFoundException1path", ...
Thrown when missing the configuration belonging to clazz. @param clazz class without configuration @param xml xml path
[ "Thrown", "when", "missing", "the", "configuration", "belonging", "to", "clazz", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L522-L524
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.classesNotConfigured
public static void classesNotConfigured(Class<?> destination,Class<?> source){ throw new MappingNotFoundException(MSG.INSTANCE.message(Constants.mappingNotFoundException2,destination.getSimpleName(), source.getSimpleName())); }
java
public static void classesNotConfigured(Class<?> destination,Class<?> source){ throw new MappingNotFoundException(MSG.INSTANCE.message(Constants.mappingNotFoundException2,destination.getSimpleName(), source.getSimpleName())); }
[ "public", "static", "void", "classesNotConfigured", "(", "Class", "<", "?", ">", "destination", ",", "Class", "<", "?", ">", "source", ")", "{", "throw", "new", "MappingNotFoundException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "Constants", ".", ...
Thrown when the xml configuration doesn't exist. @param destination destination class name @param source source class name
[ "Thrown", "when", "the", "xml", "configuration", "doesn", "t", "exist", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L530-L532
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.classNotConfigured
public static void classNotConfigured(Class<?> clazz){ throw new MappingNotFoundException(MSG.INSTANCE.message(Constants.mappingNotFoundException1, clazz.getSimpleName())); }
java
public static void classNotConfigured(Class<?> clazz){ throw new MappingNotFoundException(MSG.INSTANCE.message(Constants.mappingNotFoundException1, clazz.getSimpleName())); }
[ "public", "static", "void", "classNotConfigured", "(", "Class", "<", "?", ">", "clazz", ")", "{", "throw", "new", "MappingNotFoundException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "Constants", ".", "mappingNotFoundException1", ",", "clazz", ".", "g...
Thrown when the xml configuration of the clazz doesn't exist. @param clazz class to check
[ "Thrown", "when", "the", "xml", "configuration", "of", "the", "clazz", "doesn", "t", "exist", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L537-L539
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.globalClassesAbsent
public static void globalClassesAbsent(Class<?> aClass){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorRelationalException3, aClass.getSimpleName())); }
java
public static void globalClassesAbsent(Class<?> aClass){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorRelationalException3, aClass.getSimpleName())); }
[ "public", "static", "void", "globalClassesAbsent", "(", "Class", "<", "?", ">", "aClass", ")", "{", "throw", "new", "MappingErrorException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "mappingErrorRelationalException3", ",", "aClass", ".", "getSimpleName", ...
Thrown if the configured class hasn't classes parameter. @param aClass class's field
[ "Thrown", "if", "the", "configured", "class", "hasn", "t", "classes", "parameter", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L550-L552
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.classesAbsent
public static void classesAbsent(String fieldName,Class<?> aClass){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorRelationalException2,fieldName, aClass.getSimpleName())); }
java
public static void classesAbsent(String fieldName,Class<?> aClass){ throw new MappingErrorException(MSG.INSTANCE.message(mappingErrorRelationalException2,fieldName, aClass.getSimpleName())); }
[ "public", "static", "void", "classesAbsent", "(", "String", "fieldName", ",", "Class", "<", "?", ">", "aClass", ")", "{", "throw", "new", "MappingErrorException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "mappingErrorRelationalException2", ",", "fieldNa...
Thrown if the configured field hasn't classes parameter. @param fieldName name of the field @param aClass class's field
[ "Thrown", "if", "the", "configured", "field", "hasn", "t", "classes", "parameter", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L558-L560
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.classNotMapped
public static void classNotMapped(Class<?> aClass){ throw new ClassNotMappedException(MSG.INSTANCE.message(classNotMappedException1,aClass.getSimpleName())); }
java
public static void classNotMapped(Class<?> aClass){ throw new ClassNotMappedException(MSG.INSTANCE.message(classNotMappedException1,aClass.getSimpleName())); }
[ "public", "static", "void", "classNotMapped", "(", "Class", "<", "?", ">", "aClass", ")", "{", "throw", "new", "ClassNotMappedException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "classNotMappedException1", ",", "aClass", ".", "getSimpleName", "(", ")...
Thrown if the class isn't mapped. @param aClass class to analyze
[ "Thrown", "if", "the", "class", "isn", "t", "mapped", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L565-L567
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.classNotMapped
public static void classNotMapped(Object sourceClass, Class<?> configuredClass){ String sourceName = sourceClass instanceof Class?((Class<?>)sourceClass).getSimpleName():sourceClass.getClass().getSimpleName(); throw new ClassNotMappedException(MSG.INSTANCE.message(classNotMappedException2,sourceName, configuredCl...
java
public static void classNotMapped(Object sourceClass, Class<?> configuredClass){ String sourceName = sourceClass instanceof Class?((Class<?>)sourceClass).getSimpleName():sourceClass.getClass().getSimpleName(); throw new ClassNotMappedException(MSG.INSTANCE.message(classNotMappedException2,sourceName, configuredCl...
[ "public", "static", "void", "classNotMapped", "(", "Object", "sourceClass", ",", "Class", "<", "?", ">", "configuredClass", ")", "{", "String", "sourceName", "=", "sourceClass", "instanceof", "Class", "?", "(", "(", "Class", "<", "?", ">", ")", "sourceClass"...
Thrown if the sourceClass isn't mapped in configuredClass. @param sourceClass class absent @param configuredClass class that not contains sourceClass
[ "Thrown", "if", "the", "sourceClass", "isn", "t", "mapped", "in", "configuredClass", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L573-L576
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.illegalCode
public static void illegalCode(Class<?> destination, Class<?> source, String path, Throwable e){ String additionalInformation = e.getMessage().split(",")[1]; throw new IllegalCodeException(MSG.INSTANCE.message(illegalCodePath,destination.getSimpleName(),source.getSimpleName(),path,additionalInformation)); }
java
public static void illegalCode(Class<?> destination, Class<?> source, String path, Throwable e){ String additionalInformation = e.getMessage().split(",")[1]; throw new IllegalCodeException(MSG.INSTANCE.message(illegalCodePath,destination.getSimpleName(),source.getSimpleName(),path,additionalInformation)); }
[ "public", "static", "void", "illegalCode", "(", "Class", "<", "?", ">", "destination", ",", "Class", "<", "?", ">", "source", ",", "String", "path", ",", "Throwable", "e", ")", "{", "String", "additionalInformation", "=", "e", ".", "getMessage", "(", ")"...
Thrown when there is an error in mapper generated class. @param destination destination class @param source source class @param path xml path configuration @param e exception captured
[ "Thrown", "when", "there", "is", "an", "error", "in", "mapper", "generated", "class", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L590-L593
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.absentRelationship
public static void absentRelationship(Class<?> configuredClass, Class<?> targetClass){ throw new AbsentRelationshipException(MSG.INSTANCE.message(noRelationshipException,configuredClass.getSimpleName(),targetClass.getSimpleName())); }
java
public static void absentRelationship(Class<?> configuredClass, Class<?> targetClass){ throw new AbsentRelationshipException(MSG.INSTANCE.message(noRelationshipException,configuredClass.getSimpleName(),targetClass.getSimpleName())); }
[ "public", "static", "void", "absentRelationship", "(", "Class", "<", "?", ">", "configuredClass", ",", "Class", "<", "?", ">", "targetClass", ")", "{", "throw", "new", "AbsentRelationshipException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "noRelation...
Thrown when there isn't correspondence between classes. @param configuredClass configured class @param targetClass target class
[ "Thrown", "when", "there", "isn", "t", "correspondence", "between", "classes", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L609-L611
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java
Error.emptyConstructorAbsent
public static void emptyConstructorAbsent(Class<?> aClass){ throw new MalformedBeanException(MSG.INSTANCE.message(malformedBeanException1,aClass.getSimpleName())); }
java
public static void emptyConstructorAbsent(Class<?> aClass){ throw new MalformedBeanException(MSG.INSTANCE.message(malformedBeanException1,aClass.getSimpleName())); }
[ "public", "static", "void", "emptyConstructorAbsent", "(", "Class", "<", "?", ">", "aClass", ")", "{", "throw", "new", "MalformedBeanException", "(", "MSG", ".", "INSTANCE", ".", "message", "(", "malformedBeanException1", ",", "aClass", ".", "getSimpleName", "("...
Thrown if the class haven't an empty constructor. @param aClass class to analyze
[ "Thrown", "if", "the", "class", "haven", "t", "an", "empty", "constructor", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/Error.java#L632-L634
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/generation/MapperConstructorAccessor.java
MapperConstructorAccessor.searchConfig
protected ChooseConfig searchConfig(ChooseConfig cc, XML xml){ ChooseConfig config = searchXmlConfig(cc, xml); if(isNull(config))config = searchAnnotatedConfig(cc); return config; }
java
protected ChooseConfig searchConfig(ChooseConfig cc, XML xml){ ChooseConfig config = searchXmlConfig(cc, xml); if(isNull(config))config = searchAnnotatedConfig(cc); return config; }
[ "protected", "ChooseConfig", "searchConfig", "(", "ChooseConfig", "cc", ",", "XML", "xml", ")", "{", "ChooseConfig", "config", "=", "searchXmlConfig", "(", "cc", ",", "xml", ")", ";", "if", "(", "isNull", "(", "config", ")", ")", "config", "=", "searchAnno...
This method finds the configuration location, returns null if don't finds it @param cc configuration chosen @param xml xml object @return configuration found
[ "This", "method", "finds", "the", "configuration", "location", "returns", "null", "if", "don", "t", "finds", "it" ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/generation/MapperConstructorAccessor.java#L88-L93
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/generation/MapperConstructorAccessor.java
MapperConstructorAccessor.searchXmlConfig
private ChooseConfig searchXmlConfig(ChooseConfig cc, XML xml){ if(isNull(xml.getXmlPath())) return null; if((isNull(cc)||cc == ChooseConfig.DESTINATION) && xml.isInheritedMapped(destination)) return ChooseConfig.DESTINATION; if((isNull(cc)||cc == ChooseConfig.SOURCE) && xml.isInheritedMa...
java
private ChooseConfig searchXmlConfig(ChooseConfig cc, XML xml){ if(isNull(xml.getXmlPath())) return null; if((isNull(cc)||cc == ChooseConfig.DESTINATION) && xml.isInheritedMapped(destination)) return ChooseConfig.DESTINATION; if((isNull(cc)||cc == ChooseConfig.SOURCE) && xml.isInheritedMa...
[ "private", "ChooseConfig", "searchXmlConfig", "(", "ChooseConfig", "cc", ",", "XML", "xml", ")", "{", "if", "(", "isNull", "(", "xml", ".", "getXmlPath", "(", ")", ")", ")", "return", "null", ";", "if", "(", "(", "isNull", "(", "cc", ")", "||", "cc",...
This method finds the xml configuration, returns null if there are no. @param cc Configuration to check @param xml xml object return ChooseConfig configuration found
[ "This", "method", "finds", "the", "xml", "configuration", "returns", "null", "if", "there", "are", "no", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/generation/MapperConstructorAccessor.java#L101-L112
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/generation/MapperConstructorAccessor.java
MapperConstructorAccessor.searchAnnotatedConfig
private ChooseConfig searchAnnotatedConfig(ChooseConfig cc) { if((isNull(cc)||cc == ChooseConfig.DESTINATION) && Annotation.isInheritedMapped(destination)) return ChooseConfig.DESTINATION; if((isNull(cc)||cc == ChooseConfig.SOURCE) && Annotation.isInheritedMapped(source)) return ChooseConfig.S...
java
private ChooseConfig searchAnnotatedConfig(ChooseConfig cc) { if((isNull(cc)||cc == ChooseConfig.DESTINATION) && Annotation.isInheritedMapped(destination)) return ChooseConfig.DESTINATION; if((isNull(cc)||cc == ChooseConfig.SOURCE) && Annotation.isInheritedMapped(source)) return ChooseConfig.S...
[ "private", "ChooseConfig", "searchAnnotatedConfig", "(", "ChooseConfig", "cc", ")", "{", "if", "(", "(", "isNull", "(", "cc", ")", "||", "cc", "==", "ChooseConfig", ".", "DESTINATION", ")", "&&", "Annotation", ".", "isInheritedMapped", "(", "destination", ")",...
This method finds the annotations, returns null if there are no. @param cc Configuration to check return ChooseConfig configuration found
[ "This", "method", "finds", "the", "annotations", "returns", "null", "if", "there", "are", "no", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/generation/MapperConstructorAccessor.java#L119-L128
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java
Annotation.getFieldAccessors
public static JMapAccessor getFieldAccessors(Class<?> clazz, Field field){ return getFieldAccessors(clazz,field,false, field.getName(),Constants.DEFAULT_FIELD_VALUE); }
java
public static JMapAccessor getFieldAccessors(Class<?> clazz, Field field){ return getFieldAccessors(clazz,field,false, field.getName(),Constants.DEFAULT_FIELD_VALUE); }
[ "public", "static", "JMapAccessor", "getFieldAccessors", "(", "Class", "<", "?", ">", "clazz", ",", "Field", "field", ")", "{", "return", "getFieldAccessors", "(", "clazz", ",", "field", ",", "false", ",", "field", ".", "getName", "(", ")", ",", "Constants...
Returns JMapAccessor relative to this field, null if not present. @param clazz field's class @param field to check @return JMapAccessor if exists, null otherwise
[ "Returns", "JMapAccessor", "relative", "to", "this", "field", "null", "if", "not", "present", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java#L104-L106
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java
Annotation.getAccessor
private static JMapAccessor getAccessor(Class<?> clazz, java.lang.annotation.Annotation[] annotations, String fieldName, boolean isOpposite){ for (java.lang.annotation.Annotation annotation : annotations) { if(annotation.annotationType() == JMapAccessors.class){ JMapAccessors jmapAccessors = (JMapAccessors)...
java
private static JMapAccessor getAccessor(Class<?> clazz, java.lang.annotation.Annotation[] annotations, String fieldName, boolean isOpposite){ for (java.lang.annotation.Annotation annotation : annotations) { if(annotation.annotationType() == JMapAccessors.class){ JMapAccessors jmapAccessors = (JMapAccessors)...
[ "private", "static", "JMapAccessor", "getAccessor", "(", "Class", "<", "?", ">", "clazz", ",", "java", ".", "lang", ".", "annotation", ".", "Annotation", "[", "]", "annotations", ",", "String", "fieldName", ",", "boolean", "isOpposite", ")", "{", "for", "(...
It finds between annotations if exists a JMapAccessor relative to the field with this name. @param annotations annotations to check @param fieldName field name @param isOpposite true if accessor methods to check belong to the opposite field, false otherwise @return JMapAccessor if exists, null otherwise
[ "It", "finds", "between", "annotations", "if", "exists", "a", "JMapAccessor", "relative", "to", "the", "field", "with", "this", "name", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java#L142-L156
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java
Annotation.getConversionMethods
public static List<ConversionMethod> getConversionMethods(Class<?> clazz){ List<ConversionMethod> conversions = new ArrayList<ConversionMethod>(); for(Method method:getAnnotatedMethods(clazz)) try{ conversions.add(Converter.toConversionMethod(method)); }catch (ConversionParameterException e) { ...
java
public static List<ConversionMethod> getConversionMethods(Class<?> clazz){ List<ConversionMethod> conversions = new ArrayList<ConversionMethod>(); for(Method method:getAnnotatedMethods(clazz)) try{ conversions.add(Converter.toConversionMethod(method)); }catch (ConversionParameterException e) { ...
[ "public", "static", "List", "<", "ConversionMethod", ">", "getConversionMethods", "(", "Class", "<", "?", ">", "clazz", ")", "{", "List", "<", "ConversionMethod", ">", "conversions", "=", "new", "ArrayList", "<", "ConversionMethod", ">", "(", ")", ";", "for"...
Returns a list of ConversionMethod that belong to the class given as input. @param clazz class to check @return a list of conversionMethod
[ "Returns", "a", "list", "of", "ConversionMethod", "that", "belong", "to", "the", "class", "given", "as", "input", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java#L187-L202
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java
Annotation.getAnnotatedMethods
private static List<Method> getAnnotatedMethods(Class<?> clazz){ List<Method> methods = new ArrayList<Method>(); for(Method method:getAllMethods(clazz)) if(!isNull(method.getAnnotation(JMapConversion.class))) methods.add(method); return methods; }
java
private static List<Method> getAnnotatedMethods(Class<?> clazz){ List<Method> methods = new ArrayList<Method>(); for(Method method:getAllMethods(clazz)) if(!isNull(method.getAnnotation(JMapConversion.class))) methods.add(method); return methods; }
[ "private", "static", "List", "<", "Method", ">", "getAnnotatedMethods", "(", "Class", "<", "?", ">", "clazz", ")", "{", "List", "<", "Method", ">", "methods", "=", "new", "ArrayList", "<", "Method", ">", "(", ")", ";", "for", "(", "Method", "method", ...
Returns a list with all annotated methods. @param clazz class to check @return a list with all annotated methods
[ "Returns", "a", "list", "with", "all", "annotated", "methods", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java#L209-L217
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java
Annotation.isInheritedMapped
public static boolean isInheritedMapped(Class<?> classToCheck){ for (Class<?> clazz : getAllsuperClasses(classToCheck)) if(!isNull(clazz.getAnnotation(JGlobalMap.class))) return true; for (Field field : getListOfFields(classToCheck)) if(!isNull(field.getAnnotation(JMap.class))) return ...
java
public static boolean isInheritedMapped(Class<?> classToCheck){ for (Class<?> clazz : getAllsuperClasses(classToCheck)) if(!isNull(clazz.getAnnotation(JGlobalMap.class))) return true; for (Field field : getListOfFields(classToCheck)) if(!isNull(field.getAnnotation(JMap.class))) return ...
[ "public", "static", "boolean", "isInheritedMapped", "(", "Class", "<", "?", ">", "classToCheck", ")", "{", "for", "(", "Class", "<", "?", ">", "clazz", ":", "getAllsuperClasses", "(", "classToCheck", ")", ")", "if", "(", "!", "isNull", "(", "clazz", ".",...
Returns true if the class is configured in annotation, false otherwise. @param classToCheck class to check @return true if the class is configured in annotation, false otherwise
[ "Returns", "true", "if", "the", "class", "is", "configured", "in", "annotation", "false", "otherwise", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/annotations/Annotation.java#L224-L235
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/implicit/ConversionAnalyzer.java
ConversionAnalyzer.getConversionType
public static ConversionType getConversionType(final Field destination, final Field source){ return getConversionType(destination.getType(),source.getType()); }
java
public static ConversionType getConversionType(final Field destination, final Field source){ return getConversionType(destination.getType(),source.getType()); }
[ "public", "static", "ConversionType", "getConversionType", "(", "final", "Field", "destination", ",", "final", "Field", "source", ")", "{", "return", "getConversionType", "(", "destination", ".", "getType", "(", ")", ",", "source", ".", "getType", "(", ")", ")...
Analyzes Fields given as input and returns the type of conversion that has to be done. @param destination Field to analyze @param source Field to analyze @return type of Conversion
[ "Analyzes", "Fields", "given", "as", "input", "and", "returns", "the", "type", "of", "conversion", "that", "has", "to", "be", "done", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/implicit/ConversionAnalyzer.java#L39-L41
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/implicit/ConversionAnalyzer.java
ConversionAnalyzer.getConversionType
public static ConversionType getConversionType(final Class<?> destination, final Class<?> source){ if(destination == String.class) return toStringConversion(source); if(destination == Byte.class) return toByteConversion(source); if(destination == byte.class) return tobyteConversion(source); if(dest...
java
public static ConversionType getConversionType(final Class<?> destination, final Class<?> source){ if(destination == String.class) return toStringConversion(source); if(destination == Byte.class) return toByteConversion(source); if(destination == byte.class) return tobyteConversion(source); if(dest...
[ "public", "static", "ConversionType", "getConversionType", "(", "final", "Class", "<", "?", ">", "destination", ",", "final", "Class", "<", "?", ">", "source", ")", "{", "if", "(", "destination", "==", "String", ".", "class", ")", "return", "toStringConversi...
Analyzes classes given as input and returns the type of conversion that has to be done. @param destination class to analyze @param source class to analyze @return type of Conversion
[ "Analyzes", "classes", "given", "as", "input", "and", "returns", "the", "type", "of", "conversion", "that", "has", "to", "be", "done", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/implicit/ConversionAnalyzer.java#L373-L393
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/operations/OperationHandler.java
OperationHandler.defineStructure
private Class<?> defineStructure(Field destination, Field source){ Class<?> destinationClass = destination.getType(); Class<?> sourceClass = source.getType(); Class<?> result = null; // if destination is an interface if(destinationClass.isInterface()) // if source is an interface if(s...
java
private Class<?> defineStructure(Field destination, Field source){ Class<?> destinationClass = destination.getType(); Class<?> sourceClass = source.getType(); Class<?> result = null; // if destination is an interface if(destinationClass.isInterface()) // if source is an interface if(s...
[ "private", "Class", "<", "?", ">", "defineStructure", "(", "Field", "destination", ",", "Field", "source", ")", "{", "Class", "<", "?", ">", "destinationClass", "=", "destination", ".", "getType", "(", ")", ";", "Class", "<", "?", ">", "sourceClass", "="...
This method defines the destination structure for this operation. If destination class is an interface, a relative implementation will be found. @param destination destination field @param source source field
[ "This", "method", "defines", "the", "destination", "structure", "for", "this", "operation", ".", "If", "destination", "class", "is", "an", "interface", "a", "relative", "implementation", "will", "be", "found", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/operations/OperationHandler.java#L241-L272
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/cache/JMapperCache.java
JMapperCache.getMapper
public static <D,S> IJMapper<D, S> getMapper(final Class<D> destination, final Class<S> source){ return getMapper(destination,source, undefinedConfig()); }
java
public static <D,S> IJMapper<D, S> getMapper(final Class<D> destination, final Class<S> source){ return getMapper(destination,source, undefinedConfig()); }
[ "public", "static", "<", "D", ",", "S", ">", "IJMapper", "<", "D", ",", "S", ">", "getMapper", "(", "final", "Class", "<", "D", ">", "destination", ",", "final", "Class", "<", "S", ">", "source", ")", "{", "return", "getMapper", "(", "destination", ...
Returns an instance of JMapper from cache if exists, in alternative a new instance. @param destination the Destination Class @param source the Source Class @param <D> Destination class @param <S> Source Class @return the mapper instance
[ "Returns", "an", "instance", "of", "JMapper", "from", "cache", "if", "exists", "in", "alternative", "a", "new", "instance", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/cache/JMapperCache.java#L58-L60
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/cache/JMapperCache.java
JMapperCache.relationalMapperName
private static String relationalMapperName(Class<?> configuredClass, String resource){ String className = configuredClass.getName().replaceAll("\\.",""); if(isEmpty(resource)) return className; if(!isPath(resource)) return write(className, String.valueOf(resource.hashCode())); String[]dep = r...
java
private static String relationalMapperName(Class<?> configuredClass, String resource){ String className = configuredClass.getName().replaceAll("\\.",""); if(isEmpty(resource)) return className; if(!isPath(resource)) return write(className, String.valueOf(resource.hashCode())); String[]dep = r...
[ "private", "static", "String", "relationalMapperName", "(", "Class", "<", "?", ">", "configuredClass", ",", "String", "resource", ")", "{", "String", "className", "=", "configuredClass", ".", "getName", "(", ")", ".", "replaceAll", "(", "\"\\\\.\"", ",", "\"\"...
Returns a unique name that identify this relationalMapper. @param configuredClass configured class @param resource resource to analyze @return Returns a string that represents the identifier for this relationalMapper instance
[ "Returns", "a", "unique", "name", "that", "identify", "this", "relationalMapper", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/cache/JMapperCache.java#L215-L229
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/api/JMapperAPI.java
JMapperAPI.attribute
public static Attribute attribute(String name, String customGet, String customSet){ return new Attribute(name, customGet, customSet); }
java
public static Attribute attribute(String name, String customGet, String customSet){ return new Attribute(name, customGet, customSet); }
[ "public", "static", "Attribute", "attribute", "(", "String", "name", ",", "String", "customGet", ",", "String", "customSet", ")", "{", "return", "new", "Attribute", "(", "name", ",", "customGet", ",", "customSet", ")", ";", "}" ]
Permits to define an attribute to map. @param name name of this attribute @param customGet custom get method @param customSet custom set method @return an instance of Attribute
[ "Permits", "to", "define", "an", "attribute", "to", "map", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/api/JMapperAPI.java#L87-L89
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/api/JMapperAPI.java
JMapperAPI.targetAttribute
public static TargetAttribute targetAttribute(String name, String customGet, String customSet){ return new TargetAttribute(name, customGet, customSet); }
java
public static TargetAttribute targetAttribute(String name, String customGet, String customSet){ return new TargetAttribute(name, customGet, customSet); }
[ "public", "static", "TargetAttribute", "targetAttribute", "(", "String", "name", ",", "String", "customGet", ",", "String", "customSet", ")", "{", "return", "new", "TargetAttribute", "(", "name", ",", "customGet", ",", "customSet", ")", ";", "}" ]
Permits to define a target attribute. @param name target attribute name @param customGet custom get method @param customSet custom set method @return an instance of TargetAttribute
[ "Permits", "to", "define", "a", "target", "attribute", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/api/JMapperAPI.java#L107-L109
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/api/JMapperAPI.java
JMapperAPI.localAttribute
public static LocalAttribute localAttribute(String name, String customGet, String customSet){ return new LocalAttribute(name, customGet, customSet); }
java
public static LocalAttribute localAttribute(String name, String customGet, String customSet){ return new LocalAttribute(name, customGet, customSet); }
[ "public", "static", "LocalAttribute", "localAttribute", "(", "String", "name", ",", "String", "customGet", ",", "String", "customSet", ")", "{", "return", "new", "LocalAttribute", "(", "name", ",", "customGet", ",", "customSet", ")", ";", "}" ]
Permits to define a local attribute. @param name local attribute name @param customGet custom get method @param customSet custom set method @return an instance of LocalAttribute
[ "Permits", "to", "define", "a", "local", "attribute", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/api/JMapperAPI.java#L127-L129
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/config/JmapperLog.java
JmapperLog.error
public static void error(Throwable e) throws JMapperException{ logger.error("{}: {}",e.getClass().getSimpleName(),e.getMessage()); throw new JMapperException(e); }
java
public static void error(Throwable e) throws JMapperException{ logger.error("{}: {}",e.getClass().getSimpleName(),e.getMessage()); throw new JMapperException(e); }
[ "public", "static", "void", "error", "(", "Throwable", "e", ")", "throws", "JMapperException", "{", "logger", ".", "error", "(", "\"{}: {}\"", ",", "e", ".", "getClass", "(", ")", ".", "getSimpleName", "(", ")", ",", "e", ".", "getMessage", "(", ")", "...
This method handles error log. @param e exception to handle
[ "This", "method", "handles", "error", "log", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/config/JmapperLog.java#L44-L47
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/operations/AGeneralOperationAccessor.java
AGeneralOperationAccessor.write
protected final StringBuilder write(StringBuilder sb,final Object... objects){ for (Object string : objects)sb.append(string); return sb; }
java
protected final StringBuilder write(StringBuilder sb,final Object... objects){ for (Object string : objects)sb.append(string); return sb; }
[ "protected", "final", "StringBuilder", "write", "(", "StringBuilder", "sb", ",", "final", "Object", "...", "objects", ")", "{", "for", "(", "Object", "string", ":", "objects", ")", "sb", ".", "append", "(", "string", ")", ";", "return", "sb", ";", "}" ]
This method adds to the sb the objects. @param sb StringBuilder to be used @param objects objects to be added to sb @return the sb parameter
[ "This", "method", "adds", "to", "the", "sb", "the", "objects", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/operations/AGeneralOperationAccessor.java#L188-L191
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java
ConversionHandler.loadMethod
public Method loadMethod(){ methodToGenerate = new Method(); // the method will be created in the mapper membership = Membership.MAPPER; // class to which it belongs methodToGenerate.setClazz(configClass); Class<?> destinationClass = destinationField.getType(); Class<?> sourceClass = source...
java
public Method loadMethod(){ methodToGenerate = new Method(); // the method will be created in the mapper membership = Membership.MAPPER; // class to which it belongs methodToGenerate.setClazz(configClass); Class<?> destinationClass = destinationField.getType(); Class<?> sourceClass = source...
[ "public", "Method", "loadMethod", "(", ")", "{", "methodToGenerate", "=", "new", "Method", "(", ")", ";", "// the method will be created in the mapper\r", "membership", "=", "Membership", ".", "MAPPER", ";", "// class to which it belongs\r", "methodToGenerate", ".", "se...
Loads the method to generate. @return the method to generate
[ "Loads", "the", "method", "to", "generate", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java#L77-L130
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java
ConversionHandler.defaultPrimitiveValue
private String defaultPrimitiveValue(Class<?> clazz){ return clazz == byte.class || clazz == short.class || clazz == int.class? "0": clazz == long.class? "0L": clazz == float.class? "0.0f": clazz == double.class? "0.0d": clazz == char.class ? "'\u0000'": clazz ...
java
private String defaultPrimitiveValue(Class<?> clazz){ return clazz == byte.class || clazz == short.class || clazz == int.class? "0": clazz == long.class? "0L": clazz == float.class? "0.0f": clazz == double.class? "0.0d": clazz == char.class ? "'\u0000'": clazz ...
[ "private", "String", "defaultPrimitiveValue", "(", "Class", "<", "?", ">", "clazz", ")", "{", "return", "clazz", "==", "byte", ".", "class", "||", "clazz", "==", "short", ".", "class", "||", "clazz", "==", "int", ".", "class", "?", "\"0\"", ":", "clazz...
Returns the default values of primitive types in the form of strings. @param clazz primitive type @return a string that contains default value
[ "Returns", "the", "default", "values", "of", "primitive", "types", "in", "the", "form", "of", "strings", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java#L138-L150
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java
ConversionHandler.error
private String error(){ Map<String, List<ConversionMethod>> conversions = xml.conversionsLoad(); String methodName = "illegalCode"; String paramater = ""; String resource = xml.getXmlPath(); if(!isNull(resource)){ boolean isPath = isPath(resource); methodName = !isPath ? "illegalCode...
java
private String error(){ Map<String, List<ConversionMethod>> conversions = xml.conversionsLoad(); String methodName = "illegalCode"; String paramater = ""; String resource = xml.getXmlPath(); if(!isNull(resource)){ boolean isPath = isPath(resource); methodName = !isPath ? "illegalCode...
[ "private", "String", "error", "(", ")", "{", "Map", "<", "String", ",", "List", "<", "ConversionMethod", ">", ">", "conversions", "=", "xml", ".", "conversionsLoad", "(", ")", ";", "String", "methodName", "=", "\"illegalCode\"", ";", "String", "paramater", ...
This method surrounds the explicit conversion defined with a try-catch, to handle null pointers. @return the body wrapped
[ "This", "method", "surrounds", "the", "explicit", "conversion", "defined", "with", "a", "try", "-", "catch", "to", "handle", "null", "pointers", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java#L155-L175
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java
ConversionHandler.load
public ConversionHandler load(ConversionAnalyzer analyzer){ this.methodDefined = analyzer.getMethod(); this.membership = analyzer.getMembership(); this.configClass = membership == Membership.DESTINATION?destinationClass:sourceClass; this.configurationType = analyzer.getConfigurationType(); return this; ...
java
public ConversionHandler load(ConversionAnalyzer analyzer){ this.methodDefined = analyzer.getMethod(); this.membership = analyzer.getMembership(); this.configClass = membership == Membership.DESTINATION?destinationClass:sourceClass; this.configurationType = analyzer.getConfigurationType(); return this; ...
[ "public", "ConversionHandler", "load", "(", "ConversionAnalyzer", "analyzer", ")", "{", "this", ".", "methodDefined", "=", "analyzer", ".", "getMethod", "(", ")", ";", "this", ".", "membership", "=", "analyzer", ".", "getMembership", "(", ")", ";", "this", "...
Loads analyzer configurations @param analyzer conversion analyzer @return this instance of ConversionHandler
[ "Loads", "analyzer", "configurations" ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java#L228-L234
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java
ConversionHandler.from
public ConversionHandler from(MappedField sourceMappedField){ this.sourceField = sourceMappedField.getValue(); placeholders.put(sourceTypePattern, sourceField.getType().getName()); placeholders.put(sourceNamePattern, sourceField.getName()); placeholders.put(sourceGetPattern, sourceMappedField.getMethod()); ...
java
public ConversionHandler from(MappedField sourceMappedField){ this.sourceField = sourceMappedField.getValue(); placeholders.put(sourceTypePattern, sourceField.getType().getName()); placeholders.put(sourceNamePattern, sourceField.getName()); placeholders.put(sourceGetPattern, sourceMappedField.getMethod()); ...
[ "public", "ConversionHandler", "from", "(", "MappedField", "sourceMappedField", ")", "{", "this", ".", "sourceField", "=", "sourceMappedField", ".", "getValue", "(", ")", ";", "placeholders", ".", "put", "(", "sourceTypePattern", ",", "sourceField", ".", "getType"...
Source field definition. @param sourceMappedField source field @return this instance of ConversionHandler
[ "Source", "field", "definition", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java#L241-L248
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java
ConversionHandler.to
public ConversionHandler to(MappedField destinationMappedField){ this.destinationField = destinationMappedField.getValue(); placeholders.put(destinationTypePattern, destinationField.getType().getName()); placeholders.put(destinationNamePattern, destinationField.getName()); placeholders.put(destinationGetPa...
java
public ConversionHandler to(MappedField destinationMappedField){ this.destinationField = destinationMappedField.getValue(); placeholders.put(destinationTypePattern, destinationField.getType().getName()); placeholders.put(destinationNamePattern, destinationField.getName()); placeholders.put(destinationGetPa...
[ "public", "ConversionHandler", "to", "(", "MappedField", "destinationMappedField", ")", "{", "this", ".", "destinationField", "=", "destinationMappedField", ".", "getValue", "(", ")", ";", "placeholders", ".", "put", "(", "destinationTypePattern", ",", "destinationFie...
Destination field definition. @param destinationMappedField destination field @return this instance of ConversionHandler
[ "Destination", "field", "definition", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/conversions/explicit/ConversionHandler.java#L255-L262
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/JMapper.java
JMapper.createMapper
private static synchronized <D,S> IMapper<D,S> createMapper(MapperBuilder mapper) throws Throwable{ Class<Mapper<D,S>> mapperClass = mapper.exist()?mapper.<D,S>get() :mapper.<D,S>generate(); return mapperClass.newInstance(); }
java
private static synchronized <D,S> IMapper<D,S> createMapper(MapperBuilder mapper) throws Throwable{ Class<Mapper<D,S>> mapperClass = mapper.exist()?mapper.<D,S>get() :mapper.<D,S>generate(); return mapperClass.newInstance(); }
[ "private", "static", "synchronized", "<", "D", ",", "S", ">", "IMapper", "<", "D", ",", "S", ">", "createMapper", "(", "MapperBuilder", "mapper", ")", "throws", "Throwable", "{", "Class", "<", "Mapper", "<", "D", ",", "S", ">", ">", "mapperClass", "=",...
This method is synchornized to avoid creations of the same instance @param mapper mapper generator @return mapper instance @throws Throwable
[ "This", "method", "is", "synchornized", "to", "avoid", "creations", "of", "the", "same", "instance" ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/JMapper.java#L447-L452
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/JMapper.java
JMapper.destinationFactory
public JMapper<D, S> destinationFactory(DestinationFactory<D> factory){ this.mapper.setDestinationFactory(factory); return this; }
java
public JMapper<D, S> destinationFactory(DestinationFactory<D> factory){ this.mapper.setDestinationFactory(factory); return this; }
[ "public", "JMapper", "<", "D", ",", "S", ">", "destinationFactory", "(", "DestinationFactory", "<", "D", ">", "factory", ")", "{", "this", ".", "mapper", ".", "setDestinationFactory", "(", "factory", ")", ";", "return", "this", ";", "}" ]
Permits to define a destination factory, this is usefull in case of immutable objects. @param factory destination factory @return this instance of JMapper
[ "Permits", "to", "define", "a", "destination", "factory", "this", "is", "usefull", "in", "case", "of", "immutable", "objects", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/JMapper.java#L475-L478
train
jmapper-framework/jmapper-core
JMapper Framework/src/main/java/com/googlecode/jmapper/util/ClassesManager.java
ClassesManager.isAssignableFrom
public static boolean isAssignableFrom(Class<?> destination,Class<?> source){ return destination.isAssignableFrom(source) || isBoxing(destination,source) || isUnBoxing(destination,source); }
java
public static boolean isAssignableFrom(Class<?> destination,Class<?> source){ return destination.isAssignableFrom(source) || isBoxing(destination,source) || isUnBoxing(destination,source); }
[ "public", "static", "boolean", "isAssignableFrom", "(", "Class", "<", "?", ">", "destination", ",", "Class", "<", "?", ">", "source", ")", "{", "return", "destination", ".", "isAssignableFrom", "(", "source", ")", "||", "isBoxing", "(", "destination", ",", ...
Returns true if destination is assignable from source analyzing autoboxing also. @param destination destination class @param source source class @return true if destination is assignable from source analyzing autoboxing also.
[ "Returns", "true", "if", "destination", "is", "assignable", "from", "source", "analyzing", "autoboxing", "also", "." ]
b48fd3527f35055b8b4a30f53a51136f183acc90
https://github.com/jmapper-framework/jmapper-core/blob/b48fd3527f35055b8b4a30f53a51136f183acc90/JMapper Framework/src/main/java/com/googlecode/jmapper/util/ClassesManager.java#L125-L127
train