/** * Construct QName for Built-in base Yang type. The namespace for built-in * base yang types is defined as: urn:ietf:params:xml:ns:yang:1 * * @param typeName * yang type name * @return built-in base yang type QName. */ public static QName constructQName(final String typeName) { return QName.create(YangConstants.RFC6020_YANG_MODULE, typeName).intern(); }
/** * Construct QName for Built-in base Yang type. The namespace for built-in * base yang types is defined as: urn:ietf:params:xml:ns:yang:1 * * @param typeName * yang type name * @return built-in base yang type QName. */ public static QName constructQName(final String typeName) { return QName.create(YangConstants.RFC6020_YANG_MODULE, typeName).intern(); }
public static QName qnameOf(final java.lang.String localName) { return QName.create(NAME, localName).intern(); }
public static QName qnameOf(final java.lang.String localName) { return QName.create(NAME, localName).intern(); }
public static QName qnameOf(final java.lang.String localName) { return QName.create(NAME, localName).intern(); }
NACMStatements(final QName statementName, final Class<? extends DeclaredStatement<?>> declaredRepresentation, final Class<? extends EffectiveStatement<?, ?>> effectiveRepresentation) { this.statementName = statementName.intern(); this.declaredRepresentation = requireNonNull(declaredRepresentation); this.effectiveRepresentation = requireNonNull(effectiveRepresentation); }
NACMStatements(final QName statementName, final Class<? extends DeclaredStatement<?>> declaredRepresentation, final Class<? extends EffectiveStatement<?, ?>> effectiveRepresentation) { this.statementName = statementName.intern(); this.declaredRepresentation = requireNonNull(declaredRepresentation); this.effectiveRepresentation = requireNonNull(effectiveRepresentation); }
OpenDaylightExtensionsStatements(final QName statementName, final String argumentName, final Class<? extends DeclaredStatement<?>> declaredRepresentation, final Class<? extends EffectiveStatement<?, ?>> effectiveRepresentation) { this.statementName = statementName.intern(); this.argumentName = QName.create(statementName, argumentName); this.declaredRepresentation = requireNonNull(declaredRepresentation); this.effectiveRepresentation = requireNonNull(effectiveRepresentation); }
MetadataStatements(final QName statementName, final String argumentName, final Class<? extends DeclaredStatement<?>> declaredRepresentation, final Class<? extends EffectiveStatement<?, ?>> effectiveRepresentation) { this.statementName = statementName.intern(); this.argumentName = QName.create(statementName, argumentName); this.declaredRepresentation = requireNonNull(declaredRepresentation); this.effectiveRepresentation = requireNonNull(effectiveRepresentation); }
OpenDaylightExtensionsStatements(final QName statementName, final String argumentName, final Class<? extends DeclaredStatement<?>> declaredRepresentation, final Class<? extends EffectiveStatement<?, ?>> effectiveRepresentation) { this.statementName = statementName.intern(); this.argumentName = QName.create(statementName, argumentName); this.declaredRepresentation = requireNonNull(declaredRepresentation); this.effectiveRepresentation = requireNonNull(effectiveRepresentation); }
YangDataStatements(final QName statementName, final String argumentName, final Class<? extends DeclaredStatement<?>> declaredRepresentation, final Class<? extends EffectiveStatement<?, ?>> effectiveRepresentation) { this.statementName = statementName.intern(); this.argumentName = QName.create(statementName, argumentName); this.declaredRepresentation = requireNonNull(declaredRepresentation); this.effectiveRepresentation = requireNonNull(effectiveRepresentation); }
YangDataStatements(final QName statementName, final String argumentName, final Class<? extends DeclaredStatement<?>> declaredRepresentation, final Class<? extends EffectiveStatement<?, ?>> effectiveRepresentation) { this.statementName = statementName.intern(); this.argumentName = QName.create(statementName, argumentName); this.declaredRepresentation = requireNonNull(declaredRepresentation); this.effectiveRepresentation = requireNonNull(effectiveRepresentation); }
@SuppressFBWarnings("NP_STORE_INTO_NONNULL_FIELD") OpenConfigStatements(final QName statementName, @Nullable final String argumentName, final Class<? extends DeclaredStatement<?>> declaredRepresentation, final Class<? extends EffectiveStatement<?, ?>> effectiveRepresentation) { this.statementName = statementName.intern(); this.argumentName = argumentName != null ? QName.create(statementName, argumentName) : null; this.declaredRepresentation = requireNonNull(declaredRepresentation); this.effectiveRepresentation = requireNonNull(effectiveRepresentation); }
@Override public ImmutableSet<QName> load(final QNameModule key) { return ImmutableSet.of(QName.create(key, Origin.QNAME.getLocalName()).intern(), QName.create(key, AsPath.QNAME.getLocalName()).intern(), QName.create(key, CNextHop.QNAME.getLocalName()).intern(), QName.create(key, Communities.QNAME.getLocalName()).intern(), QName.create(key, ExtendedCommunities.QNAME.getLocalName()).intern()); } });
AbstractImplAdapter(final BindingNormalizedNodeCodecRegistry codec, final Class<? extends Operation> clazz, final D delegate) { this.codec = requireNonNull(codec); this.delegate = requireNonNull(delegate); inputQname = QName.create(BindingReflections.getQNameModule(clazz), "input").intern(); }
private void putNoRev(final QName qname, final StatementSupport<?, ?, ?> support) { final QName norev = qname.withoutRevision(); noRevQNameToSupport.put(norev != qname ? norev.intern() : qname, support); }
@Override public QName apply(final QName input) { QNameModule potential = mapping.get(input.getModule()); if (potential != null) { return QName.create(potential, input.getLocalName()).intern(); } return input; } }
protected AbstractFlowspecL3vpnRIBSupport( final Class<? extends Routes> cazeClass, final Class<? extends DataObject> containerClass, final Class<? extends Route> listClass, final QName dstContainerClassQName, final Class<? extends AddressFamily> afiClass, final T flowspecNlriParser ) { super(cazeClass, containerClass, listClass, afiClass, FlowspecL3vpnSubsequentAddressFamily.class, dstContainerClassQName, flowspecNlriParser); this.routeDistinguisherNID = new NodeIdentifier(QName.create(routeQName(), "route-distinguisher").intern()); }
private static AdvertizedTableTypes addTableType(final BgpTableType type) { Preconditions.checkNotNull(type); final AdvertizedTableTypes att = new AdvertizedTableTypes(); final QName afi = BindingReflections.findQName(type.getAfi()).intern(); final QName safi = BindingReflections.findQName(type.getSafi()).intern(); att.setAfi(new IdentityAttributeRef(afi.toString())); att.setSafi(new IdentityAttributeRef(safi.toString())); return att; }
private static AdvertisedAddPathTableTypes addAddPathTableType(final AddressFamilies addressFamilies) { Preconditions.checkNotNull(addressFamilies); final AdvertisedAddPathTableTypes att = new AdvertisedAddPathTableTypes(); att.setAfi(new IdentityAttributeRef(BindingReflections.findQName(addressFamilies.getAfi()).intern().toString())); att.setSafi(new IdentityAttributeRef(BindingReflections.findQName(addressFamilies.getSafi()).intern().toString())); att.setSendReceive(addressFamilies.getSendReceive()); return att; }