Class ConditionsImpl

    • Field Detail

      • notBefore

        private Instant notBefore
        Value saved in the NotBefore attribute.
      • notOnOrAfter

        private Instant notOnOrAfter
        Value saved in the NotOnOrAfter attribute.
    • Constructor Detail

      • ConditionsImpl

        protected ConditionsImpl​(String namespaceURI,
                                 String elementLocalName,
                                 String namespacePrefix)
        Constructor.
        Parameters:
        namespaceURI - the namespace the element is in
        elementLocalName - the local name of the XML element this Object represents
        namespacePrefix - the prefix for the given namespace
    • Method Detail

      • getNotBefore

        public Instant getNotBefore()
        Get the "not before" condition.
        Specified by:
        getNotBefore in interface Conditions
        Returns:
        the "not before" condition
      • setNotBefore

        public void setNotBefore​(Instant dt)
        Set the "not before" condition.
        Specified by:
        setNotBefore in interface Conditions
        Parameters:
        dt - the "not before" condition
      • getNotOnOrAfter

        public Instant getNotOnOrAfter()
        Get the "not on or after" condition.
        Specified by:
        getNotOnOrAfter in interface Conditions
        Returns:
        the "not on or after" condition
      • setNotOnOrAfter

        public void setNotOnOrAfter​(Instant dt)
        Set the "not on or after" condition.
        Specified by:
        setNotOnOrAfter in interface Conditions
        Parameters:
        dt - the "not on or after" condition
      • getConditions

        public List<Condition> getConditions​(@Nonnull
                                             QName typeOrName)
        Get the conditions with the given schema type or element name.
        Specified by:
        getConditions in interface Conditions
        Parameters:
        typeOrName - the schema type or element name
        Returns:
        the matching conditions
      • getOrderedChildren

        public List<XMLObject> getOrderedChildren()
        Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
        Specified by:
        getOrderedChildren in interface XMLObject
        Returns:
        ordered list of child elements