public static TypeUse makeMimeTyped( TypeUse t, MimeType mt ) { if(t.getExpectedMimeType()!=null) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), t.idUse(), mt, t.getAdapterUse() ); }
public static TypeUse makeID( TypeUse t, ID id ) { if(t.idUse()!=ID.NONE) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), id, t.getExpectedMimeType(), t.getAdapterUse() ); }
public static TypeUse makeMimeTyped( TypeUse t, MimeType mt ) { if(t.getExpectedMimeType()!=null) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), t.idUse(), mt, t.getAdapterUse() ); }
public static TypeUse makeMimeTyped( TypeUse t, MimeType mt ) { if(t.getExpectedMimeType()!=null) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), t.idUse(), mt, t.getAdapterUse() ); }
public static TypeUse makeMimeTyped( TypeUse t, MimeType mt ) { if(t.getExpectedMimeType()!=null) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), t.idUse(), mt, t.getAdapterUse() ); }
public static TypeUse makeID( TypeUse t, ID id ) { if(t.idUse()!=ID.NONE) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), id, t.getExpectedMimeType(), t.getAdapterUse() ); }
public static TypeUse makeID( TypeUse t, ID id ) { if(t.idUse()!=ID.NONE) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), id, t.getExpectedMimeType(), t.getAdapterUse() ); }
public static TypeUse makeID( TypeUse t, ID id ) { if(t.idUse()!=ID.NONE) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), id, t.getExpectedMimeType(), t.getAdapterUse() ); }
public static TypeUse makeID( TypeUse t, ID id ) { if(t.idUse()!=ID.NONE) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), id, t.getExpectedMimeType(), t.getAdapterUse() ); }
public static TypeUse makeMimeTyped( TypeUse t, MimeType mt ) { if(t.getExpectedMimeType()!=null) // I don't think we let users tweak the idness, so // this error must indicate an inconsistency within the RI/spec. throw new IllegalStateException(); return new TypeUseImpl( t.getInfo(), t.isCollection(), t.idUse(), mt, t.getAdapterUse() ); }
public static TypeUse adapt(TypeUse t, CAdapter adapter) { assert t.getAdapterUse()==null; // TODO: we don't know how to handle double adapters yet. return new TypeUseImpl(t.getInfo(),t.isCollection(),t.idUse(),t.getExpectedMimeType(),adapter); }
public static TypeUse adapt(TypeUse t, CAdapter adapter) { assert t.getAdapterUse()==null; // TODO: we don't know how to handle double adapters yet. return new TypeUseImpl(t.getInfo(),t.isCollection(),t.idUse(),t.getExpectedMimeType(),adapter); }
public static TypeUse adapt(TypeUse t, CAdapter adapter) { assert t.getAdapterUse()==null; // TODO: we don't know how to handle double adapters yet. return new TypeUseImpl(t.getInfo(),t.isCollection(),t.idUse(),t.getExpectedMimeType(),adapter); }
public static TypeUse adapt(TypeUse t, CAdapter adapter) { assert t.getAdapterUse()==null; // TODO: we don't know how to handle double adapters yet. return new TypeUseImpl(t.getInfo(),t.isCollection(),t.idUse(),t.getExpectedMimeType(),adapter); }
public static TypeUse makeCollection( TypeUse t ) { if(t.isCollection()) return t; CAdapter au = t.getAdapterUse(); if(au!=null && !au.isWhitespaceAdapter()) { // we can't process this right now. // for now bind to a weaker type TODO.checkSpec(); return CBuiltinLeafInfo.STRING_LIST; } return new TypeUseImpl( t.getInfo(), true, t.idUse(), t.getExpectedMimeType(), null ); }
public static TypeUse makeCollection( TypeUse t ) { if(t.isCollection()) return t; CAdapter au = t.getAdapterUse(); if(au!=null && !au.isWhitespaceAdapter()) { // we can't process this right now. // for now bind to a weaker type TODO.checkSpec(); return CBuiltinLeafInfo.STRING_LIST; } return new TypeUseImpl( t.getInfo(), true, t.idUse(), t.getExpectedMimeType(), null ); }
public static TypeUse makeCollection( TypeUse t ) { if(t.isCollection()) return t; CAdapter au = t.getAdapterUse(); if(au!=null && !au.isWhitespaceAdapter()) { // we can't process this right now. // for now bind to a weaker type TODO.checkSpec(); return CBuiltinLeafInfo.STRING_LIST; } return new TypeUseImpl( t.getInfo(), true, t.idUse(), t.getExpectedMimeType(), null ); }
public static TypeUse makeCollection( TypeUse t ) { if(t.isCollection()) return t; CAdapter au = t.getAdapterUse(); if(au!=null && !au.isWhitespaceAdapter()) { // we can't process this right now. // for now bind to a weaker type TODO.checkSpec(); return CBuiltinLeafInfo.STRING_LIST; } return new TypeUseImpl( t.getInfo(), true, t.idUse(), t.getExpectedMimeType(), null ); }
public static TypeUse makeCollection( TypeUse t ) { if(t.isCollection()) return t; CAdapter au = t.getAdapterUse(); if(au!=null && !au.isWhitespaceAdapter()) { // we can't process this right now. // for now bind to a weaker type TODO.checkSpec(); return CBuiltinLeafInfo.STRING_LIST; } return new TypeUseImpl( t.getInfo(), true, t.idUse(), t.getExpectedMimeType(), null ); }
public CValuePropertyInfo createValueProperty(String defaultName,boolean forConstant, XSComponent source,TypeUse tu, QName typeName) { markAsAcknowledged(); constantPropertyErrorCheck(); String name = getPropertyName(forConstant); if(name==null) { name = defaultName; if(tu.isCollection() && getBuilder().getGlobalBinding().isSimpleMode()) name = JJavaName.getPluralForm(name); } CValuePropertyInfo prop = wrapUp(new CValuePropertyInfo(name, source, getCustomizations(source), source.getLocator(), tu, typeName), source); BIInlineBinaryData.handle(source, prop); return prop; }