summaryrefslogtreecommitdiffstats
path: root/tags/cpp-0.1.incubating-M1-RC3b/sdo/runtime/core/src/commonj/sdo/PropertyDefinition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tags/cpp-0.1.incubating-M1-RC3b/sdo/runtime/core/src/commonj/sdo/PropertyDefinition.cpp')
-rw-r--r--tags/cpp-0.1.incubating-M1-RC3b/sdo/runtime/core/src/commonj/sdo/PropertyDefinition.cpp285
1 files changed, 0 insertions, 285 deletions
diff --git a/tags/cpp-0.1.incubating-M1-RC3b/sdo/runtime/core/src/commonj/sdo/PropertyDefinition.cpp b/tags/cpp-0.1.incubating-M1-RC3b/sdo/runtime/core/src/commonj/sdo/PropertyDefinition.cpp
deleted file mode 100644
index e83e66d656..0000000000
--- a/tags/cpp-0.1.incubating-M1-RC3b/sdo/runtime/core/src/commonj/sdo/PropertyDefinition.cpp
+++ /dev/null
@@ -1,285 +0,0 @@
-/*
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/* $Rev$ $Date: 2005/12/22 16:54:15 $ */
-
-#include "commonj/sdo/PropertyDefinition.h"
-#include "commonj/sdo/PropertyDefinitionImpl.h"
-
-namespace commonj
-{
- namespace sdo
- {
-
- PropertyDefinition::PropertyDefinition()
- {
- propertydefinition = new PropertyDefinitionImpl();
- }
-
- PropertyDefinition::~PropertyDefinition()
- {
- if (propertydefinition) delete propertydefinition;
- }
-
- void PropertyDefinition::copy (const PropertyDefinition& pd)
- {
- if (propertydefinition != 0) delete propertydefinition;
- propertydefinition = new PropertyDefinitionImpl(*(pd.propertydefinition));
- }
-
- PropertyDefinition::PropertyDefinition(const PropertyDefinition& pd)
- {
- copy(pd);
- }
-
- PropertyDefinition& PropertyDefinition::operator=(const PropertyDefinition& pd)
- {
- if (this != &pd)
- {
- copy(pd);
- }
- return *this;
- }
-
- PropertyDefinitionImpl* PropertyDefinition::getPropertyDefinition()
- {
- return propertydefinition;
- }
-
- // where this property is to be substituted for another
- void PropertyDefinition::setSubstituteName(const char * name)
- {
- propertydefinition->substituteName = name;
- }
-
- const char* PropertyDefinition::getSubstituteName() const
- {
- return (const char *)propertydefinition->substituteName;
- }
-
-
- void PropertyDefinition::setSubstituteUri(const char* name)
- {
- propertydefinition->substituteUri = name;
- }
-
- const char* PropertyDefinition::getSubstituteUri() const
- {
- return (const char*)propertydefinition->substituteUri;
- }
-
- // where there are substitute names for this property.
- void PropertyDefinition::addSubstitute(const char* name,
- const char* localname)
- {
- propertydefinition->substituteNames.push_back(name);
- propertydefinition->substituteLocalNames.push_back(localname);
- }
-
- int PropertyDefinition::getSubstituteCount() const
- {
- return propertydefinition->substituteNames.size();
- }
-
- const char* PropertyDefinition::getSubstituteNames(int index) const
- {
- if (index >= 0 && index < propertydefinition->substituteNames.size())
- {
- return propertydefinition->substituteNames[index];;
- }
- return 0;
- }
-
- const char* PropertyDefinition::getSubstituteLocalNames(int index) const
- {
- if (index >= 0 && index < propertydefinition->substituteLocalNames.size())
- {
- return propertydefinition->substituteLocalNames[index];;
- }
- return 0;
- }
-
-
- void PropertyDefinition::setAliases(const char* aliases)
- {
- propertydefinition->aliases = aliases;
- }
-
- const char* PropertyDefinition::getAliases() const
- {
- return (const char *)propertydefinition->aliases;
- }
-
- void PropertyDefinition::setName(const char* name)
- {
- propertydefinition->name = name;
- }
-
- const char* PropertyDefinition::getName() const
- {
- return (const char *)propertydefinition->name;
- }
-
- void PropertyDefinition::setLocalName(const char* name)
- {
- propertydefinition->localname = name;
- }
-
- const char* PropertyDefinition::getLocalName() const
- {
- return (const char*)propertydefinition->localname;
- }
-
- void PropertyDefinition::setType(const char* uri, const char* name)
- {
- propertydefinition->typeUri = uri;
- propertydefinition->typeName = name;
- propertydefinition->fullTypeName = uri;
- propertydefinition->fullTypeName += "#";
- propertydefinition->fullTypeName += name;
- }
-
- const char * PropertyDefinition::getTypeName() const
- {
- return propertydefinition->typeName;
- }
-
- const char * PropertyDefinition::getTypeUri() const
- {
- return propertydefinition->typeUri;
- }
-
- const char * PropertyDefinition::getTypeFullName() const
- {
- return propertydefinition->fullTypeName;
- }
-
- const char * PropertyDefinition::getTypeFullLocalName() const
- {
- return propertydefinition->fullLocalTypeName;
- }
-
- void PropertyDefinition::setTypeFullLocalName(const char* name)
- {
- propertydefinition->fullLocalTypeName = name;
- }
-
-
- void PropertyDefinition::setDefaultValue(const char* value)
- {
- propertydefinition->defaultValue = value;
- }
-
- const char* PropertyDefinition::getDefaultValue() const
- {
- return propertydefinition->defaultValue;
- }
-
- bool PropertyDefinition::getIsMany() const
- {
- return propertydefinition->isMany;
- }
-
- bool PropertyDefinition::getIsContainment() const
- {
- return propertydefinition->isContainment;
- }
-
- bool PropertyDefinition::getIsReadOnly() const
- {
- return propertydefinition->isReadOnly;
- }
-
- bool PropertyDefinition::getIsID() const
- {
- return propertydefinition->isID;
- }
-
- bool PropertyDefinition::getIsIDREF() const
- {
- return propertydefinition->isIDREF;
- }
-
- bool PropertyDefinition::getIsReference() const
- {
- return propertydefinition->isReference;
- }
-
- bool PropertyDefinition::getIsElement() const
- {
- return propertydefinition->isElement;
- }
-
- bool PropertyDefinition::getIsQName() const
- {
- return propertydefinition->isQName;
- }
-
- bool PropertyDefinition::getIsSubstitute() const
- {
- return propertydefinition->isSubstitute;
- }
-
-
- void PropertyDefinition::setIsMany(bool value)
- {
- propertydefinition->isMany = value;
- }
-
- void PropertyDefinition::setIsContainment(bool value)
- {
- propertydefinition->isContainment = value;
- }
-
- void PropertyDefinition::setIsReadOnly(bool value)
- {
- propertydefinition->isReadOnly = value;
- }
-
- void PropertyDefinition::setIsID(bool value)
- {
- propertydefinition->isID = value;
- }
-
- void PropertyDefinition::setIsIDREF(bool value)
- {
- propertydefinition->isIDREF = value;
- }
-
- void PropertyDefinition::setIsReference(bool value)
- {
- propertydefinition->isReference = value;
- }
-
- void PropertyDefinition::setIsElement(bool value)
- {
- propertydefinition->isElement = value;
- }
-
- void PropertyDefinition::setIsQName(bool value)
- {
- propertydefinition->isQName = value;
- }
-
- void PropertyDefinition::setIsSubstitute(bool value)
- {
- propertydefinition->isSubstitute = value;
- }
-
-
- } // End - namespace sdo
-} // End - namespace commonj