Examples of toObject()


Examples of anvil.core.Any.toObject()

        return this;
      }

      param = parameters[0];
      if (param instanceof AnyName) {
        ctx.bind((Name)param.toObject(), value);
      } else {
        ctx.bind(param.toString(), value);
      }
     
    } catch (NamingException e) {
View Full Code Here

Examples of anvil.core.Any.toObject()

    Attributes attrs = null;

    if (parameters.length > 2) {
      param = parameters[2];
      if (param instanceof AnyAttributes) {
        attrs = (Attributes)param.toObject();
      }
    }

    try {
      if ((attrs != null) && (ctx instanceof DirContext)) {
View Full Code Here

Examples of anvil.core.Any.toObject()

    try {
      if ((attrs != null) && (ctx instanceof DirContext)) {
        DirContext dirctx = (DirContext)ctx;
        param = parameters[0];
        if (param instanceof AnyName) {
          dirctx.rebind((Name)param.toObject(), value, attrs);
        } else {
          dirctx.rebind(param.toString(), value, attrs);
        }
        return this;
      }
View Full Code Here

Examples of anvil.core.Any.toObject()

        return this;
      }

      param = parameters[0];
      if (param instanceof AnyName) {
        ctx.rebind((Name)param.toObject(), value);
      } else {
        ctx.rebind(param.toString(), value);
      }
     
    } catch (NamingException e) {
View Full Code Here

Examples of anvil.core.Any.toObject()

    }
    Context ctx = getContext();
    try {
      Any param = parameters[0];
      if (param instanceof AnyName) {
        ctx.unbind((Name)param.toObject());
      } else {
        ctx.unbind(param.toString());
      }
    } catch (NamingException e) {
      throw context.exception(e);
View Full Code Here

Examples of anvil.core.Any.toObject()

    }
    Context ctx = getContext();
    try {
      Any param = parameters[0];
      if (param instanceof AnyName) {
        ctx.destroySubcontext((Name)param.toObject());
      } else {
        ctx.destroySubcontext(param.toString());
      }
    } catch (NamingException e) {
      throw context.exception(e);
View Full Code Here

Examples of anvil.core.Any.toObject()

    Attributes attrs = null;

    if (parameters.length > 1) {
      param = parameters[1];
      if (param instanceof AnyAttributes) {
        attrs = (Attributes)param.toObject();
      }
    }

    try {
   
View Full Code Here

Examples of anvil.core.Any.toObject()

      if ((attrs != null) && (ctx instanceof DirContext)) {
        DirContext dirctx = (DirContext)ctx;
        param = parameters[0];
        if (param instanceof AnyName) {
          return new AnyNamingContext(
            dirctx.createSubcontext((Name)param.toObject(), attrs));
        } else {
          return new AnyNamingContext(
            dirctx.createSubcontext(param.toString(), attrs));
        }
      }
View Full Code Here

Examples of anvil.core.Any.toObject()

      }

      param = parameters[0];
      if (param instanceof AnyName) {
        return new AnyNamingContext(
          ctx.createSubcontext((Name)param.toObject()));
      } else {
        return new AnyNamingContext(
          ctx.createSubcontext(param.toString()));
      }
     
View Full Code Here

Examples of anvil.core.Any.toObject()

    Context ctx = getContext();
    try {
      Any param1 = parameters[0];
      Any param2 = parameters[1];
      if (param1 instanceof AnyName && param2 instanceof AnyName) {
        ctx.rebind((Name)param1.toObject(), (Name)param2.toObject());
      } else if (parameters[0].isString()) {
        ctx.rebind(param1.toString(), param2.toString());
      }
    } catch (NamingException e) {
      throw context.exception(e);
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.