Package org.eclipse.jst.jsf.metadataprocessors

Examples of org.eclipse.jst.jsf.metadataprocessors.ITypeDescriptor


   * @param atype
   * @return the meta-data type descriptor
   */
  protected ITypeDescriptor createType(IType atype){
    if (atype != null){
      ITypeDescriptor desc = createDescriptorInstance(atype);
      if (desc != null){
        desc.setTypeExtension(atype);
        return desc;
      }
    }
    return null;
  }
View Full Code Here


   * @return IMetaDataEnabledFeature.  <br>Will return null if the type that the feature extension is bound to,
   * is not a subclass of the supplied type
   */
  public IMetaDataEnabledFeature getFeatureAdapterForSubclass(IMetaDataEnabledFeatureExtension feature, Class processingFeature, IType type){
    if (feature != null ){
      ITypeDescriptor aType = AttributeValueRuntimeTypeFactory.getInstance().getType(feature.getTypeID());
      Class klass = aType.getTypeExtension().getClass();
      if (klass.asSubclass(type.getClass()) != null)
        return createFeature(feature, processingFeature);     
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.metadataprocessors.ITypeDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.