Class MetadataEntity

    • Constructor Detail

      • MetadataEntity

        protected MetadataEntity()
        Constructs an initially empty metadata entity.
      • MetadataEntity

        protected MetadataEntity​(Object source)
                          throws ClassCastException
        Constructs a metadata entity initialized with the values from the specified metadata. The source metadata must implements the same metadata interface than this class.
        Parameters:
        source - The metadata to copy values from.
        Throws:
        ClassCastException - if the specified metadata don't implements the expected metadata interface.
        Since:
        2.4
    • Method Detail

      • ensureNonNull

        protected static void ensureNonNull​(String name,
                                            Object object)
                                     throws InvalidMetadataException
        Makes sure that an argument is non-null. This is used for checking if a mandatory attribute is presents.
        Parameters:
        name - Argument name.
        object - User argument.
        Throws:
        InvalidMetadataException - if object is null.
        Since:
        2.4