Package gov.nist.secauto.cpe.naming.util
Class AbstractCPEName
java.lang.Object
gov.nist.secauto.cpe.naming.util.AbstractCPEName
- All Implemented Interfaces:
CPEName
- Direct Known Subclasses:
CPEFormattedStringName,CPEUriName
public abstract class AbstractCPEName extends java.lang.Object implements CPEName
An abstract implementation of a notional unbound CPE Name expressed as a
WellFormedName.-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCPEName(WellFormedName wfn)Construct a notional, unbound CPE Name based on aWellFormedName. -
Method Summary
Modifier and Type Method Description WellFormedNamegetWellFormedName()Gets the underlyingWellFormedName.java.lang.StringtoFormattedString()Gets the underlyingWellFormedNameas a formatted string.java.net.URItoUri()Gets the underlyingWellFormedNameas a CPE URI.java.lang.StringtoUriString()Gets the underlyingWellFormedNameas a CPE URI.
-
Constructor Details
-
AbstractCPEName
Construct a notional, unbound CPE Name based on aWellFormedName.- Parameters:
wfn- theWellFormedNameassociated with the CPE Name
-
-
Method Details
-
getWellFormedName
Description copied from interface:CPENameGets the underlyingWellFormedName.- Specified by:
getWellFormedNamein interfaceCPEName- Returns:
WellFormedNamerepresenting the unbound CPE Name
-
toUri
public java.net.URI toUri()Description copied from interface:CPENameGets the underlyingWellFormedNameas a CPE URI.- Specified by:
toUriin interfaceCPEName- Returns:
- the
WellFormedNamebound to a URI
-
toUriString
public java.lang.String toUriString()Description copied from interface:CPENameGets the underlyingWellFormedNameas a CPE URI.- Specified by:
toUriStringin interfaceCPEName- Returns:
- the
WellFormedNamebound to a URI
-
toFormattedString
public java.lang.String toFormattedString()Description copied from interface:CPENameGets the underlyingWellFormedNameas a formatted string.- Specified by:
toFormattedStringin interfaceCPEName- Returns:
- the
WellFormedNameas a CPE formatted string
-