|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mitre.cpe.common.WellFormedName
public class WellFormedName
The WellFormedName class represents a Well Formed Name, as defined in the CPE Specification version 2.3.
Constructor Summary | |
---|---|
WellFormedName()
Constructs a new WellFormedName object, with all components set to the default value "ANY". |
|
WellFormedName(java.lang.Object part,
java.lang.Object vendor,
java.lang.Object product,
java.lang.Object version,
java.lang.Object update,
java.lang.Object edition,
java.lang.Object language,
java.lang.Object sw_edition,
java.lang.Object target_sw,
java.lang.Object target_hw,
java.lang.Object other)
Constructs a new WellFormedName object, setting each component to the given parameter value. |
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String attribute)
|
void |
set(java.lang.String attribute,
java.lang.Object value)
Sets the given attribute to value, if the attribute is in the list of permissible components |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WellFormedName() throws java.text.ParseException
java.text.ParseException
public WellFormedName(java.lang.Object part, java.lang.Object vendor, java.lang.Object product, java.lang.Object version, java.lang.Object update, java.lang.Object edition, java.lang.Object language, java.lang.Object sw_edition, java.lang.Object target_sw, java.lang.Object target_hw, java.lang.Object other) throws java.text.ParseException
part
- string representing the part componentvendor
- string representing the vendor componentproduct
- string representing the product componentversion
- string representing the version componentupdate
- string representing the update componentedition
- string representing the edition componentlanguage
- string representing the language componentsw_edition
- string representing the sw_edition componenttarget_sw
- string representing the target_sw componenttarget_hw
- string representing the target_hw componentother
- string representing the other component
java.text.ParseException
Method Detail |
---|
public java.lang.Object get(java.lang.String attribute)
attribute
- String representing the component value to get
public final void set(java.lang.String attribute, java.lang.Object value) throws java.text.ParseException
attribute
- String representing the component to setvalue
- Object representing the value of the given component
java.text.ParseException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |