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 WellFormedNamegetWellFormedName()Gets the underlyingWellFormedName.java.lang.StringtoFormattedString()Gets the underlyingWellFormedNameas a formatted string.java.lang.StringtoString()Get the specific bound form of the CPE name from the underlyingWellFormedName.java.net.URItoUri()Gets the underlyingWellFormedNameas a CPE URI.java.lang.StringtoUriString()Gets the underlyingWellFormedNameas a CPE URI.
-
Method Details
-
getWellFormedName
WellFormedName getWellFormedName()Gets the underlyingWellFormedName.- Returns:
WellFormedNamerepresenting the unbound CPE Name
-
toString
java.lang.String toString()Get the specific bound form of the CPE name from the underlyingWellFormedName.- Overrides:
toStringin classjava.lang.Object- Returns:
- the bound form of the associated
WellFormedName
-
toUri
java.net.URI toUri()Gets the underlyingWellFormedNameas a CPE URI.- Returns:
- the
WellFormedNamebound to a URI
-
toUriString
java.lang.String toUriString()Gets the underlyingWellFormedNameas a CPE URI.- Returns:
- the
WellFormedNamebound to a URI
-
toFormattedString
java.lang.String toFormattedString()Gets the underlyingWellFormedNameas a formatted string.- Returns:
- the
WellFormedNameas a CPE formatted string
-