You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2001/06/21 16:25:35 UTC
cvs commit: xml-xerces/c/src/framework XMLAttDef.cpp XMLAttDef.hpp XMLElementDecl.hpp
knoaman 01/06/21 07:25:34
Modified: c/src/framework XMLAttDef.cpp XMLAttDef.hpp
XMLElementDecl.hpp
Log:
Fix for bug 1946
Revision Changes Path
1.8 +3 -1 xml-xerces/c/src/framework/XMLAttDef.cpp
Index: XMLAttDef.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/framework/XMLAttDef.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XMLAttDef.cpp 2001/05/11 13:25:30 1.7
+++ XMLAttDef.cpp 2001/06/21 14:25:24 1.8
@@ -55,7 +55,7 @@
*/
/**
- * $Id: XMLAttDef.cpp,v 1.7 2001/05/11 13:25:30 tng Exp $
+ * $Id: XMLAttDef.cpp,v 1.8 2001/06/21 14:25:24 knoaman Exp $
*/
@@ -162,6 +162,7 @@
, fType(type)
, fValue(0)
, fCreateReason(XMLAttDef::NoReason)
+ , fExternalAttribute(false)
{
}
@@ -177,6 +178,7 @@
, fType(type)
, fValue(0)
, fCreateReason(XMLAttDef::NoReason)
+ , fExternalAttribute(false)
{
try
{
1.11 +32 -1 xml-xerces/c/src/framework/XMLAttDef.hpp
Index: XMLAttDef.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/framework/XMLAttDef.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- XMLAttDef.hpp 2001/05/11 13:25:31 1.10
+++ XMLAttDef.hpp 2001/06/21 14:25:26 1.11
@@ -56,6 +56,9 @@
/*
* $Log: XMLAttDef.hpp,v $
+ * Revision 1.11 2001/06/21 14:25:26 knoaman
+ * Fix for bug 1946
+ *
* Revision 1.10 2001/05/11 13:25:31 tng
* Copyright update.
*
@@ -343,6 +346,15 @@
*/
CreateReasons getCreateReason() const;
+ /** Indicate whether this attribute has been declared externally
+ *
+ * This method returns a boolean that indicates whether this attribute
+ * has been declared externally.
+ *
+ * @return true if this attribute has been declared externally, else false.
+ */
+ bool isExternal() const;
+
//@}
@@ -423,6 +435,11 @@
*/
void setCreateReason(const CreateReasons newReason);
+ /**
+ * Set the attribute decl to indicate external declaration
+ */
+ void setExternalAttDeclaration(const bool aValue);
+
//@}
protected :
@@ -489,6 +506,9 @@
// This flag tells us how this attribute got created. Sometimes even
// the attribute was not declared for the element, we want to fault
// fault it into the pool to avoid lots of redundant errors.
+ //
+ // fExternalAttribute
+ // This flag indicates whether or not the attribute was declared externally.
// -----------------------------------------------------------------------
DefAttTypes fDefaultType;
XMLCh* fEnumeration;
@@ -496,7 +516,8 @@
bool fProvided;
AttTypes fType;
XMLCh* fValue;
- CreateReasons fCreateReason;
+ CreateReasons fCreateReason;
+ bool fExternalAttribute;
};
@@ -539,6 +560,11 @@
return fCreateReason;
}
+inline bool XMLAttDef::isExternal() const
+{
+ return fExternalAttribute;
+}
+
// ---------------------------------------------------------------------------
// XMLAttDef: Setter methods
@@ -579,6 +605,11 @@
XMLAttDef::setCreateReason(const XMLAttDef::CreateReasons newReason)
{
fCreateReason = newReason;
+}
+
+inline void XMLAttDef::setExternalAttDeclaration(const bool aValue)
+{
+ fExternalAttribute = aValue;
}
#endif
1.16 +6 -3 xml-xerces/c/src/framework/XMLElementDecl.hpp
Index: XMLElementDecl.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/framework/XMLElementDecl.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- XMLElementDecl.hpp 2001/05/11 13:25:32 1.15
+++ XMLElementDecl.hpp 2001/06/21 14:25:28 1.16
@@ -56,6 +56,9 @@
/*
* $Log: XMLElementDecl.hpp,v $
+ * Revision 1.16 2001/06/21 14:25:28 knoaman
+ * Fix for bug 1946
+ *
* Revision 1.15 2001/05/11 13:25:32 tng
* Copyright update.
*
@@ -505,7 +508,7 @@
/** Set the element decl to indicate external declaration
*
*/
- void setExternalElemDeclaration();
+ void setExternalElemDeclaration(const bool aValue);
//@}
@@ -681,9 +684,9 @@
}
-inline void XMLElementDecl::setExternalElemDeclaration()
+inline void XMLElementDecl::setExternalElemDeclaration(const bool aValue)
{
- fExternalElement = true;
+ fExternalElement = aValue;
}
#endif
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org