@Portable public class Build { private List<Plugin> plugins = new ArrayList<>(); public List<Plugin> getPlugins() { return plugins; } public void setPlugins(List<Plugin> plugins) { this.plugins = plugins; } }
@NonPortable public interface DeleteCallback { default SafeDeleteNodeCommand.SafeDeleteNodeCommandCallback onDeleteNode(Node<?, Edge> node, SafeDeleteNodeCommand.Options options) { return null; } default void onDeleteEdge(Edge<? extends View, Node> edge) { } }
@IOCProducer public static native SingletonJsType create() /*-{ return { "magicWord" : function() { return "please"; } }; }-*/;
@Portable public class TransitiveEnhancedDependency extends EnhancedDependency { public TransitiveEnhancedDependency() { } public TransitiveEnhancedDependency( final Dependency transitiveDependency, final Set<String> packageNames ) { super( transitiveDependency, packageNames ); } }
/** * * @author Max Barkley <mbarkley@redhat.com> */ public class TypeWithJustAFieldProducer { public static class ProducedType { public ProducedType(final boolean produced) { } } @IOCProducer public ProducedType produced = new ProducedType(true); }
@Portable public class FieldTypeEntry extends AbstractMetaDataEntry<String> { public static final String NAME = "field-type"; public FieldTypeEntry(@MapsTo("value") String value) { super(NAME, value); } }
@Portable public class FieldRequiredEntry extends AbstractMetaDataEntry<Boolean> { public static final String NAME = "field-required"; public FieldRequiredEntry(@MapsTo("value") Boolean value) { super(NAME, value); } }
/** * Convenience class to expose a return type to Errai's marshalling generators */ @Portable public class RefactoringStringPageRow extends RefactoringPageRow<String> { }
@Portable public class DataObjectFieldDeletedEvent extends DataModelerEvent { public DataObjectFieldDeletedEvent() { } public DataObjectFieldDeletedEvent( String contextId, String source, DataObject currentDataObject, ObjectProperty currentField ) { super( contextId, source, currentDataObject ); setCurrentField( currentField ); } }
public FieldTypeEntry(@MapsTo("value") String value) { super(NAME, value); } }
@Portable public class DataObjectRenamedEvent extends DataModelerEvent { public DataObjectRenamedEvent() { } }
public CardinalityMaxRuleViolation(final @MapsTo("candidate") String candidate, final @MapsTo("restrictedOccurrences") Integer restrictedOccurrences, final @MapsTo("currentOccurrences") Integer currentOccurrences, final @MapsTo("type") Type type) { super(type); this.candidate = candidate; this.restrictedOccurrences = restrictedOccurrences; this.currentOccurrences = currentOccurrences; }
@Portable public class ProjectResourceType implements ResourceType { @Override public String getName() { return "project"; } }
ElementViolationImpl(final @MapsTo("uuid") String uuid, final @MapsTo("graphViolations") Collection<RuleViolation> graphViolations, final @MapsTo("modelViolations") Collection<ModelBeanViolation> modelViolations, final @MapsTo("domainViolations") Collection<DomainViolation> domainViolations, final @MapsTo("type") Type type) { this.uuid = uuid; this.graphViolations = graphViolations; this.modelViolations = modelViolations; this.domainViolations = domainViolations; this.type = type; }