Package gov.nist.secauto.cpe.naming.util
Interface CPEName
- All Known Implementing Classes:
AbstractCPEName
,CPEFormattedStringName
,CPEUriName
public interface CPEName
Represents a notional CPE Name unbound to a
WellFormedName
. Implementations of this
interface will track the unbound form of the CPE Name enabling the bound form to be
(re)generated.-
Method Summary
Modifier and Type Method Description WellFormedName
getWellFormedName()
Gets the underlyingWellFormedName
.java.lang.String
toFormattedString()
Gets the underlyingWellFormedName
as a formatted string.java.lang.String
toString()
Get the specific bound form of the CPE name from the underlyingWellFormedName
.java.net.URI
toUri()
Gets the underlyingWellFormedName
as a CPE URI.java.lang.String
toUriString()
Gets the underlyingWellFormedName
as a CPE URI.
-
Method Details
-
getWellFormedName
WellFormedName getWellFormedName()Gets the underlyingWellFormedName
.- Returns:
WellFormedName
representing the unbound CPE Name
-
toString
java.lang.String toString()Get the specific bound form of the CPE name from the underlyingWellFormedName
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the bound form of the associated
WellFormedName
-
toUri
java.net.URI toUri()Gets the underlyingWellFormedName
as a CPE URI.- Returns:
- the
WellFormedName
bound to a URI
-
toUriString
java.lang.String toUriString()Gets the underlyingWellFormedName
as a CPE URI.- Returns:
- the
WellFormedName
bound to a URI
-
toFormattedString
java.lang.String toFormattedString()Gets the underlyingWellFormedName
as a formatted string.- Returns:
- the
WellFormedName
as a CPE formatted string
-