类 AbstractPropertySource

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      (专用程序包) abstract java.util.Properties asProperties()
      to properties.
      (专用程序包) abstract boolean containsKey​(java.lang.String key)
      Tests if the specified object is a key in this propertySource.
      (专用程序包) abstract java.lang.String getProperty​(java.lang.String key)
      get property, if the value can not be got by the special key, the null will be returned.
      (专用程序包) abstract SourceType getType()
      get property's type.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • AbstractPropertySource

        AbstractPropertySource()
    • 方法详细资料

      • getType

        abstract SourceType getType()
        get property's type.
        返回:
        name
      • getProperty

        abstract java.lang.String getProperty​(java.lang.String key)
        get property, if the value can not be got by the special key, the null will be returned.
        参数:
        key - special key
        返回:
        value or null
      • containsKey

        abstract boolean containsKey​(java.lang.String key)
        Tests if the specified object is a key in this propertySource.
        参数:
        key - key – possible key
        返回:
        true if and only if the specified object is a key in this propertySource, false otherwise.
      • asProperties

        abstract java.util.Properties asProperties()
        to properties.
        返回:
        properties