Class XMLCipher.Factory.ReferenceListImpl

    • Field Detail

      • sentry

        private java.lang.Class<?> sentry
      • references

        private java.util.List<Reference> references
    • Constructor Detail

      • ReferenceListImpl

        public ReferenceListImpl​(int type)
        Constructor.
        Parameters:
        type -
    • Method Detail

      • add

        public void add​(Reference reference)
        Adds a reference to this reference list.
        Specified by:
        add in interface ReferenceList
        Parameters:
        reference - the reference to add.
      • remove

        public void remove​(Reference reference)
        Removes a reference from the ReferenceList.
        Specified by:
        remove in interface ReferenceList
        Parameters:
        reference - the reference to remove.
      • size

        public int size()
        Returns the size of the ReferenceList.
        Specified by:
        size in interface ReferenceList
        Returns:
        the size of the ReferenceList.
      • isEmpty

        public boolean isEmpty()
        Indicates if the ReferenceList is empty.
        Specified by:
        isEmpty in interface ReferenceList
        Returns:
        true if the ReferenceList is empty, else false.
      • getReferences

        public java.util.Iterator<Reference> getReferences()
        Returns an Iterator over all the References contained in this ReferenceList.
        Specified by:
        getReferences in interface ReferenceList
        Returns:
        Iterator.
      • toElement

        org.w3c.dom.Element toElement()
      • newDataReference

        public Reference newDataReference​(java.lang.String uri)
        DataReference factory method. Returns a DataReference.
        Specified by:
        newDataReference in interface ReferenceList
        Returns:
        a DataReference.
      • newKeyReference

        public Reference newKeyReference​(java.lang.String uri)
        KeyReference factory method. Returns a KeyReference.
        Specified by:
        newKeyReference in interface ReferenceList
        Returns:
        a KeyReference.