本文整理汇总了Java中com.sun.xml.internal.xsom.XSIdentityConstraint类的典型用法代码示例。如果您正苦于以下问题:Java XSIdentityConstraint类的具体用法?Java XSIdentityConstraint怎么用?Java XSIdentityConstraint使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XSIdentityConstraint类属于com.sun.xml.internal.xsom包,在下文中一共展示了XSIdentityConstraint类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: iterateIdentityConstraints
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public Iterator<XSIdentityConstraint> iterateIdentityConstraints() {
return new Iterators.Map<XSIdentityConstraint,XSSchema>(iterateSchema()) {
protected Iterator<XSIdentityConstraint> apply(XSSchema u) {
return u.getIdentityConstraints().values().iterator();
}
};
}
示例2: ElementDecl
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public ElementDecl( PatcherManager reader, SchemaDocumentImpl owner,
AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl fa,
String _tns, String _name, boolean _anonymous,
XmlString _defv, XmlString _fixedv,
boolean _nillable, boolean _abstract, Boolean _form,
Ref.Type _type, Ref.Element _substHead,
int _substDisallowed, int _substExcluded,
List<IdentityConstraintImpl> idConstraints) {
super(owner,_annon,_loc,fa,_tns,_name,_anonymous);
this.defaultValue = _defv;
this.fixedValue = _fixedv;
this.nillable = _nillable;
this._abstract = _abstract;
this.form = _form;
this.type = _type;
this.substHead = _substHead;
this.substDisallowed = _substDisallowed;
this.substExcluded = _substExcluded;
this.idConstraints = Collections.unmodifiableList((List<? extends XSIdentityConstraint>)idConstraints);
for (IdentityConstraintImpl idc : idConstraints)
idc.setParent(this);
if(type==null)
throw new IllegalArgumentException();
}
示例3: elementDecl
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public void elementDecl(XSElementDecl decl) {
if(check(decl)) {
decl.getType().visit(this);
for( XSIdentityConstraint id : decl.getIdentityConstraints() )
id.visit(this);
}
}
示例4: identityConstraint
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public void identityConstraint(XSIdentityConstraint id) {
if(check(id)) {
id.getSelector().visit(this);
for( XSXPath xp : id.getFields() )
xp.visit(this);
}
}
示例5: getReferencedKey
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
@Override
public XSIdentityConstraint getReferencedKey() {
if(category==KEYREF)
return refer.get();
else
throw new IllegalStateException("not a keyref");
}
示例6: ElementDecl
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public ElementDecl( PatcherManager reader, SchemaDocumentImpl owner,
AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl fa,
String _tns, String _name, boolean _anonymous,
XmlString _defv, XmlString _fixedv,
boolean _nillable, boolean _abstract, Boolean _form,
Ref.Type _type, Ref.Element _substHead,
int _substDisallowed, int _substExcluded,
List<IdentityConstraintImpl> idConstraints) {
super(owner,_annon,_loc,fa,_tns,_name,_anonymous);
this.defaultValue = _defv;
this.fixedValue = _fixedv;
this.nillable = _nillable;
this._abstract = _abstract;
this.form = _form;
this.type = _type;
this.substHead = _substHead;
this.substDisallowed = _substDisallowed;
this.substExcluded = _substExcluded;
this.idConstraints = (List<XSIdentityConstraint>) Collections.unmodifiableList((List<? extends XSIdentityConstraint>)idConstraints);
for (IdentityConstraintImpl idc : idConstraints)
idc.setParent(this);
if(type==null)
throw new IllegalArgumentException();
}
示例7: identityConstraint
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public Boolean identityConstraint(XSIdentityConstraint decl) {
return Boolean.FALSE;
}
示例8: identityConstraint
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public T identityConstraint(XSIdentityConstraint decl) {
return core.identityConstraint(decl);
}
示例9: identityConstraint
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public String identityConstraint(XSIdentityConstraint decl) {
return localize("idConstraint");
}
示例10: identityConstraint
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public String identityConstraint(XSIdentityConstraint decl) {
return decl.getName()+" "+nameGetter.identityConstraint(decl);
}
示例11: getIdentityConstraint
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public XSIdentityConstraint getIdentityConstraint(String ns, String localName) {
XSSchema schema = getSchema(ns);
if(schema==null) return null;
return schema.getIdentityConstraint(localName);
}
示例12: setParent
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public void setParent(XSIdentityConstraint parent) {
this.parent = parent;
}
示例13: getParent
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public XSIdentityConstraint getParent() {
return parent;
}
示例14: getReferencedKey
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public XSIdentityConstraint getReferencedKey() {
if(category==KEYREF)
return refer.get();
else
throw new IllegalStateException("not a keyref");
}
示例15: get
import com.sun.xml.internal.xsom.XSIdentityConstraint; //导入依赖的package包/类
public XSIdentityConstraint get() {
return this;
}