Skip to content

Commit

Permalink
Refactor the sequence order annotation in compiler plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
SasinduDilshara committed Nov 22, 2024
1 parent 4272d14 commit 85891cf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ type A4 record {|
|};

type Seq_XsdSequenceArray record {|
@xmldata:Order {
@xmldata:SequenceOrder {
value: 1
}
int age;

@xmldata:Order {
@xmldata:SequenceOrder {
value: 2
}
float salary;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ type XSDSequenceRecord record {|
|};

type Seq_XSDSequenceRecord record {|
@xmldata:Order {
@xmldata:SequenceOrder {
value: 1
}
int age;

@xmldata:Order {
@xmldata:SequenceOrder {
value: 2
}
float salary;
Expand All @@ -57,12 +57,12 @@ type XSDSequenceRecord2 record {|
|};

type Seq_XSDSequenceRecord2 record {|
@xmldata:Order {
@xmldata:SequenceOrder {
value: 1
}
int age;

@xmldata:Order {
@xmldata:SequenceOrder {
value: 2
}
float salary;
Expand All @@ -74,13 +74,13 @@ type Seq_XSDSequenceRecord2 record {|
|};

type Seq_XSDSequenceRecord3 record {
@xmldata:Order {
@xmldata:SequenceOrder {
value: 1
}
int age;
string name;

@xmldata:Order {
@xmldata:SequenceOrder {
value: 2
}
float salary;
Expand All @@ -98,15 +98,15 @@ type XSDSequenceRecord4 record {|

type Seq_XSDSequenceRecord4 record {
int age;
@xmldata:Order {
@xmldata:SequenceOrder {
value: 1
}
int age2;

@xmldata:Element {
minOccurs: 2
}
@xmldata:Order {
@xmldata:SequenceOrder {
value: 2
}
float salary;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ public class Constants {
static final String DATA_XMLDATA = "data.xmldata";
static final String SEQUENCE = "Sequence";
static final String CHOICE = "Choice";
static final String ORDER = "Order";
static final String ORDER = "SequenceOrder";
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ private Constants() {}
public static final String CHOICE = "Choice";
public static final BString MIN_OCCURS = StringUtils.fromString("minOccurs");
public static final BString MAX_OCCURS = StringUtils.fromString("maxOccurs");
public static final String ORDER = "Order";
public static final String ORDER = "SequenceOrder";
}

0 comments on commit 85891cf

Please sign in to comment.