Package org.biojava.utils.net
Interface URLFactory
-
public interface URLFactory
URLFactorydefines a means of obtaining a URL associated with an object. The URL returned may be based on any property of the object, for example its Java class, methods or fields or itsAnnotation. As the criteria by which the URL are created will be highly variable it is left to the implementation to cast theObjectargument and perform any necessary checks. An implementation may make any additional checks such as applyingPropertyConstraints or checking anAnnotationType.An example use case is in obtaining hyperlink target to associate with a sequence hit in a database search which will then be placed in an image map.
- Author:
- Keith James
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URLcreateURL(Object object)createURLreturns a URL which is relevant to the object in a way specified by the implementation.
-