Package io.guise.framework.converter
Class BaseURIStringLiteralConverter
java.lang.Object
com.globalmentor.beans.BoundPropertyObject
io.guise.framework.event.GuiseBoundPropertyObject
io.guise.framework.converter.AbstractConverter<V,String>
io.guise.framework.converter.AbstractStringLiteralConverter<URI>
io.guise.framework.converter.AbstractURIStringLiteralConverter
io.guise.framework.converter.BaseURIStringLiteralConverter
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,Converter<URI,
String>
A URI converter that resolves relative URIs to some base URI.
- Author:
- Garret Wilson
- See Also:
-
Field Summary
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
Fields inherited from interface io.guise.framework.converter.Converter
INVALID_VALUE_MESSAGE_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected URI
resolveURI
(URI uri) Resolves a converted URI if needed.Methods inherited from class io.guise.framework.converter.AbstractURIStringLiteralConverter
convertLiteral
Methods inherited from class io.guise.framework.converter.AbstractStringLiteralConverter
convertValue, getInstance
Methods inherited from class io.guise.framework.converter.AbstractConverter
getInvalidValueMessage, isEquivalent, isValidLiteral, setInvalidValueMessage
Methods inherited from class io.guise.framework.event.GuiseBoundPropertyObject
getSession
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.guise.framework.converter.Converter
getSession
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
BaseURIStringLiteralConverter
Base URI constructor.- Parameters:
baseURI
- The base URI for resolving any relative URI.- Throws:
NullPointerException
- if the given base URI isnull
.
-
-
Method Details
-
getBaseURI
- Returns:
- The base URI for resolving any relative URI.
-
resolveURI
Resolves a converted URI if needed. If the URI is already absolute, no action occurs.If the URI is relative, this implementation resolves the URI against the URI returned by
getBaseURI()
.- Specified by:
resolveURI
in classAbstractURIStringLiteralConverter
- Parameters:
uri
- The URI to resolve.- Returns:
- The URI resolved as needed and as appropriate.
- See Also:
-