|
|||||||||||
?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD |
java.lang.Object | +--uk.org.ogsadai.dataresource.config.ProductInfo
Data resource product information.
The information is set up using an XML fragment from a data resource configuration document. Specifically the productInfo
child element of metaData
.
See the data_resource_config.xsd
XML Schema.
Field Summary | |
private static?java.lang.String |
COPYRIGHT_NOTICE ??????????? |
private ?java.lang.String |
mName ??????????? |
private ?org.w3c.dom.Element |
mProductInfoElt ??????????? |
private ?Property |
mProperty ??????????? |
private ?java.lang.String |
mVendor ??????????? |
private ?java.lang.String |
mVersion ??????????? |
Constructor Summary | |
ProductInfo() ??????????? |
Method Summary | |
private ?void |
buildProductInfoDocument() ??????????Build an XML document containing the product information. |
private ?void |
buildProductInfoProperty() ??????????Create a static product information property containing the product information in XML format. |
?void |
configure(org.w3c.dom.Element?elt) ??????????Create product information by parsing the given element and build an XML document holding this information. |
private ?void |
flagAsChanged() ??????????Flags that the product information has changed and so a new XML element must be generated the next time it is asked for. |
?java.lang.String |
getName() ??????????Get product name. |
?Property |
getProperty() ??????????Get product information property. |
?java.lang.String |
getVendor() ??????????Get vendor name. |
?java.lang.String |
getVersion() ??????????Get version. |
?void |
setName(java.lang.String?name) ??????????Set product name. |
?void |
setVendor(java.lang.String?vendor) ??????????Set vendor name. |
?void |
setVersion(java.lang.String?version) ??????????Set version. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.String mName
private java.lang.String mVendor
private java.lang.String mVersion
private org.w3c.dom.Element mProductInfoElt
private Property mProperty
Constructor Detail |
public ProductInfo()
Method Detail |
public void configure(org.w3c.dom.Element?elt) throws java.lang.IllegalArgumentException, ExternalModuleException
elt
- productInfo
element from a data resource configuration document.ExternalModuleException
- if there is an internal problem with Xerces when building the XML document.java.lang.IllegalArgumentException
- if elt
is null
or is not a productInfo
element.private void buildProductInfoDocument()
ExternalModuleException
- if there is an internal problem with Xerces when building the XML document.private void buildProductInfoProperty()
public java.lang.String getName()
public void setName(java.lang.String?name)
name
- Name of product.public java.lang.String getVendor()
public void setVendor(java.lang.String?vendor)
vendor
- Vendor name.public java.lang.String getVersion()
public void setVersion(java.lang.String?version)
version
- Product version.public Property getProperty()
private void flagAsChanged()
|
|||||||||||
?PREV CLASS? ?NEXT CLASS | FRAMES ? ?NO FRAMES ? ? | ||||||||||
SUMMARY:?NESTED?|?FIELD?|?CONSTR?|?METHOD | DETAIL:?FIELD?|?CONSTR?|?METHOD |