001    package railo.runtime.ext.tag;
002    
003    import railo.runtime.tag.MissingAttribute;
004    import railo.runtime.type.Collection;
005    import railo.runtime.type.KeyImpl;
006    
007    public class TagMetaDataAttrImpl extends MissingAttribute implements TagMetaDataAttr { 
008            private String description;
009            private boolean required;
010            private boolean isRuntimeExpressionValue;
011            private String defaultValue;
012            
013            /**
014             * Constructor of the class
015             * @param name
016             * @param required
017             * @param type
018             */
019            public TagMetaDataAttrImpl(String name, boolean required, String type, boolean isRuntimeExpressionValue,String defaultValue,String description) {
020                    this(KeyImpl.getInstance(name),required,type,isRuntimeExpressionValue,defaultValue,description);
021            }
022            
023            /**
024             * Constructor of the class
025             * @param name
026             * @param required
027             * @param type
028             * @param description
029             */
030            public TagMetaDataAttrImpl(Collection.Key name, boolean required, String type, boolean isRuntimeExpressionValue,String defaultValue, String description) {
031                    super(name,type);
032                    this.required = required;
033                    this.description = description;
034                    this.defaultValue = defaultValue;
035                    this.isRuntimeExpressionValue = isRuntimeExpressionValue;
036            }
037    
038            @Override
039            public String getDescription() {
040                    return description;
041            }
042    
043    
044            @Override
045            public boolean isRequired() {
046                    return required;
047            }
048    
049            @Override
050            public boolean isRuntimeExpressionValue() {
051                    return isRuntimeExpressionValue;
052            }
053    
054            @Override
055            public String getDefaultVaue() {
056                    return defaultValue;
057            }
058    }