Class PropInfo

java.lang.Object
io.github.enxign.shed.properties.PropInfo

public class PropInfo extends Object
PropCell 개별 사이트 환경설정 읽어오기
Since:
2021-02-01
Version:
1.0
 수정일        수정자       수정내용
 ----------   ---------   -------------------------------
 2021-02-01   first       create
 
Author:
enxign
  • Field Details

    • cellProp

      protected InputStream cellProp
      개별 사이트 환경설정 읽어오기
    • infoProp

      protected PropSiteDTO infoProp
      개별 사이트 환경설정값 저장
  • Constructor Details

    • PropInfo

      public PropInfo(String path, String name) throws IOException
      PropCell 생성자
      Parameters:
      path - 파일 경로
      name - 파일 이름
      Throws:
      IOException - 예외처리
  • Method Details

    • getProperties

      public Properties getProperties()
      개별 사이트 환경설정
      Returns:
      Properties
    • getProperties

      public String getProperties(String key)
      개별 사이트 환경설정 속성값 읽어오기
      Parameters:
      key - 속성 키
      Returns:
      속성 값
    • setPropertyValue

      public void setPropertyValue(String key, String value)
      개별 사이트 환경설정 속성값 설정
      Parameters:
      key - 속성 키
      value - 속성 값
    • isProperties

      public boolean isProperties()
      개별 사이트 환경설정이 존재하는지 확인
      Returns:
      true if properties exist, false otherwise
    • saveProperties

      public void saveProperties() throws IOException
      개별 사이트 환경설정 저장
      Throws:
      IOException - 예외처리
    • getProperty

      public PropSiteDTO getProperty()
      개별 사이트 설정 속성 읽어오기
      Returns:
      PropSiteDTO
    • isProperty

      public boolean isProperty()
      개별 사이트 설정 속성이 존재하는지 확인
      Returns:
      true if property exists, false otherwise