Skip to content

Commit

Permalink
Fix typo #657
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jan 30, 2025
1 parent fad521f commit e613b87
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public final class RdfMacroPipe extends DefaultStreamPipe<StreamReceiver> {
public static final String RDF_ABOUT = "~rdf:about";
public static final String XML_LANG = "~xml:lang";
private String autoAddedSubject = "";
private char refrenceMarker = REFERENCE_MARKER;
private char referenceMarker = REFERENCE_MARKER;
private char languageMarker = LANGUAGE_MARKER;

/**
Expand All @@ -60,21 +60,21 @@ public void setAutoAddedSubject(final String autoAddedSubject) {
}

/**
* Sets the single char refrence marker.
* Sets the single char reference marker.
*
* @param refrenceMarker the refrence marker
* @param referenceMarker the reference marker
*/
public void setRefrenceMarker(final char refrenceMarker) {
this.refrenceMarker = refrenceMarker;
public void setReferenceMarker(final char referenceMarker) {
this.referenceMarker = referenceMarker;
}

/**
* Gets the refrence marker.
* Gets the reference marker.
*
* @return the refrence marker
* @return the reference marker
*/
public char getRefrenceMarker() {
return refrenceMarker;
public char getReferenceMarker() {
return referenceMarker;
}

/**
Expand Down Expand Up @@ -126,7 +126,7 @@ public void endEntity() {
@Override
public void literal(final String name, final String value) {
final int index = name.indexOf(languageMarker);
if (!name.isEmpty() && name.charAt(0) == refrenceMarker) {
if (!name.isEmpty() && name.charAt(0) == referenceMarker) {
getReceiver().startEntity(name.substring(1));
getReceiver().literal(RDF_REFERENCE, value);
getReceiver().endEntity();
Expand Down

0 comments on commit e613b87

Please sign in to comment.