本文整理了Java中org.nuxeo.common.xmap.annotation.XObject
类的一些代码示例,展示了XObject
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XObject
类的具体详情如下:
包路径:org.nuxeo.common.xmap.annotation.XObject
类名称:XObject
暂无
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
/**
* Descriptor to contribute a {@link PathSegmentService}.
*/
@XObject("service")
public class PathSegmentServiceDescriptor implements Serializable {
private static final long serialVersionUID = 1L;
@XNode("@class")
protected String className;
}
代码示例来源:origin: org.nuxeo.common/nuxeo-common
public XAnnotatedObject(XMap xmap, Class<?> klass, XObject xob) {
try {
this.xmap = xmap;
this.klass = klass;
this.ctor = this.klass.getDeclaredConstructor();
ctor.setAccessible(true);
path = new Path(xob.value());
members = new ArrayList<XAnnotatedMember>();
String[] order = xob.order();
if (order.length > 0) {
sorter = new Sorter(order);
}
} catch (SecurityException e) {
throw new IllegalArgumentException(e);
} catch (NoSuchMethodException e) {
throw new IllegalArgumentException("Invalid xmap class - no default constructor found", e);
}
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
/**
* @since 5.6
*/
@XObject("mapping")
public class PropertiesMappingDescriptor {
@XNode("@name")
protected String name;
@XNodeMap(value = "property", key = "@path", type = HashMap.class, componentType = String.class)
protected Map<String, String> properties = new HashMap<String, String>();
public String getName() {
return name;
}
public Map<String, String> getProperties() {
return properties;
}
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@XObject("validation")
public class DocumentValidationDescriptor {
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@XObject(value = BinaryManagerRootDescriptor.BINARY_STORE)
public class BinaryManagerRootDescriptor {
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@XObject("adapter")
public class DocumentAdapterDescriptor {
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@XObject("adapter")
public class ExternalBlobAdapterDescriptor {
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@XObject("repository")
public class Repository {
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@XObject(value = "blobprovider")
public class BlobProviderDescriptor {
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@XObject("thumbnailFactory")
public class ThumbnailFactoryDescriptor implements Serializable {
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@XObject("blobHolderFactory")
public class BlobHolderFactoryDescriptor implements Serializable {
代码示例来源:origin: org.nuxeo.ecm.webengine/nuxeo-webengine-core
/**
* Obsolete since 8.4, transactions are always active.
*/
@XObject("path")
public class PathDescriptor {
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-forms-layout-core
/**
* Layout column descriptor, acts as an alias of {@link LayoutRowDescriptor}.
*
* @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a>
*/
@XObject("column")
public class LayoutColumnDescriptor extends LayoutRowDescriptor {
}
代码示例来源:origin: org.nuxeo.ecm.webengine/nuxeo-webengine-gwt
@XObject("strategy")
public class GwtWarStrategy extends GwtWarLocation {
public Strategy strategy;
@XNode()
void setResolver(Class<? extends Strategy> type) {
try {
strategy = type.newInstance();
} catch (ReflectiveOperationException cause) {
throw new NuxeoException("Cannot load " + type, cause);
}
}
@Override
public String toString() {
return "GWT War Strategy Resolver [" + name + "," + strategy.source() + "]";
}
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-storage-mem
/**
* Memory Repository Descriptor.
*
* @since 8.1
*/
@XObject(value = "repository")
public class MemRepositoryDescriptor extends DBSRepositoryDescriptor {
public MemRepositoryDescriptor() {
}
@Override
public MemRepositoryDescriptor clone() {
return (MemRepositoryDescriptor) super.clone();
}
public void merge(MemRepositoryDescriptor other) {
super.merge(other);
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-query-api
/**
* Core Query page provider descriptor.
*
* @author Anahide Tchertchian
* @since 5.4
*/
@XObject("coreQueryPageProvider")
public class CoreQueryPageProviderDescriptor extends BasePageProviderDescriptor implements PageProviderDefinition {
private static final long serialVersionUID = 1L;
@Override
protected BasePageProviderDescriptor newInstance() {
return new CoreQueryPageProviderDescriptor();
}
@Override
public CoreQueryPageProviderDescriptor clone() {
return (CoreQueryPageProviderDescriptor) super.cloneDescriptor();
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-query-api
/**
* @since 6.0
*/
@XObject("propertyList")
public class PropertyListDescriptor implements Serializable {
private static final long serialVersionUID = 1L;
@XNodeList(value = "value", type = String[].class, componentType = String.class)
String[] values = new String[0];
public String[] getValues() {
return values;
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-notification-core
/**
* @author <a href="mailto:npaslaru@nuxeo.com">Narcis Paslaru</a>
*/
@XObject("event")
public class NotificationEventDescriptor {
@XNode("@name")
protected String name;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-htmlsanitizer
@XObject("antisamy")
public class HtmlSanitizerAntiSamyDescriptor {
@XNode("@policy")
public String policy;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-forms-layout-core
/**
* @since 5.5
*/
@XObject("renderingInfos")
public class RenderingInfosDescriptor {
@XNodeList(value = "renderingInfo", type = ArrayList.class, componentType = RenderingInfoDescriptor.class)
List<RenderingInfoDescriptor> renderingInfos;
public List<RenderingInfoDescriptor> getRenderingInfos() {
return renderingInfos;
}
}
内容来源于网络,如有侵权,请联系作者删除!