/** * Gets a printable form of the current component type description. * * @return printable form of the component type description * @see java.lang.Object#toString() */ public String toString() { return getDescription().toString(); }
/** * Gets the component type description (Element-Attribute form). * @return the component type description. * @see org.apache.felix.ipojo.Factory#getDescription() */ public Element getDescription() { // Can be null, if not already computed. if (m_componentDesc == null) { return new Element("No description available for " + m_factoryName, ""); } return m_componentDesc.getDescription(); }
/** * Gets the component type description (Element-Attribute form). * @return the component type description. * @see org.apache.felix.ipojo.Factory#getDescription() */ public Element getDescription() { // Can be null, if not already computed. if (m_componentDesc == null) { return new Element("No description available for " + m_factoryName, ""); } return m_componentDesc.getDescription(); }
/** * Gets a printable form of the current component type description. * * @return printable form of the component type description * @see java.lang.Object#toString() */ public String toString() { return getDescription().toString(); }
/** * Adds the "implementation-class" attribute to the type description. * * @return the component type description. * @see org.apache.felix.ipojo.architecture.ComponentTypeDescription#getDescription() */ public Element getDescription() { Element elem = super.getDescription(); elem.addAttribute(new Attribute("Implementation-Class", m_factory.getClassName())); /* Adding interfaces and super-classes of component into description */ Element inheritance = new Element("Inherited", ""); inheritance.addAttribute(new Attribute("Interfaces", m_interfaces.toString())); inheritance.addAttribute(new Attribute("SuperClasses", m_superClasses.toString())); elem.addElement(inheritance); return elem; }
/** * Adds the "implementation-class" attribute to the type description. * * @return the component type description. * @see org.apache.felix.ipojo.architecture.ComponentTypeDescription#getDescription() */ public Element getDescription() { Element elem = super.getDescription(); elem.addAttribute(new Attribute("Implementation-Class", m_factory.getClassName())); /* Adding interfaces and super-classes of component into description */ Element inheritance = new Element("Inherited", ""); inheritance.addAttribute(new Attribute("Interfaces", m_interfaces.toString())); inheritance.addAttribute(new Attribute("SuperClasses", m_superClasses.toString())); elem.addElement(inheritance); return elem; }