blob: 63c86bb0640b2e9fe094ac4488a237a3268404bd [file] [log] [blame]
package org.eclipse.wst.xml.xpath2.processor.internal.types;
import org.eclipse.wst.xml.xpath2.api.AtomicItemType;
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition;
public class SimpleAtomicTypeImpl implements AtomicItemType {
private TypeDefinition typeDefinition;
public SimpleAtomicTypeImpl(TypeDefinition typeDefinition) {
super();
this.typeDefinition = typeDefinition;
}
public int getOccurrence() {
return OCCURRENCE_ONE;
}
public TypeDefinition getTypeDefinition() {
return typeDefinition;
}
}