LibreOffice Module jvmfwk (master) 1
Public Member Functions | Public Attributes | List of all members
jfw::CNodeJavaInfo Class Reference

represents the settings saved in the /java/javaInfo element. More...

#include <elements.hxx>

Public Member Functions

 CNodeJavaInfo ()
 
void loadFromNode (xmlDoc *pDoc, xmlNode *pJavaInfo)
 reads the node /java/javaInfo. More...
 
void writeToNode (xmlDoc *pDoc, xmlNode *pJavaInfo) const
 The attribute nil will be set to false. More...
 
std::unique_ptr< JavaInfomakeJavaInfo () const
 returns NULL if javaInfo is nil. More...
 

Public Attributes

bool m_bEmptyNode
 if true, then javaInfo is empty. More...
 
OString sAttrVendorUpdate
 Contains the value of the <updated> element of the javavendors.xml after loadFromNode was called. More...
 
bool bNil
 contains the nil value of the /java/javaInfo@xsi:nil attribute. More...
 
bool bAutoSelect
 contains the value of the /java/javaInfo@autoSelect attribute. More...
 
OUString sVendor
 
OUString sLocation
 
OUString sVersion
 
sal_uInt64 nRequirements
 
::rtl::ByteSequence arVendorData
 

Detailed Description

represents the settings saved in the /java/javaInfo element.

It is used within class NodeJava which determines the settings file.

Definition at line 55 of file elements.hxx.

Constructor & Destructor Documentation

◆ CNodeJavaInfo()

jfw::CNodeJavaInfo::CNodeJavaInfo ( )

Definition at line 675 of file elements.cxx.

Member Function Documentation

◆ loadFromNode()

void jfw::CNodeJavaInfo::loadFromNode ( xmlDoc *  pDoc,
xmlNode *  pJavaInfo 
)

reads the node /java/javaInfo.

If javaInfo@xsi:nil = true then member bNil is set to true and no further elements are read.

Definition at line 681 of file elements.cxx.

References arVendorData, bAutoSelect, bNil, jfw::decodeBase16(), JFW_E_ERROR, m_bEmptyNode, nRequirements, NS_SCHEMA_INSTANCE, sAttrVendorUpdate, sLocation, sVendor, and sVersion.

◆ makeJavaInfo()

std::unique_ptr< JavaInfo > jfw::CNodeJavaInfo::makeJavaInfo ( ) const

returns NULL if javaInfo is nil.

Definition at line 883 of file elements.cxx.

References arVendorData, bNil, m_bEmptyNode, nRequirements, sLocation, sVendor, and sVersion.

Referenced by jfw::MergedSettings::createJavaInfo().

◆ writeToNode()

void jfw::CNodeJavaInfo::writeToNode ( xmlDoc *  pDoc,
xmlNode *  pJavaInfo 
) const

The attribute nil will be set to false.

The function gets the value javaSettings/updated from the javavendors.xml and writes it to javaInfo@vendorUpdate in javasettings.xml

Definition at line 783 of file elements.cxx.

References arVendorData, bAutoSelect, jfw::encodeBase16(), jfw::getElementUpdated(), m_bEmptyNode, nRequirements, NS_SCHEMA_INSTANCE, sLocation, sVendor, and sVersion.

Member Data Documentation

◆ arVendorData

::rtl::ByteSequence jfw::CNodeJavaInfo::arVendorData

Definition at line 85 of file elements.hxx.

Referenced by loadFromNode(), makeJavaInfo(), and writeToNode().

◆ bAutoSelect

bool jfw::CNodeJavaInfo::bAutoSelect

contains the value of the /java/javaInfo@autoSelect attribute.

Default is true. If it is false then the user has modified the JRE selection by actively choosing a JRE from the options dialog. That is, the function jfw_setSelectedJRE was called. Contrary, the function jfw_findAndSelectJRE sets the attribute to true.

Definition at line 80 of file elements.hxx.

Referenced by loadFromNode(), and writeToNode().

◆ bNil

bool jfw::CNodeJavaInfo::bNil

contains the nil value of the /java/javaInfo@xsi:nil attribute.

Default is true;

Definition at line 73 of file elements.hxx.

Referenced by loadFromNode(), and makeJavaInfo().

◆ m_bEmptyNode

bool jfw::CNodeJavaInfo::m_bEmptyNode

if true, then javaInfo is empty.

When writeToNode is called then all child elements are deleted.

Definition at line 63 of file elements.hxx.

Referenced by loadFromNode(), makeJavaInfo(), and writeToNode().

◆ nRequirements

sal_uInt64 jfw::CNodeJavaInfo::nRequirements

Definition at line 84 of file elements.hxx.

Referenced by loadFromNode(), makeJavaInfo(), and writeToNode().

◆ sAttrVendorUpdate

OString jfw::CNodeJavaInfo::sAttrVendorUpdate

Contains the value of the <updated> element of the javavendors.xml after loadFromNode was called.

It is not used, when the javaInfo node is written. see writeToNode

Definition at line 69 of file elements.hxx.

Referenced by jfw::MergedSettings::getJavaInfoAttrVendorUpdate(), and loadFromNode().

◆ sLocation

OUString jfw::CNodeJavaInfo::sLocation

Definition at line 82 of file elements.hxx.

Referenced by loadFromNode(), makeJavaInfo(), and writeToNode().

◆ sVendor

OUString jfw::CNodeJavaInfo::sVendor

Definition at line 81 of file elements.hxx.

Referenced by loadFromNode(), makeJavaInfo(), and writeToNode().

◆ sVersion

OUString jfw::CNodeJavaInfo::sVersion

Definition at line 83 of file elements.hxx.

Referenced by loadFromNode(), makeJavaInfo(), and writeToNode().


The documentation for this class was generated from the following files: