Examples of AttributeInfo


Examples of fr.esrf.TangoApi.AttributeInfo

     * @throws SalsaDeviceException
     */
    public static String getFormat(IDevice device) throws SalsaDeviceException {
        String format;
        if (device != null && device.getName() != null && !"".equals(device.getName().trim())) {
            AttributeInfo info = getAttributeInfo(device);
            if (info != null) {
                format = info.format;
            }
            else {
                format = null;
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeInfo

     * @throws SalsaDeviceException
     */
    public static boolean getReadOnly(IDevice device) throws SalsaDeviceException {
        boolean readOnly;
        if (device != null && device.getName() != null && !"".equals(device.getName().trim())) {
            AttributeInfo info = getAttributeInfo(device);
            if (info != null) {
                readOnly = info.writable == AttrWriteType.READ;
            }
            else {
                readOnly = false;
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeInfo

        String attributeName = name.substring(separatorPos + 1);
        DeviceProxy proxy = getDeviceProxy(device);
        if (proxy == null) {
            return null;
        }
        AttributeInfo info = getAttributeInfo(proxy, attributeName);
        return info;
    }
View Full Code Here

Examples of fr.esrf.TangoApi.AttributeInfo

     * @return
     * @throws SalsaDeviceException
     */
    private static AttributeInfo getAttributeInfo(DeviceProxy proxy, String attributeName)
            throws SalsaDeviceException {
        AttributeInfo info;
        try {
            info = proxy.get_attribute_info(attributeName);
        }
        catch (DevFailed e) {
            e.printStackTrace();
View Full Code Here

Examples of javassist.bytecode.AttributeInfo

    CodeAttribute codeAttribute = method.getMethodInfo().getCodeAttribute();

    LocalVariableAttribute locals = null;

    if (codeAttribute != null) {
      AttributeInfo attribute;
      attribute = codeAttribute.getAttribute("LocalVariableTable");
      locals = (LocalVariableAttribute) attribute;
    }

    String methodName = method.getName();
View Full Code Here

Examples of javassist.bytecode.AttributeInfo

        else
            throw new NotFoundException(m.toString());
    }

    public byte[] getAttribute(String name) {
        AttributeInfo ai = getClassFile2().getAttribute(name);
        if (ai == null)
            return null;
        else
            return ai.get();
    }
View Full Code Here

Examples of javassist.bytecode.AttributeInfo

    }

    public void setAttribute(String name, byte[] data) {
        checkModify();
        ClassFile cf = getClassFile2();
        cf.addAttribute(new AttributeInfo(cf.getConstPool(), name, data));
    }
View Full Code Here

Examples of net.sourceforge.cruisecontrol.gendoc.AttributeInfo

    Collection<AttributeInfo> attributes = info.getAttributes();
    Iterator<AttributeInfo> it = attributes.iterator();
    for (int i = 0; i < components.length; i++) {
      JPanel attribPanel = (JPanel)components[i];
      JLabel label = (JLabel) attribPanel.getComponent(0);
      AttributeInfo attribInfo = it.next();
     
      String expected = attribInfo.getTitle();
      if (attribInfo.getMinCardinality() > 0) {
        expected = "<html>" + expected + "<font color=\"red\">*</font></html>";
      }
      Assert.assertEquals(expected, label.getText());
     
      expected = testNode.getAttributeValue(attribInfo.getName());
      if (expected == null) {
        expected = new String();
      }
      Assert.assertEquals(
          expected,
View Full Code Here

Examples of org.apache.axis.wsdl.wsdl2ws.info.AttributeInfo

    int intAttrFieldSz = attribfeilds.size();
    attributeParamCount = intAttrFieldSz;
    int intEleFieldSz = elementfeilds.size();
    this.attribs = new AttributeInfo[intAttrFieldSz+intEleFieldSz];
    for (int i = 0 ; i < intAttrFieldSz; i++) {
      this.attribs[i] = new AttributeInfo();
      this.attribs[i].setParamName((String)attribfeilds.get(i));
      Type attribType = type.getTypForAttribName(this.attribs[i].getParamName());           
      if(CUtils.isSimpleType(attribType.getName()))
        this.attribs[i].setTypeName(CUtils.getclass4qname(attribType.getName()));
      else{
        this.attribs[i].setTypeName(attribType.getLanguageSpecificName());
        this.attribs[i].setSimpleType(false);
      }
      this.attribs[i].setType(attribType);
      this.attribs[i].setAttribute(true);
      this.attribs[i].setElementName(attribType.getName()); //TODO this is wrong. correct immediately. this will cause attributes serialized incorrectly
      //TODO : how to find whether this attribute is optional or not ?
    }

    for (int i = intAttrFieldSz ; i < intAttrFieldSz+intEleFieldSz; i++) {
      this.attribs[i] = new AttributeInfo();
      this.attribs[i].setParamName((String) elementfeilds.get(i-attributeParamCount));  
      ElementInfo elem = type.getElementForElementName(this.attribs[i].getParamName());
      Type elementType = elem.getType();
      if(CUtils.isAnyType(elementType.getName())){
        this.attribs[i].setAnyType(true);
View Full Code Here

Examples of org.apache.axis.wsdl.wsdl2ws.info.AttributeInfo

    private void populateAttribList() throws WrapperFault
    {
        ElementInfo elemi = type.getExtensionBaseType();
        if (elemi != null)
        {
            extensionBaseAttrib = new AttributeInfo(this.classname);
            extensionBaseAttrib.setParamName(elemi.getName().getLocalPart());
            extensionBaseAttrib.setTypeName(
                CUtils.getclass4qname(elemi.getType().getName()));
            extensionBaseAttrib.setType(elemi.getType());
            extensionBaseAttrib.setElementName(elemi.getName());
        }
        ArrayList attribfeilds = new ArrayList();
        ArrayList elementfeilds = new ArrayList();

        Iterator names = type.getAttributeNames();
        while (names.hasNext())
        {
            attribfeilds.add(names.next());
        }
        names = type.getElementnames();
        while (names.hasNext())
        {
            elementfeilds.add(names.next());
        }
        int intAttrFieldSz = attribfeilds.size();
        attributeParamCount = intAttrFieldSz;
        int intEleFieldSz = elementfeilds.size();
        this.attribs = new AttributeInfo[intAttrFieldSz + intEleFieldSz];
        for (int i = 0; i < intAttrFieldSz; i++)
        {
            this.attribs[i] = new AttributeInfo(this.classname);
            this.attribs[i].setParamName((String) attribfeilds.get(i));
            Type attribType =
                type.getTypForAttribName(this.attribs[i].getParamName());
            if (CUtils.isSimpleType(attribType.getName()))
                this.attribs[i].setTypeName(
                    CUtils.getclass4qname(attribType.getName()));
            else
            {
                this.attribs[i].setTypeName(
                    attribType.getLanguageSpecificName());
                this.attribs[i].setSimpleType(false);
            }
            this.attribs[i].setType(attribType);
            this.attribs[i].setAttribute(true);
            this.attribs[i].setElementName(attribType.getName());
            //TODO this is wrong. correct immediately. this will cause attributes serialized incorrectly
            //TODO : how to find whether this attribute is optional or not ?
        }

        for (int i = intAttrFieldSz; i < intAttrFieldSz + intEleFieldSz; i++)
        {
            this.attribs[i] = new AttributeInfo(this.classname);
            this.attribs[i].setParamName(
                (String) elementfeilds.get(i - attributeParamCount));
            ElementInfo elem =
                type.getElementForElementName(this.attribs[i].getParamName());
            Type elementType = elem.getType();
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.