LibreOffice Module extensions (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
pcr::XSDDataType Class Reference

#include <xsddatatypes.hxx>

Inheritance diagram for pcr::XSDDataType:
[legend]
Collaboration diagram for pcr::XSDDataType:
[legend]

Public Member Functions

 XSDDataType (const css::uno::Reference< css::xsd::XDataType > &_rxDataType)
 
const css::uno::Reference< css::xsd::XDataType > & getUnoDataType () const
 retrieves the underlying UNO component More...
 
sal_Int16 classify () const
 classifies the data typ More...
 
OUString getName () const
 
bool isBasicType () const
 
bool hasFacet (const OUString &_rFacetName) const
 determines whether a given facet exists at the type More...
 
css::uno::Any getFacet (const OUString &_rFacetName)
 retrieves a facet value More...
 
void setFacet (const OUString &_rFacetName, const css::uno::Any &_rFacetValue)
 sets a facet value More...
 
void copyFacetsFrom (const ::rtl::Reference< XSDDataType > &_pSourceType)
 copies as much facets (values, respectively) from a give data type instance More...
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Protected Member Functions

virtual ~XSDDataType () override
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 XSDDataType (const XSDDataType &)=delete
 
XSDDataTypeoperator= (const XSDDataType &)=delete
 

Private Attributes

css::uno::Reference< css::xsd::XDataType > m_xDataType
 
css::uno::Reference< css::beans::XPropertySetInfo > m_xFacetInfo
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 42 of file xsddatatypes.hxx.

Constructor & Destructor Documentation

◆ XSDDataType() [1/2]

pcr::XSDDataType::XSDDataType ( const css::uno::Reference< css::xsd::XDataType > &  _rxDataType)
explicit

◆ ~XSDDataType()

pcr::XSDDataType::~XSDDataType ( )
overrideprotectedvirtual

Definition at line 62 of file xsddatatypes.cxx.

◆ XSDDataType() [2/2]

pcr::XSDDataType::XSDDataType ( const XSDDataType )
privatedelete

Member Function Documentation

◆ classify()

sal_Int16 pcr::XSDDataType::classify ( ) const

classifies the data typ

Definition at line 67 of file xsddatatypes.cxx.

References Exception, and TOOLS_WARN_EXCEPTION.

◆ copyFacetsFrom()

void pcr::XSDDataType::copyFacetsFrom ( const ::rtl::Reference< XSDDataType > &  _pSourceType)

copies as much facets (values, respectively) from a give data type instance

Definition at line 163 of file xsddatatypes.cxx.

References Exception, and TOOLS_WARN_EXCEPTION.

◆ getFacet()

Any pcr::XSDDataType::getFacet ( const OUString &  _rFacetName)

retrieves a facet value

Definition at line 122 of file xsddatatypes.cxx.

References Any, Exception, and TOOLS_WARN_EXCEPTION.

◆ getName()

OUString pcr::XSDDataType::getName ( ) const

Definition at line 89 of file xsddatatypes.cxx.

References pcr::getSave().

◆ getUnoDataType()

const css::uno::Reference< css::xsd::XDataType > & pcr::XSDDataType::getUnoDataType ( ) const
inline

retrieves the underlying UNO component

Definition at line 57 of file xsddatatypes.hxx.

References m_xDataType.

◆ hasFacet()

bool pcr::XSDDataType::hasFacet ( const OUString &  _rFacetName) const

determines whether a given facet exists at the type

Definition at line 108 of file xsddatatypes.cxx.

References Exception, and TOOLS_WARN_EXCEPTION.

◆ isBasicType()

bool pcr::XSDDataType::isBasicType ( ) const

Definition at line 83 of file xsddatatypes.cxx.

References pcr::getSave().

◆ operator=()

XSDDataType & pcr::XSDDataType::operator= ( const XSDDataType )
privatedelete

◆ setFacet()

void pcr::XSDDataType::setFacet ( const OUString &  _rFacetName,
const css::uno::Any &  _rFacetValue 
)

sets a facet value

Definition at line 95 of file xsddatatypes.cxx.

References Exception, and TOOLS_WARN_EXCEPTION.

Member Data Documentation

◆ m_xDataType

css::uno::Reference< css::xsd::XDataType > pcr::XSDDataType::m_xDataType
private

Definition at line 46 of file xsddatatypes.hxx.

Referenced by getUnoDataType().

◆ m_xFacetInfo

css::uno::Reference< css::beans::XPropertySetInfo > pcr::XSDDataType::m_xFacetInfo
private

Definition at line 48 of file xsddatatypes.hxx.


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