java类javax.xml.bind.annotation.XmlElements的实例源码

RelevePropriete.java 文件源码 项目:cadastrapp 阅读 26 收藏 0 点赞 0 评论 0
@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;
}
ProprietesBaties.java 文件源码 项目:cadastrapp 阅读 29 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name="proprietes")
   @XmlElements({@XmlElement(name="propriete",   type=ProprieteBatie.class)})
/**
 * @param proprietes
 */
public void setProprietes(List<ProprieteBatie> proprietes) {
    this.proprietes = proprietes;
}
BordereauParcellaire.java 文件源码 项目:cadastrapp 阅读 26 收藏 0 点赞 0 评论 0
@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;
}
CriteriaSupportUtils.java 文件源码 项目:kc-rice 阅读 32 收藏 0 点赞 0 评论 0
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;
}
CriteriaSupportUtils.java 文件源码 项目:rice 阅读 24 收藏 0 点赞 0 评论 0
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;
}
CriteriaSupportUtils.java 文件源码 项目:kuali_rice 阅读 23 收藏 0 点赞 0 评论 0
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;
}
Application.java 文件源码 项目:AndroTickler 阅读 23 收藏 0 点赞 0 评论 0
@XmlElements({
        @XmlElement(name="activity"),
        @XmlElement(name="activity-alias")
})
public void setActivites(List<Activity> activites) {
    this.activites = activites;
}
Key.java 文件源码 项目:stroom-query 阅读 31 收藏 0 点赞 0 评论 0
@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;
}
MCRViewerConfiguration.java 文件源码 项目:mycore 阅读 27 收藏 0 点赞 0 评论 0
@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());
}
MCRViewerConfiguration.java 文件源码 项目:mycore 阅读 30 收藏 0 点赞 0 评论 0
@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());
}
MutableParentModule.java 文件源码 项目:cloudkeeper 阅读 23 收藏 0 点赞 0 评论 0
@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;
}
MutableOverride.java 文件源码 项目:cloudkeeper 阅读 34 收藏 0 点赞 0 评论 0
@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;
}
SmsConfiguration.java 文件源码 项目:dhis2-core 阅读 24 收藏 0 点赞 0 评论 0
@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;
}
JaxbSearchTemplate.java 文件源码 项目:documentum-rest-client-java 阅读 24 收藏 0 点赞 0 评论 0
@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;
}
JaxbSearch.java 文件源码 项目:documentum-rest-client-java 阅读 28 收藏 0 点赞 0 评论 0
@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;
}
EipAnnotationProcessor.java 文件源码 项目:Camel 阅读 30 收藏 0 点赞 0 评论 0
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);
    }
}
CompteCommunal.java 文件源码 项目:cadastrapp 阅读 24 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name="proprietaires")
   @XmlElements({@XmlElement(name="proprietaire",     type=Proprietaire.class)})
/**
 * @param proprietaires the proprietaires to set
 */
public void setProprietaires(List<Proprietaire> proprietaires) {
    this.proprietaires = proprietaires;
}
CompteCommunal.java 文件源码 项目:cadastrapp 阅读 21 收藏 0 点赞 0 评论 0
@XmlElements({@XmlElement(name="proprietesBaties", type=ProprietesBaties.class, nillable = true)})
/**
 * @param proprieteBaties the proprieteBaties to set
 */
public void setProprietesBaties(ProprietesBaties proprieteBaties) {
    this.proprieteBaties = proprieteBaties;
}
CompteCommunal.java 文件源码 项目:cadastrapp 阅读 22 收藏 0 点赞 0 评论 0
@XmlElements({@XmlElement(name="proprietesNonBaties",     type=ProprietesNonBaties.class, nillable = true)})
/**
 * @param proprieteNonBaties the proprieteNonBaties to set
 */
public void setProprietesNonBaties(ProprietesNonBaties proprieteNonBaties) {
    this.proprieteNonBaties = proprieteNonBaties;
}
ProprietesNonBaties.java 文件源码 项目:cadastrapp 阅读 23 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name="proprietes")
   @XmlElements({@XmlElement(name="propriete",   type=ProprieteNonBatie.class)})
