Class PRestrictedValue

java.lang.Object
com.portal.bas.PRestrictedValue
All Implemented Interfaces:
Serializable

public class PRestrictedValue extends Object implements Serializable
PRestrictedValue wraps an object supplied by Portal with the restrictions that govern its use. Client objects getting data from the server should be aware of this type and use it properly. PInfranetMessageFormat and PFieldComponentRenderer handle it properly.
Version:
4
Author:
Larry Lynch-Freshner
See Also:
  • Constructor Details

    • PRestrictedValue

      public PRestrictedValue(Object value, PRestriction res)
      Creates a new PRestrictedValue instance from an object and a restriction.
      Parameters:
      value - the database value from Portal
      res - a restriction object that describes the value's allowable usage
  • Method Details

    • getValue

      public Object getValue()
      Gets the wrapped value.
      Returns:
      The wrapped value object.
    • getRestriction

      public PRestriction getRestriction()
      Gets the value's restriction.
      Returns:
      The value's restriction object.