com.thaiopensource.xml.infer.AttributeDecl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trang Show documentation
Show all versions of trang Show documentation
Trang, a multi-format schema converter based on RELAX NG.
package com.thaiopensource.xml.infer;
import com.thaiopensource.xml.util.Name;
public class AttributeDecl {
private final Name datatype;
private final boolean optional;
public AttributeDecl(Name datatype, boolean optional) {
this.datatype = datatype;
this.optional = optional;
}
/**
* @return null for anything
*/
public Name getDatatype() {
return datatype;
}
public boolean isOptional() {
return optional;
}
}