Examples of ERXCryptoString


Examples of er.extensions.crypting.ERXCryptoString

    }
    else if (valueType != null && Enum.class.isAssignableFrom(valueType)) {
      parsedValue = ERXValueUtilities.enumValueWithDefault(value, (Class<? extends Enum>) valueType, null);
    }
    else if (valueType != null && ERXCryptoString.class.isAssignableFrom(valueType)) {
      parsedValue = new ERXCryptoString(value.toString());
    }
    else if (resolveEntities) {
      EOClassDescription entity = ERXRestClassDescriptionFactory.classDescriptionForEntityName(valueTypeName);
      if (entity != null) {
        parsedValue = IERXRestDelegate.Factory.delegateForClassDescription(entity).objectOfEntityWithID(entity, value, context);
View Full Code Here

Examples of er.extensions.crypting.ERXCryptoString

  private static final long serialVersionUID = 1L;

  @Override
  public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
    if(obj instanceof ERXCryptoString) {
      ERXCryptoString crypto = (ERXCryptoString)obj;
      toAppendTo.append(crypto.toString());
    } else if(obj != null) {
      throw new IllegalArgumentException("The object argument must be an instance of " + ERXCryptoString.class.getName() + ". Object is an instance of the class " + obj.getClass().getName());
    }
    return toAppendTo;
  }
View Full Code Here

Examples of er.extensions.crypting.ERXCryptoString

    return toAppendTo;
  }

  @Override
  public Object parseObject(String source, ParsePosition pos) {
    ERXCryptoString crypto = new ERXCryptoString(source);
    pos.setIndex(source.length());
    return crypto;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.