Java Code Examples for org.opendaylight.yangtools.yang.common.QName#readFrom()
The following examples show how to use
org.opendaylight.yangtools.yang.common.QName#readFrom() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NIPv2.java From yangtools with Eclipse Public License 1.0 | 6 votes |
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { final QName qname = QName.readFrom(in); final int size = in.readInt(); switch (size) { case 0: nip = NodeIdentifierWithPredicates.of(qname); break; case 1: nip = NodeIdentifierWithPredicates.of(qname, QName.readFrom(in), in.readObject()); break; default: final Builder<QName, Object> keys = ImmutableMap.builderWithExpectedSize(size); for (int i = 0; i < size; ++i) { keys.put(QName.readFrom(in), in.readObject()); } nip = NodeIdentifierWithPredicates.of(qname, keys.build()); } }
Example 2
Source File: AIv1.java From yangtools with Eclipse Public License 1.0 | 5 votes |
@Override public void readExternal(final ObjectInput in) throws IOException { final int count = in.readInt(); final QName[] qnames = new QName[count]; for (int i = 0; i < count; ++i) { qnames[i] = QName.readFrom(in); } ai = new AugmentationIdentifier(ImmutableSet.copyOf(qnames)); }
Example 3
Source File: NIv1.java From yangtools with Eclipse Public License 1.0 | 4 votes |
@Override public void readExternal(final ObjectInput in) throws IOException { nid = new NodeIdentifier(QName.readFrom(in)); }
Example 4
Source File: NIVv1.java From yangtools with Eclipse Public License 1.0 | 4 votes |
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { niv = new NodeWithValue<>(QName.readFrom(in), in.readObject()); }
Example 5
Source File: DSIv1.java From yangtools with Eclipse Public License 1.0 | 4 votes |
@Override public void readExternal(final ObjectInput in) throws IOException { qname = QName.readFrom(in); }
Example 6
Source File: NIPv1.java From yangtools with Eclipse Public License 1.0 | 4 votes |
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { final QName qname = QName.readFrom(in); nip = NodeIdentifierWithPredicates.of(qname, (Map<QName, Object>) in.readObject()); }
Example 7
Source File: MPIv1.java From yangtools with Eclipse Public License 1.0 | 4 votes |
@Override public void readExternal(final ObjectInput in) throws IOException { qname = QName.readFrom(in); }