JiBX
  1. JiBX
  2. JIBX-261

add Schema-level customization attributes: add-prefixes, add-suffixes

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.2 beta 1
    • Fix Version/s: JiBX 1.2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      add-prefix:
      Prefix string to be added from schema names before converting to Java names. The value is a prefix string.

      add-suffix:
      Suffix strings to be added from schema names before converting to Java names. The value is a suffix string.

      e.g.:
      <xsd:complexType name="RelationType">
      <xsd:sequence>
      <xsd:element name="id" type="xsd:string" />
      <xsd:element name="name" type="xsd:string" />
      </xsd:sequence>
      </xsd:complexType>

      should result in a class named RelationTypeDTO

      public class RelationTypeDTO
      {
      private String id;
      private String name;

      ...
      }

        Activity

        Hide
        Dennis Sosnoski added a comment -

        The new <name-converter> customization support should let you do this: http://jibx.sourceforge.net/fromschema/codegen-customs.html#naming You can implement your own name converter, subclassing the default one and adding your own modifications.

        Show
        Dennis Sosnoski added a comment - The new <name-converter> customization support should let you do this: http://jibx.sourceforge.net/fromschema/codegen-customs.html#naming You can implement your own name converter, subclassing the default one and adding your own modifications.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            maria aschauer
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: