All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.uniroma2.art.coda.structures.ValueOrUri Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package it.uniroma2.art.coda.structures;

public class ValueOrUri {

	private String value;
	private String uri;
	private boolean isURI;
	
	public ValueOrUri(String valueOrURI, boolean isURI) {
		if(isURI){
			this.uri = valueOrURI;
			this.isURI = true;
			this.value = null;
		} else {
			this.value = valueOrURI;
			this.isURI = false;
			this.uri = null;
		}
	}

	public String getValue() {
		return value;
	}

	public String getUri() {
		return uri;
	}

	public boolean isURI() {
		return isURI;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy