All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.umlg.java.metamodel.annotation.OJAnnotationAttributeValue Maven / Gradle / Ivy

There is a newer version: 2.0.15
Show newest version
package org.umlg.java.metamodel.annotation;

import org.umlg.java.metamodel.OJPathName;

public class OJAnnotationAttributeValue extends OJMetaValue{
	public OJAnnotationAttributeValue(){
		super();
	}
	public OJAnnotationAttributeValue(String name,Boolean value){
		super(value);
		super.setName(name);
	}
	public OJAnnotationAttributeValue(String name,Number value){
		super(value);
		super.setName(name);
	}

	public OJAnnotationAttributeValue(String name,OJAnnotationValue value){
		super(value);
		super.setName(name);
	}
	public OJAnnotationAttributeValue(String name,OJPathName value){
		super(value);
		super.setName(name);
	}
	public OJAnnotationAttributeValue(String name,OJEnumValue value){
		super(value);
		super.setName(name);
	}
	public OJAnnotationAttributeValue(String name,String value){
		super(value);
		super.setName(name);
	}
	public OJAnnotationAttributeValue(String name){
		super.setName(name);
	}
	@Override
	public String toJavaString(){
		return getName() + "=" + toJavaValueExpression().substring(1);//Get rid of first indent
	}
	public OJAnnotationAttributeValue getCopy(){
		OJAnnotationAttributeValue result = new OJAnnotationAttributeValue();
		copyInfoInto(result);
		return result;
	}
	public OJAnnotationAttributeValue getDeepCopy(){
		OJAnnotationAttributeValue result = new OJAnnotationAttributeValue();
		copyDeepInfoInto(result);
		return result;
	}
	protected void copyInfoInto(OJAnnotationAttributeValue v){
		super.copyInfoInto(v);
	}
	protected void copyDeepInfoInto(OJAnnotationAttributeValue v){
		super.copyDeepInfoInto(v);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy