- return Collections.unmodifiableSet(augmentations);
- }
-
- private void addAvailableAugmentations(Set<AugmentationSchema> augmentations) {
- if (augmentations != null) {
- this.augmentations.addAll(augmentations);
- }
- }
-
- @Override
- public Set<DataSchemaNode> getChildNodes() {
- return Collections.unmodifiableSet(childNodes);
- }
-
- private void addChildNodes(Set<DataSchemaNode> childNodes) {
- if (childNodes != null) {
- this.childNodes.addAll(childNodes);
- }
- }
-
- @Override
- public Set<GroupingDefinition> getGroupings() {
- return Collections.unmodifiableSet(groupings);
- }
-
- private void addGroupings(Set<GroupingDefinition> groupings) {
- if (groupings != null) {
- this.groupings.addAll(groupings);
- }
- }
-
- @Override
- public Set<TypeDefinition<?>> getTypeDefinitions() {
- return Collections.unmodifiableSet(typeDefinitions);
- }
-
- private void addTypeDefinitions(Set<TypeDefinition<?>> typeDefinitions) {
- if (typeDefinitions != null) {
- this.typeDefinitions.addAll(typeDefinitions);
- }
- }
-
- @Override
- public Set<UsesNode> getUses() {
- return Collections.unmodifiableSet(uses);
- }
-
- private void addUses(Set<UsesNode> uses) {
- if (uses != null) {
- this.uses.addAll(uses);
- }
- }
-
- @Override
- public DataSchemaNode getDataChildByName(QName name) {
- return getChildNode(childNodes, name);
- }
-
- @Override
- public DataSchemaNode getDataChildByName(String name) {
- return getChildNode(childNodes, name);