Skip to content

Commit 90bb224

Browse files
committed
feat: Make the set of names of attributes set on a field/type available.
1 parent 67eaf53 commit 90bb224

File tree

1 file changed

+4
-0
lines changed
  • code-generation/protocol-base-mspec/src/main/java/org/apache/plc4x/plugins/codegenerator/language/mspec/model/definitions

1 file changed

+4
-0
lines changed

code-generation/protocol-base-mspec/src/main/java/org/apache/plc4x/plugins/codegenerator/language/mspec/model/definitions/DefaultTypeDefinition.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public String getName() {
4242
return name;
4343
}
4444

45+
public Set<String> getAttributeNames() {
46+
return attributes.keySet();
47+
}
48+
4549
public Optional<Term> getAttribute(String attributeName) {
4650
if (attributes.containsKey(attributeName)) {
4751
return Optional.of(attributes.get(attributeName));

0 commit comments

Comments
 (0)