Examples of XTag


Examples of xjavadoc.XTag

       
        if ( tags == null ) return annotations;
       
        for ( Iterator i = tags.iterator(); i.hasNext(); )
        {
            XTag tag = ( XTag ) i.next();
            String tagName = tag.getName();
            AnnotationTypeDeclaration decl = _annotationInterfaceParser.getAnnotationTypeDecl(tagName);
           
            if ( decl != null )
            {
                AnnotationType type = new AnnotationTypeImpl( decl );
                Collection attrNames = tag.getAttributeNames();           
                HashMap elementValues = new HashMap();
               
                for ( Iterator j = attrNames.iterator(); j.hasNext(); )
                {
                    String attrName = ( String ) j.next();
                    AnnotationTypeElementDeclaration memberDecl = decl.getMember( attrName );
                    SourcePositionImpl pos = SourcePositionImpl.get( tag, attrName, element );
                    Object val = parseValue( memberDecl, tag.getAttributeValue( attrName ), pos );
                    AnnotationValue value = new AnnotationValueImpl( val, pos, memberDecl );
                    elementValues.put( memberDecl, value );
                }
               
                AnnotationInstanceImpl ann = new AnnotationInstanceImpl( tag, element, type, elementValues );
View Full Code Here

Examples of xjavadoc.XTag

        if (!InterfaceTagsHandler.isServiceEndpointEjb(getCurrentClass())) {
            log.debug("Reject file " + clazz.getQualifiedName() + " because of different view-type");
            return false;
        }

        XTag interfaceTag = getCurrentClass().getDoc().getTag("ejb:interface");

        if (interfaceTag == null) {
            return true;
        }

        String generate = interfaceTag.getAttributeValue("generate");

        if ((generate != null) && (generate.indexOf(InterfaceTagsHandler.SERVICE_ENDPOINT) == -1)) {
            log.debug("Skip service-endpoint interface for " + clazz.getQualifiedName() + " because of generate=" + generate + " flag.");
            return false;
        }
View Full Code Here

Examples of xjavadoc.XTag

    }

    private XTag getCurrentTag()
         throws XDocletException
    {
        XTag tag = getCurrentMethodTag();

        if (tag == null)
            tag = getCurrentClassTag();
        if (tag == null)
            throw L.error(L.NO_CURRENT_JAVADOC_TAG);
View Full Code Here

Examples of xjavadoc.XTag

    private String getSqlNames(Iterator i)
    {
        StringBuffer sqlNames = new StringBuffer();

        while (i.hasNext()) {
            XTag tag = (XTag)i.next();
            String columnName = tag.getAttributeValue(COLUMN_NAME_ATTR);
            String relatedField = tag.getAttributeValue(RELATED_FIELD_ATTR);

            if (sqlNames.length() > 0)
                sqlNames.append(", ");
            sqlNames.append(relatedField + ":" + columnName);
        }
View Full Code Here

Examples of xjavadoc.XTag

*/
public class JavaBeanTagsHandler extends XDocletTagSupport
{
    public static String getBeanInfoClassFor(XClass clazz) throws XDocletException
    {
        XTag beanTag = clazz.getDoc().getTag("javabean.class");
        String className = null;

        if (beanTag != null) {
            // be paranoid...
            className = beanTag.getAttributeValue("class");
        }

        if (className == null) {
            className = clazz.getQualifiedName();
        }
View Full Code Here

Examples of xjavadoc.XTag

    {
        Collection extensions = new ArrayList();
        XDoc doc = getCurrentField().getDoc();

        if (doc.hasTag("tjdo.field")) {
            XTag tag = doc.getTag("tjdo.field");

            addSizeExtensions(extensions, tag, "column-", "");

            String collectionField = tag.getAttributeValue("collection-field");
            String mapField = tag.getAttributeValue("map-field");

            if (collectionField != null) {
                extensions.add(new VendorExtension(getVendorName(), "collection-field", collectionField));
            }
            if (mapField != null) {
View Full Code Here

Examples of xjavadoc.XTag

        return false;
    }

    private static boolean isExplicitlyReadOnlyProperty(XMethod method)
    {
        XTag tag = method.getDoc().getTag("javabean.property");

        return "true".equalsIgnoreCase(tag.getAttributeValue("readonly"));
    }
View Full Code Here

Examples of xjavadoc.XTag

     * @return
     */
    private String getPropertyName(XMethod currentMethod)
    {
        String name = null;
        XTag tag = currentMethod.getDoc().getTag("javabean.property");

        if (tag != null) {
            //the method is a property
            name = tag.getAttributeValue("name");
            //does the method have an explicit attribute
            if ((name == null) || (name.length() <= 0)) {
                //figure out the name from the method
                //must be a standard bean method
                name = getCurrentMethod().getPropertyName();
View Full Code Here

Examples of xjavadoc.XTag

    {
        Collection extensions = new ArrayList();
        XDoc doc = getCurrentField().getDoc();

        if (doc.hasTag("tjdo.field")) {
            XTag tag = doc.getTag("tjdo.field");
            String ownerField = tag.getAttributeValue("owner-field");

            if (ownerField != null) {
                extensions.add(new VendorExtension(getVendorName(), "owner-field", ownerField));
            }
            addSizeExtensions(extensions, tag, "element-", "");
View Full Code Here

Examples of xjavadoc.XTag

    {
        Collection extensions = new ArrayList();
        XDoc doc = getCurrentField().getDoc();

        if (doc.hasTag("tjdo.field")) {
            XTag tag = doc.getTag("tjdo.field");
            String ownerField = tag.getAttributeValue("owner-field");
            String keyField = tag.getAttributeValue("key-field");

            if (ownerField != null) {
                extensions.add(new VendorExtension(getVendorName(), "owner-field", ownerField));
            }
            if (keyField != null) {
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.