Package org.omegat.externalfinder.item
Class ExternalFinderItemURL
- java.lang.Object
-
- org.omegat.externalfinder.item.ExternalFinderItemURL
-
public class ExternalFinderItemURL extends java.lang.Object
A data class representing an ExternalFinder "url". Immutable. Optionally useExternalFinderItemURL.Builder
to construct.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExternalFinderItemURL.Builder
-
Constructor Summary
Constructors Constructor Description ExternalFinderItemURL(java.lang.String url, ExternalFinderItem.TARGET target, ExternalFinderItem.ENCODING encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.net.URI
generateURL(java.lang.String findingWords)
ExternalFinderItem.ENCODING
getEncoding()
ExternalFinderItem.TARGET
getTarget()
java.lang.String
getURL()
int
hashCode()
-
-
-
Constructor Detail
-
ExternalFinderItemURL
public ExternalFinderItemURL(java.lang.String url, ExternalFinderItem.TARGET target, ExternalFinderItem.ENCODING encoding)
-
-
Method Detail
-
getURL
public java.lang.String getURL()
-
getTarget
public ExternalFinderItem.TARGET getTarget()
-
getEncoding
public ExternalFinderItem.ENCODING getEncoding()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
generateURL
public java.net.URI generateURL(java.lang.String findingWords) throws java.io.UnsupportedEncodingException, java.net.URISyntaxException
- Throws:
java.io.UnsupportedEncodingException
java.net.URISyntaxException
-
-