Package xjavadoc

Examples of xjavadoc.XClass


    public void forAllForms(String template, Properties attributes) throws XDocletException
    {
        Collection classes = getAllClasses();

        for (Iterator i = classes.iterator(); i.hasNext(); ) {
            XClass currentClass = (XClass) i.next();

            setCurrentClass(currentClass);
            if (DocletSupport.isDocletGenerated(getCurrentClass()) || (getCurrentClass().isAbstract())) {
                continue;
            }
View Full Code Here


     * @throws XDocletException
     * @doc.tag                  type="block"
     */
    public void forAllFields(String template, Properties attributes) throws XDocletException
    {
        XClass clazz = getCurrentClass();
        Map setters = getFields(clazz);

        for (Iterator iterator = setters.keySet().iterator(); iterator.hasNext(); ) {
            curFieldName = (String) iterator.next();

View Full Code Here

            if (refed_ejb_name == null) {
                throw new XDocletException("No ejb-name attribute found in ejb-ref specified in bean " + getCurrentClass());
            }

            XClass refed_clazz = findEjb(refed_ejb_name);
            String ejb_type = null;

            // If the ejb-bean expose both remote and local itnerfaces we however always return the remote jndi-name since WebSphere only can handle one jndi-name on a ejb-bean.
            if (EjbTagsHandler.isLocalEjb(getCurrentClass()) && EjbTagsHandler.isRemoteEjb(getCurrentClass())) {
                ejb_type = "remote";
View Full Code Here

        this.tasks = tasks;
    }

    public void forAllTasks(String template) throws XDocletException
    {
        XClass old_cur_class = getCurrentClass();

        for (Iterator i = getTasks().iterator(); i.hasNext(); ) {
            docElement = (AntdocSubTask.Element) i.next();

            setCurrentClass(docElement.getXClass());
View Full Code Here

     * @exception XDocletException
     * @doc.tag                     type="block"
     */
    public void forAllSubElements(String template) throws XDocletException
    {
        XClass old_cur_class = getCurrentClass();

        for (Iterator i = docElement.getSubElements().iterator(); i.hasNext(); ) {
            subElement = (AntdocSubTask.SubElement) i.next();

            setCurrentClass(subElement.getXClass());
View Full Code Here

     * @return    link
     * @doc.tag   type="content"
     */
    public String subElementLink()
    {
        XClass subElementClass = subElement.getSubject().getXClass();

        // see if there is a link from config params
        AntdocSubTask subtask = ((AntdocSubTask) DocletContext.getInstance().getSubTaskBy(DocletTask.getSubTaskName(AntdocSubTask.class)));
        String link = (String) subtask.getConfigParamsAsMap().get(subElementClass.getQualifiedName());

        if (link == null) {
            // we only replace . with / in package. Dots in inner class names are replaced by $
            link = getRootlinkFor(docElement.getXClass()) + subElementClass.getContainingPackage().getName().replace('.', '/')
                + '/' + subElementClass.getTransformedName() + ".html";
        }
        return link;
    }
View Full Code Here

    }
   
    public static SourcePosition get( XProgramElement element )
    {
        if ( element == null ) return null;
        XClass outerClass = XDocletUtils.getOutermostClass( element );
        return outerClass instanceof SourceClass ? new SourcePositionImpl( element, ( SourceClass ) outerClass ) : null;
    }
View Full Code Here

    }
   
    public static SourcePosition get( XTag tag, XProgramElement element )
    {
        if ( element == null ) return null;
        XClass outerClass = XDocletUtils.getOutermostClass( element );
        return outerClass instanceof SourceClass ? new SourcePositionImpl( tag, ( SourceClass ) outerClass ) : null;
    }
View Full Code Here

    }
   
    public static SourcePositionImpl get( XTag tag, String memberName, XProgramElement element )
    {
        if ( element == null ) return null;
        XClass outerClass = XDocletUtils.getOutermostClass( element );
        return outerClass instanceof SourceClass ? new SourcePositionImpl( tag, memberName, ( SourceClass ) outerClass ) : null;
    }
View Full Code Here

        // sort alphabetically
        Iterator i = sort(classes.iterator());
        while(i.hasNext())
        {
            XClass currentClass = (XClass)i.next();
           
            if(packageName != null && !currentClass.getQualifiedName().startsWith(packageName))
                continue;

             //System.out.println("currentClass=" + currentClass.getQualifiedName());
             //System.out.println(" packageName: " + packageName);
             //System.out.println(" startsWith: " + currentClass.getQualifiedName().startsWith(packageName));

            setCurrentClass(currentClass);

            if (DocletSupport.isDocletGenerated(getCurrentClass()) || (getCurrentClass().isAbstract() && acceptAbstractClasses == false))
            {
                logger.debug("isDocletGenerated or isAbstract");
                continue;
            }

            if (typeName != null)
            {
                if (TypeTagsHandler.isOfType(currentClass, typeName, extent))
                {
                    if(DEBUG) {
                        logger.debug("isOfType true, generate().");
                        logger.debug("handling type: "  + currentClass.getQualifiedName());
                    }

                    generate(template);
                }
                else if(DEBUG) logger.debug("isOfType false, generate().");
View Full Code Here

TOP

Related Classes of xjavadoc.XClass

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.