Class PropertySupport

java.lang.Object
io.xlate.edi.stream.PropertySupport
Direct Known Subclasses:
EDIInputFactory, EDIOutputFactory

public abstract class PropertySupport
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.util.Map<java.lang.String,​java.lang.Object> properties  
    protected java.util.Set<java.lang.String> supportedProperties  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected PropertySupport()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object getProperty​(java.lang.String name)
    Get the value of a feature/property from the underlying implementation
    boolean isPropertySupported​(java.lang.String name)
    Query the set of properties that this factory supports.
    void setProperty​(java.lang.String name, java.lang.Object value)
    Allows the user to set specific feature/property on the underlying implementation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • supportedProperties

      protected final java.util.Set<java.lang.String> supportedProperties
    • properties

      protected final java.util.Map<java.lang.String,​java.lang.Object> properties
  • Constructor Details

  • Method Details

    • isPropertySupported

      public boolean isPropertySupported​(java.lang.String name)
      Query the set of properties that this factory supports.
      Parameters:
      name - - The name of the property (may not be null)
      Returns:
      true if the property is supported and false otherwise
    • getProperty

      public java.lang.Object getProperty​(java.lang.String name)
      Get the value of a feature/property from the underlying implementation
      Parameters:
      name - - The name of the property (may not be null)
      Returns:
      The value of the property
      Throws:
      java.lang.IllegalArgumentException - if the property is not supported
    • setProperty

      public void setProperty​(java.lang.String name, java.lang.Object value)
      Allows the user to set specific feature/property on the underlying implementation. The underlying implementation is not required to support every setting of every property in the specification and may use IllegalArgumentException to signal that an unsupported property may not be set with the specified value.
      Parameters:
      name - - The name of the property (may not be null)
      value - - The value of the property
      Throws:
      java.lang.IllegalArgumentException - if the property is not supported