クラス Material

    • フィールドの詳細

      • NULL_OBJECT

        public static final Material NULL_OBJECT
    • メソッドの詳細

      • newEmptyMaterial

        public static Material newEmptyMaterial()
      • getFileType

        public IFileType getFileType()
      • getDescription

        public java.lang.String getDescription()
      • getDescriptionSignature

        public java.lang.String getDescriptionSignature()
      • getJobName

        public JobName getJobName()
      • getIndexEntry

        public IndexEntry getIndexEntry()
      • getMetadata

        public Metadata getMetadata()
      • getRelativePath

        public java.nio.file.Path getRelativePath()
        戻り値:
        the String of relative path of the MaterialIO file, relative to the root dir. On Mac and Linux, the path separator will be '/', On Windows, the path separator will be '\'

        Materialオブジェクトが表すファイルのパス(ただしrootを基底とする相対パス)のString表現を返す。

        ああ、このメソッドひとつをきれいに実装するために materialstore を作ったのだ。 Materialsライブラリのぐちゃぐちゃさ加減に比べてこの実装の簡潔なことよ。

      • getStore

        public Store getStore()
      • getNoCounterpartPngAsInputStream

        public static java.io.InputStream getNoCounterpartPngAsInputStream()
      • getNoCounterpartTxtAsInputStream

        public static java.io.InputStream getNoCounterpartTxtAsInputStream()
      • getRelativeURL

        public java.lang.String getRelativeURL()
        戻り値:
        the returned value of getRelative() is stringified, and replace all of `\` character to `/` to make it a valid relative URL string. Material.NULL_OBJECT.getRelativeURL() will return a string which represent the "No Material is Found" image encoded by base64. It will like something like "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4 //8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="
      • getShortID

        public java.lang.String getShortID()
        定義:
        getShortID インタフェース内 Identifiable
      • toPath

        public java.nio.file.Path toPath()
        turn the Material object to a Path relative to the root.
        戻り値:
        the absolute Path of this Material
      • isSimilarTo

        public boolean isSimilarTo​(Material other)
      • equals

        public boolean equals​(java.lang.Object obj)
        オーバーライド:
        equals クラス内 java.lang.Object
      • hashCode

        public int hashCode()
        オーバーライド:
        hashCode クラス内 java.lang.Object
      • isEmpty

        public boolean isEmpty()
      • toString

        public java.lang.String toString()
        オーバーライド:
        toString クラス内 java.lang.Object
      • compareTo

        public int compareTo​(Material other)
        定義:
        compareTo インタフェース内 java.lang.Comparable<Material>
      • toJson

        public java.lang.String toJson()
        定義:
        toJson インタフェース内 Jsonifiable
      • toJson

        public java.lang.String toJson​(boolean prettyPrint)
        定義:
        toJson インタフェース内 Jsonifiable
      • toVariableJson

        public java.lang.String toVariableJson​(SortKeys sortKeys)
      • toVariableJson

        public java.lang.String toVariableJson​(SortKeys sortKeys,
                                               boolean prettyPrint)