org.mitre.cpe.naming
Class CPENameBinder

java.lang.Object
  extended by org.mitre.cpe.naming.CPENameBinder

public class CPENameBinder
extends java.lang.Object

The CPENameBinder class is a simple implementation of the CPE Name binding algorithm, as specified in the CPE Naming Standard version 2.3.

See Also:
cpe.mitre.org for more information.

Constructor Summary
CPENameBinder()
           
 
Method Summary
 java.lang.String bindToFS(WellFormedName w)
          Top-level function used to bind WFN w to formatted string.
 java.lang.String bindToURI(WellFormedName w)
          Binds a WellFormedName object to a URI.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPENameBinder

public CPENameBinder()
Method Detail

bindToURI

public java.lang.String bindToURI(WellFormedName w)
Binds a WellFormedName object to a URI.

Parameters:
w - WellFormedName to be bound to URI
Returns:
URI binding of WFN

bindToFS

public java.lang.String bindToFS(WellFormedName w)
Top-level function used to bind WFN w to formatted string.

Parameters:
w - WellFormedName to bind
Returns:
Formatted String

main

public static void main(java.lang.String[] args)
                 throws java.text.ParseException
Throws:
java.text.ParseException