public EndPointGroupBuilder(EndPointGroup base) { this._name = base.getName(); if (base instanceof EndPointGroupImpl) { EndPointGroupImpl impl = (EndPointGroupImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.intent.rev150122.intent.subjects.subject.end.point.group.EndPointGroup> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.intent.rev150122.intent.subjects.subject.end.point.group.EndPointGroup>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public EndPointGroupBuilder(EndPointGroup base) { this._name = base.getName(); if (base instanceof EndPointGroupImpl) { EndPointGroupImpl impl = (EndPointGroupImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.intent.rev150122.intent.subjects.subject.end.point.group.EndPointGroup> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.intent.rev150122.intent.subjects.subject.end.point.group.EndPointGroup>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
private String extractEndPointName(final EndPointGroup endPointGroup) { return endPointGroup.getEndPointGroup().getName(); }
if (!Objects.equals(_name, other.getName())) { return false;
private Map<String, String> getMappingServiceContent(final EndPointGroup endPointGroup) throws IntentElementNotFoundException { final String endPointGroupName = endPointGroup.getEndPointGroup().getName(); final String CONTENT_NOT_FOUND_MESSAGE = "Content not found for EndPointGroup: " + endPointGroupName; final Map<String, String> contentMap = intentMappingService.get(endPointGroupName); if(contentMap.isEmpty()) { throw new IntentElementNotFoundException(CONTENT_NOT_FOUND_MESSAGE); } return contentMap; } }
EndPointGroup endPointGroup = (EndPointGroup) subjects.getSubject(); sb.append(String.format(" Order: %d\n", subjects.getOrder())); sb.append(String.format(" " + value + ": %s\n", endPointGroup.getEndPointGroup().getName())); sb.append("\n");
&& subjects.get(1).getSubject() instanceof EndPointGroup) { String from = ((EndPointGroup) subjects.get(0).getSubject()).getEndPointGroup().getName(); String to = ((EndPointGroup) subjects.get(1).getSubject()).getEndPointGroup().getName(); String bandwidthStr = constraint.getBandwidthConstraint().getBandwidth(); long bandwidth = parseBandwidthString(bandwidthStr);
private String getEndpointIdentifier(Subjects subject) { String endpointGroupIdentifier = ""; //Retrieve the appropriate endpoint group identifier if (subject.getSubject() instanceof EndPointSelector) { EndPointSelector endPointSelector = (EndPointSelector) subject.getSubject(); endpointGroupIdentifier = endPointSelector.getEndPointSelector().getEndPointSelector(); } if (subject.getSubject() instanceof EndPointGroupSelector) { EndPointGroupSelector endPointGroupSelector = (EndPointGroupSelector) subject.getSubject(); endpointGroupIdentifier = endPointGroupSelector.getEndPointGroupSelector().getEndPointGroupSelector(); } if (subject.getSubject() instanceof EndPointGroup) { EndPointGroup endPointGroup = (EndPointGroup) subject.getSubject(); endpointGroupIdentifier = endPointGroup.getEndPointGroup().getName(); } return endpointGroupIdentifier; }