/** * Add the ID of a specification item covered by the item to build * * @param artifactType * the artifact type of the covered item * @param name * the artifact name of the covered item * @param revision * the revision number of the covered item * @return this builder instance */ public Builder addCoveredId(final String artifactType, final String name, final int revision) { this.coveredIds.add(new SpecificationItemId.Builder() // .artifactType(artifactType).name(name).revision(revision) // .build()); return this; }
/** * Add the ID of a specification item covered by the item to build * * @param artifactType * the artifact type of the covered item * @param name * the artifact name of the covered item * @param revision * the revision number of the covered item * @return this builder instance */ public Builder addCoveredId(final String artifactType, final String name, final int revision) { this.coveredIds.add(new SpecificationItemId.Builder() // .artifactType(artifactType).name(name).revision(revision) // .build()); return this; }
/** * Set the specification item ID by its parts * * @param artifactType * the artifact type * @param name * the artifact name * @param revision * the revision number * @return this builder instance */ public Builder id(final String artifactType, final String name, final int revision) { this.id = new SpecificationItemId.Builder() // .artifactType(artifactType).name(name).revision(revision) // .build(); return this; }
/** * Create a specification item ID * * @param artifactType * the artifact type * @param name * the specification item name * @param revision * the revision * @return the specification item ID */ public static SpecificationItemId createId(final String artifactType, final String name, final int revision) { return new SpecificationItemId.Builder().artifactType(artifactType).name(name) .revision(revision).build(); }
/** * Set the specification item ID by its parts * * @param artifactType * the artifact type * @param name * the artifact name * @param revision * the revision number * @return this builder instance */ public Builder id(final String artifactType, final String name, final int revision) { this.id = new SpecificationItemId.Builder() // .artifactType(artifactType).name(name).revision(revision) // .build(); return this; }
/** * Create a specification item ID * * @param artifactType * the artifact type * @param name * the specification item name * @param revision * the revision * @return the specification item ID */ public static SpecificationItemId createId(final String artifactType, final String name, final int revision) { return new SpecificationItemId.Builder().artifactType(artifactType).name(name) .revision(revision).build(); }
public TreeContentHandler build() { this.handler.addElementListener("provcov", elem -> this.providesCoverageIdBuilder = new Builder(), // endElem -> { this.listener.addCoveredId(this.providesCoverageIdBuilder.build()); this.providesCoverageIdBuilder = null; }); this.handler.addCharacterDataListener("linksto", data -> this.providesCoverageIdBuilder.name(data)); this.handler.addIntDataListener("dstversion", data -> this.providesCoverageIdBuilder.revision(data)); return this.handler; } }
public TreeContentHandler build() { this.handler.addElementListener("provcov", elem -> this.providesCoverageIdBuilder = new Builder(), // endElem -> { this.listener.addCoveredId(this.providesCoverageIdBuilder.build()); this.providesCoverageIdBuilder = null; }); this.handler.addCharacterDataListener("linksto", data -> this.providesCoverageIdBuilder.name(data)); this.handler.addIntDataListener("dstversion", data -> this.providesCoverageIdBuilder.revision(data)); return this.handler; } }
/** * Create a specification item ID with a revision wildcard * * @param artifactType * the artifact type * @param name * the specification item name * @return the specification item ID */ public static SpecificationItemId createId(final String artifactType, final String name) { return new SpecificationItemId.Builder().artifactType(artifactType).name(name) .revisionWildcard().build(); }
/** * Create a specification item ID with a revision wildcard * * @param artifactType * the artifact type * @param name * the specification item name * @return the specification item ID */ public static SpecificationItemId createId(final String artifactType, final String name) { return new SpecificationItemId.Builder().artifactType(artifactType).name(name) .revisionWildcard().build(); }
private void informListenerAboutNewItem() { final String idText = this.stateMachine.getLastToken(); final SpecificationItemId id = new SpecificationItemId.Builder(idText).build(); this.listener.beginSpecificationItem(); this.listener.setId(id); this.listener.setLocation(this.file.getPath(), this.lineNumber); if (this.lastTitle != null) { this.listener.setTitle(this.lastTitle); } }
/** * Parse a string for a specification item ID * * @param idText * the string to be parsed * @return the specification item ID */ public static SpecificationItemId parseId(final String idText) { return new Builder(idText).build(); }
/** * Parse a string for a specification item ID * * @param idText * the string to be parsed * @return the specification item ID */ public static SpecificationItemId parseId(final String idText) { return new Builder(idText).build(); }
private void handleEndElement() { this.listener.setId(this.idBuilder.build()); this.listener.setLocation(this.locationBuilder.build()); this.listener.endSpecificationItem(); this.idBuilder = null; this.locationBuilder = null; } }
private void addDependency() { final SpecificationItemId.Builder builder = new SpecificationItemId.Builder( this.stateMachine.getLastToken()); this.listener.addDependsOnId(builder.build()); }
private void informListenerAboutNewItem() { final String idText = this.stateMachine.getLastToken(); final SpecificationItemId id = new SpecificationItemId.Builder(idText).build(); this.listener.beginSpecificationItem(); this.listener.setId(id); this.listener.setLocation(this.file.getPath(), this.lineNumber); if (this.lastTitle != null) { this.listener.setTitle(this.lastTitle); } }
public SpecificationItemId toRevisionWildcard() { return new Builder().artifactType(this.artifactType).name(this.name).revisionWildcard() .build(); }
private void addDependency() { final SpecificationItemId.Builder builder = new SpecificationItemId.Builder( this.stateMachine.getLastToken()); this.listener.addDependsOnId(builder.build()); }
public SpecificationItemId toRevisionWildcard() { return new Builder().artifactType(this.artifactType).name(this.name).revisionWildcard() .build(); }
private void handleEndElement() { this.listener.setId(this.idBuilder.build()); this.listener.setLocation(this.locationBuilder.build()); this.listener.endSpecificationItem(); this.idBuilder = null; this.locationBuilder = null; } }