Module org.tquadrat.foundation.util
Class URIStringConverter
java.lang.Object
org.tquadrat.foundation.util.stringconverter.URIStringConverter
- All Implemented Interfaces:
 Serializable,StringConverter<URI>
@ClassVersion(sourceVersion="$Id: URIStringConverter.java 1060 2023-09-24 19:21:40Z tquadrat $")
@API(status=STABLE,
     since="0.0.6")
public final class URIStringConverter
extends Object
implements StringConverter<URI>
An implementation of
  
  
The method
StringConverter
  for
  URI
  values.The method
fromString(CharSequence)
  will use the constructor
  URI(String)
  to create a URI instance from the given value.- Author:
 - Thomas Thrien (thomas.thrien@tquadrat.org)
 - Version:
 - $Id: URIStringConverter.java 1060 2023-09-24 19:21:40Z tquadrat $
 - Since:
 - 0.0.6
 - See Also:
 - UML Diagram
 - 
    
        
UML Diagram for "org.tquadrat.foundation.util.stringconverter.URIStringConverter"
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final URIStringConverterAn instance of this class.static final StringThe error message for an invalid URI on the command line: "\'%1$s\' cannot be parsed as a valid URI".Fields inherited from interface org.tquadrat.foundation.lang.StringConverter
METHOD_NAME_GetSubjectClass, METHOD_NAME_Provider - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfinal URIfromString(CharSequence source) static final URIStringConverterprovider()This method is used by theServiceLoaderto obtain the instance for thisStringConverterimplementation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tquadrat.foundation.lang.StringConverter
toString 
- 
Field Details
- 
MSG_InvalidURI
The error message for an invalid URI on the command line: "\'%1$s\' cannot be parsed as a valid URI".- See Also:
 
 - 
INSTANCE
An instance of this class. 
 - 
 - 
Constructor Details
- 
URIStringConverter
public URIStringConverter()Creates a new instance ofURIStringConverter. 
 - 
 - 
Method Details
- 
fromString
- Specified by:
 fromStringin interfaceStringConverter<URI>- Throws:
 IllegalArgumentException
 - 
provider
This method is used by theServiceLoaderto obtain the instance for thisStringConverterimplementation.- Returns:
 - The instance for this 
StringConverterimplementation. 
 
 - 
 
