Class BaseCombiningAlg<T extends Decidable>

  • Type Parameters:
    T - type of combined element (Policy, Rule...)
    All Implemented Interfaces:
    CombiningAlg<T>, PdpExtension

    public abstract class BaseCombiningAlg<T extends Decidable>
    extends Object
    implements CombiningAlg<T>
    This class provides a skeletal implementation of the CombiningAlg interface to minimize the effort required to implement this interface.
    • Constructor Detail

      • BaseCombiningAlg

        public BaseCombiningAlg​(String id,
                                Class<T> combinedType)
        Constructor
        Parameters:
        id - the algorithm's id

        WARNING: java.net.URI cannot be used here for XACML category and ID, because not equivalent to XML schema anyURI type. Spaces are allowed in XSD anyURI [1], not in java.net.URI for example. That's why we use String instead.

        [1] http://www.w3.org/TR/xmlschema-2/#anyURI

        combinedType - combined element type
    • Method Detail

      • getId

        public final String getId()
        Description copied from interface: PdpExtension
        Get globally unique ID (e.g. URI) of the extension
        Specified by:
        getId in interface PdpExtension
        Returns:
        extension ID
      • getCombinedElementType

        public final Class<T> getCombinedElementType()
        Get to know whether this is a policy/policySet or rule-combining algorithm
        Specified by:
        getCombinedElementType in interface CombiningAlg<T extends Decidable>
        Returns:
        the combinedElementType