本文整理汇总了Java中javax.xml.bind.annotation.XmlElements类的典型用法代码示例。如果您正苦于以下问题:Java XmlElements类的具体用法?Java XmlElements怎么用?Java XmlElements使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XmlElements类属于javax.xml.bind.annotation包,在下文中一共展示了XmlElements类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setComptesCommunaux
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name="comptesCommunaux")
@XmlElements({@XmlElement(name="compteCommunal", type=CompteCommunal.class)})
/**
* @param comptesCommunaux the comptesCommunaux to set
*/
public void setComptesCommunaux(List<CompteCommunal> comptesCommunaux) {
this.comptesCommunaux = comptesCommunaux;
}
示例2: setProprietes
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name="proprietes")
@XmlElements({@XmlElement(name="propriete", type=ProprieteBatie.class)})
/**
* @param proprietes
*/
public void setProprietes(List<ProprieteBatie> proprietes) {
this.proprietes = proprietes;
}
示例3: setParcelleList
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name="parcelles")
@XmlElements({@XmlElement(name="parcelle", type=Parcelle.class)})
/**
* @param parcelleList the parcelleList to set
*/
public void setParcelleList(List<Parcelle> parcelleList) {
this.parcelleList = parcelleList;
}
示例4: setProprietaires
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "proprietaires")
@XmlElements({ @XmlElement(name = "Proprietaire", type = Proprietaire.class) })
/**
* @param proprietaires
*/
public void setProprietaires(List<Proprietaire> proprietaires) {
this.proprietaires = proprietaires;
}
示例5: supportsCriteriaValue
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
static boolean supportsCriteriaValue(Class<? extends SingleValuedPredicate> simplePredicateClass, CriteriaValue<?> value) {
if (simplePredicateClass == null) {
throw new IllegalArgumentException("simplePredicateClass was null");
}
if (value == null) {
throw new IllegalArgumentException("valueClass was null");
}
XmlElements elementsAnnotation = CriteriaSupportUtils.findXmlElementsAnnotation(simplePredicateClass);
if (elementsAnnotation != null) {
XmlElement[] elements = elementsAnnotation.value();
for (XmlElement element : elements) {
if (value.getClass().equals(element.type())) {
return true;
}
}
}
return false;
}
示例6: setActivites
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElements({
@XmlElement(name="activity"),
@XmlElement(name="activity-alias")
})
public void setActivites(List<Activity> activites) {
this.activites = activites;
}
示例7: getValues
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "values")
@XmlElements({
@XmlElement(name = "byte", type = Byte.class),
@XmlElement(name = "double", type = Double.class),
@XmlElement(name = "float", type = Float.class),
@XmlElement(name = "short", type = Short.class),
@XmlElement(name = "integer", type = Integer.class),
@XmlElement(name = "long", type = Long.class),
@XmlElement(name = "string", type = String.class)
})
public List<Object> getValues() {
return values;
}
示例8: getResources
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElements({ @XmlElement(name = "resource") })
@XmlElementWrapper(name = "resources")
public final List<MCRIViewClientResource> getResources() {
return resources.entries()
.stream()
.map(entry -> new MCRIViewClientResource(entry.getKey(), entry.getValue()))
.collect(Collectors.toList());
}
示例9: getProperties
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElements({ @XmlElement(name = "property") })
@XmlElementWrapper(name = "properties")
public final List<MCRIViewClientProperty> getProperties() {
return properties.entrySet()
.stream()
.map(entry -> new MCRIViewClientProperty(entry.getKey(), entry.getValue()))
.collect(Collectors.toList());
}
示例10: getConnections
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "connections")
@XmlElements({
@XmlElement(type = MutableSiblingConnection.class, name = "sibling-connection"),
@XmlElement(type = MutableParentInToChildInConnection.class, name = "parent-to-child-connection"),
@XmlElement(type = MutableChildOutToParentOutConnection.class, name = "child-to-parent-connection"),
@XmlElement(type = MutableShortCircuitConnection.class, name = "short-circuit-connection")
})
@Override
public final List<MutableConnection<?>> getConnections() {
return connections;
}
示例11: getTargets
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "targets")
@XmlElements({
@XmlElement(type = JAXBAdapters.JAXBElementPatternTarget.class, name = "element-regex"),
@XmlElement(type = JAXBAdapters.JAXBElementTarget.class, name = "element"),
@XmlElement(type = JAXBAdapters.JAXBExecutionTracePatternTarget.class, name = "execution-trace-regex"),
@XmlElement(type = JAXBAdapters.JAXBExecutionTraceTarget.class, name = "execution-trace")
})
@Override
public List<MutableOverrideTarget<?>> getTargets() {
return overrideTargets;
}
示例12: getGateways
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@JsonProperty( value = "gateways" )
@XmlElementWrapper( name = "gateways" )
@XmlElements( { @XmlElement( name = "bulksms", type = BulkSmsGatewayConfig.class ),
@XmlElement( name = "clickatell", type = ClickatellGatewayConfig.class ),
@XmlElement( name = "http", type = GenericHttpGatewayConfig.class ) })
public List<SmsGatewayConfig> getGateways()
{
return gateways;
}
示例13: getExternalVariables
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "external-variables")
@XmlElements({@XmlElement(name="property-list-variable", type=JaxbPropertyListVariable.class),
@XmlElement(name="relative-date-variable", type=JaxbRelativeDateVariable.class),
@XmlElement(name="property-variable", type=JaxbPropertyValueVariable.class),
@XmlElement(name="fulltext-variable", type=JaxbFullTextVariable.class)})
@Override
public List<ExternalVariable<?>> getExternalVariables() {
return externalVariables;
}
开发者ID:Enterprise-Content-Management,项目名称:documentum-rest-client-java,代码行数:10,代码来源:JaxbSearchTemplate.java
示例14: getExpressions
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper
@XmlElements({@XmlElement(name="expression-set", type=JaxbExpressionSet.class),
@XmlElement(name="fulltext", type=JaxbFullTextExpression.class),
@XmlElement(name="property", type=JaxbPropertyExpression.class),
@XmlElement(name="property-list", type=JaxbPropertyListExpression.class),
@XmlElement(name="property-range", type=JaxbPropertyRangeExpression.class),
@XmlElement(name="relative-date", type=JaxbRelativeDateExpression.class)})
public List<Expression> getExpressions() {
return expressions;
}
示例15: processElements
import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
private void processElements(RoundEnvironment roundEnv, TypeElement classElement, XmlElements elements, VariableElement fieldElement,
Set<EipOption> eipOptions, String prefix) {
Elements elementUtils = processingEnv.getElementUtils();
String fieldName;
fieldName = fieldElement.getSimpleName().toString();
if (elements != null) {
String kind = "element";
String name = fieldName;
name = prefix + name;
TypeMirror fieldType = fieldElement.asType();
String fieldTypeName = fieldType.toString();
String defaultValue = findDefaultValue(fieldElement, fieldTypeName);
String docComment = findJavaDoc(elementUtils, fieldElement, fieldName, name, classElement, true);
boolean required = true;
required = findRequired(fieldElement, required);
// gather oneOf of the elements
Set<String> oneOfTypes = new TreeSet<String>();
for (XmlElement element : elements.value()) {
String child = element.name();
oneOfTypes.add(child);
}
EipOption ep = new EipOption(name, kind, fieldTypeName, required, defaultValue, docComment, false, false, null, true, oneOfTypes);
eipOptions.add(ep);
}
}