Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.thaiopensource.validate;
 
A PropertyId whose value is constrained to be an instance of String.

public class StringPropertyId extends PropertyId {
   public StringPropertyId(String name) {
      super(nameString.class);
    }

  
Returns the value of the property. This is a typesafe version of PropertyMap.get.

Parameters:
properties the PropertyMap to be used
Returns:
the String to which the PropertyMap maps this PropertyId, or null if this PropertyId is not in the PropertyMap
See also:
com.thaiopensource.util.PropertyMap.get(com.thaiopensource.util.PropertyId)
  public String get(PropertyMap properties) {
    return (String)properties.get(this);
  }

  
Sets the value of the property. Modifies the PropertyMapBuilder so that this PropertyId is mapped to the specified value. This is a typesafe version of PropertyMapBuilder.put.

Parameters:
builder the PropertyMapBuilder to be modified
value the String to which this PropertyId is to be mapped
Returns:
the String to which this PropertyId was mapped before, or null if it was not mapped
See also:
com.thaiopensource.util.PropertyMapBuilder.put(com.thaiopensource.util.PropertyId,java.lang.Object)
  public String put(PropertyMapBuilder builderString value) {
    return (String)builder.put(thisvalue);
  }
New to GrepCode? Check out our FAQ X