Example #1
0
void Property::SetDCType(DCType type)
{
    _type = type;
    if ( type == DCType::Invalid )
    {
        _identifier = IRI();
    }
    else if ( type != DCType::Custom )
    {
        _identifier = IRIForDCType(type);
    }
}
PropertyPtr PropertyHolder::PropertyMatching(DCType type, bool lookupParents) const
{
    IRI iri = IRIForDCType(type);
    return PropertyMatching(iri, lookupParents);
}
bool PropertyHolder::ContainsProperty(DCType type, bool lookupParents) const
{
    IRI iri = IRIForDCType(type);
    return ContainsProperty(iri, lookupParents);
}
Example #4
0
const PackageBase::MetadataMap Package::MetadataItemsWithDCType(Metadata::DCType type) const
{
    return MetadataItemsWithProperty(IRIForDCType(type));
}