/**
 * @param proprietes
 */
public void setProprietes(List<ProprieteNonBatie> proprietes) {
    this.proprietes = proprietes;
}
Propriete.java 文件源码 项目:cadastrapp 阅读 20 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name="exonerations")
   @XmlElements({@XmlElement(name="exoneration",   type=Exoneration.class)})
/**
 * @param exonerations the exonerations to set
 */
public void setExonerations(List<Exoneration> exonerations) {
    this.exonerations = exonerations;
}
Lot.java 文件源码 项目:cadastrapp 阅读 28 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name = "proprietaires")
@XmlElements({ @XmlElement(name = "Proprietaire", type = Proprietaire.class) })
/**
 * @param proprietaires
 */
public void setProprietaires(List<Proprietaire> proprietaires) {
    this.proprietaires = proprietaires;
}
Lot.java 文件源码 项目:cadastrapp 阅读 25 收藏 0 点赞 0 评论 0
@XmlElements({ @XmlElement(name = "Propriete", type = ProprieteBatie.class) })
/**
 * @param proprieteDescription the proprieteDescription to set
 */
public void setProprieteDescription(ProprieteBatie proprieteDescription) {
    this.proprieteDescription = proprieteDescription;
}
Parcelle.java 文件源码 项目:cadastrapp 阅读 23 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name="proprietaires")
   @XmlElements({@XmlElement(name="proprietaire",   type=Proprietaire.class)})
/**
 * @param proprietaires the proprietaires List to set
 */
public void setProprietaires(List<Proprietaire> proprietaires) {
    this.proprietaires = proprietaires;
}
Parcelle.java 文件源码 项目:cadastrapp 阅读 31 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name="proprieteBaties")
   @XmlElements({@XmlElement(name="proprieteBatie",   type=ProprieteBatie.class)})
/**
 * @param proprieteBaties the proprieteBaties to set
 */
public void setProprieteBaties(List<ProprieteBatie> proprieteBaties) {
    this.proprieteBaties = proprieteBaties;
}
Parcelle.java 文件源码 项目:cadastrapp 阅读 29 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name="proprieteNonBaties")
   @XmlElements({@XmlElement(name="proprieteNonBatie",   type=ProprieteNonBatie.class)})
/**
 * @param proprieteNonBaties the proprieteNonBaties to set
 */
public void setProprieteNonBaties(List<ProprieteNonBatie> proprieteNonBaties) {
    this.proprieteNonBaties = proprieteNonBaties;
}
ProprieteBatie.java 文件源码 项目:cadastrapp 阅读 30 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name="lots")
   @XmlElements({@XmlElement(name="lot",   type=Lot.class)})
/**
 * @param lots the lots to set
 */
public void setLots(List<Lot> lots) {
    this.lots = lots;
}
InformationLots.java 文件源码 项目:cadastrapp 阅读 24 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name = "lots")
@XmlElements({ @XmlElement(name = "Lot", type = Lot.class) })
/**
 * @param lots
 */
public void setLots(List<Lot> lots) {
    this.lots = lots;
}
Simulation.java 文件源码 项目:performance-test-harness-for-geoevent 阅读 32 收藏 0 点赞 0 评论 0
@XmlElements( { 
    @XmlElement( name="RampTest", type = RampTest.class ),
    @XmlElement( name="StressTest", type = StressTest.class),
    @XmlElement( name="TimeTest", type = TimeTest.class ) } )
public Test getTest()
{
    return test;
}
SmsConfiguration.java 文件源码 项目:AgileAlligators 阅读 31 收藏 0 点赞 0 评论 0
@XmlElementWrapper( name = "gateways" )
@XmlElements( { @XmlElement( name = "bulksms", type = BulkSmsGatewayConfig.class ),
    @XmlElement( name = "clickatell", type = ClickatellGatewayConfig.class ),
    @XmlElement( name = "http", type = GenericHttpGatewayConfig.class ),
    @XmlElement( name = "modem", type = ModemGatewayConfig.class ) } )
public List<SmsGatewayConfig> getGateways()
{
    return gateways;
}


问题


面经


文章

微信
公众号

扫码关注公众号