Class RemoteValidator

  • All Implemented Interfaces:
    Serializable

    public class RemoteValidator
    extends Object
    implements Serializable
    Validators are flags indicating things about objects. Of course, every instance may have something to expose or not. For instance, a port has an indicator to mark it as "connected physically", but a Building (so far) has nothing to "indicate". This is done in order to avoid a second call to query for a particular information that could affect the performance. I.e: Call 1: getPort (retrieving a LocalObjectLight)
    Call 2: isThisPortConnected (retrieving a boolean according to a condition)
    With this method there's only one call getPort (a LocalObjectLight with a flag to indicate that the port is connected)
    Why not use getPort retrieving a LocalObject? Well, because the condition might be complicated, and it's easier to compute its value at server side. Besides, it can involve complex queries that would require more calls to the webservice
    Author:
    Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
    See Also:
    Serialized Form
    • Constructor Detail

      • RemoteValidator

        public RemoteValidator()
      • RemoteValidator

        public RemoteValidator​(String name,
                               Properties properties)
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • setProperties

        public void setProperties​(List<StringPair> properties)
      • getProperty

        public String getProperty​(String propertyName)
        Gets the value of a property in the current validator (if exists)
        Parameters:
        propertyName - The name of the property
        Returns:
        The value of the property or null if it doesn't exist