org.semanticweb.owlapi.model
Interface OWLStringLiteral

All Superinterfaces:
java.lang.Comparable<OWLObject>, OWLAnnotationObject, OWLAnnotationValue, OWLLiteral, OWLObject, OWLPropertyAssertionObject
All Known Implementing Classes:
OWLStringLiteralImpl

public interface OWLStringLiteral
extends OWLLiteral

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group Date: 24-Oct-2006


Method Summary
 java.lang.String getLang()
          Gets the language tag (if present)
 boolean hasLang(java.lang.String lang)
          Determines if this constant has a specific language tag.
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLLiteral
accept, accept, asOWLStringLiteral, asRDFTextLiteral, getLiteral, isTyped
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLAnnotationValue
accept, accept
 

Method Detail

getLang

java.lang.String getLang()
Gets the language tag (if present)

Returns:
A String which represents the langauge tag, or null if there is no language tag

hasLang

boolean hasLang(java.lang.String lang)
Determines if this constant has a specific language tag.

Parameters:
lang - The specific lang to test for.
Returns:
true if this constant has the specified langauge tag, or false if this constant does not have a language tag or if this constant has a language tag that is not equal to the specified language tag.