src/PredFinder/elf/ElfIndividual.cpp
/**
 * Construct an individual from a particular ElfString and ElfTypeSet.
 *
 * @param uri Document-unique identifier, presumably
 * generated by a factory method.
 * @param name A previously constructed ElfString
 * containing a name or descriptor string and
 * possibly offsets.
 * @param type A previously constructed ElfType
 * containing a type string and possibly offsets.
 *
 * @author nward@bbn.com
 * @date 2010.06.23
 **/
Construct an individual from a particular ElfString and ElfTypeSet.

@param uri Document-unique identifier, presumably
generated by a factory method.
@param name A previously constructed ElfString
containing a name or descriptor string and
possibly offsets.
@param type A previously constructed ElfType
containing a type string and possibly offsets.


Construct an individual from a particular ElfString and ElfTypeSet . @param uri Document - unique identifier presumably generated by a factory method . @param name A previously constructed ElfString containing a name or descriptor string and possibly offsets . @param type A previously constructed ElfType containing a type string and possibly offsets .
ElfIndividual::ElfIndividual(const std::wstring & uri, const ElfString_ptr name_or_desc, const ElfType_ptr type) {
	initialize();
	_generated_uri = uri;
	_name_or_desc = name_or_desc;
	_types.insert(type);
	if (type.get() != NULL && boost::starts_with(type->get_value(), L"xsd:")) {
		_value = get_text_according_to_type(type->get_value(), type->get_string());
		_is_value = true;
	}
}
ElfIndividual :: ElfIndividual ( const std :: wstring & uri , const ElfString_ptr name_or_desc , const ElfType_ptr type ) { initialize ( ) ; _generated_uri = uri ; _name_or_desc = name_or_desc ; _types . insert ( type ) ; if ( type . get ( ) != NULL && boost :: starts_with ( type -> get_value ( ) , L" " ) ) { _value = get_text_according_to_type ( type -> get_value ( ) , type -> get_string ( ) ) ; _is_value = true ; } }
Construct an individual from a particular ElfString and ElfTypeSet.
Construct an individual from a particular ElfString and ElfTypeSet .
// Set all IDs to empty
 // Store the individual's within-document ID, best name text, and a type
 // Try to extract a value if this contained a literal type
