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.StringtoString()Gets the underlyingWellFormedNameas 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 underlyingWellFormedNameas a formatted string.- Specified by:
toStringin interfaceCPEName- Overrides:
toStringin classjava.lang.Object- Returns:
- the
WellFormedNameas a CPE formatted string - See Also:
AbstractCPEName.toFormattedString()
-