The property name is any fully-qualified URI. It is
possible for an XMLReader
to recognize a property name but
temporarily be unable to return its value.
Some property values may be available only in specific
contexts, such as before, during, or after a parse.
XMLReaders are not required to recognize any specific property names, though an initial core set is documented for SAX2.
Implementors are free (and encouraged) to invent their own properties, using names built on their own URIs.
Parameter:
name
: property name, which is a fully-qualified URI.Returns:
The current value of the property.
SEE: property_recognized
SEE: property_supported
# Look up the value of a property.
#
# The property name is any fully-qualified URI. It is
# possible for an `XMLReader` to recognize a property name but
# temporarily be unable to return its value.
# Some property values may be available only in specific
# contexts, such as before, during, or after a parse.
#
# XMLReaders are not required to recognize any specific
# property names, though an initial core set is documented for
# SAX2.
#
# Implementors are free (and encouraged) to invent their own properties,
# using names built on their own URIs.
#
# Parameter:
#
# * `name`: property name, which is a fully-qualified URI.
#
# Returns:
#
# The current value of the property.
#
# SEE: `property_recognized`
#
# SEE: `property_supported`
fun property(name: String): nullable Object is abstract
lib/sax/xml_reader.nit:129,2--155,56
# Look up the value of a property.
#
# Parameters:
#
# * `name`: The property name.
#
# Returns:
#
# The current value of the property.
#
# SEE: `property_recognized`
#
# SEE: `property_readable`
redef fun property(name) do
assert sax_recognized: parent != null else
sys.stderr.write("Property: {name}\n")
end
return parent.property(name)
end
lib/sax/helpers/xml_filter_impl.nit:170,2--188,4
redef fun property(name) do
assert sax_recognized: parent != null else
sys.stderr.write("Property: {name}\n")
end
if decl_handler_uri == name then
assert property_readable: property_readable(name) else
sys.stderr.write("Property: {name}\n")
end
return decl_handler
else if lexical_handler_uri == name then
assert property_readable: property_readable(name) else
sys.stderr.write("Property: {name}\n")
end
return lexical_handler
else
return parent.property(name)
end
end
lib/saxophonit/testing.nit:261,2--278,4