Java Code Examples for com.sun.xml.xsom.XSIdentityConstraint

The following examples show how to use com.sun.xml.xsom.XSIdentityConstraint. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jolie   Source File: SchemaSetImpl.java    License: GNU Lesser General Public License v2.1 5 votes vote down vote up
public Iterator<XSIdentityConstraint> iterateIdentityConstraints() {
    return new Iterators.Map<XSIdentityConstraint,XSSchema>(iterateSchema()) {
        protected Iterator<XSIdentityConstraint> apply(XSSchema u) {
            return u.getIdentityConstraints().values().iterator();
        }
    };
}
 
Example 2
Source Project: jolie   Source File: ElementDecl.java    License: GNU Lesser General Public License v2.1 5 votes vote down vote up
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,
    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.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();
}
 
Example 3
Source Project: jolie   Source File: XSFinder.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public Boolean identityConstraint(XSIdentityConstraint decl) {
    return Boolean.FALSE;
}
 
Example 4
public T identityConstraint(XSIdentityConstraint decl) {
    return core.identityConstraint(decl);
}
 
Example 5
Source Project: jolie   Source File: NameGetter.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public String identityConstraint(XSIdentityConstraint decl) {
    return localize("idConstraint");
}
 
Example 6
public String identityConstraint(XSIdentityConstraint decl) {
    return decl.getName()+" "+nameGetter.identityConstraint(decl);
}
 
Example 7
Source Project: jolie   Source File: SchemaSetImpl.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public XSIdentityConstraint getIdentityConstraint(String ns, String localName) {
    XSSchema schema = getSchema(ns);
    if(schema==null)    return null;

    return schema.getIdentityConstraint(localName);
}
 
Example 8
Source Project: jolie   Source File: XPathImpl.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public void setParent(XSIdentityConstraint parent) {
    this.parent = parent;
}
 
Example 9
Source Project: jolie   Source File: XPathImpl.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public XSIdentityConstraint getParent() {
    return parent;
}
 
Example 10
public XSIdentityConstraint getReferencedKey() {
    if(category==KEYREF)
        return refer.get();
    else
        throw new IllegalStateException("not a keyref");
}
 
Example 11
public XSIdentityConstraint get() {
    return this;
}
 
Example 12
Source Project: jolie   Source File: SchemaImpl.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public Map<String, XSIdentityConstraint> getIdentityConstraints() {
    return idConstraintsView;
}
 
Example 13
Source Project: jolie   Source File: SchemaImpl.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public XSIdentityConstraint getIdentityConstraint(String localName) {
    return idConstraints.get(localName);
}
 
Example 14
Source Project: jolie   Source File: ElementDecl.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public List<XSIdentityConstraint> getIdentityConstraints() {
    return idConstraints;
}
 
Example 15
public void identityConstraint(XSIdentityConstraint ic) {
}
 
Example 16
Source Project: jolie   Source File: SchemaWriter.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public void identityConstraint(XSIdentityConstraint decl) {
    // TODO
}
 
Example 17
public Iterator<T> identityConstraint(XSIdentityConstraint decl) {
    return empty();
}
 
Example 18
Source Project: jolie   Source File: Axis.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public Iterator<XSIdentityConstraint> elementDecl(XSElementDecl decl) {
    return decl.getIdentityConstraints().iterator();
}
 
Example 19
Source Project: jolie   Source File: Axis.java    License: GNU Lesser General Public License v2.1 4 votes vote down vote up
public Iterator<XSIdentityConstraint> identityConstraint(XSIdentityConstraint decl) {
    return singleton(decl.getReferencedKey());
}
 
Example 20
@Override
public T identityConstraint(XSIdentityConstraint decl) {
	return defaultValue(decl);
}
 
Example 21
public void identityConstraint(XSIdentityConstraint decl) {
}
 
Example 22
public void identityConstraint(XSIdentityConstraint decl) {
	todo("Identity constraint.");
}
 
Example 23
public T identityConstraint(XSIdentityConstraint arg0) {
	return null;
}
 
Example 24
public void identityConstraint(XSIdentityConstraint decl) {
    // TODO
}
 
Example 25
public void identityConstraint(XSIdentityConstraint decl) {
	// todo("Identity constraint.");
}
 
Example 26
public void identityConstraint(XSIdentityConstraint decl) {
	// todo("Identity constraint.");
}
 
Example 27
Source Project: citygml4j   Source File: SchemaWalker.java    License: Apache License 2.0 4 votes vote down vote up
public void identityConstraint(XSIdentityConstraint decl) {
}
 
Example 28
Source Project: citygml4j   Source File: SchemaWriter.java    License: Apache License 2.0 4 votes vote down vote up
public void identityConstraint(XSIdentityConstraint decl) {
	// TODO
}
 
Example 29
Source Project: dynaform   Source File: XmlFormBuilder.java    License: Artistic License 2.0 4 votes vote down vote up
public XmlForm identityConstraint(XSIdentityConstraint decl) {
  if (log.isDebugEnabled())
    log.debug("Identity Constraint: " + decl);

  return null;
}
 
Example 30
Source Project: jolie   Source File: XSVisitor.java    License: GNU Lesser General Public License v2.1 votes vote down vote up
void identityConstraint( XSIdentityConstraint decl);