Class AbstractModelFile

    • Field Detail

      • DEFAULT_MODEL_FILE_LOCATION

        public static final ModelFile.ModelFileLocation DEFAULT_MODEL_FILE_LOCATION
        The model file location we use when the location is null after reading.
    • Constructor Detail

      • AbstractModelFile

        public AbstractModelFile​(java.lang.String path)
        the constructor with the name only. (location stays to default)
        Parameters:
        path - the relative path of the file
      • AbstractModelFile

        public AbstractModelFile​(java.lang.String path,
                                 ModelFile.ModelFileLocation location)
        The constructor with filename and location
        Parameters:
        path - the relative path of the model file
        location - the location (repository or resources) where to search for the file
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface ModelFile
        Returns:
        the name used by the ModelFileFinder to find the file.
      • clone

        public CallableModelFileImpl clone()
                                    throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • fillWriteReplace

        protected void fillWriteReplace​(AbstractModelFile writtenObj)
        is called just before serialization. Removes some information so that the default values are not written to xml
      • abstractReadResolve

        protected void abstractReadResolve()
        is called just after deserialization. It configures the object with default values, if none were stored in the serialized version.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object