1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
30 #include <ary/idl/i_property.hxx>
31 #include <ary/idl/ik_property.hxx>
34 // NOT FULLY DECLARED SERVICES
35 #include <cosv/tpl/processor.hxx>
44 Property::Property( const String
& i_sName
,
48 Stereotypes i_stereotypes
)
53 aStereotypes(i_stereotypes
)
63 Property::do_Accept( csv::ProcessorIfc
& io_processor
) const
65 csv::CheckedCall(io_processor
, *this);
69 Property::get_AryClass() const
75 Property::inq_LocalName() const
81 Property::inq_NameRoom() const
87 Property::inq_Owner() const
93 Property::inq_SightLevel() const
98 namespace ifc_property
101 inline const Property
&
102 property_cast( const CodeEntity
& i_ce
)
104 csv_assert( i_ce
.AryClass() == Property::class_id
);
105 return static_cast< const Property
& >(i_ce
);
109 attr::HasAnyStereotype( const CodeEntity
& i_ce
)
111 return property_cast(i_ce
).aStereotypes
.HasAny();
115 attr::IsReadOnly( const CodeEntity
& i_ce
)
117 return property_cast(i_ce
).aStereotypes
.IsReadOnly();
121 attr::IsBound( const CodeEntity
& i_ce
)
123 return property_cast(i_ce
).aStereotypes
.IsBound();
127 attr::IsConstrained( const CodeEntity
& i_ce
)
129 return property_cast(i_ce
).aStereotypes
.IsConstrained();
133 attr::IsMayBeAmbiguous( const CodeEntity
& i_ce
)
135 return property_cast(i_ce
).aStereotypes
.IsMayBeAmbiguous();
139 attr::IsMayBeDefault( const CodeEntity
& i_ce
)
141 return property_cast(i_ce
).aStereotypes
.IsMayBeDefault();
145 attr::IsMayBeVoid( const CodeEntity
& i_ce
)
147 return property_cast(i_ce
).aStereotypes
.IsMayBeVoid();
151 attr::IsRemovable( const CodeEntity
& i_ce
)
153 return property_cast(i_ce
).aStereotypes
.IsRemovable();
157 attr::IsTransient( const CodeEntity
& i_ce
)
159 return property_cast(i_ce
).aStereotypes
.IsTransient();
163 attr::Type( const CodeEntity
& i_ce
)
165 return property_cast(i_ce
).nType
;
168 } // namespace ifc_property
174 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */