| Method from org.apache.xmlbeans.impl.inst2xsd.util.Attribute Detail: |
public QName getName() {
return _name;
}
|
public Attribute getRef() {
return _ref;
}
|
public Type getType() {
return isRef() ? getRef().getType() : _type;
}
|
public boolean isGlobal() {
return _isGlobal;
}
|
public boolean isOptional() {
return _isOptional;
}
|
public boolean isRef() {
return _ref!=null;
}
|
public void setGlobal(boolean isGlobal) {
_isGlobal = isGlobal;
}
|
public void setName(QName name) {
_name = name;
}
|
public void setOptional(boolean isOptional) {
assert isOptional && !isGlobal() : "Global attributes cannot be optional.";
_isOptional = isOptional;
}
|
public void setRef(Attribute ref) {
assert !isGlobal();
_ref = ref;
_type = null;
}
|
public void setType(Type type) {
assert !isRef();
_type = type;
}
|
public String toString() {
return "\n Attribute{" +
"_name=" + _name +
", _type=" + _type +
", _ref=" + (_ref!=null) +
", _isGlobal=" + _isGlobal +
", _isOptional=" + _isOptional +
"}";
}
|