![JAR search and dependency download from the Maven repository](/logo.png)
io.legaldocml.akn.attribute.Core Maven / Gradle / Ivy
package io.legaldocml.akn.attribute;
import io.legaldocml.akn.AknObject;
import io.legaldocml.diff.DiffContext;
import io.legaldocml.io.Attribute;
import io.legaldocml.io.XmlWriter;
import java.io.IOException;
import java.util.List;
/**
* This attribute list are used to specify the fact that any attribute can be specified for this element if it belongs
* to a different namespace.
*
* ```xml
*
*
*
* ```
*
* @author Jacques Militello
*/
public interface Core extends AknObject {
default void add(Attribute attribute) {
throw new UnsupportedOperationException("for [" + getClass() + "]");
}
default List getAttributes() {
return null;
}
@Override
default void write(XmlWriter writer) throws IOException {
if (getAttributes() != null) {
for (Attribute attribute : getAttributes()) {
attribute.write(writer);
}
}
}
/**
* {@inheritDoc}
*/
@Override
default void nestedCompare(AknObject object, DiffContext context) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy