public LabelAnnotationDefinition() { super(org.kie.api.definition.type.Label.class.getName(), true, true); addValuePair( new AnnotationValuePairDefinitionImpl( "value", String.class.getName(), AnnotationValuePairDefinition.ValuePairType.STRING, "" ) ); }
returnType = method.getReturnType(); if ((isArray = returnType.isArray())) returnType = returnType.getComponentType(); valuePairDefinition = new AnnotationValuePairDefinitionImpl(method.getName(), NamingUtils.normalizeClassName(returnType.getName()), DriverUtils.buildValuePairType(returnType), if (valuePairDefinition.isAnnotation()) { valuePairDefinition.setAnnotationDefinition(buildAnnotationDefinition(returnType)); if (valuePairDefinition.isEnum()) { Object[] enumConstants = returnType.getEnumConstants(); if (enumConstants != null) { strEnumConstants[j] = enumConstants[j].toString(); valuePairDefinition.setEnumValues(strEnumConstants);
public RoleAnnotationDefinition() { super(org.kie.api.definition.type.Role.class.getName(), true, false); addValuePair( new AnnotationValuePairDefinitionImpl( "value", org.kie.api.definition.type.Role.class.getName() + ".Type", AnnotationValuePairDefinition.ValuePairType.ENUM, "FACT" ) ); }
public ExpiresAnnotationDefinition() { super(org.kie.api.definition.type.Expires.class.getName(), true, false); addValuePair( new AnnotationValuePairDefinitionImpl( "value", String.class.getName(), AnnotationValuePairDefinition.ValuePairType.STRING ) ); }
public DescriptionAnnotationDefinition() { super( org.kie.api.definition.type.Description.class.getName(), true, true); addValuePair( new AnnotationValuePairDefinitionImpl( "value", String.class.getName(), AnnotationValuePairDefinition.ValuePairType.STRING, "" ) ); }
public PositionAnnotationDefinition() { super(org.kie.api.definition.type.Position.class.getName(), false, true); addValuePair( new AnnotationValuePairDefinitionImpl( "value", Integer.class.getName(), AnnotationValuePairDefinition.ValuePairType.STRING, "" ) ); }
public TimestampAnnotationDefinition() { super(org.kie.api.definition.type.Timestamp.class.getName(), true, false); addValuePair( new AnnotationValuePairDefinitionImpl( "value", String.class.getName(), AnnotationValuePairDefinition.ValuePairType.STRING ) ); }
public DurationAnnotationDefinition() { super(org.kie.api.definition.type.Duration.class.getName(), true, false); addValuePair( new AnnotationValuePairDefinitionImpl( "value", String.class.getName(), AnnotationValuePairDefinition.ValuePairType.STRING) ); }
public TypeSafeAnnotationDefinition() { super(org.kie.api.definition.type.TypeSafe.class.getName(), true, false); addValuePair( new AnnotationValuePairDefinitionImpl( "value", Boolean.class.getName(), AnnotationValuePairDefinition.ValuePairType.PRIMITIVE, false ) ); }