Class PreBuildAttribute

All Implemented Interfaces:
Touchable, Touched, Viewable, Cacheable, Observed, Retrievable, Serializable, ColumnAccessByName, ObjectModel, Persistent
Direct Known Subclasses:
PreBuildDotAttribute, PreBuildJSONAttribute, SplittedPreBuildAttribute

public class PreBuildAttribute extends FileAttribute implements Touchable
The skeleton for this class was autogenerated by Torque on: [Sat Dec 04 21:34:36 KST 2021] You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
See Also:
  • Constructor Details

    • PreBuildAttribute

      public PreBuildAttribute()
      Creates a new PreBuildAttribute object.
  • Method Details

    • getData

      public Object getData(Touched.BuildType mode) throws Exception
      미리 생성(pre-build)된 File Data 를 구한다.
      Parameters:
      mode - build 대상 (web, mobile web, mobile app)
      Returns:
      파일 내용, 파일이 준비되지 않았으면 안내 문자열
      Throws:
      Exception - 파일을 구하는 중 오류가 발생한 경우
    • getData

      public Object getData(String suffix, Touched.BuildType mode) throws Exception
      미리 생성(pre-build)된 File Data 를 구한다.
      Parameters:
      suffix - 파일 이름에 붙일 suffix
      mode - build 대상 (web, mobile web, mobile app)
      Returns:
      파일 내용, 파일이 준비되지 않았으면 안내 문자열
      Throws:
      Exception - 파일을 구하는 중 오류가 발생한 경우
    • getData

      public Object getData(String suffix, Touched.BuildType mode, boolean force) throws Exception
      미리 생성(pre-build)된 File Data 를 구한다. 파일을 읽을 수 없으면 "NotPrepared..." 안내 문자열을 반환한다.
      Parameters:
      suffix - 파일 이름에 붙일 suffix
      mode - build 대상 (web, mobile web, mobile app)
      force - 강제로 다시 읽을지 여부 (현재 사용하지 않음)
      Returns:
      파일 내용, 파일이 준비되지 않았으면 안내 문자열
      Throws:
      Exception - 파일을 구하는 중 오류가 발생한 경우
    • getPreBuildFile

      public File getPreBuildFile(Touched.BuildType mode) throws Exception
      build 대상에 해당하는 pre-build 파일을 구한다.
      Parameters:
      mode - build 대상 (web, mobile web, mobile app)
      Returns:
      pre-build 파일
      Throws:
      Exception - 파일 경로를 구하는 중 오류가 발생한 경우
    • getPreBuildFile

      public File getPreBuildFile(String suffix, Touched.BuildType mode) throws Exception
      build 대상에 해당하는 pre-build 파일을 구한다. mobile web 은 "m", mobile app 은 "app" 을 파일 이름 앞에 붙인다.
      Parameters:
      suffix - 파일 이름에 붙일 suffix
      mode - build 대상 (web, mobile web, mobile app)
      Returns:
      pre-build 파일
      Throws:
      Exception - 파일 경로를 구하는 중 오류가 발생한 경우
    • getRelativePath

      public String getRelativePath() throws Exception
      DOCUMENT ME!
      Overrides:
      getRelativePath in class FileAttribute
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getFile

      public File getFile() throws Exception
      Deprecated.
      Repository 의 File 을 구한다.
      Overrides:
      getFile in class FileAttribute
      Returns:
      File
      Throws:
      Exception - 파일을 구하는 중 오류가 발생한 경우
    • getDirectory

      public File getDirectory() throws Exception
      Repository
      Specified by:
      getDirectory in interface Touchable
      Returns:
      File
      Throws:
      Exception - folder 를 구하는 중 오류가 발생한 경우
    • getExtension

      public String getExtension() throws Exception
      DOCUMENT ME!
      Specified by:
      getExtension in interface Touched
      Overrides:
      getExtension in class FileAttribute
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • setFileItem

      public void setFileItem(org.apache.commons.fileupload.FileItem v)
      Set the value of file.
      Overrides:
      setFileItem in class FileAttribute
      Parameters:
      v - Value to assign to file.