Package org.apache.geronimo.jee.deployment

Examples of org.apache.geronimo.jee.deployment.Attribute


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


        case ATTRIBUTE:
            if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText())) {
                return false;
            }
            Attribute attribute = (Attribute)eObject;
            if (attribute == null) {
                attribute = (Attribute)getEFactory().create(Attribute.class);
                gbean = (Gbean)section.getSelectedObject();
               
                // add the JAXBElement of an Attribute, not the Attribute
                ObjectFactory objectFactory = new ObjectFactory();
                gbean.getAttributeOrXmlAttributeOrReference().add(objectFactory.createGbeanAttribute(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

  JAXBElement<Attribute> attributeElement = getAttributeElement(elelist);
  if (attributeElement == null) {
      attributeElement = objectFactory.createGbeanAttribute(null);
      elelist.add(attributeElement);
  }
  Attribute attribute = new Attribute();
  attribute.setName("realmName");
  attribute.setValue(realmName);
  attributeElement.setValue(attribute);

  // set the reference
  JAXBElement<Reference> referenceElement = getReferenceElement(elelist);
  if (referenceElement == null) {
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jee.deployment.Attribute

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.