Klasse PropertiesSourceFormat

java.lang.Object
org.apache.torque.generator.source.stream.PropertiesSourceFormat
Alle implementierten Schnittstellen:
StreamSourceFormat

public final class PropertiesSourceFormat extends Object implements StreamSourceFormat
The source type representing an properties source. $Id: PropertiesSourceFormat.java 1917241 2024-04-21 13:29:41Z tv $
  • Felddetails

    • ROOT_ELEMENT_NAME

      public static final String ROOT_ELEMENT_NAME
      The name of the root element.
      Siehe auch:
    • ENTRY_ELEMENT_NAME

      public static final String ENTRY_ELEMENT_NAME
      The name of the entry element.
      Siehe auch:
    • KEY_ATTRIBUTE_NAME

      public static final String KEY_ATTRIBUTE_NAME
      The name of the key attribute of the entry element.
      Siehe auch:
  • Konstruktordetails

    • PropertiesSourceFormat

      public PropertiesSourceFormat()
  • Methodendetails

    • getKey

      public String getKey()
      Returns an unique key for the source type.
      Angegeben von:
      getKey in Schnittstelle StreamSourceFormat
      Gibt zurück:
      "properties".
    • getFilenameExtension

      public String getFilenameExtension()
      Gets the filename extension this source type typically has.
      Angegeben von:
      getFilenameExtension in Schnittstelle StreamSourceFormat
      Gibt zurück:
      "properties".
    • parse

      public SourceElement parse(InputStream inputStream, ControllerState controllerState) throws SourceException
      Parses a Stream in Properties format and returns the root element of the created element tree.
      Angegeben von:
      parse in Schnittstelle StreamSourceFormat
      Parameter:
      inputStream - the input stream to parse, not null.
      controllerState - the controller state.
      Gibt zurück:
      the root element of the created tree, not null.
      Löst aus:
      SourceException - if an error occurred when reading from the input stream.
      IllegalArgumentException - if the input stream contains a malformed unicode escape sequence.
      NullPointerException - if inputStream is null.
    • hashCode

      public int hashCode()
      Returns a hash code of this instance consistent with equals. As all instances of this class are equal to each other, the hash code is always the same.
      Setzt außer Kraft:
      hashCode in Klasse Object
      Gibt zurück:
      1.
    • equals

      public boolean equals(Object other)
      Checks whether other is equal to this instance. All instances of this class are equal to each other.
      Setzt außer Kraft:
      equals in Klasse Object
      Gibt zurück:
      true if other is a PropertiesSourceType, false otherwise.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object