Class TargetPropertiesAnnotation

    • Constructor Detail

      • TargetPropertiesAnnotation

        public TargetPropertiesAnnotation()
        Creates a new TargetPropertiesAnnotation object.
    • Method Detail

      • set

        public void set​(LocaleId locId,
                        Map<String,​Property> properties)
        Sets properties for a given target locale.
        Parameters:
        locId - Code of the target locale for this property.
        properties - The properties to set.
      • get

        public Map<String,​Property> get​(LocaleId locId)
        Gets the properties for a given target locale.
        Parameters:
        locId - Code of the target locale of the properties to retrieve.
        Returns:
        The properties, or null if none has been found.
      • isEmpty

        public boolean isEmpty()
        Indicates if this annotation has any properties.
        Returns:
        True if this annotation counts at least one property.
      • getLocales

        public Set<LocaleId> getLocales()
        Gets a set of the target locales available in this annotation.
        Returns:
        A set of the target locales in this annotation.