Package org.jboss.gravia.resource

Examples of org.jboss.gravia.resource.CompositeDataResourceType$AttributeType


        case ATTRIBUTE:
            if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText())) {
                return false;
            }
            AttributeType attribute = (AttributeType)eObject;
            if (attribute == null) {
                attribute = (AttributeType)getEFactory().create(AttributeType.class);
                gbean = (GbeanType)section.getSelectedObject();
               
                // add the JAXBElement of an Attribute, not the Attribute
                ObjectFactory objectFactory = new ObjectFactory();
                gbean.getAttributeOrXmlAttributeOrReference().add(objectFactory.createGbeanTypeAttribute(attribute));
            }
            attribute.setName(textList.get(0).getText());
            attribute.setType(textList.get(1).getText());
            attribute.setValue(textList.get(2).getText());
            break;

        case DEPENDENCY:
            if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText())) {
                return false;
View Full Code Here


                      GbeanType gbean = (GbeanType)object;
                        return "GBean: name = \"" + gbean.getName() +
                                "\", class = \"" + gbean.getClazz() + "\"";
                    }
                    else if (AttributeType.class.isInstance(object)) {
                      AttributeType attribute = (AttributeType)object;
                        return "Attribute: name = \"" + attribute.getName() +
                                "\", type = \"" + attribute.getType() +
                                "\", value = \"" + attribute.getValue() + "\"";
                    }
                    else if (PatternType.class.isInstance(object)) {
                      PatternType dependency = (PatternType)object;
                        return "Dependency: group = \"" + dependency.getGroupId() +
                                "\", artifact = \"" + dependency.getArtifactId() +
View Full Code Here

        int[] oid = (int[]) in.get(key);
        if (oid == null) {
            throw new RuntimeException("");//FIXME message & type //$NON-NLS-1$
        }

        AttributeType attr = (AttributeType) pool.get(oid);
        if (attr == null || (!attr.type.checkTag(in.tag))) {
            in.content = (byte[]) super.getDecodedObject(in);
        } else {
            in.content = attr.type.decode(in);
        }
View Full Code Here

        int[] oid = (int[]) in.get(key);
        if (oid == null) {
            throw new RuntimeException("");//FIXME message & type //$NON-NLS-1$
        }

        AttributeType attr = (AttributeType) pool.get(oid);
        if (attr == null || (!attr.type.checkTag(in.tag))) {
            in.content = (byte[]) super.getDecodedObject(in);
        } else {
            in.content = attr.type.decode(in);
        }
View Full Code Here

    }

    private CompositeData getCompositeData() {
        CompositeData compositeData;
        try {
            compositeData = new CompositeDataResourceType().getCompositeData(this);
        } catch (OpenDataException ex) {
            throw new IllegalStateException("Cannot construct composite data for: " + this, ex);
        }
        return compositeData;
    }
View Full Code Here

    }

    private CompositeData getCompositeData() {
        CompositeData compositeData;
        try {
            compositeData = new CompositeDataResourceType().getCompositeData(this);
        } catch (OpenDataException ex) {
            throw new IllegalStateException("Cannot construct composite data for: " + this, ex);
        }
        return compositeData;
    }
View Full Code Here

    }

    private CompositeData getCompositeData() {
        CompositeData compositeData;
        try {
            compositeData = new CompositeDataResourceType().getCompositeData(this);
        } catch (OpenDataException ex) {
            throw new IllegalStateException("Cannot construct composite data for: " + this, ex);
        }
        return compositeData;
    }
View Full Code Here

TOP

Related Classes of org.jboss.gravia.resource.CompositeDataResourceType$AttributeType

Copyright © 2018 www.massapicom. 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.