本文整理汇总了Java中com.intellij.util.xmlb.annotations.AbstractCollection类的典型用法代码示例。如果您正苦于以下问题:Java AbstractCollection类的具体用法?Java AbstractCollection怎么用?Java AbstractCollection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbstractCollection类属于com.intellij.util.xmlb.annotations包,在下文中一共展示了AbstractCollection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: collectFieldAccessors
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
private static void collectFieldAccessors(@NotNull Class<?> aClass, @NotNull List<MutableAccessor> accessors) {
Class<?> currentClass = aClass;
do {
for (Field field : currentClass.getDeclaredFields()) {
int modifiers = field.getModifiers();
//noinspection deprecation
if (!Modifier.isStatic(modifiers) &&
(field.getAnnotation(OptionTag.class) != null ||
field.getAnnotation(Tag.class) != null ||
field.getAnnotation(Attribute.class) != null ||
field.getAnnotation(Property.class) != null ||
field.getAnnotation(Text.class) != null ||
field.getAnnotation(CollectionBean.class) != null ||
field.getAnnotation(MapAnnotation.class) != null ||
field.getAnnotation(AbstractCollection.class) != null ||
(Modifier.isPublic(modifiers) &&
// we don't want to allow final fields of all types, but only supported
(!Modifier.isFinal(modifiers) || Collection.class.isAssignableFrom(field.getType())) &&
!Modifier.isTransient(modifiers) &&
field.getAnnotation(Transient.class) == null))) {
accessors.add(new FieldAccessor(field));
}
}
}
while ((currentClass = currentClass.getSuperclass()) != null && currentClass.getAnnotation(Transient.class) == null);
}
示例2: getDeviceIds
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Property(surroundWithTag = false)
@Tag("devices")
@AbstractCollection(surroundWithTag = false, elementTag = "device", elementValueAttribute = "id")
public List<String> getDeviceIds() {
return myDeviceIds;
}
示例3: getResponseHandlers
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@AbstractCollection(
elementTypes = {
XPathResponseHandler.class,
JsonPathResponseHandler.class,
RegExResponseHandler.class
},
surroundWithTag = false
)
public List<ResponseHandler> getResponseHandlers() {
Collection<ResponseHandler> handlers = myResponseHandlersMap.values();
return new ArrayList<ResponseHandler>(handlers);
}
示例4: getSelectors
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Tag("selectors")
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
@NotNull
public List<Selector> getSelectors() {
return new ArrayList<Selector>(mySelectors.values());
}
示例5: getBranches
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Override
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag="branch")
public List<BranchInfo> getBranches() {
return myBranches;
}
示例6: getWorkItems
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag="workItem")
@Override
public List<WorkItem> getWorkItems() {
return myWorkItems;
}
示例7: createObject
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
public Object createObject(@NotNull Class<?> aClass, FList<Type> processedTypes) throws Exception {
Object o = ReflectionUtil.newInstance(aClass);
for (MutableAccessor accessor : XmlSerializerUtil.getAccessors(aClass)) {
AbstractCollection abstractCollection = accessor.getAnnotation(AbstractCollection.class);
List<Type> elementTypes = abstractCollection != null ? Arrays.<Type>asList(abstractCollection.elementTypes()) : Collections.<Type>emptyList();
Object value = createValue(accessor.getGenericType(), processedTypes, elementTypes);
if (value != null) {
accessor.set(o, value);
}
}
return o;
}
示例8: getChangeLists
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag = "changelist")
public List<ChangeListInfo> getChangeLists()
{
return myChangeLists;
}
示例9: getBranches
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Override
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag = "branch")
public List<BranchInfo> getBranches()
{
return myBranches;
}
示例10: getWorkItems
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@NotNull
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false, elementTag = "workItem")
@Override
public List<WorkItem> getWorkItems()
{
return myWorkItems;
}
示例11: getGenerators
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@AbstractCollection(
surroundWithTag = false,
elementTypes = {AS3.class, Cocoa.class, Cpp.class, CSharp.class, Delphi.class, Erlang.class, Generator.class, Go.class, Graphviz.class,
HTML.class, IGenerator.class, Java.class, Javascript.class, PHP.class, Python.class, Ruby.class}
)
public List<Generator> getGenerators() {
return generators;
}
示例12: getSubFacets
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
public List<FacetState> getSubFacets() {
return mySubFacets;
}
示例13: getFacets
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
public List<FacetState> getFacets() {
return myFacets;
}
示例14: getArtifacts
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
public List<ArtifactState> getArtifacts() {
return myArtifacts;
}
示例15: getPropertiesList
import com.intellij.util.xmlb.annotations.AbstractCollection; //导入依赖的package包/类
@Property(surroundWithTag = false)
@AbstractCollection(surroundWithTag = false)
public List<ArtifactPropertiesState> getPropertiesList() {
return myPropertiesList;
}