BrightSide Workbench Full Report + Source Code
org.turro.jpa.entity.XMLSerializer Class Reference
Inheritance diagram for org.turro.jpa.entity.XMLSerializer:
Collaboration diagram for org.turro.jpa.entity.XMLSerializer:

Public Member Functions

 XMLSerializer (Object object)
 

Protected Member Functions

boolean acceptObject (Object currentObject)
 
String getObjectName (Class clazz)
 
boolean acceptField (Object currentObject, Field f, Mapping map)
 
Class convertClass (Class javaClass)
 
String getClassName (Class javaClass)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file XMLSerializer.java.

Constructor & Destructor Documentation

◆ XMLSerializer()

org.turro.jpa.entity.XMLSerializer.XMLSerializer ( Object  object)

Definition at line 33 of file XMLSerializer.java.

33  {
34  super(object);
35  }

Member Function Documentation

◆ acceptField()

boolean org.turro.jpa.entity.XMLSerializer.acceptField ( Object  currentObject,
Field  f,
Mapping  map 
)
protected

Definition at line 52 of file XMLSerializer.java.

52  {
53  boolean accept = super.acceptField(currentObject, f, map);
54  accept = accept && !f.isAnnotationPresent(Lob.class);
55  //accept = accept && f.getAnnotations() != null;
56  return accept;
57  }

◆ acceptObject()

boolean org.turro.jpa.entity.XMLSerializer.acceptObject ( Object  currentObject)
protected

Definition at line 38 of file XMLSerializer.java.

38  {
39  boolean accept = super.acceptObject(currentObject);
40  //accept = accept && currentObject.getClass().isAnnotationPresent(Entity.class);
41  return accept;
42  }

◆ convertClass()

Class org.turro.jpa.entity.XMLSerializer.convertClass ( Class  javaClass)
protected

Definition at line 60 of file XMLSerializer.java.

60  {
61  try {
62  return Class.forName(getClassName(javaClass));
63  } catch (ClassNotFoundException ex) {
64  Logger.getLogger(XMLSerializer.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
65  }
66  return null;
67  }
String getClassName(Class javaClass)
Here is the call graph for this function:

◆ getClassName()

String org.turro.jpa.entity.XMLSerializer.getClassName ( Class  javaClass)
protected

Definition at line 70 of file XMLSerializer.java.

70  {
71  String name = super.getClassName(javaClass);
72  String s[] = name.split("[^a-zA-Z0-9\\.]");
73  return s.length == 0 ? name : s[0];
74  }
Here is the caller graph for this function:

◆ getObjectName()

String org.turro.jpa.entity.XMLSerializer.getObjectName ( Class  clazz)
protected

Definition at line 45 of file XMLSerializer.java.

45  {
46  String name = super.getObjectName(clazz);
47  String s[] = name.split("[^a-zA-Z0-9]");
48  return s.length == 0 ? name : s[0];
49  }

The documentation for this class was generated from the following file: