<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:uajpmf="http://www.gakunin.jp/ns/uapprove-jp/afp/mf" xmlns:afp="urn:mace:shibboleth:2.0:afp" xmlns:mf="urn:mace:shibboleth:2.0:afp:mf:saml" targetNamespace="http://www.gakunin.jp/ns/uapprove-jp/afp/mf" elementFormDefault="qualified">

    <import namespace="urn:mace:shibboleth:2.0:afp" schemaLocation="http://shibboleth.net/schema/idp/shibboleth-afp.xsd"/>
    <import namespace="urn:mace:shibboleth:2.0:afp:mf:saml" schemaLocation="http://shibboleth.net/schema/idp/shibboleth-afp-mf-saml.xsd"/>

    <annotation>
        <documentation>
            A set of uApprove match functions. These match functions only operate against a
            uApprove FilterContext.
        </documentation>
    </annotation>

    <complexType name="AttributeInMetadata">
        <annotation>
            <documentation>
                A match function that evaluates to true if an attribute (or specific values) is specified by
                the requesting entity's AttributeConsumingService SP metadata.
            </documentation>
        </annotation>
        <complexContent>
            <extension base="mf:AttributeInMetadataType">
                <attribute name="onlyIfChecked" type="string">
                    <annotation>
                        <documentation>
                            A boolean flag indicating whether attribute release has been approved by
                            checking checkbox on attribute-release.vm.
                        </documentation>
                    </annotation>
                </attribute>
                <attribute name="attributeName" type="string" use="optional">
                    <annotation>
                        <documentation>The name of a requested attribute to look for.</documentation>
                    </annotation>
                </attribute>
                <attribute name="attributeNameFormat" type="string" use="optional">
                    <annotation>
                        <documentation>The name format of a requested attribute to look for.</documentation>
                    </annotation>
                </attribute>
            </extension>
        </complexContent>
    </complexType>

</schema>
