Class Xpp3ReaderGenerator

    • Field Detail

      • locationField

        private java.lang.String locationField
      • trackingArgs

        private java.lang.String trackingArgs
    • Constructor Detail

      • Xpp3ReaderGenerator

        public Xpp3ReaderGenerator()
    • Method Detail

      • writeAllClassesReaders

        private void writeAllClassesReaders​(Model objectModel,
                                            JClass jClass)
      • writeClassReaders

        private void writeClassReaders​(ModelClass modelClass,
                                       JClass jClass,
                                       boolean rootElement)
      • writeAllClassesParser

        private void writeAllClassesParser​(Model objectModel,
                                           JClass jClass)
      • writeClassParser

        private void writeClassParser​(ModelClass modelClass,
                                      JClass jClass,
                                      boolean rootElement)
      • writeClassAttributesParser

        private ModelField writeClassAttributesParser​(java.util.List<ModelField> modelFields,
                                                      java.lang.String objectName,
                                                      boolean rootElement,
                                                      JSourceCode sc,
                                                      JClass jClass)
      • processField

        private void processField​(ModelField field,
                                  XmlFieldMetadata xmlFieldMetadata,
                                  boolean addElse,
                                  JSourceCode sc,
                                  java.lang.String objectName,
                                  JClass jClass)
        Generate code to process a field represented as an XML element.
        Parameters:
        field - the field to process
        xmlFieldMetadata - its XML metadata
        addElse - add an else statement before generating a new if
        sc - the method source code to add to
        objectName - the object name in the source
        jClass - the generated class source file
      • writePrimitiveField

        private void writePrimitiveField​(ModelField field,
                                         java.lang.String type,
                                         java.lang.String objectName,
                                         java.lang.String locatorName,
                                         java.lang.String locationKey,
                                         java.lang.String setterName,
                                         JSourceCode sc)
      • writeBuildDomMethod

        private void writeBuildDomMethod​(JClass jClass)
      • writeBuildDomLocationTrackingMethod

        private void writeBuildDomLocationTrackingMethod​(JClass jClass)
      • writeHelpers

        private void writeHelpers​(JClass jClass)
      • getCheckUnknonwElement2Method

        private JMethod getCheckUnknonwElement2Method()
      • getNextTagMethod

        private JMethod getNextTagMethod()
      • getCheckUnknownAttributeMethod

        private JMethod getCheckUnknownAttributeMethod()
      • getCheckFieldWithDuplicateMethod

        private JMethod getCheckFieldWithDuplicateMethod()
      • getDateValue2Method

        private JMethod getDateValue2Method()
      • getDateValueMethod

        private JMethod getDateValueMethod()
      • getCharacterValueMethod

        private JMethod getCharacterValueMethod()
      • getBooleanValue2Method

        private JMethod getBooleanValue2Method()
      • getBooleanValueMethod

        private JMethod getBooleanValueMethod()
      • getRequiredAttributeValueMethod

        private JMethod getRequiredAttributeValueMethod()
      • getTrimmedValueMethod

        private JMethod getTrimmedValueMethod()
      • getInterpolatedTrimmed

        private JMethod getInterpolatedTrimmed()
      • convertNumericalType

        private JMethod convertNumericalType​(java.lang.String methodName,
                                             JType returnType,
                                             java.lang.String expression,
                                             java.lang.String typeDesc)
      • addTrackingParameters

        private void addTrackingParameters​(JMethod method)
      • writeNewSetLocation

        private void writeNewSetLocation​(ModelField field,
                                         java.lang.String objectName,
                                         java.lang.String trackerVariable,
                                         JSourceCode sc)
      • writeNewSetLocation

        private void writeNewSetLocation​(java.lang.String key,
                                         java.lang.String objectName,
                                         java.lang.String trackerVariable,
                                         JSourceCode sc)
      • writeNewLocation

        private void writeNewLocation​(java.lang.String trackerVariable,
                                      JSourceCode sc)
      • buildNewLocation

        private java.lang.String buildNewLocation​(java.lang.String source)
      • writeSetLocation

        private void writeSetLocation​(java.lang.String key,
                                      java.lang.String objectName,
                                      java.lang.String trackerVariable,
                                      JSourceCode sc)