Package gov.nist.secauto.cpe.naming.util
Class CPEFormattedStringName
java.lang.Object
gov.nist.secauto.cpe.naming.util.AbstractCPEName
gov.nist.secauto.cpe.naming.util.CPEFormattedStringName
- All Implemented Interfaces:
CPEName
public class CPEFormattedStringName extends AbstractCPEName
A concrete implementation of a formatted string unbound to a
WellFormedName
.-
Constructor Summary
Constructors Constructor Description CPEFormattedStringName(java.lang.String formattedString)
Constructs a formatted string bound CPE name based on the provided formatted string. -
Method Summary
Modifier and Type Method Description java.lang.String
toString()
Gets the underlyingWellFormedName
as a formatted string.Methods inherited from class gov.nist.secauto.cpe.naming.util.AbstractCPEName
getWellFormedName, toFormattedString, toUri, toUriString
-
Constructor Details
-
CPEFormattedStringName
public CPEFormattedStringName(java.lang.String formattedString) throws java.text.ParseExceptionConstructs a formatted string bound CPE name based on the provided formatted string.- Parameters:
formattedString
- the formatted string- Throws:
java.text.ParseException
- if the formatted string is not valid
-
-
Method Details
-
toString
public java.lang.String toString()Gets the underlyingWellFormedName
as a formatted string.- Specified by:
toString
in interfaceCPEName
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the
WellFormedName
as a CPE formatted string - See Also:
AbstractCPEName.toFormattedString()
-