Examples of AttributeProxy


Examples of fr.esrf.TangoApi.AttributeProxy

  }

  public void start() {

    // Read attribute
    AttributeProxy proxy;
    try {
      proxy = new AttributeProxy(this.getParamText(ATTRIBUTE_NAME));
      DeviceAttribute attr = proxy.read();
      sendMultiple("", 0);send("read", AttributeHelper.extractToStringArray(attr));
    } catch (DevFailed e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

     * @param device
     * @return
     * @throws SalsaDeviceException
     */
    private static AttributeProxy getAttributeProxy(IDevice device) throws SalsaDeviceException {
        AttributeProxy attributeProxy = null;
        if (device != null) {
            String name = device.getName();
            if ((name != null) && !name.isEmpty()) {
                try {
                    attributeProxy = TangoAttributeHelper.getAttributeProxy(name);
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeProxy

     * @return
     * @throws SalsaDeviceException
     */
    private static AttributeInfo getAttributeInfo(IDevice device) throws SalsaDeviceException {
        AttributeInfo attributeInfo = null;
        AttributeProxy attributeProxy = getAttributeProxy(device);
        if (attributeProxy != null) {
            try {
                attributeInfo = attributeProxy.get_info();
            } catch (Exception e) {
                SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                        "Cannot read attribute info for attribute " + device.getName(), e);
                throw salsaDeviceException;
            }
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.AttributeProxy

      return instance;
   }
  
   private AttributeProxy getProxy(String type)
   {
      AttributeProxy proxy =  (AttributeProxy) supportedDatatypes.get(type.toString());
      if(proxy == null)
         throw new RuntimeException("proxy null for "+type);
      return proxy;
   }
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.AttributeProxy

            if (SunxacmlUtil.getNodeName(child).equals("datatype")) {
                // a datatype is a class with an identifier
                String identifier = child.getAttributes().
                    getNamedItem("identifier").getNodeValue();
                AttributeProxy proxy =
                    (AttributeProxy)(loadClass("datatype", child));

                try {
                    factory.addDatatype(identifier, proxy);
                } catch (IllegalArgumentException iae) {
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.AttributeProxy

            if (SunxacmlUtil.getNodeName(child).equals("datatype")) {
                // a datatype is a class with an identifier
                String identifier = child.getAttributes().
                    getNamedItem("identifier").getNodeValue();
                AttributeProxy proxy =
                    (AttributeProxy)(loadClass("datatype", child));

                try {
                    factory.addDatatype(identifier, proxy);
                } catch (IllegalArgumentException iae) {
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.AttributeProxy

      return instance;
   }

   private AttributeProxy getProxy(String type)
   {
      AttributeProxy proxy = (AttributeProxy) supportedDatatypes.get(type.toString());
      if (proxy == null)
         throw new RuntimeException("proxy null for " + type);
      return proxy;
   }
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.