Skip to content

Commit

Permalink
[Bug #285] Move OWLClassV static methods to end of the class
Browse files Browse the repository at this point in the history
  • Loading branch information
luxbe committed Nov 21, 2024
1 parent e5e1d0e commit a40db85
Showing 1 changed file with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,34 +60,6 @@ public OWLClassV(URI id) {
this.id = id;
}

public static String getClassIri() {
return OWLClassV.class.getAnnotation(OWLClass.class).iri();
}

public static Field getIdField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("id");
}

public static Field getSetStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("setStringAtt");
}

public static Field getListStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("listStringAtt");
}

public static Field getCollectionStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("collectionStringAtt");
}

public static Field getSetQueryStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("setQueryStringAtt");
}

public static Field getListQueryStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("listQueryStringAtt");
}

public URI getId() {
return id;
}
Expand Down Expand Up @@ -147,4 +119,32 @@ public String toString() {
", listQueryStringAtt=" + listQueryStringAtt +
'}';
}

public static String getClassIri() {
return OWLClassV.class.getAnnotation(OWLClass.class).iri();
}

public static Field getIdField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("id");
}

public static Field getSetStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("setStringAtt");
}

public static Field getListStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("listStringAtt");
}

public static Field getCollectionStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("collectionStringAtt");
}

public static Field getSetQueryStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("setQueryStringAtt");
}

public static Field getListQueryStringAttField() throws NoSuchFieldException {
return OWLClassV.class.getDeclaredField("listQueryStringAtt");
}
}

0 comments on commit a40db85

Please sign in to comment.