Class BaseDomainLabelList<T extends java.lang.Comparable<?>,​R extends DomainLabelEntry<T,​?>>

    • Constructor Detail

      • BaseDomainLabelList

        public BaseDomainLabelList()
    • Method Detail

      • getRevisionId

        public long getRevisionId()
        Returns the ID of this revision, or throws if null.
      • getName

        public java.lang.String getName()
        Returns the name of the reserved list.
      • getCreationTimestamp

        public org.joda.time.DateTime getCreationTimestamp()
        Returns the creation time of this revision of the reserved list.
      • parse

        public<java.lang.String,​R> parse​(java.lang.Iterable<java.lang.String> lines)
        Turns the list CSV data into a map of labels to parsed data of type R.
        lines - the CSV file, line by line
      • splitOnComment

        public static java.util.List<java.lang.String> splitOnComment​(java.lang.String line)
        Helper function to extract the comment from an input line. Returns a list containing the line (sans comment) and the comment (in that order). If the line was blank or empty, then this method returns an empty list.
      • getReferencingTlds

        public final<java.lang.String> getReferencingTlds()
        Gets the names of the tlds that reference this list.
      • refersToList

        protected abstract boolean refersToList​(Tld tld,
                                                java.lang.String name)