118
119 /**
120 * Cast result object to a string.
121 *
122 * @return The object's value as a string
123 */
124 public String str()
125 {
126 return m_val ? "true" : "false";
127 }
128
129 /**
130 * Return a java object that's closest to the representation
131 * that should be handed to an extension.
132 *
133 * @return The object's value as a java object
134 */
135 public Object object()
136 {
137 if(null == m_obj)
138 setObject(new Boolean(m_val));
139 return m_obj;
140 }
141
142 /**
143 * Tell if two objects are functionally equal.
144 *
145 * @param obj2 Object to compare to this
146 *
147 * @return True if the two objects are equal
148 *
149 * @throws javax.xml.transform.TransformerException
150 */
151 public boolean equals(XObject obj2)
152 {
153
154 // In order to handle the 'all' semantics of
155 // nodeset comparisons, we always call the
156 // nodeset function.
157 if (obj2.getType() == XObject.CLASS_NODESET)
158 return obj2.equals(this);
|
118
119 /**
120 * Cast result object to a string.
121 *
122 * @return The object's value as a string
123 */
124 public String str()
125 {
126 return m_val ? "true" : "false";
127 }
128
129 /**
130 * Return a java object that's closest to the representation
131 * that should be handed to an extension.
132 *
133 * @return The object's value as a java object
134 */
135 public Object object()
136 {
137 if(null == m_obj)
138 setObject(Boolean.valueOf(m_val));
139 return m_obj;
140 }
141
142 /**
143 * Tell if two objects are functionally equal.
144 *
145 * @param obj2 Object to compare to this
146 *
147 * @return True if the two objects are equal
148 *
149 * @throws javax.xml.transform.TransformerException
150 */
151 public boolean equals(XObject obj2)
152 {
153
154 // In order to handle the 'all' semantics of
155 // nodeset comparisons, we always call the
156 // nodeset function.
157 if (obj2.getType() == XObject.CLASS_NODESET)
158 return obj2.equals(this);
|