@Override public IPropertyInfo getEntityIdProperty(IType rootType) { return rootType.getTypeInfo().getProperty("ID"); }
public static IPropertyInfo findProperty( IType type, String propertyName ) { ITypeInfo typeInfo = type.getTypeInfo(); return typeInfo instanceof IRelativeTypeInfo ? ((IRelativeTypeInfo)typeInfo).getProperty( type, propertyName ) : typeInfo.getProperty( propertyName ); }
static IPropertyInfo getPropertyInfo( IType rootType, String propName ) { ITypeInfo typeInfo = rootType.getTypeInfo(); if( typeInfo instanceof IRelativeTypeInfo ) { return ((IRelativeTypeInfo)typeInfo).getProperty( rootType, propName ); } else { return typeInfo.getProperty( propName ); } }
static IPropertyInfo getPropertyInfo( IType rootType, String propName ) { ITypeInfo typeInfo = rootType.getTypeInfo(); if( typeInfo instanceof IRelativeTypeInfo ) { return ((IRelativeTypeInfo)typeInfo).getProperty( rootType, propName ); } else { return typeInfo.getProperty( propName ); } }
public static IPropertyInfo findProperty( IType type, String propertyName ) { ITypeInfo typeInfo = type.getTypeInfo(); return typeInfo instanceof IRelativeTypeInfo ? ((IRelativeTypeInfo)typeInfo).getProperty( type, propertyName ) : typeInfo.getProperty( propertyName ); }
public IPropertyInfo getProperty( CharSequence property ) { return JavaTypes.OBJECT().getTypeInfo().getProperty( property ); }
@Override public XmlElement wrap( Object value, XmlElement componentElement ) { IType type = _parameterPropertySpec.getElementPropertyGosuType(); ITypeInfo typeInfo = type.getTypeInfo(); typeInfo.getProperty( "$Value" ).getAccessor().setValue( componentElement, value ); return componentElement; }
@SuppressWarnings( {"MethodNameSameAsClassName"} ) public java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.Choice> Choice() { //noinspection unchecked return (java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.Choice>) TYPE.get().getTypeInfo().getProperty( "Choice" ).getAccessor().getValue( this ); }
@SuppressWarnings( {"MethodNameSameAsClassName"} ) public java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.Sequence> Sequence() { //noinspection unchecked return (java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.Sequence>) TYPE.get().getTypeInfo().getProperty( "Sequence" ).getAccessor().getValue( this ); }
@SuppressWarnings( {"MethodNameSameAsClassName"} ) public java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.anonymous.elements.Group_Group> Group() { //noinspection unchecked return (java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.anonymous.elements.Group_Group>) TYPE.get().getTypeInfo().getProperty( "Group" ).getAccessor().getValue( this ); }
@SuppressWarnings( {"MethodNameSameAsClassName"} ) public java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.anonymous.elements.AttributeGroup_AttributeGroup> AttributeGroup() { //noinspection unchecked return (java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.anonymous.elements.AttributeGroup_AttributeGroup>) TYPE.get().getTypeInfo().getProperty( "AttributeGroup" ).getAccessor().getValue( this ); }
@SuppressWarnings( {"MethodNameSameAsClassName"} ) public java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.anonymous.elements.NamedAttributeGroup_AttributeGroup> AttributeGroup() { //noinspection unchecked return (java.util.List<gw.internal.schema.gw.xsd.w3c.xmlschema.anonymous.elements.NamedAttributeGroup_AttributeGroup>) TYPE.get().getTypeInfo().getProperty( "AttributeGroup" ).getAccessor().getValue( this ); }
public java.util.List<java.net.URI> getValue$$gw_xsd_w3c_soap11_envelope_types_simple_EncodingStyle() { //noinspection unchecked return (java.util.List<java.net.URI>) TYPE.get().getTypeInfo().getProperty( "$Value" ).getAccessor().getValue( this ); }
public TransactionId( java.lang.String value ) { this(); TYPE.get().getTypeInfo().getProperty( "$Value" ).getAccessor().setValue( this, value ); }
private List<IPropertyAccessor> getIdAccessors( XmlElement element ) { List<IPropertyAccessor> accessors = new ArrayList<IPropertyAccessor>(); final XmlSchemaTypeSchemaInfo schemaInfo = XmlSchemaIndex.getSchemaInfoByType( element.getTypeInstance().getIntrinsicType() ); for ( XmlSchemaPropertySpec property : schemaInfo.getProperties() ) { if ( property.getSimpleValueFactory() instanceof IDSimpleValueFactory ) { String propertyName = property.getSimpleTypePropertyName(); accessors.add( element.getTypeInstance().getIntrinsicType().getTypeInfo().getProperty( propertyName ).getAccessor() ); } } return accessors.isEmpty() ? null : accessors; }
private void resolveRequestTransformAnnotation( IType type, WsiInvocationContextImpl.WebService webservice ) { IAnnotationInfo requestTransformAnnotation = type.getTypeInfo().getAnnotation( _requestTransformType ); if ( requestTransformAnnotation != null ) { Object instance = requestTransformAnnotation.getInstance(); webservice._requestTransform = (Function1) _requestTransformType.getTypeInfo().getProperty( "Transform" ).getAccessor().getValue( instance ); } }
private void resolveResponseXmlTransformAnnotation( IType type, WsiInvocationContextImpl.WebService webservice ) { IAnnotationInfo xmlTransformAnnotation = type.getTypeInfo().getAnnotation( _responseXmlTransformType ); if ( xmlTransformAnnotation != null ) { Object instance = xmlTransformAnnotation.getInstance(); webservice._responseXmlTransform = (Function1) _responseXmlTransformType.getTypeInfo().getProperty( "Transform" ).getAccessor().getValue( instance ); } }
private void resolveResponseTransformAnnotation( IType type, WsiInvocationContextImpl.WebService webservice ) { IAnnotationInfo responseTransformAnnotation = type.getTypeInfo().getAnnotation( _responseTransformType ); if ( responseTransformAnnotation != null ) { Object instance = responseTransformAnnotation.getInstance(); webservice._responseTransform = (Function1) _responseTransformType.getTypeInfo().getProperty( "Transform" ).getAccessor().getValue( instance ); } }
private void resolveRequestXmlTransformAnnotation( IType type, WsiInvocationContextImpl.WebService webservice ) { IAnnotationInfo xmlTransformAnnotation = type.getTypeInfo().getAnnotation( _requestXmlTransformType ); if ( xmlTransformAnnotation != null ) { Object instance = xmlTransformAnnotation.getInstance(); webservice._requestXmlTransform = (Function1) _requestXmlTransformType.getTypeInfo().getProperty( "Transform" ).getAccessor().getValue( instance ); } }
private void resolveInvocationHandlerAnnotation( IType type, WsiInvocationContextImpl.WebService webservice ) { IAnnotationInfo invocationHandlerAnnotationInfo = type.getTypeInfo().getAnnotation( _wsiInvocationHandlerType ); if ( invocationHandlerAnnotationInfo != null ) { Object instance = invocationHandlerAnnotationInfo.getInstance(); webservice._invocationHandler = (DefaultWsiInvocationHandler) _wsiInvocationHandlerType.getTypeInfo().getProperty( "InvocationHandler" ).getAccessor().getValue( instance ); } else { webservice._invocationHandler = new DefaultWsiInvocationHandler(); } }